Skip to content

Commit

Permalink
Updating switches data
Browse files Browse the repository at this point in the history
  • Loading branch information
saulotoledo committed Jan 30, 2018
1 parent 40c5ced commit 78dd9df
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/20180126144758_add_port_speed_to_network_ports.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddPortSpeedToNetworkPorts < ActiveRecord::Migration[5.0]
def change
add_column :network_ports, :port_speed, :integer
end
end

0 comments on commit 78dd9df

Please sign in to comment.