chore: Change the RemoveMessageNotifications job implementation. (#8521)
This commit is contained in:
@@ -3,6 +3,6 @@ class Migration::RemoveMessageNotifications < ApplicationJob
|
|||||||
queue_as :scheduled_jobs
|
queue_as :scheduled_jobs
|
||||||
|
|
||||||
def perform
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user