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/db/migrate/20211105142202_queue_notifi...

13 lines
589 B

class QueueNotificationUpdateMail < ActiveRecord::Migration[6.1]
def up
# On a newly created database, we don't want the update mail to be sent.
# Users are only created upon seeding.
return unless User.not_builtin.exists?
::Announcements::SchedulerJob
.perform_later subject: :'notifications.update_info_mail.subject',
body: :'notifications.update_info_mail.body',
body_header: :'notifications.update_info_mail.body_header',
body_subheader: :'notifications.update_info_mail.body_subheader'
end
end