Files
leadchat/db/migrate/20210219085719_remove_old_notifications.rb
2021-02-19 18:35:21 +05:30

6 lines
174 B
Ruby

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