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...

14 lines
528 B

class QueueNotificationUpdateMail < ActiveRecord::Migration[6.1]
def up
User.active.find_each do |user|
AnnouncementMailer
.announce(user,
subject: I18n.t(:'notifications.update_info_mail.subject'),
body: I18n.t(:'notifications.update_info_mail.body'),
body_header: I18n.t(:'notifications.update_info_mail.body_header'),
body_subheader: I18n.t(:'notifications.update_info_mail.body_subheader'))
.deliver_later
end
end
end