discourse/db/migrate/20230831153649_delete_unuse...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
442 B
Ruby
Raw Normal View History

# 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