2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/db/migrate/20251119033712_remove_widget_poststream_settings.rb
2025-11-26 16:10:02 -03:00

17 lines
391 B
Ruby

# frozen_string_literal: true
class RemoveWidgetPoststreamSettings < ActiveRecord::Migration[8.0]
def up
execute <<~SQL
DELETE FROM site_settings
WHERE name IN (
'deactivate_widgets_rendering',
'glimmer_post_stream_mode',
'glimmer_post_stream_mode_auto_groups'
)
SQL
end
def down
raise ActiveRecord::IrreversibleMigration
end
end