diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-21 19:11:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-21 19:11:39 +0000 |
commit | 89b4c924440303e852a4374edc6fa9192fe1df60 (patch) | |
tree | 36029ffa0d7e1408fe7441dc4caf909f4c2f2f51 /db | |
parent | f053c1a5af4a93c0b003fc624cac1a6a35a8ef89 (diff) | |
download | redmine-89b4c924440303e852a4374edc6fa9192fe1df60.tar.gz redmine-89b4c924440303e852a4374edc6fa9192fe1df60.zip |
Hide email by default for new users (#21042).
git-svn-id: http://svn.redmine.org/redmine/trunk@14726 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 |