Skip to content

Commit

Permalink
Removing switch details and adding part_number to asset details.
Browse files Browse the repository at this point in the history
  • Loading branch information
saulotoledo committed Apr 5, 2018
1 parent d2dfe65 commit 055aa80
Show file tree
Hide file tree
Showing 2 changed files with 14 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

0 comments on commit 055aa80

Please sign in to comment.