mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 05:13:38 +08:00
12 lines
245 B
Ruby
12 lines
245 B
Ruby
|
# 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
|
||
|
end
|