discourse-ai/db/migrate/20241126033812_rename_ai_gi...

12 lines
389 B
Ruby

# frozen_string_literal: true
class RenameAiGistBatchSetting < ActiveRecord::Migration[7.0]
def up
execute "UPDATE site_settings SET name = 'ai_summary_gists_allowed_groups' WHERE name = 'ai_hot_topic_gists_allowed_groups'"
end
def down
execute "UPDATE site_settings SET name = 'ai_hot_topic_gists_allowed_groups' WHERE name = 'ai_summary_gists_allowed_groups'"
end
end