Update db/migrate/20211105142202_queue_notification_update_mail.rb

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
pull/10565/head
ulferts 3 years ago committed by Oliver Günther
parent a76a968c48
commit e0263f9de5
  1. 2
      db/migrate/20211105142202_queue_notification_update_mail.rb

@ -2,7 +2,7 @@ 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.exists?
return unless User.not_builtin.exists?
::Announcements::SchedulerJob
.perform_later subject: :'notifications.update_info_mail.subject',

Loading…
Cancel
Save