0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/db/post_migrate/20241023041126_clear_duplicate_admin_notices.rb

14 lines
263 B
Ruby
Vendored

# 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