Skip to content

Commit

Permalink
Removing switch details, adding part_number to asset details and upda…
Browse files Browse the repository at this point in the history
…ting hardware table.
  • Loading branch information
saulotoledo committed Mar 28, 2018
1 parent d2dfe65 commit cb78c2d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20180323204738_add_part_number_to_asset_details.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddPartNumberToAssetDetails < ActiveRecord::Migration[5.0]
def change
add_column :asset_details, :part_number, :string
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class RemoveSwitchDetailsFromSwitches < ActiveRecord::Migration[5.0]
def change
remove_column :switches, :product_name, :string
remove_column :switches, :part_number, :string
remove_column :switches, :serial_number, :string
remove_column :switches, :description, :string
remove_column :switches, :manufacturer, :string
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RenameSwitchIdColumnInHardware < ActiveRecord::Migration[5.0]
def change
rename_column :hardwares, :switch_id, :physical_switch_id
end
end

0 comments on commit cb78c2d

Please sign in to comment.