Skip to content

Commit

Permalink
Updating switches data
Browse files Browse the repository at this point in the history
  • Loading branch information
saulotoledo committed Feb 6, 2018
1 parent 40c5ced commit afe45b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions db/migrate/20180126144529_add_extra_information_to_switches.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class AddExtraInformationToSwitches < ActiveRecord::Migration[5.0]
def change
add_column :switches, :ems_id, :bigint
add_column :switches, :health_state, :string
add_column :switches, :power_state, :string
add_column :switches, :product_name, :string
add_column :switches, :part_number, :string
add_column :switches, :serial_number, :string
add_column :switches, :description, :string
add_column :switches, :manufacturer, :string
end
end
5 changes: 5 additions & 0 deletions db/migrate/20180206140653_add_switch_id_to_hardwares.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddSwitchIdToHardwares < ActiveRecord::Migration[5.0]
def change
add_column :hardwares, :switch_id, :bigint
end
end

0 comments on commit afe45b4

Please sign in to comment.