ref: master
db/migrate/20130703124306_add_archived_field_to_products.rb
1 2 3 4 5 6 7 8 9
class AddArchivedFieldToProducts < ActiveRecord::Migration def self.up add_column :products, :archived, :boolean, :default => false end def self.down remove_column :products, :archived end end