retrospring/db/migrate/20230212181044_remove_expired_service_connection_notifications.rb
2023-02-12 19:26:31 +01:00

7 lines
256 B
Ruby

# frozen_string_literal: true
class RemoveExpiredServiceConnectionNotifications < ActiveRecord::Migration[6.1]
def up = Notification.where(type: "Notification::ServiceTokenExpired").delete_all
def down = raise ActiveRecord::IrreversibleMigration
end