discourse/plugins/discourse-ai/db/migrate/20230519003106_post_custom_prompts.rb
2025-07-22 15:07:59 +02:00

13 lines
320 B
Ruby
Vendored

# frozen_string_literal: true
class PostCustomPrompts < ActiveRecord::Migration[7.0]
def change
create_table :post_custom_prompts do |t|
t.integer :post_id, null: false
t.json :custom_prompt, null: false
t.timestamps
end
add_index :post_custom_prompts, :post_id, unique: true
end
end