diff --git a/db/migrate/20170919211256_add_parent_id_to_lans.rb b/db/migrate/20170919211256_add_parent_id_to_lans.rb new file mode 100644 index 000000000..d2e09b0c6 --- /dev/null +++ b/db/migrate/20170919211256_add_parent_id_to_lans.rb @@ -0,0 +1,5 @@ +class AddParentIdToLans < ActiveRecord::Migration[5.0] + def change + add_column :lans, :parent_id, :bigint + end +end diff --git a/db/migrate/20170919211745_create_subnets.rb b/db/migrate/20170919211745_create_subnets.rb new file mode 100644 index 000000000..911f9695d --- /dev/null +++ b/db/migrate/20170919211745_create_subnets.rb @@ -0,0 +1,11 @@ +class CreateSubnets < ActiveRecord::Migration[5.0] + def change + create_table :subnets do |t| + t.string :ems_ref + t.string :name + t.string :cidr + t.string :type + t.bigint :lan_id + end + end +end diff --git a/db/schema.yml b/db/schema.yml index 1273c80d0..e31283b4d 100644 --- a/db/schema.yml +++ b/db/schema.yml @@ -1618,6 +1618,7 @@ lans: - computed_allow_promiscuous - computed_forged_transmits - computed_mac_changes +- parent_id ldap_domains: - id - name @@ -6110,6 +6111,13 @@ storages_vms_and_templates: - storage_id - vm_or_template_id - id +subnets: +- id +- ems_ref +- name +- cidr +- type +- lan_id switches: - id - name