0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 02:19:55 +08:00
discourse/db/migrate/20241023041126_clear_duplicate_admin_notices.rb
Alan Guo Xiang Tan 9f12dd28f9
DEV: Promote historic post_deploy migrations (#34273)
This commit promotes all post_deploy migrations which existed in
Discourse v3.4.0 (timestamp <= 20241023041126)
2025-08-13 14:10:50 +08:00

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