mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
In a previous commit these site settings were removed from the codebase because they were identified as unused settings. This commit removes these settings from the db in case they existed in the site settings table. Follow up to: da389d7844f8895ea3531c61996a988e4d7b70e5
23 lines
442 B
Ruby
23 lines
442 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DeleteUnusedSiteSettings < ActiveRecord::Migration[7.0]
|
|
def up
|
|
execute <<~SQL
|
|
DELETE
|
|
FROM
|
|
"site_settings"
|
|
WHERE
|
|
"name" IN (
|
|
'rate_limit_new_user_create_topic',
|
|
'enable_system_avatars',
|
|
'check_for_new_features',
|
|
'allow_user_api_keys'
|
|
)
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|