0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 16:23:34 +08:00
discourse/db/post_migrate/20260629081606_remove_reporting_improvements_setting.rb
Alan Guo Xiang Tan d2aa6131fb
DEV: Remove reporting_improvements upcoming change (#41259)
This PR promotes the `reporting_improvements` upcoming change to the
default for all admins and removes the flag.
2026-07-01 07:52:02 +08:00

16 lines
388 B
Ruby
Vendored

# frozen_string_literal: true
class RemoveReportingImprovementsSetting < ActiveRecord::Migration[8.0]
def up
execute(<<~SQL)
DELETE FROM site_settings WHERE name = 'reporting_improvements'
SQL
execute(<<~SQL)
DELETE FROM site_setting_groups WHERE name = 'reporting_improvements'
SQL
end
def down
raise ActiveRecord::IrreversibleMigration
end
end