Retrospring/db/migrate/20230212181044_remove_expir...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
256 B
Ruby
Raw Normal View History

# 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