OpenProject is the leading open source project management software.
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.
openproject/config/initializers/migrate_email_settings.rb

13 lines
505 B

OpenProject::Application.configure do
config.after_initialize do
# settings table may not exist when you run db:migrate at installation
# time, so just ignore this block when that happens.
if Setting.settings_table_exists_yet? && !Setting.email_delivery_migrated?
Rails.logger.info "Migrating existing email settings to the settings table..."
OpenProject::Configuration.migrate_mailer_configuration!
end
OpenProject::Configuration.reload_mailer_configuration!
end
end