From 055aa8053f1690af9e7534ad924586554fb5be46 Mon Sep 17 00:00:00 2001 From: "Saulo S. Toledo" Date: Fri, 23 Mar 2018 18:03:16 -0300 Subject: [PATCH] Removing switch details and adding part_number to asset details. --- .../20180323204738_add_part_number_to_asset_details.rb | 5 +++++ ...20180323204821_remove_switch_details_from_switches.rb | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 db/migrate/20180323204738_add_part_number_to_asset_details.rb create mode 100644 db/migrate/20180323204821_remove_switch_details_from_switches.rb diff --git a/db/migrate/20180323204738_add_part_number_to_asset_details.rb b/db/migrate/20180323204738_add_part_number_to_asset_details.rb new file mode 100644 index 000000000..d8d126feb --- /dev/null +++ b/db/migrate/20180323204738_add_part_number_to_asset_details.rb @@ -0,0 +1,5 @@ +class AddPartNumberToAssetDetails < ActiveRecord::Migration[5.0] + def change + add_column :asset_details, :part_number, :string + end +end diff --git a/db/migrate/20180323204821_remove_switch_details_from_switches.rb b/db/migrate/20180323204821_remove_switch_details_from_switches.rb new file mode 100644 index 000000000..7ef27a542 --- /dev/null +++ b/db/migrate/20180323204821_remove_switch_details_from_switches.rb @@ -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