mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 06:43:54 +08:00
12 lines
305 B
Ruby
Vendored
12 lines
305 B
Ruby
Vendored
# frozen_string_literal: true
|
|
class RemoveSiteSettings < ActiveRecord::Migration[7.0]
|
|
def up
|
|
DB.exec(<<~SQL, %w[ai_bot_enabled_chat_commands ai_bot_enabled_personas])
|
|
DELETE FROM site_settings WHERE name IN (?)
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|