ref: master
db/migrate/20130702135550_add_sti_and_serialized_data_to_products.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 |
class AddStiAndSerializedDataToProducts < ActiveRecord::Migration def self.up add_column :products, :type, :string add_column :products, :data, :text rename_column :products, :enterprise_id, :profile_id end def self.down remove_column :products, :type remove_column :products, :data rename_column :products, :profile_id, :enterprise_id end end |