chore: Change the RemoveMessageNotifications job implementation. (#8521)
This commit is contained in:
parent
38240a68aa
commit
80ff5e2d0a
@ -3,6 +3,6 @@ class Migration::RemoveMessageNotifications < ApplicationJob
|
||||
queue_as :scheduled_jobs
|
||||
|
||||
def perform
|
||||
Notification.where(primary_actor_type: 'Message').in_batches(of: 100).each_record(&:destroy)
|
||||
Notification.where(primary_actor_type: 'Message').in_batches(of: 100).delete_all
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user