ref: master
db/migrate/20100618021603_add_columns_to_products.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 |
class AddColumnsToProducts < ActiveRecord::Migration def self.up add_column :products, :unit, :string add_column :products, :discount, :float add_column :products, :available, :boolean end def self.down remove_column :products, :unit remove_column :products, :discount remove_column :products, :available end end |