Add workflows inside captain

This commit is contained in:
Pranav
2026-02-28 09:02:20 +03:00
parent c0490794d1
commit d7db152f7b
25 changed files with 359 additions and 158 deletions
@@ -0,0 +1,6 @@
class AddPauseResumeToCaptainWorkflowExecutions < ActiveRecord::Migration[7.1]
def change
add_column :captain_workflow_executions, :current_node_id, :string
add_column :captain_workflow_executions, :context_store, :jsonb, default: {}
end
end
+3 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2026_02_27_100002) do
ActiveRecord::Schema[7.1].define(version: 2026_02_27_100003) do
# These extensions should be enabled to support this database
enable_extension "pg_stat_statements"
enable_extension "pg_trgm"
@@ -423,6 +423,8 @@ ActiveRecord::Schema[7.1].define(version: 2026_02_27_100002) do
t.jsonb "execution_log", default: []
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "current_node_id"
t.jsonb "context_store", default: {}
t.index ["account_id"], name: "index_captain_workflow_executions_on_account_id"
t.index ["contact_id"], name: "index_captain_workflow_executions_on_contact_id"
t.index ["conversation_id"], name: "index_captain_workflow_executions_on_conversation_id"