Improved migration.
This commit is contained in:
parent
c35e2a0aab
commit
5b38c9e546
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class CleanupUserPreferencesNotificationSound2 < ActiveRecord::Migration[5.1]
|
|||
end
|
||||
end
|
||||
|
||||
Delayed::Job.all.each do |job|
|
||||
Delayed::Job.limit(2_000).each do |job|
|
||||
Delayed::Worker.new.run(job)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue