Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

256 B
Raw Blame
# Delete migration and spec after 2 consecutive releases.
class Migration::RemoveMessageNotifications < ApplicationJob
  queue_as :scheduled_jobs

  def perform
    Notification.where(primary_actor_type: 'Message').in_batches(of: 100).delete_all
  end
end