mirror of
https://github.com/discourse/discourse.git
synced 2026-03-04 01:15:08 +08:00
This commit removes the legacy widget rendering system from the Discourse codebase. See the topics below for more information: - https://meta.discourse.org/t/upcoming-eol-for-the-widget-rendering-system/375332 - https://meta.discourse.org/t/upcoming-post-stream-changes-how-to-prepare-themes-and-plugins/372063
17 lines
391 B
Ruby
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
|