feat: add default value
This commit is contained in:
@@ -4,7 +4,7 @@ class CreateCaptainScenarios < ActiveRecord::Migration[7.1]
|
||||
t.string :title
|
||||
t.text :description
|
||||
t.text :instruction
|
||||
t.jsonb :tools
|
||||
t.jsonb :tools, default: []
|
||||
t.boolean :enabled, default: true, null: false
|
||||
t.references :assistant, null: false, foreign_key: { to_table: :captain_assistants }
|
||||
t.references :account, null: false
|
||||
|
||||
+1
-1
@@ -309,7 +309,7 @@ ActiveRecord::Schema[7.1].define(version: 2025_07_09_075622) do
|
||||
t.string "title"
|
||||
t.text "description"
|
||||
t.text "instruction"
|
||||
t.jsonb "tools"
|
||||
t.jsonb "tools", default: []
|
||||
t.boolean "enabled", default: true, null: false
|
||||
t.bigint "assistant_id", null: false
|
||||
t.bigint "account_id", null: false
|
||||
|
||||
Reference in New Issue
Block a user