discourse-ai/db/migrate/20240609061418_tool_details...

15 lines
418 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ToolDetailsAndCommandRemoval < ActiveRecord::Migration[7.0]
def change
add_column :ai_personas, :tool_details, :boolean, default: true, null: false
add_column :ai_personas, :tools, :json, null: false, default: []
Migration::ColumnDropper.mark_readonly(:ai_personas, :commands)
execute <<~SQL
UPDATE ai_personas
SET tools = commands
SQL
end
end