mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-03 03:39:41 +08:00
This commit promotes all post_deploy migrations which existed in Discourse v3.4.0 (timestamp <= 20241023041126)
14 lines
263 B
Ruby
14 lines
263 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
|
|
|
|
def down
|
|
end
|
|
end
|