ref: master
db/migrate/040_add_enable_email_to_user.rb
1 2 3 4 5 6 7 8 9
class AddEnableEmailToUser < ActiveRecord::Migration def self.up add_column :users, :enable_email, :boolean, :default => false end def self.down remove_column :users, :enable_email end end