discourse/db/migrate/20260505161704_drop_splash_screen_site_setting.rb
Kris 0cfc928ad0
DEV: remove splash_screen site setting (#39758)
This removes the `splash_screen` site setting so that it will always be
enabled. The setting was originally included because it was an
experimental feature, but now all disabling it really does is give a
site a worse score for Google's core web vitals.

`def include_splash_screen?` remains to disable it in tests, which was
the same behavior as before (it was disabled at some point to fix
flakes). The specs that test the splash stub the helper to true.
2026-05-06 10:22:33 -04:00

13 lines
272 B
Ruby
Vendored

# frozen_string_literal: true
class DropSplashScreenSiteSetting < ActiveRecord::Migration[8.0]
def up
execute <<~SQL
DELETE FROM site_settings
WHERE name = 'splash_screen'
SQL
end
def down
raise ActiveRecord::IrreversibleMigration
end
end