Skip to content

Commit

Permalink
create a physical rack table
Browse files Browse the repository at this point in the history
  • Loading branch information
felipedf committed Feb 15, 2018
1 parent c99669c commit 2be9ef9
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class CreatePhysicalRacksAndAddToPhysicalServers < ActiveRecord::Migration[5.0]
def change
create_table :physical_racks do |t|
t.bigint :ems_id
t.string :uid_ems
t.string :name
t.timestamps
end

add_column :physical_servers, :physical_rack_id, :bigint
end
end

0 comments on commit 2be9ef9

Please sign in to comment.