Commit 9b251ccc1c9375d2589838521ab7895d458a6548

Authored by Rafael Martins
1 parent 6e1d618d

Migration to add default value to Category accept_products

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