Skip to content
Permalink
Browse files

Followup for issue #2541 - only update active jobs and triggers.

  • Loading branch information...
znuny-robo committed Jun 13, 2019
1 parent 757af30 commit 84feacd8165ba1e1c57dec04becb82eaede869be
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/20190408000001_issue_2541_fix_notification_email_without_body.rb
@@ -6,7 +6,7 @@ def up

# update jobs and triggers
[::Job, ::Trigger].each do |model|
model.all.each do |record|
model.where(active: true).each do |record|
next if record.perform.blank?

%w[notification.email notification.sms].each do |action|

0 comments on commit 84feacd

Please sign in to comment.
You can’t perform that action at this time.