20151021190616_change_user_preferences_hide_mail_default_to_true.rb 280 Bytes
Newer Older
1
class ChangeUserPreferencesHideMailDefaultToTrue < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9
  def self.up
    change_column :user_preferences, :hide_mail, :boolean, :default => true
  end

  def self.down
    change_column :user_preferences, :hide_mail, :boolean, :default => false
  end
end