diff --git a/db/migrate/20180410000001_cleanup_user_preferences_notification_sound2.rb b/db/migrate/20180410000001_cleanup_user_preferences_notification_sound2.rb index f71b3fe2b..208e6dd86 100644 --- a/db/migrate/20180410000001_cleanup_user_preferences_notification_sound2.rb +++ b/db/migrate/20180410000001_cleanup_user_preferences_notification_sound2.rb @@ -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