-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40c5ced
commit 78dd9df
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
db/migrate/20180126144529_add_extra_information_to_switches.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |