geneva_drive 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/MANUAL.md +84 -1
  4. data/Rakefile +14 -1
  5. data/bin/matrix +76 -0
  6. data/bin/md2html +114 -0
  7. data/lib/generators/geneva_drive/install/templates/add_resumable_step_support.rb +5 -9
  8. data/lib/generators/geneva_drive/install/templates/add_signals_support.rb +5 -10
  9. data/lib/geneva_drive/executor.rb +18 -0
  10. data/lib/geneva_drive/json_column.rb +72 -0
  11. data/lib/geneva_drive/migration_helpers.rb +27 -0
  12. data/lib/geneva_drive/removed_step_definition.rb +34 -0
  13. data/lib/geneva_drive/signal.rb +4 -2
  14. data/lib/geneva_drive/step_collection.rb +31 -7
  15. data/lib/geneva_drive/step_definition.rb +9 -0
  16. data/lib/geneva_drive/step_execution.rb +3 -2
  17. data/lib/geneva_drive/version.rb +1 -1
  18. data/lib/geneva_drive/workflow.rb +170 -2
  19. data/lib/geneva_drive.rb +2 -0
  20. data/test/dummy/config/database.yml +40 -5
  21. data/test/dummy/config/initializers/geneva_drive.rb +46 -0
  22. data/test/dummy_install/db/migrate/20260217112949_create_geneva_drive_workflows.rb +76 -0
  23. data/test/dummy_install/db/migrate/20260217112950_create_geneva_drive_step_executions.rb +99 -0
  24. data/test/dummy_install/db/migrate/20260217112951_add_finished_at_to_geneva_drive_step_executions.rb +27 -0
  25. data/test/dummy_install/db/migrate/20260217112952_add_error_class_name_to_geneva_drive_step_executions.rb +9 -0
  26. data/test/dummy_install/db/migrate/20260217112953_add_resumable_step_support_to_geneva_drive_step_executions.rb +128 -0
  27. data/test/dummy_install/db/migrate/20260217112954_add_chained_step_executions_to_geneva_drive_step_executions.rb +136 -0
  28. data/test/dummy_install/db/schema.rb +75 -0
  29. data/test/dummy_install/log/test.log +1852 -0
  30. data/test/test_helper.rb +51 -13
  31. data/test/workflow/removed_step_test.rb +294 -0
  32. data/test/workflow/resume_at_test.rb +170 -0
  33. metadata +16 -2
@@ -0,0 +1,1852 @@
1
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
2
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
3
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
5
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
9
+ SQL (0.1ms) SET search_path TO public
10
+  (109.4ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
11
+ SQL (0.0ms) SET search_path TO public
12
+  (87.7ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
13
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
14
+  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
15
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
16
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
17
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
18
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-18 13:56:00.922853', '2025-12-18 13:56:00.922854') RETURNING "key"
19
+ Migrating to CreateUsers (20241217000000)
20
+ TRANSACTION (0.0ms) BEGIN
21
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
22
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
23
+ TRANSACTION (0.3ms) COMMIT
24
+ Migrating to CreateGenevaDriveWorkflows (20251218135559)
25
+ TRANSACTION (0.1ms) BEGIN
26
+  (0.9ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
27
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
28
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
29
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
30
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
31
+ ON geneva_drive_workflows (type, hero_type, hero_id)
32
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
33
+ 
34
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251218135559') RETURNING "version"
35
+ TRANSACTION (0.1ms) COMMIT
36
+ Migrating to CreateGenevaDriveStepExecutions (20251218135560)
37
+ TRANSACTION (0.1ms) BEGIN
38
+  (1.4ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
39
+ FOREIGN KEY ("workflow_id")
40
+ REFERENCES "geneva_drive_workflows" ("id")
41
+ ON DELETE CASCADE)
42
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
43
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
44
+  (0.7ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
45
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
46
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
47
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
48
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
49
+ ON geneva_drive_step_executions (workflow_id)
50
+ WHERE state IN ('scheduled', 'in_progress');
51
+ 
52
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251218135560') RETURNING "version"
53
+ TRANSACTION (0.1ms) COMMIT
54
+  (0.2ms) SELECT pg_advisory_unlock(5769190355348905590)
55
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56
+ SQL (0.0ms) SET search_path TO public
57
+ SQL (0.0ms) SET search_path TO "$user", public
58
+ SQL (0.0ms) SET search_path TO public
59
+ SQL (0.0ms) SET search_path TO "$user", public
60
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
61
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
62
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
63
+ ActiveRecord::SchemaMigration Load (4.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
64
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
65
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
66
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
67
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
68
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
69
+ SQL (0.1ms) SET search_path TO public
70
+  (85.0ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
71
+ SQL (0.0ms) SET search_path TO public
72
+  (86.5ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
73
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
74
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
75
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
76
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
77
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
78
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-18 13:57:38.323196', '2025-12-18 13:57:38.323198') RETURNING "key"
79
+ Migrating to CreateUsers (20241217000000)
80
+ TRANSACTION (0.0ms) BEGIN
81
+  (1.3ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
82
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
83
+ TRANSACTION (0.1ms) COMMIT
84
+ Migrating to CreateGenevaDriveWorkflows (20251218135737)
85
+ TRANSACTION (0.1ms) BEGIN
86
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
87
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
88
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
89
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
90
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
91
+ ON geneva_drive_workflows (type, hero_type, hero_id)
92
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
93
+ 
94
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251218135737') RETURNING "version"
95
+ TRANSACTION (0.2ms) COMMIT
96
+ Migrating to CreateGenevaDriveStepExecutions (20251218135738)
97
+ TRANSACTION (0.1ms) BEGIN
98
+  (1.3ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
99
+ FOREIGN KEY ("workflow_id")
100
+ REFERENCES "geneva_drive_workflows" ("id")
101
+ ON DELETE CASCADE)
102
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
103
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
104
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
105
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
106
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
107
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
108
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
109
+ ON geneva_drive_step_executions (workflow_id)
110
+ WHERE state IN ('scheduled', 'in_progress');
111
+ 
112
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251218135738') RETURNING "version"
113
+ TRANSACTION (0.2ms) COMMIT
114
+  (0.2ms) SELECT pg_advisory_unlock(5769190355348905590)
115
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
116
+ SQL (0.0ms) SET search_path TO public
117
+ SQL (0.0ms) SET search_path TO "$user", public
118
+ SQL (0.0ms) SET search_path TO public
119
+ SQL (0.0ms) SET search_path TO "$user", public
120
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
121
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
122
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
123
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
124
+ ActiveRecord::InternalMetadata Load (1.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
125
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
126
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
127
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
128
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
129
+ SQL (0.1ms) SET search_path TO public
130
+  (1341.9ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
131
+ SQL (0.0ms) SET search_path TO public
132
+  (85.8ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
133
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
134
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
135
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
136
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
137
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
138
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:18:20.617566', '2025-12-19 13:18:20.617567') RETURNING "key"
139
+ Migrating to CreateUsers (20241217000000)
140
+ TRANSACTION (0.0ms) BEGIN
141
+  (1.5ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
142
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
143
+ TRANSACTION (0.1ms) COMMIT
144
+ Migrating to CreateGenevaDriveWorkflows (20251219131818)
145
+ TRANSACTION (0.1ms) BEGIN
146
+  (0.9ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
147
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
148
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
149
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
150
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
151
+ ON geneva_drive_workflows (type, hero_type, hero_id)
152
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
153
+ 
154
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219131818') RETURNING "version"
155
+ TRANSACTION (0.4ms) COMMIT
156
+ Migrating to CreateGenevaDriveStepExecutions (20251219131819)
157
+ TRANSACTION (0.0ms) BEGIN
158
+  (1.2ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
159
+ FOREIGN KEY ("workflow_id")
160
+ REFERENCES "geneva_drive_workflows" ("id")
161
+ ON DELETE CASCADE)
162
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
163
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
164
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
165
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
166
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
167
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
168
+  (0.2ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
169
+ ON geneva_drive_step_executions (workflow_id)
170
+ WHERE state IN ('scheduled', 'in_progress');
171
+ 
172
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219131819') RETURNING "version"
173
+ TRANSACTION (0.2ms) COMMIT
174
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
175
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
176
+ SQL (0.0ms) SET search_path TO public
177
+ SQL (0.0ms) SET search_path TO "$user", public
178
+ SQL (0.0ms) SET search_path TO public
179
+ SQL (0.0ms) SET search_path TO "$user", public
180
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
181
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
182
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
183
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
184
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
185
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
186
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
187
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
188
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
189
+ SQL (0.1ms) SET search_path TO public
190
+  (79.4ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
191
+ SQL (0.0ms) SET search_path TO public
192
+  (42.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
193
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
194
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
195
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
196
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
197
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
198
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:20:48.733481', '2025-12-19 13:20:48.733482') RETURNING "key"
199
+ Migrating to CreateUsers (20241217000000)
200
+ TRANSACTION (0.0ms) BEGIN
201
+  (1.3ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
202
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
203
+ TRANSACTION (0.3ms) COMMIT
204
+ Migrating to CreateGenevaDriveWorkflows (20251219132047)
205
+ TRANSACTION (0.1ms) BEGIN
206
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
207
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
208
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
209
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
210
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
211
+ ON geneva_drive_workflows (type, hero_type, hero_id)
212
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
213
+ 
214
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219132047') RETURNING "version"
215
+ TRANSACTION (0.3ms) COMMIT
216
+ Migrating to CreateGenevaDriveStepExecutions (20251219132048)
217
+ TRANSACTION (0.1ms) BEGIN
218
+  (1.4ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
219
+ FOREIGN KEY ("workflow_id")
220
+ REFERENCES "geneva_drive_workflows" ("id")
221
+ ON DELETE CASCADE)
222
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
223
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
224
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
225
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
226
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
227
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
228
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
229
+ ON geneva_drive_step_executions (workflow_id)
230
+ WHERE state IN ('scheduled', 'in_progress');
231
+ 
232
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219132048') RETURNING "version"
233
+ TRANSACTION (0.1ms) COMMIT
234
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
235
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
236
+ SQL (0.0ms) SET search_path TO public
237
+ SQL (0.0ms) SET search_path TO "$user", public
238
+ SQL (0.0ms) SET search_path TO public
239
+ SQL (0.0ms) SET search_path TO "$user", public
240
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
241
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
242
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
243
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
244
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
245
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
246
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
247
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
248
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
249
+ SQL (0.1ms) SET search_path TO public
250
+  (111.0ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
251
+ SQL (0.0ms) SET search_path TO public
252
+  (37.2ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
253
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
254
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
255
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
256
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
257
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
258
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:28:32.486491', '2025-12-19 13:28:32.486492') RETURNING "key"
259
+ Migrating to CreateUsers (20241217000000)
260
+ TRANSACTION (0.0ms) BEGIN
261
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
262
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
263
+ TRANSACTION (0.2ms) COMMIT
264
+ Migrating to CreateGenevaDriveWorkflows (20251219132831)
265
+ TRANSACTION (0.1ms) BEGIN
266
+  (0.9ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
267
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
268
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
269
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
270
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
271
+ ON geneva_drive_workflows (type, hero_type, hero_id)
272
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
273
+ 
274
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219132831') RETURNING "version"
275
+ TRANSACTION (0.2ms) COMMIT
276
+ Migrating to CreateGenevaDriveStepExecutions (20251219132832)
277
+ TRANSACTION (0.1ms) BEGIN
278
+  (1.2ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "finished_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
279
+ FOREIGN KEY ("workflow_id")
280
+ REFERENCES "geneva_drive_workflows" ("id")
281
+ ON DELETE CASCADE)
282
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
283
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
284
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
285
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
286
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
287
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
288
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
289
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
290
+ ON geneva_drive_step_executions (workflow_id)
291
+ WHERE state IN ('scheduled', 'in_progress');
292
+ 
293
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219132832') RETURNING "version"
294
+ TRANSACTION (0.1ms) COMMIT
295
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
296
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
297
+ SQL (0.0ms) SET search_path TO public
298
+ SQL (0.0ms) SET search_path TO "$user", public
299
+ SQL (0.0ms) SET search_path TO public
300
+ SQL (0.0ms) SET search_path TO "$user", public
301
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
302
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
303
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
304
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
305
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
306
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
307
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
308
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
309
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
310
+ SQL (0.1ms) SET search_path TO public
311
+  (90.9ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
312
+ SQL (0.0ms) SET search_path TO public
313
+  (43.4ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
314
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
315
+  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
316
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
317
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
318
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
319
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:29:54.721326', '2025-12-19 13:29:54.721327') RETURNING "key"
320
+ Migrating to CreateUsers (20241217000000)
321
+ TRANSACTION (0.0ms) BEGIN
322
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
323
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
324
+ TRANSACTION (0.2ms) COMMIT
325
+ Migrating to CreateGenevaDriveWorkflows (20251219132953)
326
+ TRANSACTION (0.1ms) BEGIN
327
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
328
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
329
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
330
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
331
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
332
+ ON geneva_drive_workflows (type, hero_type, hero_id)
333
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
334
+ 
335
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219132953') RETURNING "version"
336
+ TRANSACTION (0.1ms) COMMIT
337
+ Migrating to CreateGenevaDriveStepExecutions (20251219132954)
338
+ TRANSACTION (0.1ms) BEGIN
339
+  (1.2ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
340
+ FOREIGN KEY ("workflow_id")
341
+ REFERENCES "geneva_drive_workflows" ("id")
342
+ ON DELETE CASCADE)
343
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
344
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
345
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
346
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
347
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
348
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
349
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
350
+ ON geneva_drive_step_executions (workflow_id)
351
+ WHERE state IN ('scheduled', 'in_progress');
352
+ 
353
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219132954') RETURNING "version"
354
+ TRANSACTION (0.1ms) COMMIT
355
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
356
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
357
+ SQL (0.0ms) SET search_path TO public
358
+ SQL (0.0ms) SET search_path TO "$user", public
359
+ SQL (0.0ms) SET search_path TO public
360
+ SQL (0.0ms) SET search_path TO "$user", public
361
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
362
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
363
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
364
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
365
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
366
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
367
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
368
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
369
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
370
+ SQL (0.1ms) SET search_path TO public
371
+  (90.6ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
372
+ SQL (0.0ms) SET search_path TO public
373
+  (85.6ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
374
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
375
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
376
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
377
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
378
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
379
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:30:56.893911', '2025-12-19 13:30:56.893912') RETURNING "key"
380
+ Migrating to CreateUsers (20241217000000)
381
+ TRANSACTION (0.0ms) BEGIN
382
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
383
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
384
+ TRANSACTION (0.0ms) COMMIT
385
+ Migrating to CreateGenevaDriveWorkflows (20251219133055)
386
+ TRANSACTION (0.1ms) BEGIN
387
+  (0.9ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
388
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
389
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
390
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
391
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
392
+ ON geneva_drive_workflows (type, hero_type, hero_id)
393
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
394
+ 
395
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219133055') RETURNING "version"
396
+ TRANSACTION (0.2ms) COMMIT
397
+ Migrating to CreateGenevaDriveStepExecutions (20251219133056)
398
+ TRANSACTION (0.0ms) BEGIN
399
+  (1.3ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
400
+ FOREIGN KEY ("workflow_id")
401
+ REFERENCES "geneva_drive_workflows" ("id")
402
+ ON DELETE CASCADE)
403
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
404
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
405
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
406
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
407
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
408
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
409
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
410
+ ON geneva_drive_step_executions (workflow_id)
411
+ WHERE state IN ('scheduled', 'in_progress');
412
+ 
413
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219133056') RETURNING "version"
414
+ TRANSACTION (0.2ms) COMMIT
415
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
416
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
417
+ SQL (0.0ms) SET search_path TO public
418
+ SQL (0.0ms) SET search_path TO "$user", public
419
+ SQL (0.0ms) SET search_path TO public
420
+ SQL (0.0ms) SET search_path TO "$user", public
421
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
422
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
423
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
424
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
425
+ ActiveRecord::InternalMetadata Load (1.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
426
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
427
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
428
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
429
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
430
+ SQL (0.1ms) SET search_path TO public
431
+  (81.8ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
432
+ SQL (0.0ms) SET search_path TO public
433
+  (90.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
434
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
435
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
436
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
437
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
438
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
439
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:33:20.994709', '2025-12-19 13:33:20.994710') RETURNING "key"
440
+ Migrating to CreateUsers (20241217000000)
441
+ TRANSACTION (0.0ms) BEGIN
442
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
443
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
444
+ TRANSACTION (0.1ms) COMMIT
445
+ Migrating to CreateGenevaDriveWorkflows (20251219133319)
446
+ TRANSACTION (0.1ms) BEGIN
447
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
448
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
449
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
450
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
451
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
452
+ ON geneva_drive_workflows (type, hero_type, hero_id)
453
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
454
+ 
455
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219133319') RETURNING "version"
456
+ TRANSACTION (0.1ms) COMMIT
457
+ Migrating to CreateGenevaDriveStepExecutions (20251219133320)
458
+ TRANSACTION (0.3ms) BEGIN
459
+  (1.4ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
460
+ FOREIGN KEY ("workflow_id")
461
+ REFERENCES "geneva_drive_workflows" ("id")
462
+ ON DELETE CASCADE)
463
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
464
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
465
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
466
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
467
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
468
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
469
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
470
+ ON geneva_drive_step_executions (workflow_id)
471
+ WHERE state IN ('scheduled', 'in_progress');
472
+ 
473
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219133320') RETURNING "version"
474
+ TRANSACTION (0.2ms) COMMIT
475
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20251219133321)
476
+ TRANSACTION (0.0ms) BEGIN
477
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
478
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
479
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
480
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219133321') RETURNING "version"
481
+ TRANSACTION (0.0ms) COMMIT
482
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
484
+ SQL (0.0ms) SET search_path TO public
485
+ SQL (0.0ms) SET search_path TO "$user", public
486
+ SQL (0.0ms) SET search_path TO public
487
+ SQL (0.0ms) SET search_path TO "$user", public
488
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
489
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
490
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
491
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
492
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
493
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
494
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
495
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
496
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
497
+ SQL (0.1ms) SET search_path TO public
498
+  (84.9ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
499
+ SQL (0.0ms) SET search_path TO public
500
+  (99.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
501
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
502
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
503
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
504
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
505
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
506
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:53:03.636580', '2025-12-19 13:53:03.636582') RETURNING "key"
507
+ Migrating to CreateUsers (20241217000000)
508
+ TRANSACTION (0.0ms) BEGIN
509
+  (1.4ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
510
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
511
+ TRANSACTION (0.1ms) COMMIT
512
+ Migrating to CreateGenevaDriveWorkflows (20251219135302)
513
+ TRANSACTION (0.1ms) BEGIN
514
+  (10.1ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
515
+  (1.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
516
+  (0.9ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
517
+  (0.8ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
518
+  (1.1ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
519
+ ON geneva_drive_workflows (type, hero_type, hero_id)
520
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
521
+ 
522
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135302') RETURNING "version"
523
+ TRANSACTION (0.3ms) COMMIT
524
+ Migrating to CreateGenevaDriveStepExecutions (20251219135303)
525
+ TRANSACTION (0.3ms) BEGIN
526
+  (2.2ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
527
+ FOREIGN KEY ("workflow_id")
528
+ REFERENCES "geneva_drive_workflows" ("id")
529
+ ON DELETE CASCADE)
530
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
531
+  (0.7ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
532
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
533
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
534
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
535
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
536
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
537
+ ON geneva_drive_step_executions (workflow_id)
538
+ WHERE state IN ('scheduled', 'in_progress');
539
+ 
540
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135303') RETURNING "version"
541
+ TRANSACTION (0.1ms) COMMIT
542
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20251219135304)
543
+ TRANSACTION (0.0ms) BEGIN
544
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
545
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
546
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
547
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135304') RETURNING "version"
548
+ TRANSACTION (0.1ms) COMMIT
549
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
550
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
551
+ SQL (0.0ms) SET search_path TO public
552
+ SQL (0.0ms) SET search_path TO "$user", public
553
+ SQL (0.0ms) SET search_path TO public
554
+ SQL (0.0ms) SET search_path TO "$user", public
555
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
556
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
557
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
558
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
559
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
560
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
561
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
562
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
563
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
564
+ SQL (0.0ms) SET search_path TO public
565
+  (65.7ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
566
+ SQL (0.0ms) SET search_path TO public
567
+  (48.5ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
568
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
569
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
570
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
571
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
572
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
573
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:55:17.181902', '2025-12-19 13:55:17.181904') RETURNING "key"
574
+ Migrating to CreateUsers (20241217000000)
575
+ TRANSACTION (0.0ms) BEGIN
576
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
577
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
578
+ TRANSACTION (0.1ms) COMMIT
579
+ Migrating to CreateGenevaDriveWorkflows (20251219135516)
580
+ TRANSACTION (0.1ms) BEGIN
581
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
582
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
583
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
584
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
585
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
586
+ ON geneva_drive_workflows (type, hero_type, hero_id)
587
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
588
+ 
589
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135516') RETURNING "version"
590
+ TRANSACTION (0.3ms) COMMIT
591
+ Migrating to CreateGenevaDriveStepExecutions (20251219135517)
592
+ TRANSACTION (0.1ms) BEGIN
593
+  (1.3ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
594
+ FOREIGN KEY ("workflow_id")
595
+ REFERENCES "geneva_drive_workflows" ("id")
596
+ ON DELETE CASCADE)
597
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
598
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
599
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
600
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
601
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
602
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
603
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
604
+ ON geneva_drive_step_executions (workflow_id)
605
+ WHERE state IN ('scheduled', 'in_progress');
606
+ 
607
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135517') RETURNING "version"
608
+ TRANSACTION (0.3ms) COMMIT
609
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20251219135518)
610
+ TRANSACTION (0.0ms) BEGIN
611
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
612
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
613
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
614
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135518') RETURNING "version"
615
+ TRANSACTION (0.1ms) COMMIT
616
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
617
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
618
+ SQL (0.0ms) SET search_path TO public
619
+ SQL (0.0ms) SET search_path TO "$user", public
620
+ SQL (0.0ms) SET search_path TO public
621
+ SQL (0.0ms) SET search_path TO "$user", public
622
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
623
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
624
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
625
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
626
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
627
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
628
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
629
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
630
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
631
+ SQL (0.1ms) SET search_path TO public
632
+  (74.9ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
633
+ SQL (0.0ms) SET search_path TO public
634
+  (41.8ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
635
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
636
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
637
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
638
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
639
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
640
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 13:59:19.164395', '2025-12-19 13:59:19.164396') RETURNING "key"
641
+ Migrating to CreateUsers (20241217000000)
642
+ TRANSACTION (0.0ms) BEGIN
643
+  (1.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
644
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
645
+ TRANSACTION (0.3ms) COMMIT
646
+ Migrating to CreateGenevaDriveWorkflows (20251219135918)
647
+ TRANSACTION (0.1ms) BEGIN
648
+  (0.9ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
649
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
650
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
651
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
652
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
653
+ ON geneva_drive_workflows (type, hero_type, hero_id)
654
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
655
+ 
656
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135918') RETURNING "version"
657
+ TRANSACTION (0.1ms) COMMIT
658
+ Migrating to CreateGenevaDriveStepExecutions (20251219135919)
659
+ TRANSACTION (0.1ms) BEGIN
660
+  (1.3ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
661
+ FOREIGN KEY ("workflow_id")
662
+ REFERENCES "geneva_drive_workflows" ("id")
663
+ ON DELETE CASCADE)
664
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
665
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
666
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
667
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
668
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
669
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
670
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
671
+ ON geneva_drive_step_executions (workflow_id)
672
+ WHERE state IN ('scheduled', 'in_progress');
673
+ 
674
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135919') RETURNING "version"
675
+ TRANSACTION (0.1ms) COMMIT
676
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20251219135920)
677
+ TRANSACTION (0.0ms) BEGIN
678
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
679
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
680
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
681
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219135920') RETURNING "version"
682
+ TRANSACTION (0.1ms) COMMIT
683
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
684
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
685
+ SQL (0.0ms) SET search_path TO public
686
+ SQL (0.0ms) SET search_path TO "$user", public
687
+ SQL (0.0ms) SET search_path TO public
688
+ SQL (0.0ms) SET search_path TO "$user", public
689
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
690
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
691
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
692
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
693
+ ActiveRecord::InternalMetadata Load (1.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
694
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
695
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
696
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
697
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
698
+ SQL (0.0ms) SET search_path TO public
699
+  (88.2ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
700
+ SQL (0.0ms) SET search_path TO public
701
+  (122.4ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
702
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
703
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
704
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
705
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
706
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
707
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-12-19 15:42:27.044300', '2025-12-19 15:42:27.044301') RETURNING "key"
708
+ Migrating to CreateUsers (20241217000000)
709
+ TRANSACTION (0.0ms) BEGIN
710
+  (1.4ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
711
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
712
+ TRANSACTION (0.1ms) COMMIT
713
+ Migrating to CreateGenevaDriveWorkflows (20251219154225)
714
+ TRANSACTION (0.1ms) BEGIN
715
+  (1.1ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
716
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
717
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
718
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
719
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
720
+ ON geneva_drive_workflows (type, hero_type, hero_id)
721
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
722
+ 
723
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219154225') RETURNING "version"
724
+ TRANSACTION (0.2ms) COMMIT
725
+ Migrating to CreateGenevaDriveStepExecutions (20251219154226)
726
+ TRANSACTION (0.1ms) BEGIN
727
+  (1.6ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
728
+ FOREIGN KEY ("workflow_id")
729
+ REFERENCES "geneva_drive_workflows" ("id")
730
+ ON DELETE CASCADE)
731
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
732
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
733
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
734
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
735
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
736
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
737
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
738
+ ON geneva_drive_step_executions (workflow_id)
739
+ WHERE state IN ('scheduled', 'in_progress');
740
+ 
741
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219154226') RETURNING "version"
742
+ TRANSACTION (0.2ms) COMMIT
743
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20251219154227)
744
+ TRANSACTION (0.0ms) BEGIN
745
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
746
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
747
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
748
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20251219154227') RETURNING "version"
749
+ TRANSACTION (0.1ms) COMMIT
750
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
751
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
752
+ SQL (0.0ms) SET search_path TO public
753
+ SQL (0.0ms) SET search_path TO "$user", public
754
+ SQL (0.0ms) SET search_path TO public
755
+ SQL (0.0ms) SET search_path TO "$user", public
756
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
757
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
758
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
759
+ ActiveRecord::SchemaMigration Load (2.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
760
+ ActiveRecord::InternalMetadata Load (2.9ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
761
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
762
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
763
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
764
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
765
+ SQL (0.1ms) SET search_path TO public
766
+  (109.3ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
767
+ SQL (0.0ms) SET search_path TO public
768
+  (110.4ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
769
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
770
+  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
771
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
772
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
773
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
774
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-04 11:31:37.188893', '2026-01-04 11:31:37.188895') RETURNING "key"
775
+ Migrating to CreateUsers (20241217000000)
776
+ TRANSACTION (0.1ms) BEGIN
777
+  (1.3ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
778
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
779
+ TRANSACTION (0.3ms) COMMIT
780
+ Migrating to CreateGenevaDriveWorkflows (20260104113136)
781
+ TRANSACTION (0.2ms) BEGIN
782
+  (1.1ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
783
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
784
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
785
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
786
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
787
+ ON geneva_drive_workflows (type, hero_type, hero_id)
788
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
789
+ 
790
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260104113136') RETURNING "version"
791
+ TRANSACTION (0.1ms) COMMIT
792
+ Migrating to CreateGenevaDriveStepExecutions (20260104113137)
793
+ TRANSACTION (0.2ms) BEGIN
794
+  (1.5ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
795
+ FOREIGN KEY ("workflow_id")
796
+ REFERENCES "geneva_drive_workflows" ("id")
797
+ ON DELETE CASCADE)
798
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
799
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
800
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
801
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
802
+  (0.4ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
803
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
804
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
805
+ ON geneva_drive_step_executions (workflow_id)
806
+ WHERE state IN ('scheduled', 'in_progress');
807
+ 
808
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260104113137') RETURNING "version"
809
+ TRANSACTION (0.1ms) COMMIT
810
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260104113138)
811
+ TRANSACTION (0.1ms) BEGIN
812
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
813
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
814
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
815
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260104113138') RETURNING "version"
816
+ TRANSACTION (0.3ms) COMMIT
817
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
818
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
819
+ SQL (0.0ms) SET search_path TO public
820
+ SQL (0.1ms) SET search_path TO "$user", public
821
+ SQL (0.1ms) SET search_path TO public
822
+ SQL (0.1ms) SET search_path TO "$user", public
823
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
824
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
825
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
826
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
827
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
828
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
829
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
830
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
831
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
832
+ SQL (0.1ms) SET search_path TO public
833
+  (83.6ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
834
+ SQL (0.0ms) SET search_path TO public
835
+  (58.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
836
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
837
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
838
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
839
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
840
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
841
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-04 11:34:30.990775', '2026-01-04 11:34:30.990776') RETURNING "key"
842
+ Migrating to CreateUsers (20241217000000)
843
+ TRANSACTION (0.0ms) BEGIN
844
+  (1.5ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
845
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
846
+ TRANSACTION (0.1ms) COMMIT
847
+ Migrating to CreateGenevaDriveWorkflows (20260104113430)
848
+ TRANSACTION (0.2ms) BEGIN
849
+  (1.2ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
850
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
851
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
852
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
853
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
854
+ ON geneva_drive_workflows (type, hero_type, hero_id)
855
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
856
+ 
857
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260104113430') RETURNING "version"
858
+ TRANSACTION (0.3ms) COMMIT
859
+ Migrating to CreateGenevaDriveStepExecutions (20260104113431)
860
+ TRANSACTION (0.2ms) BEGIN
861
+  (1.6ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
862
+ FOREIGN KEY ("workflow_id")
863
+ REFERENCES "geneva_drive_workflows" ("id")
864
+ ON DELETE CASCADE)
865
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
866
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
867
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
868
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
869
+  (0.4ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
870
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
871
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
872
+ ON geneva_drive_step_executions (workflow_id)
873
+ WHERE state IN ('scheduled', 'in_progress');
874
+ 
875
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260104113431') RETURNING "version"
876
+ TRANSACTION (0.3ms) COMMIT
877
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260104113432)
878
+ TRANSACTION (0.0ms) BEGIN
879
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
880
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
881
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
882
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260104113432') RETURNING "version"
883
+ TRANSACTION (0.1ms) COMMIT
884
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
885
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
886
+ SQL (0.0ms) SET search_path TO public
887
+ SQL (0.0ms) SET search_path TO "$user", public
888
+ SQL (0.0ms) SET search_path TO public
889
+ SQL (0.0ms) SET search_path TO "$user", public
890
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
891
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
892
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
893
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
894
+ ActiveRecord::InternalMetadata Load (2.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
895
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
896
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
897
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
898
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
899
+ SQL (0.1ms) SET search_path TO public
900
+  (78.2ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
901
+ SQL (0.0ms) SET search_path TO public
902
+  (41.6ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
903
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
904
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
905
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
906
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
907
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
908
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-12 22:49:11.280072', '2026-01-12 22:49:11.280074') RETURNING "key"
909
+ Migrating to CreateUsers (20241217000000)
910
+ TRANSACTION (0.0ms) BEGIN
911
+  (1.4ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
912
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
913
+ TRANSACTION (0.2ms) COMMIT
914
+ Migrating to CreateGenevaDriveWorkflows (20260112224910)
915
+ TRANSACTION (0.1ms) BEGIN
916
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
917
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
918
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
919
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
920
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
921
+ ON geneva_drive_workflows (type, hero_type, hero_id)
922
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
923
+ 
924
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112224910') RETURNING "version"
925
+ TRANSACTION (0.1ms) COMMIT
926
+ Migrating to CreateGenevaDriveStepExecutions (20260112224911)
927
+ TRANSACTION (0.1ms) BEGIN
928
+  (1.2ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
929
+ FOREIGN KEY ("workflow_id")
930
+ REFERENCES "geneva_drive_workflows" ("id")
931
+ ON DELETE CASCADE)
932
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
933
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
934
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
935
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
936
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
937
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
938
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
939
+ ON geneva_drive_step_executions (workflow_id)
940
+ WHERE state IN ('scheduled', 'in_progress');
941
+ 
942
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112224911') RETURNING "version"
943
+ TRANSACTION (0.1ms) COMMIT
944
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260112224912)
945
+ TRANSACTION (0.0ms) BEGIN
946
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
947
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
948
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
949
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112224912') RETURNING "version"
950
+ TRANSACTION (0.1ms) COMMIT
951
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
952
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
953
+ SQL (0.0ms) SET search_path TO public
954
+ SQL (0.0ms) SET search_path TO "$user", public
955
+ SQL (0.0ms) SET search_path TO public
956
+ SQL (0.0ms) SET search_path TO "$user", public
957
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
958
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
959
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
960
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
961
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
962
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
963
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
964
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
965
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
966
+ SQL (0.1ms) SET search_path TO public
967
+  (74.5ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
968
+ SQL (0.0ms) SET search_path TO public
969
+  (41.8ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
970
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
971
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
972
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
973
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
974
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
975
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-12 22:51:12.110698', '2026-01-12 22:51:12.110698') RETURNING "key"
976
+ Migrating to CreateUsers (20241217000000)
977
+ TRANSACTION (0.0ms) BEGIN
978
+  (1.4ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
979
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
980
+ TRANSACTION (0.3ms) COMMIT
981
+ Migrating to CreateGenevaDriveWorkflows (20260112225111)
982
+ TRANSACTION (0.1ms) BEGIN
983
+  (1.0ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
984
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
985
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
986
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
987
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
988
+ ON geneva_drive_workflows (type, hero_type, hero_id)
989
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
990
+ 
991
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112225111') RETURNING "version"
992
+ TRANSACTION (0.1ms) COMMIT
993
+ Migrating to CreateGenevaDriveStepExecutions (20260112225112)
994
+ TRANSACTION (0.1ms) BEGIN
995
+  (1.3ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
996
+ FOREIGN KEY ("workflow_id")
997
+ REFERENCES "geneva_drive_workflows" ("id")
998
+ ON DELETE CASCADE)
999
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1000
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1001
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1002
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1003
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1004
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1005
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1006
+ ON geneva_drive_step_executions (workflow_id)
1007
+ WHERE state IN ('scheduled', 'in_progress');
1008
+ 
1009
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112225112') RETURNING "version"
1010
+ TRANSACTION (0.1ms) COMMIT
1011
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260112225113)
1012
+ TRANSACTION (0.0ms) BEGIN
1013
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1014
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1015
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1016
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112225113') RETURNING "version"
1017
+ TRANSACTION (0.1ms) COMMIT
1018
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
1019
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1020
+ SQL (0.0ms) SET search_path TO public
1021
+ SQL (0.0ms) SET search_path TO "$user", public
1022
+ SQL (0.0ms) SET search_path TO public
1023
+ SQL (0.0ms) SET search_path TO "$user", public
1024
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
1025
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
1026
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
1027
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1028
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1029
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1030
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1031
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1032
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1033
+ SQL (0.1ms) SET search_path TO public
1034
+  (696.8ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1035
+ SQL (0.1ms) SET search_path TO public
1036
+  (91.6ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1037
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1038
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1039
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1040
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1041
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1042
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-12 23:12:41.653452', '2026-01-12 23:12:41.653454') RETURNING "key"
1043
+ Migrating to CreateUsers (20241217000000)
1044
+ TRANSACTION (0.1ms) BEGIN
1045
+  (1.1ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1046
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1047
+ TRANSACTION (0.1ms) COMMIT
1048
+ Migrating to CreateGenevaDriveWorkflows (20260112231240)
1049
+ TRANSACTION (0.1ms) BEGIN
1050
+  (0.9ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1051
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1052
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1053
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1054
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1055
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1056
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1057
+ 
1058
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112231240') RETURNING "version"
1059
+ TRANSACTION (0.1ms) COMMIT
1060
+ Migrating to CreateGenevaDriveStepExecutions (20260112231241)
1061
+ TRANSACTION (0.1ms) BEGIN
1062
+  (1.3ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1063
+ FOREIGN KEY ("workflow_id")
1064
+ REFERENCES "geneva_drive_workflows" ("id")
1065
+ ON DELETE CASCADE)
1066
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1067
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1068
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1069
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1070
+  (0.2ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1071
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1072
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1073
+ ON geneva_drive_step_executions (workflow_id)
1074
+ WHERE state IN ('scheduled', 'in_progress');
1075
+ 
1076
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112231241') RETURNING "version"
1077
+ TRANSACTION (0.1ms) COMMIT
1078
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260112231242)
1079
+ TRANSACTION (0.1ms) BEGIN
1080
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1081
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1082
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1083
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260112231242') RETURNING "version"
1084
+ TRANSACTION (0.1ms) COMMIT
1085
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1086
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1087
+ SQL (0.1ms) SET search_path TO public
1088
+ SQL (0.1ms) SET search_path TO "$user", public
1089
+ SQL (0.1ms) SET search_path TO public
1090
+ SQL (0.1ms) SET search_path TO "$user", public
1091
+ Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
1092
+ SQL (0.1ms) SET search_path TO public
1093
+  (22.2ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1094
+ SQL (0.1ms) SET search_path TO public
1095
+  (118.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1096
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1097
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1098
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1099
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1100
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1101
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 12:56:16.025841', '2026-01-28 12:56:16.025844') RETURNING "key"
1102
+ Migrating to CreateUsers (20241217000000)
1103
+ TRANSACTION (0.0ms) BEGIN
1104
+  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1105
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1106
+ TRANSACTION (0.1ms) COMMIT
1107
+ Migrating to CreateGenevaDriveWorkflows (20260128125614)
1108
+ TRANSACTION (0.1ms) BEGIN
1109
+  (1.3ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1110
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1111
+  (0.5ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1112
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1113
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1114
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1115
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1116
+ 
1117
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125614') RETURNING "version"
1118
+ TRANSACTION (0.3ms) COMMIT
1119
+ Migrating to CreateGenevaDriveStepExecutions (20260128125615)
1120
+ TRANSACTION (0.1ms) BEGIN
1121
+  (1.9ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1122
+ FOREIGN KEY ("workflow_id")
1123
+ REFERENCES "geneva_drive_workflows" ("id")
1124
+ ON DELETE CASCADE)
1125
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1126
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1127
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1128
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1129
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1130
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1131
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1132
+ ON geneva_drive_step_executions (workflow_id)
1133
+ WHERE state IN ('scheduled', 'in_progress');
1134
+ 
1135
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125615') RETURNING "version"
1136
+ TRANSACTION (0.3ms) COMMIT
1137
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128125616)
1138
+ TRANSACTION (0.0ms) BEGIN
1139
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1140
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1141
+  (0.5ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1142
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125616') RETURNING "version"
1143
+ TRANSACTION (0.1ms) COMMIT
1144
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128125617)
1145
+ TRANSACTION (0.0ms) BEGIN
1146
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125617') RETURNING "version"
1147
+ TRANSACTION (0.1ms) COMMIT
1148
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1149
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1150
+ SQL (0.0ms) SET search_path TO public
1151
+ SQL (0.0ms) SET search_path TO "$user", public
1152
+ SQL (0.0ms) SET search_path TO public
1153
+ SQL (0.0ms) SET search_path TO "$user", public
1154
+ ActiveRecord::SchemaMigration Load (3.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1155
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1156
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1157
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1158
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1159
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1160
+ SQL (0.1ms) SET search_path TO public
1161
+  (88.3ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1162
+ SQL (0.0ms) SET search_path TO public
1163
+  (51.9ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1164
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1165
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1166
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1167
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1168
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1169
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 12:57:41.482093', '2026-01-28 12:57:41.482095') RETURNING "key"
1170
+ Migrating to CreateUsers (20241217000000)
1171
+ TRANSACTION (0.1ms) BEGIN
1172
+  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1173
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1174
+ TRANSACTION (0.1ms) COMMIT
1175
+ Migrating to CreateGenevaDriveWorkflows (20260128125740)
1176
+ TRANSACTION (0.1ms) BEGIN
1177
+  (1.3ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1178
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1179
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1180
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1181
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1182
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1183
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1184
+ 
1185
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125740') RETURNING "version"
1186
+ TRANSACTION (0.3ms) COMMIT
1187
+ Migrating to CreateGenevaDriveStepExecutions (20260128125741)
1188
+ TRANSACTION (0.1ms) BEGIN
1189
+  (1.8ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1190
+ FOREIGN KEY ("workflow_id")
1191
+ REFERENCES "geneva_drive_workflows" ("id")
1192
+ ON DELETE CASCADE)
1193
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1194
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1195
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1196
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1197
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1198
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1199
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1200
+ ON geneva_drive_step_executions (workflow_id)
1201
+ WHERE state IN ('scheduled', 'in_progress');
1202
+ 
1203
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125741') RETURNING "version"
1204
+ TRANSACTION (0.5ms) COMMIT
1205
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128125742)
1206
+ TRANSACTION (0.0ms) BEGIN
1207
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1208
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1209
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1210
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125742') RETURNING "version"
1211
+ TRANSACTION (0.2ms) COMMIT
1212
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128125743)
1213
+ TRANSACTION (0.1ms) BEGIN
1214
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128125743') RETURNING "version"
1215
+ TRANSACTION (0.1ms) COMMIT
1216
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1217
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1218
+ SQL (0.0ms) SET search_path TO public
1219
+ SQL (0.0ms) SET search_path TO "$user", public
1220
+ SQL (0.0ms) SET search_path TO public
1221
+ SQL (0.0ms) SET search_path TO "$user", public
1222
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1223
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1224
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1225
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1226
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1227
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1228
+ SQL (0.1ms) SET search_path TO public
1229
+  (76.8ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1230
+ SQL (0.0ms) SET search_path TO public
1231
+  (52.9ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1232
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1233
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1234
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1235
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1236
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1237
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 13:00:43.538475', '2026-01-28 13:00:43.538478') RETURNING "key"
1238
+ Migrating to CreateUsers (20241217000000)
1239
+ TRANSACTION (0.1ms) BEGIN
1240
+  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1241
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1242
+ TRANSACTION (0.3ms) COMMIT
1243
+ Migrating to CreateGenevaDriveWorkflows (20260128130042)
1244
+ TRANSACTION (0.1ms) BEGIN
1245
+  (1.7ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1246
+  (0.5ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1247
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1248
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1249
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1250
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1251
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1252
+ 
1253
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128130042') RETURNING "version"
1254
+ TRANSACTION (0.1ms) COMMIT
1255
+ Migrating to CreateGenevaDriveStepExecutions (20260128130043)
1256
+ TRANSACTION (0.1ms) BEGIN
1257
+  (1.9ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1258
+ FOREIGN KEY ("workflow_id")
1259
+ REFERENCES "geneva_drive_workflows" ("id")
1260
+ ON DELETE CASCADE)
1261
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1262
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1263
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1264
+  (0.6ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1265
+  (0.5ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1266
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1267
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1268
+ ON geneva_drive_step_executions (workflow_id)
1269
+ WHERE state IN ('scheduled', 'in_progress');
1270
+ 
1271
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128130043') RETURNING "version"
1272
+ TRANSACTION (0.1ms) COMMIT
1273
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128130044)
1274
+ TRANSACTION (0.0ms) BEGIN
1275
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1276
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1277
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1278
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128130044') RETURNING "version"
1279
+ TRANSACTION (0.3ms) COMMIT
1280
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128130045)
1281
+ TRANSACTION (0.0ms) BEGIN
1282
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128130045') RETURNING "version"
1283
+ TRANSACTION (0.1ms) COMMIT
1284
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1285
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1286
+ SQL (0.0ms) SET search_path TO public
1287
+ SQL (0.0ms) SET search_path TO "$user", public
1288
+ SQL (0.0ms) SET search_path TO public
1289
+ SQL (0.0ms) SET search_path TO "$user", public
1290
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1291
+ ActiveRecord::InternalMetadata Load (2.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1292
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1293
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1294
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1295
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1296
+ SQL (0.0ms) SET search_path TO public
1297
+  (84.5ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1298
+ SQL (0.0ms) SET search_path TO public
1299
+  (111.4ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1300
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1301
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1302
+  (0.2ms) SELECT pg_try_advisory_lock(5769190355348905590)
1303
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1304
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1305
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-12 00:51:01.234200', '2026-02-12 00:51:01.234202') RETURNING "key"
1306
+ Migrating to CreateUsers (20241217000000)
1307
+ TRANSACTION (0.0ms) BEGIN
1308
+  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1309
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1310
+ TRANSACTION (0.2ms) COMMIT
1311
+ Migrating to CreateGenevaDriveWorkflows (20260212005100)
1312
+ TRANSACTION (0.1ms) BEGIN
1313
+  (1.6ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1314
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1315
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1316
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1317
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1318
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1319
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1320
+ 
1321
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005100') RETURNING "version"
1322
+ TRANSACTION (0.1ms) COMMIT
1323
+ Migrating to CreateGenevaDriveStepExecutions (20260212005101)
1324
+ TRANSACTION (0.1ms) BEGIN
1325
+  (1.5ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1326
+ FOREIGN KEY ("workflow_id")
1327
+ REFERENCES "geneva_drive_workflows" ("id")
1328
+ ON DELETE CASCADE)
1329
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1330
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1331
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1332
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1333
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1334
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1335
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1336
+ ON geneva_drive_step_executions (workflow_id)
1337
+ WHERE state IN ('scheduled', 'in_progress');
1338
+ 
1339
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005101') RETURNING "version"
1340
+ TRANSACTION (0.1ms) COMMIT
1341
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260212005102)
1342
+ TRANSACTION (0.0ms) BEGIN
1343
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1344
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1345
+  (0.3ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1346
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005102') RETURNING "version"
1347
+ TRANSACTION (0.2ms) COMMIT
1348
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260212005103)
1349
+ TRANSACTION (0.0ms) BEGIN
1350
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005103') RETURNING "version"
1351
+ TRANSACTION (0.3ms) COMMIT
1352
+  (0.7ms) SELECT pg_advisory_unlock(5769190355348905590)
1353
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1354
+ SQL (0.1ms) SET search_path TO public
1355
+ SQL (6.2ms) SET search_path TO "$user", public
1356
+ SQL (0.1ms) SET search_path TO public
1357
+ SQL (0.0ms) SET search_path TO "$user", public
1358
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1359
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1360
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1361
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1362
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1363
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1364
+ SQL (0.1ms) SET search_path TO public
1365
+  (83.4ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1366
+ SQL (0.0ms) SET search_path TO public
1367
+  (102.7ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1368
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1369
+  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1370
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1371
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1372
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1373
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-12 00:54:54.978986', '2026-02-12 00:54:54.978988') RETURNING "key"
1374
+ Migrating to CreateUsers (20241217000000)
1375
+ TRANSACTION (0.1ms) BEGIN
1376
+  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1377
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1378
+ TRANSACTION (0.1ms) COMMIT
1379
+ Migrating to CreateGenevaDriveWorkflows (20260212005453)
1380
+ TRANSACTION (0.2ms) BEGIN
1381
+  (1.5ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1382
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1383
+  (0.5ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1384
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1385
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1386
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1387
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1388
+ 
1389
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005453') RETURNING "version"
1390
+ TRANSACTION (0.4ms) COMMIT
1391
+ Migrating to CreateGenevaDriveStepExecutions (20260212005454)
1392
+ TRANSACTION (0.1ms) BEGIN
1393
+  (1.9ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1394
+ FOREIGN KEY ("workflow_id")
1395
+ REFERENCES "geneva_drive_workflows" ("id")
1396
+ ON DELETE CASCADE)
1397
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1398
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1399
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1400
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1401
+  (0.4ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1402
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1403
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1404
+ ON geneva_drive_step_executions (workflow_id)
1405
+ WHERE state IN ('scheduled', 'in_progress');
1406
+ 
1407
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005454') RETURNING "version"
1408
+ TRANSACTION (0.1ms) COMMIT
1409
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260212005455)
1410
+ TRANSACTION (0.0ms) BEGIN
1411
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1412
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1413
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1414
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005455') RETURNING "version"
1415
+ TRANSACTION (0.1ms) COMMIT
1416
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260212005456)
1417
+ TRANSACTION (0.1ms) BEGIN
1418
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260212005456') RETURNING "version"
1419
+ TRANSACTION (0.1ms) COMMIT
1420
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1421
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1422
+ SQL (0.0ms) SET search_path TO public
1423
+ SQL (0.1ms) SET search_path TO "$user", public
1424
+ SQL (0.1ms) SET search_path TO public
1425
+ SQL (0.0ms) SET search_path TO "$user", public
1426
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1427
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1428
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1429
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1430
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1431
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1432
+ SQL (0.1ms) SET search_path TO public
1433
+  (84.5ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1434
+ SQL (0.0ms) SET search_path TO public
1435
+  (136.8ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1436
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1437
+  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1438
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1439
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1440
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1441
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-13 08:58:09.684434', '2026-02-13 08:58:09.684436') RETURNING "key"
1442
+ Migrating to CreateUsers (20241217000000)
1443
+ TRANSACTION (0.0ms) BEGIN
1444
+  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1445
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1446
+ TRANSACTION (0.3ms) COMMIT
1447
+ Migrating to CreateGenevaDriveWorkflows (20260213085808)
1448
+ TRANSACTION (0.1ms) BEGIN
1449
+  (1.4ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1450
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1451
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1452
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1453
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1454
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1455
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1456
+ 
1457
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213085808') RETURNING "version"
1458
+ TRANSACTION (0.3ms) COMMIT
1459
+ Migrating to CreateGenevaDriveStepExecutions (20260213085809)
1460
+ TRANSACTION (0.2ms) BEGIN
1461
+  (2.0ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1462
+ FOREIGN KEY ("workflow_id")
1463
+ REFERENCES "geneva_drive_workflows" ("id")
1464
+ ON DELETE CASCADE)
1465
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1466
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1467
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1468
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1469
+  (0.4ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1470
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1471
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1472
+ ON geneva_drive_step_executions (workflow_id)
1473
+ WHERE state IN ('scheduled', 'in_progress');
1474
+ 
1475
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213085809') RETURNING "version"
1476
+ TRANSACTION (0.3ms) COMMIT
1477
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260213085810)
1478
+ TRANSACTION (0.0ms) BEGIN
1479
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1480
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1481
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1482
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213085810') RETURNING "version"
1483
+ TRANSACTION (0.3ms) COMMIT
1484
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260213085811)
1485
+ TRANSACTION (0.0ms) BEGIN
1486
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213085811') RETURNING "version"
1487
+ TRANSACTION (0.1ms) COMMIT
1488
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1489
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1490
+ SQL (0.0ms) SET search_path TO public
1491
+ SQL (0.1ms) SET search_path TO "$user", public
1492
+ SQL (0.0ms) SET search_path TO public
1493
+ SQL (0.0ms) SET search_path TO "$user", public
1494
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1495
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1496
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1497
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1498
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1499
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1500
+ SQL (0.0ms) SET search_path TO public
1501
+  (99.9ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1502
+ SQL (0.1ms) SET search_path TO public
1503
+  (170.2ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1504
+  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1505
+  (1.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1506
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1507
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1508
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1509
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-13 14:41:26.380103', '2026-02-13 14:41:26.380105') RETURNING "key"
1510
+ Migrating to CreateUsers (20241217000000)
1511
+ TRANSACTION (0.1ms) BEGIN
1512
+  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1513
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1514
+ TRANSACTION (0.4ms) COMMIT
1515
+ Migrating to CreateGenevaDriveWorkflows (20260213144125)
1516
+ TRANSACTION (0.3ms) BEGIN
1517
+  (1.6ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1518
+  (0.6ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1519
+  (0.5ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1520
+  (0.8ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1521
+  (0.8ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1522
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1523
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1524
+ 
1525
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213144125') RETURNING "version"
1526
+ TRANSACTION (0.2ms) COMMIT
1527
+ Migrating to CreateGenevaDriveStepExecutions (20260213144126)
1528
+ TRANSACTION (0.4ms) BEGIN
1529
+  (2.2ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1530
+ FOREIGN KEY ("workflow_id")
1531
+ REFERENCES "geneva_drive_workflows" ("id")
1532
+ ON DELETE CASCADE)
1533
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1534
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1535
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1536
+  (0.6ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1537
+  (0.5ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1538
+  (0.7ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1539
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1540
+ ON geneva_drive_step_executions (workflow_id)
1541
+ WHERE state IN ('scheduled', 'in_progress');
1542
+ 
1543
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213144126') RETURNING "version"
1544
+ TRANSACTION (0.4ms) COMMIT
1545
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260213144127)
1546
+ TRANSACTION (0.0ms) BEGIN
1547
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1548
+  (0.6ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1549
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1550
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213144127') RETURNING "version"
1551
+ TRANSACTION (0.4ms) COMMIT
1552
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260213144128)
1553
+ TRANSACTION (0.0ms) BEGIN
1554
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260213144128') RETURNING "version"
1555
+ TRANSACTION (0.3ms) COMMIT
1556
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1557
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1558
+ SQL (0.0ms) SET search_path TO public
1559
+ SQL (0.0ms) SET search_path TO "$user", public
1560
+ SQL (0.0ms) SET search_path TO public
1561
+ SQL (0.0ms) SET search_path TO "$user", public
1562
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1563
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1564
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1565
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1566
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1567
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1568
+ SQL (0.0ms) SET search_path TO public
1569
+  (84.3ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1570
+ SQL (0.1ms) SET search_path TO public
1571
+  (68.3ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1572
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1573
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1574
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1575
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1576
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1577
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-17 11:07:17.166402', '2026-02-17 11:07:17.166404') RETURNING "key"
1578
+ Migrating to CreateUsers (20241217000000)
1579
+ TRANSACTION (0.1ms) BEGIN
1580
+  (14.1ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1581
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1582
+ TRANSACTION (0.1ms) COMMIT
1583
+ Migrating to CreateGenevaDriveWorkflows (20260217110715)
1584
+ TRANSACTION (0.1ms) BEGIN
1585
+  (2.5ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1586
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1587
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1588
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1589
+  (0.7ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1590
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1591
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1592
+ 
1593
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217110715') RETURNING "version"
1594
+ TRANSACTION (0.2ms) COMMIT
1595
+ Migrating to CreateGenevaDriveStepExecutions (20260217110716)
1596
+ TRANSACTION (0.1ms) BEGIN
1597
+  (2.7ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1598
+ FOREIGN KEY ("workflow_id")
1599
+ REFERENCES "geneva_drive_workflows" ("id")
1600
+ ON DELETE CASCADE)
1601
+  (0.6ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1602
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1603
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1604
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1605
+  (0.4ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1606
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1607
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1608
+ ON geneva_drive_step_executions (workflow_id)
1609
+ WHERE state IN ('scheduled', 'in_progress');
1610
+ 
1611
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217110716') RETURNING "version"
1612
+ TRANSACTION (0.4ms) COMMIT
1613
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260217110717)
1614
+ TRANSACTION (0.0ms) BEGIN
1615
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1616
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1617
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1618
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217110717') RETURNING "version"
1619
+ TRANSACTION (0.3ms) COMMIT
1620
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260217110718)
1621
+ TRANSACTION (0.1ms) BEGIN
1622
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217110718') RETURNING "version"
1623
+ TRANSACTION (0.1ms) COMMIT
1624
+ Migrating to AddResumableStepSupportToGenevaDriveStepExecutions (20260217110719)
1625
+ TRANSACTION (0.1ms) BEGIN
1626
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "cursor" jsonb
1627
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "completed_iterations" integer DEFAULT 0 NOT NULL
1628
+  (0.3ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
1629
+ 
1630
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1631
+ ON geneva_drive_step_executions (workflow_id)
1632
+ WHERE state IN ('scheduled', 'in_progress', 'suspended');
1633
+ 
1634
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217110719') RETURNING "version"
1635
+ TRANSACTION (0.3ms) COMMIT
1636
+ Migrating to AddChainedStepExecutionsToGenevaDriveStepExecutions (20260217110720)
1637
+ TRANSACTION (0.0ms) BEGIN
1638
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "continues_from_id" bigint
1639
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_continues_from_id" ON "geneva_drive_step_executions" ("continues_from_id")
1640
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" DROP COLUMN "completed_iterations"
1641
+  (0.3ms)  UPDATE geneva_drive_step_executions
1642
+ SET state = 'completed'
1643
+ WHERE state = 'suspended';
1644
+ 
1645
+  (0.1ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
1646
+ 
1647
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1648
+ ON geneva_drive_step_executions (workflow_id)
1649
+ WHERE state IN ('scheduled', 'in_progress');
1650
+ 
1651
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217110720') RETURNING "version"
1652
+ TRANSACTION (0.3ms) COMMIT
1653
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1654
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1655
+ SQL (0.0ms) SET search_path TO public
1656
+ SQL (0.0ms) SET search_path TO "$user", public
1657
+ SQL (0.0ms) SET search_path TO public
1658
+ SQL (0.0ms) SET search_path TO "$user", public
1659
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1660
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1661
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1662
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1663
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1664
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1665
+ SQL (0.0ms) SET search_path TO public
1666
+  (67.8ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1667
+ SQL (0.2ms) SET search_path TO public
1668
+  (70.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1669
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1670
+  (1.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1671
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1672
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1673
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1674
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-17 11:17:37.483072', '2026-02-17 11:17:37.483074') RETURNING "key"
1675
+ Migrating to CreateUsers (20241217000000)
1676
+ TRANSACTION (0.0ms) BEGIN
1677
+  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1678
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1679
+ TRANSACTION (0.2ms) COMMIT
1680
+ Migrating to CreateGenevaDriveWorkflows (20260217111736)
1681
+ TRANSACTION (0.1ms) BEGIN
1682
+  (1.4ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1683
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1684
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1685
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1686
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1687
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1688
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1689
+ 
1690
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217111736') RETURNING "version"
1691
+ TRANSACTION (0.2ms) COMMIT
1692
+ Migrating to CreateGenevaDriveStepExecutions (20260217111737)
1693
+ TRANSACTION (0.1ms) BEGIN
1694
+  (3.4ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1695
+ FOREIGN KEY ("workflow_id")
1696
+ REFERENCES "geneva_drive_workflows" ("id")
1697
+ ON DELETE CASCADE)
1698
+  (0.8ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1699
+  (0.8ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1700
+  (0.7ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1701
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1702
+  (0.5ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1703
+  (3.1ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1704
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1705
+ ON geneva_drive_step_executions (workflow_id)
1706
+ WHERE state IN ('scheduled', 'in_progress');
1707
+ 
1708
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217111737') RETURNING "version"
1709
+ TRANSACTION (0.4ms) COMMIT
1710
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260217111738)
1711
+ TRANSACTION (0.0ms) BEGIN
1712
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1713
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1714
+  (0.4ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1715
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217111738') RETURNING "version"
1716
+ TRANSACTION (0.2ms) COMMIT
1717
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260217111739)
1718
+ TRANSACTION (0.1ms) BEGIN
1719
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217111739') RETURNING "version"
1720
+ TRANSACTION (1.1ms) COMMIT
1721
+ Migrating to AddResumableStepSupportToGenevaDriveStepExecutions (20260217111740)
1722
+ TRANSACTION (0.1ms) BEGIN
1723
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "cursor" jsonb
1724
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "completed_iterations" integer DEFAULT 0 NOT NULL
1725
+  (0.4ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
1726
+ 
1727
+  (0.7ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1728
+ ON geneva_drive_step_executions (workflow_id)
1729
+ WHERE state IN ('scheduled', 'in_progress', 'suspended');
1730
+ 
1731
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217111740') RETURNING "version"
1732
+ TRANSACTION (0.6ms) COMMIT
1733
+ Migrating to AddChainedStepExecutionsToGenevaDriveStepExecutions (20260217111741)
1734
+ TRANSACTION (0.1ms) BEGIN
1735
+  (0.4ms) ALTER TABLE "geneva_drive_step_executions" ADD "continues_from_id" bigint
1736
+  (1.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_continues_from_id" ON "geneva_drive_step_executions" ("continues_from_id")
1737
+  (0.4ms) ALTER TABLE "geneva_drive_step_executions" DROP COLUMN "completed_iterations"
1738
+  (0.3ms)  UPDATE geneva_drive_step_executions
1739
+ SET state = 'completed'
1740
+ WHERE state = 'suspended';
1741
+ 
1742
+  (0.1ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
1743
+ 
1744
+  (0.7ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1745
+ ON geneva_drive_step_executions (workflow_id)
1746
+ WHERE state IN ('scheduled', 'in_progress');
1747
+ 
1748
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217111741') RETURNING "version"
1749
+ TRANSACTION (0.5ms) COMMIT
1750
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1751
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1752
+ SQL (0.1ms) SET search_path TO public
1753
+ SQL (0.1ms) SET search_path TO "$user", public
1754
+ SQL (0.0ms) SET search_path TO public
1755
+ SQL (0.0ms) SET search_path TO "$user", public
1756
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1757
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1758
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1759
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1760
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1761
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1762
+ SQL (0.1ms) SET search_path TO public
1763
+  (100.5ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
1764
+ SQL (0.2ms) SET search_path TO public
1765
+  (138.1ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
1766
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1767
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1768
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
1769
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1770
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
1771
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-02-17 11:29:50.869640', '2026-02-17 11:29:50.869642') RETURNING "key"
1772
+ Migrating to CreateUsers (20241217000000)
1773
+ TRANSACTION (0.1ms) BEGIN
1774
+  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying NOT NULL, "name" character varying, "active" boolean DEFAULT TRUE, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1775
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
1776
+ TRANSACTION (0.3ms) COMMIT
1777
+ Migrating to CreateGenevaDriveWorkflows (20260217112949)
1778
+ TRANSACTION (0.1ms) BEGIN
1779
+  (1.4ms) CREATE TABLE "geneva_drive_workflows" ("id" bigserial primary key, "type" character varying NOT NULL, "hero_type" character varying NOT NULL, "hero_id" bigint NOT NULL, "state" character varying DEFAULT 'ready' NOT NULL, "current_step_name" character varying, "next_step_name" character varying, "allow_multiple" boolean DEFAULT FALSE NOT NULL, "started_at" timestamp(6), "transitioned_at" timestamp(6), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1780
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
1781
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
1782
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
1783
+  (1.3ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
1784
+ ON geneva_drive_workflows (type, hero_type, hero_id)
1785
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
1786
+ 
1787
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217112949') RETURNING "version"
1788
+ TRANSACTION (0.4ms) COMMIT
1789
+ Migrating to CreateGenevaDriveStepExecutions (20260217112950)
1790
+ TRANSACTION (0.2ms) BEGIN
1791
+  (2.0ms) CREATE TABLE "geneva_drive_step_executions" ("id" bigserial primary key, "workflow_id" bigint NOT NULL, "step_name" character varying NOT NULL, "state" character varying DEFAULT 'scheduled' NOT NULL, "outcome" character varying, "scheduled_for" timestamp(6) NOT NULL, "started_at" timestamp(6), "completed_at" timestamp(6), "failed_at" timestamp(6), "canceled_at" timestamp(6), "skipped_at" timestamp(6), "error_class_name" character varying, "error_message" text, "error_backtrace" text, "job_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT "fk_rails_714b91b701"
1792
+ FOREIGN KEY ("workflow_id")
1793
+ REFERENCES "geneva_drive_workflows" ("id")
1794
+ ON DELETE CASCADE)
1795
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
1796
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
1797
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
1798
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
1799
+  (0.4ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
1800
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
1801
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1802
+ ON geneva_drive_step_executions (workflow_id)
1803
+ WHERE state IN ('scheduled', 'in_progress');
1804
+ 
1805
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217112950') RETURNING "version"
1806
+ TRANSACTION (0.3ms) COMMIT
1807
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260217112951)
1808
+ TRANSACTION (0.0ms) BEGIN
1809
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
1810
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
1811
+  (0.5ms) UPDATE geneva_drive_step_executions SET finished_at = COALESCE(completed_at, failed_at, canceled_at, skipped_at) WHERE finished_at IS NULL AND (completed_at IS NOT NULL OR failed_at IS NOT NULL OR canceled_at IS NOT NULL OR skipped_at IS NOT NULL)
1812
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217112951') RETURNING "version"
1813
+ TRANSACTION (0.3ms) COMMIT
1814
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260217112952)
1815
+ TRANSACTION (0.0ms) BEGIN
1816
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217112952') RETURNING "version"
1817
+ TRANSACTION (0.2ms) COMMIT
1818
+ Migrating to AddResumableStepSupportToGenevaDriveStepExecutions (20260217112953)
1819
+ TRANSACTION (0.0ms) BEGIN
1820
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "cursor" jsonb
1821
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "completed_iterations" integer DEFAULT 0 NOT NULL
1822
+  (0.3ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
1823
+ 
1824
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1825
+ ON geneva_drive_step_executions (workflow_id)
1826
+ WHERE state IN ('scheduled', 'in_progress', 'suspended');
1827
+ 
1828
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217112953') RETURNING "version"
1829
+ TRANSACTION (0.6ms) COMMIT
1830
+ Migrating to AddChainedStepExecutionsToGenevaDriveStepExecutions (20260217112954)
1831
+ TRANSACTION (0.0ms) BEGIN
1832
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "continues_from_id" bigint
1833
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_continues_from_id" ON "geneva_drive_step_executions" ("continues_from_id")
1834
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" DROP COLUMN "completed_iterations"
1835
+  (0.3ms)  UPDATE geneva_drive_step_executions
1836
+ SET state = 'completed'
1837
+ WHERE state = 'suspended';
1838
+ 
1839
+  (0.1ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
1840
+ 
1841
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
1842
+ ON geneva_drive_step_executions (workflow_id)
1843
+ WHERE state IN ('scheduled', 'in_progress');
1844
+ 
1845
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260217112954') RETURNING "version"
1846
+ TRANSACTION (0.4ms) COMMIT
1847
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
1848
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1849
+ SQL (0.0ms) SET search_path TO public
1850
+ SQL (0.1ms) SET search_path TO "$user", public
1851
+ SQL (0.0ms) SET search_path TO public
1852
+ SQL (0.0ms) SET search_path TO "$user", public