Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parent/child support for lans, as well as subnets #69

Merged
merged 1 commit into from
Oct 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions db/migrate/20170919211256_add_parent_id_to_lans.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddParentIdToLans < ActiveRecord::Migration[5.0]
def change
add_column :lans, :parent_id, :bigint
end
end
11 changes: 11 additions & 0 deletions db/migrate/20170919211745_create_subnets.rb
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,7 @@ lans:
- computed_allow_promiscuous
- computed_forged_transmits
- computed_mac_changes
- parent_id
ldap_domains:
- id
- name
Expand Down Expand Up @@ -6099,6 +6100,13 @@ storages_vms_and_templates:
- storage_id
- vm_or_template_id
- id
subnets:
- id
- ems_ref
- name
- cidr
- type
- lan_id
switches:
- id
- name
Expand Down