discourse-ai/db/migrate/20240503042558_add_chat_mes...

13 lines
349 B
Ruby

# frozen_string_literal: true
class AddChatMessageCustomPrompt < ActiveRecord::Migration[7.0]
def change
create_table :chat_message_custom_prompts do |t|
t.bigint :message_id, null: false
t.json :custom_prompt, null: false
t.timestamps
end
add_index :chat_message_custom_prompts, :message_id, unique: true
end
end