diff options
author | Go MAEDA <maeda@farend.jp> | 2023-12-08 08:29:17 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-12-08 08:29:17 +0000 |
commit | 9b2b30b887487ef0d11a4bb92bddd22cd49bf3a9 (patch) | |
tree | 354b29566c0f5b197a31053bdb0bbb65df046174 /db | |
parent | a73ffaebd3e996a722c2d5020d45235abc37d85e (diff) | |
download | redmine-9b2b30b887487ef0d11a4bb92bddd22cd49bf3a9.tar.gz redmine-9b2b30b887487ef0d11a4bb92bddd22cd49bf3a9.zip |
Change the default notification option from `only_my_events` to `only_assigned` (#39500).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22504 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/017_create_settings.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/017_create_settings.rb b/db/migrate/017_create_settings.rb index 4c18329cc..5768ca24c 100644 --- a/db/migrate/017_create_settings.rb +++ b/db/migrate/017_create_settings.rb @@ -5,9 +5,9 @@ class CreateSettings < ActiveRecord::Migration[4.2] t.column "value", :text end - # Persist text_formatting default setting for new installations - setting = Setting.new(:name => "text_formatting", :value => Setting.text_formatting) - setting.save! + # Persist default settings for new installations + Setting.create!(name: 'default_notification_option', value: Setting.default_notification_option) + Setting.create!(name: 'text_formatting', value: Setting.text_formatting) end def self.down |