You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20231113131245_ensure_default_notification_option_is_stored_in_db.rb 355B

123456789101112
  1. class EnsureDefaultNotificationOptionIsStoredInDb < ActiveRecord::Migration[6.1]
  2. def up
  3. # Set the default value in Redmine <= 5.1 to preserve the behavior of existing installations
  4. Setting.find_or_create_by!(name: 'default_notification_option') do |setting|
  5. setting.value = 'only_my_events'
  6. end
  7. end
  8. def down
  9. # no-op
  10. end
  11. end