ref: master
db/migrate/20120411132751_add_default_to_accept_products_from_category.rb
1 2 3 4 5 6 7 8 9
class AddDefaultToAcceptProductsFromCategory < ActiveRecord::Migration def self.up change_column_default :categories, :accept_products, true end def self.down change_column_default :categories, :accept_products, nil end end