discourse/db/post_migrate/20241023041126_clear_duplicate_admin_notices.rb

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

15 lines
263 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ClearDuplicateAdminNotices < ActiveRecord::Migration[7.1]
def up
problem_subject_id = 0
DB.exec(<<~SQL)
DELETE FROM admin_notices
WHERE subject = #{problem_subject_id}
SQL
end
def down
end
end