diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb b/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb new file mode 100644 index 000000000..fc5d268a6 --- /dev/null +++ b/db/migrate/20151021190616_change_user_preferences_hide_mail_default_to_true.rb @@ -0,0 +1,9 @@ +class ChangeUserPreferencesHideMailDefaultToTrue < ActiveRecord::Migration + 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 |