Class: CreatePromptNavigatorPromptExecutions

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/prompt_navigator/modeling/templates/db/migrate/20260129073026_create_prompt_navigator_prompt_executions.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/prompt_navigator/modeling/templates/db/migrate/20260129073026_create_prompt_navigator_prompt_executions.rb', line 2

def change
  create_table :prompt_navigator_prompt_executions do |t|
    t.references :previous, foreign_key: { to_table: :prompt_navigator_prompt_executions }, index: true, null: true
    # Unique identifier for prompt execution
    # Used to highlight active entries in History list and display details on click
    t.string :execution_id
    t.text :prompt
    t.string :llm_platform
    t.string :model
    t.string :configuration
    t.text :response

    t.timestamps
  end
end