Chatwoot/db/migrate/20210219085719_remove_old_notifications.rb

6 lines
174 B
Ruby
Raw Normal View History

class RemoveOldNotifications < ActiveRecord::Migration[6.0]
def change
Notification.where(notification_type: 'assigned_conversation_new_message').destroy_all
end
end