geneva_drive 0.3.0 → 0.4.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.
@@ -3408,3 +3408,624 @@ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126164028)
3408
3408
  SQL (0.0ms) SET search_path TO "$user", public
3409
3409
  SQL (0.0ms) SET search_path TO public
3410
3410
  SQL (0.0ms) SET search_path TO "$user", public
3411
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3412
+ 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"]]
3413
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3414
+ 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"]]
3415
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3416
+ 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"]]
3417
+ SQL (0.1ms) SET search_path TO public
3418
+  (96.2ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3419
+ SQL (0.0ms) SET search_path TO public
3420
+  (119.5ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3421
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3422
+  (1.3ms) 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)
3423
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
3424
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3425
+ 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"]]
3426
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-27 14:24:26.303712', '2026-01-27 14:24:26.303714') RETURNING "key"
3427
+ Migrating to CreateUsers (20241217000000)
3428
+ TRANSACTION (0.0ms) BEGIN
3429
+  (1.6ms) 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)
3430
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3431
+ TRANSACTION (0.1ms) COMMIT
3432
+ Migrating to CreateGenevaDriveWorkflows (20260127142425)
3433
+ TRANSACTION (0.2ms) BEGIN
3434
+  (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)
3435
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3436
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3437
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3438
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3439
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3440
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3441
+ 
3442
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127142425') RETURNING "version"
3443
+ TRANSACTION (0.2ms) COMMIT
3444
+ Migrating to CreateGenevaDriveStepExecutions (20260127142426)
3445
+ TRANSACTION (0.1ms) BEGIN
3446
+  (1.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"
3447
+ FOREIGN KEY ("workflow_id")
3448
+ REFERENCES "geneva_drive_workflows" ("id")
3449
+ ON DELETE CASCADE)
3450
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3451
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3452
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3453
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3454
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3455
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3456
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3457
+ ON geneva_drive_step_executions (workflow_id)
3458
+ WHERE state IN ('scheduled', 'in_progress');
3459
+ 
3460
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127142426') RETURNING "version"
3461
+ TRANSACTION (0.1ms) COMMIT
3462
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260127142427)
3463
+ TRANSACTION (0.0ms) BEGIN
3464
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3465
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3466
+  (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)
3467
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127142427') RETURNING "version"
3468
+ TRANSACTION (0.1ms) COMMIT
3469
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260127142428)
3470
+ TRANSACTION (0.0ms) BEGIN
3471
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127142428') RETURNING "version"
3472
+ TRANSACTION (0.1ms) COMMIT
3473
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
3474
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3475
+ SQL (0.0ms) SET search_path TO public
3476
+ SQL (0.0ms) SET search_path TO "$user", public
3477
+ SQL (0.0ms) SET search_path TO public
3478
+ SQL (0.0ms) SET search_path TO "$user", public
3479
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3480
+ 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"]]
3481
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3482
+ 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"]]
3483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3484
+ 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"]]
3485
+ SQL (0.1ms) SET search_path TO public
3486
+  (102.7ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3487
+ SQL (0.0ms) SET search_path TO public
3488
+  (103.0ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3489
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3490
+  (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)
3491
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
3492
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3493
+ 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"]]
3494
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-27 23:44:49.791461', '2026-01-27 23:44:49.791464') RETURNING "key"
3495
+ Migrating to CreateUsers (20241217000000)
3496
+ TRANSACTION (0.1ms) BEGIN
3497
+  (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)
3498
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3499
+ TRANSACTION (0.1ms) COMMIT
3500
+ Migrating to CreateGenevaDriveWorkflows (20260127234448)
3501
+ TRANSACTION (0.1ms) BEGIN
3502
+  (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)
3503
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3504
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3505
+  (0.2ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3506
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3507
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3508
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3509
+ 
3510
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127234448') RETURNING "version"
3511
+ TRANSACTION (0.2ms) COMMIT
3512
+ Migrating to CreateGenevaDriveStepExecutions (20260127234449)
3513
+ TRANSACTION (0.1ms) BEGIN
3514
+  (1.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"
3515
+ FOREIGN KEY ("workflow_id")
3516
+ REFERENCES "geneva_drive_workflows" ("id")
3517
+ ON DELETE CASCADE)
3518
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3519
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3520
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3521
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3522
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3523
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3524
+  (0.3ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3525
+ ON geneva_drive_step_executions (workflow_id)
3526
+ WHERE state IN ('scheduled', 'in_progress');
3527
+ 
3528
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127234449') RETURNING "version"
3529
+ TRANSACTION (0.2ms) COMMIT
3530
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260127234450)
3531
+ TRANSACTION (0.0ms) BEGIN
3532
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3533
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3534
+  (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)
3535
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127234450') RETURNING "version"
3536
+ TRANSACTION (0.1ms) COMMIT
3537
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260127234451)
3538
+ TRANSACTION (0.0ms) BEGIN
3539
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260127234451') RETURNING "version"
3540
+ TRANSACTION (0.1ms) COMMIT
3541
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
3542
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3543
+ SQL (0.0ms) SET search_path TO public
3544
+ SQL (0.1ms) SET search_path TO "$user", public
3545
+ SQL (0.0ms) SET search_path TO public
3546
+ SQL (0.0ms) SET search_path TO "$user", public
3547
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3548
+ 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"]]
3549
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3550
+ 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"]]
3551
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3552
+ 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"]]
3553
+ SQL (0.1ms) SET search_path TO public
3554
+  (96.6ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3555
+ SQL (0.0ms) SET search_path TO public
3556
+  (93.6ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3557
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3558
+  (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)
3559
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
3560
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3561
+ 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"]]
3562
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 08:49:52.646776', '2026-01-28 08:49:52.646778') RETURNING "key"
3563
+ Migrating to CreateUsers (20241217000000)
3564
+ TRANSACTION (0.1ms) BEGIN
3565
+  (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)
3566
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3567
+ TRANSACTION (0.1ms) COMMIT
3568
+ Migrating to CreateGenevaDriveWorkflows (20260128084951)
3569
+ TRANSACTION (0.1ms) BEGIN
3570
+  (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)
3571
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3572
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3573
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3574
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3575
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3576
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3577
+ 
3578
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128084951') RETURNING "version"
3579
+ TRANSACTION (0.3ms) COMMIT
3580
+ Migrating to CreateGenevaDriveStepExecutions (20260128084952)
3581
+ TRANSACTION (0.1ms) BEGIN
3582
+  (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_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"
3583
+ FOREIGN KEY ("workflow_id")
3584
+ REFERENCES "geneva_drive_workflows" ("id")
3585
+ ON DELETE CASCADE)
3586
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3587
+  (0.2ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3588
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3589
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3590
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3591
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3592
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3593
+ ON geneva_drive_step_executions (workflow_id)
3594
+ WHERE state IN ('scheduled', 'in_progress');
3595
+ 
3596
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128084952') RETURNING "version"
3597
+ TRANSACTION (0.2ms) COMMIT
3598
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128084953)
3599
+ TRANSACTION (0.0ms) BEGIN
3600
+  (0.5ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3601
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3602
+  (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)
3603
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128084953') RETURNING "version"
3604
+ TRANSACTION (0.1ms) COMMIT
3605
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128084954)
3606
+ TRANSACTION (0.0ms) BEGIN
3607
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128084954') RETURNING "version"
3608
+ TRANSACTION (0.1ms) COMMIT
3609
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
3610
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3611
+ SQL (0.0ms) SET search_path TO public
3612
+ SQL (0.1ms) SET search_path TO "$user", public
3613
+ SQL (0.0ms) SET search_path TO public
3614
+ SQL (0.0ms) SET search_path TO "$user", public
3615
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3616
+ 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"]]
3617
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3618
+ 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"]]
3619
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3620
+ 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"]]
3621
+ SQL (0.1ms) SET search_path TO public
3622
+  (89.6ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3623
+ SQL (0.1ms) SET search_path TO public
3624
+  (114.2ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3625
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3626
+  (1.3ms) 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)
3627
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
3628
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3629
+ 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"]]
3630
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 08:54:19.019668', '2026-01-28 08:54:19.019670') RETURNING "key"
3631
+ Migrating to CreateUsers (20241217000000)
3632
+ TRANSACTION (0.1ms) BEGIN
3633
+  (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)
3634
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3635
+ TRANSACTION (1.4ms) COMMIT
3636
+ Migrating to CreateGenevaDriveWorkflows (20260128085417)
3637
+ TRANSACTION (0.1ms) BEGIN
3638
+  (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)
3639
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3640
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3641
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3642
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3643
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3644
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3645
+ 
3646
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128085417') RETURNING "version"
3647
+ TRANSACTION (0.1ms) COMMIT
3648
+ Migrating to CreateGenevaDriveStepExecutions (20260128085418)
3649
+ TRANSACTION (0.1ms) BEGIN
3650
+  (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"
3651
+ FOREIGN KEY ("workflow_id")
3652
+ REFERENCES "geneva_drive_workflows" ("id")
3653
+ ON DELETE CASCADE)
3654
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3655
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3656
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3657
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3658
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3659
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3660
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3661
+ ON geneva_drive_step_executions (workflow_id)
3662
+ WHERE state IN ('scheduled', 'in_progress');
3663
+ 
3664
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128085418') RETURNING "version"
3665
+ TRANSACTION (0.1ms) COMMIT
3666
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128085419)
3667
+ TRANSACTION (0.0ms) BEGIN
3668
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3669
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3670
+  (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)
3671
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128085419') RETURNING "version"
3672
+ TRANSACTION (0.1ms) COMMIT
3673
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128085420)
3674
+ TRANSACTION (0.0ms) BEGIN
3675
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128085420') RETURNING "version"
3676
+ TRANSACTION (0.1ms) COMMIT
3677
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
3678
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3679
+ SQL (0.0ms) SET search_path TO public
3680
+ SQL (0.0ms) SET search_path TO "$user", public
3681
+ SQL (0.0ms) SET search_path TO public
3682
+ SQL (0.0ms) SET search_path TO "$user", public
3683
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3684
+ 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"]]
3685
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3686
+ 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"]]
3687
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3688
+ 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"]]
3689
+ SQL (0.0ms) SET search_path TO public
3690
+  (102.1ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3691
+ SQL (0.0ms) SET search_path TO public
3692
+  (104.4ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3693
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3694
+  (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)
3695
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
3696
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3697
+ 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"]]
3698
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 09:10:32.406365', '2026-01-28 09:10:32.406367') RETURNING "key"
3699
+ Migrating to CreateUsers (20241217000000)
3700
+ TRANSACTION (0.0ms) BEGIN
3701
+  (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)
3702
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3703
+ TRANSACTION (0.1ms) COMMIT
3704
+ Migrating to CreateGenevaDriveWorkflows (20260128091031)
3705
+ TRANSACTION (0.2ms) BEGIN
3706
+  (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)
3707
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3708
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3709
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3710
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3711
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3712
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3713
+ 
3714
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128091031') RETURNING "version"
3715
+ TRANSACTION (0.2ms) COMMIT
3716
+ Migrating to CreateGenevaDriveStepExecutions (20260128091032)
3717
+ TRANSACTION (0.1ms) BEGIN
3718
+  (1.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"
3719
+ FOREIGN KEY ("workflow_id")
3720
+ REFERENCES "geneva_drive_workflows" ("id")
3721
+ ON DELETE CASCADE)
3722
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3723
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3724
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3725
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3726
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3727
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3728
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3729
+ ON geneva_drive_step_executions (workflow_id)
3730
+ WHERE state IN ('scheduled', 'in_progress');
3731
+ 
3732
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128091032') RETURNING "version"
3733
+ TRANSACTION (0.3ms) COMMIT
3734
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128091033)
3735
+ TRANSACTION (0.0ms) BEGIN
3736
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3737
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3738
+  (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)
3739
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128091033') RETURNING "version"
3740
+ TRANSACTION (0.1ms) COMMIT
3741
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128091034)
3742
+ TRANSACTION (0.0ms) BEGIN
3743
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128091034') RETURNING "version"
3744
+ TRANSACTION (0.1ms) COMMIT
3745
+  (0.0ms) SELECT pg_advisory_unlock(5769190355348905590)
3746
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3747
+ SQL (0.0ms) SET search_path TO public
3748
+ SQL (0.0ms) SET search_path TO "$user", public
3749
+ SQL (0.0ms) SET search_path TO public
3750
+ SQL (0.0ms) SET search_path TO "$user", public
3751
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3752
+ 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"]]
3753
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3754
+ 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"]]
3755
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3756
+ 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"]]
3757
+ SQL (0.1ms) SET search_path TO public
3758
+  (96.6ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3759
+ SQL (0.0ms) SET search_path TO public
3760
+  (53.7ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3761
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3762
+  (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)
3763
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
3764
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3765
+ 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"]]
3766
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 10:40:20.277960', '2026-01-28 10:40:20.277961') RETURNING "key"
3767
+ Migrating to CreateUsers (20241217000000)
3768
+ TRANSACTION (0.0ms) BEGIN
3769
+  (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)
3770
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3771
+ TRANSACTION (0.2ms) COMMIT
3772
+ Migrating to CreateGenevaDriveWorkflows (20260128104019)
3773
+ TRANSACTION (0.1ms) BEGIN
3774
+  (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)
3775
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3776
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3777
+  (0.6ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3778
+  (0.6ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3779
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3780
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3781
+ 
3782
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104019') RETURNING "version"
3783
+ TRANSACTION (0.1ms) COMMIT
3784
+ Migrating to CreateGenevaDriveStepExecutions (20260128104020)
3785
+ TRANSACTION (0.1ms) BEGIN
3786
+  (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"
3787
+ FOREIGN KEY ("workflow_id")
3788
+ REFERENCES "geneva_drive_workflows" ("id")
3789
+ ON DELETE CASCADE)
3790
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3791
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3792
+  (0.5ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3793
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3794
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3795
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3796
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3797
+ ON geneva_drive_step_executions (workflow_id)
3798
+ WHERE state IN ('scheduled', 'in_progress');
3799
+ 
3800
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104020') RETURNING "version"
3801
+ TRANSACTION (0.1ms) COMMIT
3802
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128104021)
3803
+ TRANSACTION (0.0ms) BEGIN
3804
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3805
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3806
+  (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)
3807
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104021') RETURNING "version"
3808
+ TRANSACTION (0.3ms) COMMIT
3809
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128104022)
3810
+ TRANSACTION (0.0ms) BEGIN
3811
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104022') RETURNING "version"
3812
+ TRANSACTION (0.1ms) COMMIT
3813
+ Migrating to AddResumableStepSupportToGenevaDriveStepExecutions (20260128104023)
3814
+ TRANSACTION (0.0ms) BEGIN
3815
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "cursor" jsonb
3816
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "completed_iterations" integer DEFAULT 0 NOT NULL
3817
+  (0.3ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
3818
+ 
3819
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3820
+ ON geneva_drive_step_executions (workflow_id)
3821
+ WHERE state IN ('scheduled', 'in_progress', 'suspended');
3822
+ 
3823
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104023') RETURNING "version"
3824
+ TRANSACTION (0.2ms) COMMIT
3825
+ Migrating to AddChainedStepExecutionsToGenevaDriveStepExecutions (20260128104024)
3826
+ TRANSACTION (0.0ms) BEGIN
3827
+  (0.3ms) ALTER TABLE "geneva_drive_step_executions" ADD "continues_from_id" bigint
3828
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_continues_from_id" ON "geneva_drive_step_executions" ("continues_from_id")
3829
+  (0.5ms) ALTER TABLE "geneva_drive_step_executions" ADD CONSTRAINT "fk_rails_2b5d0059f8"
3830
+ FOREIGN KEY ("continues_from_id")
3831
+ REFERENCES "geneva_drive_step_executions" ("id")
3832
+ ON DELETE SET NULL
3833
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" DROP COLUMN "completed_iterations"
3834
+  (0.1ms)  UPDATE geneva_drive_step_executions
3835
+ SET state = 'completed'
3836
+ WHERE state = 'suspended';
3837
+ 
3838
+  (0.1ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
3839
+ 
3840
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3841
+ ON geneva_drive_step_executions (workflow_id)
3842
+ WHERE state IN ('scheduled', 'in_progress');
3843
+ 
3844
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104024') RETURNING "version"
3845
+ TRANSACTION (0.3ms) COMMIT
3846
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
3847
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3848
+ SQL (0.0ms) SET search_path TO public
3849
+ SQL (0.0ms) SET search_path TO "$user", public
3850
+ SQL (0.0ms) SET search_path TO public
3851
+ SQL (0.0ms) SET search_path TO "$user", public
3852
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3853
+ 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"]]
3854
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3855
+ 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"]]
3856
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3857
+ 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"]]
3858
+ SQL (0.1ms) SET search_path TO public
3859
+  (86.7ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3860
+ SQL (0.0ms) SET search_path TO public
3861
+  (88.0ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3862
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3863
+  (1.3ms) 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)
3864
+  (0.0ms) SELECT pg_try_advisory_lock(5769190355348905590)
3865
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3866
+ 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"]]
3867
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 10:40:51.263129', '2026-01-28 10:40:51.263131') RETURNING "key"
3868
+ Migrating to CreateUsers (20241217000000)
3869
+ TRANSACTION (0.0ms) BEGIN
3870
+  (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)
3871
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3872
+ TRANSACTION (0.2ms) COMMIT
3873
+ Migrating to CreateGenevaDriveWorkflows (20260128104050)
3874
+ TRANSACTION (0.1ms) BEGIN
3875
+  (2.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)
3876
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3877
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3878
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3879
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3880
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3881
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3882
+ 
3883
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104050') RETURNING "version"
3884
+ TRANSACTION (0.3ms) COMMIT
3885
+ Migrating to CreateGenevaDriveStepExecutions (20260128104051)
3886
+ TRANSACTION (0.1ms) BEGIN
3887
+  (3.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"
3888
+ FOREIGN KEY ("workflow_id")
3889
+ REFERENCES "geneva_drive_workflows" ("id")
3890
+ ON DELETE CASCADE)
3891
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3892
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3893
+  (0.7ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3894
+  (1.1ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3895
+  (1.0ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3896
+  (1.0ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3897
+  (0.9ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3898
+ ON geneva_drive_step_executions (workflow_id)
3899
+ WHERE state IN ('scheduled', 'in_progress');
3900
+ 
3901
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104051') RETURNING "version"
3902
+ TRANSACTION (0.2ms) COMMIT
3903
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128104052)
3904
+ TRANSACTION (0.0ms) BEGIN
3905
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
3906
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
3907
+  (0.6ms) 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)
3908
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104052') RETURNING "version"
3909
+ TRANSACTION (0.1ms) COMMIT
3910
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128104053)
3911
+ TRANSACTION (0.0ms) BEGIN
3912
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104053') RETURNING "version"
3913
+ TRANSACTION (0.1ms) COMMIT
3914
+ Migrating to AddResumableStepSupportToGenevaDriveStepExecutions (20260128104054)
3915
+ TRANSACTION (0.0ms) BEGIN
3916
+  (0.2ms) ALTER TABLE "geneva_drive_step_executions" ADD "cursor" jsonb
3917
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "completed_iterations" integer DEFAULT 0 NOT NULL
3918
+  (0.2ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
3919
+ 
3920
+  (0.4ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3921
+ ON geneva_drive_step_executions (workflow_id)
3922
+ WHERE state IN ('scheduled', 'in_progress', 'suspended');
3923
+ 
3924
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104054') RETURNING "version"
3925
+ TRANSACTION (0.5ms) COMMIT
3926
+ Migrating to AddChainedStepExecutionsToGenevaDriveStepExecutions (20260128104055)
3927
+ TRANSACTION (0.0ms) BEGIN
3928
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "continues_from_id" bigint
3929
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_continues_from_id" ON "geneva_drive_step_executions" ("continues_from_id")
3930
+  (0.5ms) ALTER TABLE "geneva_drive_step_executions" ADD CONSTRAINT "fk_rails_2b5d0059f8"
3931
+ FOREIGN KEY ("continues_from_id")
3932
+ REFERENCES "geneva_drive_step_executions" ("id")
3933
+ ON DELETE SET NULL
3934
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" DROP COLUMN "completed_iterations"
3935
+  (0.1ms)  UPDATE geneva_drive_step_executions
3936
+ SET state = 'completed'
3937
+ WHERE state = 'suspended';
3938
+ 
3939
+  (0.1ms)  DROP INDEX IF EXISTS index_geneva_drive_step_executions_one_active;
3940
+ 
3941
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3942
+ ON geneva_drive_step_executions (workflow_id)
3943
+ WHERE state IN ('scheduled', 'in_progress');
3944
+ 
3945
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104055') RETURNING "version"
3946
+ TRANSACTION (0.2ms) COMMIT
3947
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
3948
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3949
+ SQL (0.0ms) SET search_path TO public
3950
+ SQL (0.1ms) SET search_path TO "$user", public
3951
+ SQL (0.1ms) SET search_path TO public
3952
+ SQL (0.0ms) SET search_path TO "$user", public
3953
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3954
+ 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"]]
3955
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3956
+ 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"]]
3957
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3958
+ 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"]]
3959
+ SQL (0.1ms) SET search_path TO public
3960
+  (91.1ms) DROP DATABASE IF EXISTS "geneva_drive_install_test"
3961
+ SQL (0.0ms) SET search_path TO public
3962
+  (61.4ms) CREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'
3963
+  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
3964
+  (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)
3965
+  (0.1ms) SELECT pg_try_advisory_lock(5769190355348905590)
3966
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3967
+ 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"]]
3968
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-28 10:47:39.267136', '2026-01-28 10:47:39.267138') RETURNING "key"
3969
+ Migrating to CreateUsers (20241217000000)
3970
+ TRANSACTION (0.0ms) BEGIN
3971
+  (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)
3972
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"
3973
+ TRANSACTION (0.1ms) COMMIT
3974
+ Migrating to CreateGenevaDriveWorkflows (20260128104738)
3975
+ TRANSACTION (0.2ms) BEGIN
3976
+  (2.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)
3977
+  (0.4ms) CREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")
3978
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")
3979
+  (0.3ms) CREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")
3980
+  (0.5ms)  CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
3981
+ ON geneva_drive_workflows (type, hero_type, hero_id)
3982
+ WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
3983
+ 
3984
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104738') RETURNING "version"
3985
+ TRANSACTION (0.1ms) COMMIT
3986
+ Migrating to CreateGenevaDriveStepExecutions (20260128104739)
3987
+ TRANSACTION (0.2ms) BEGIN
3988
+  (2.1ms) 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"
3989
+ FOREIGN KEY ("workflow_id")
3990
+ REFERENCES "geneva_drive_workflows" ("id")
3991
+ ON DELETE CASCADE)
3992
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")
3993
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")
3994
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")
3995
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")
3996
+  (0.3ms) CREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")
3997
+  (0.3ms) CREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")
3998
+  (0.7ms)  CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
3999
+ ON geneva_drive_step_executions (workflow_id)
4000
+ WHERE state IN ('scheduled', 'in_progress');
4001
+ 
4002
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104739') RETURNING "version"
4003
+ TRANSACTION (0.3ms) COMMIT
4004
+ Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260128104740)
4005
+ TRANSACTION (0.0ms) BEGIN
4006
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)
4007
+  (0.4ms) CREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")
4008
+  (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)
4009
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104740') RETURNING "version"
4010
+ TRANSACTION (0.1ms) COMMIT
4011
+ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260128104741)
4012
+ TRANSACTION (0.0ms) BEGIN
4013
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104741') RETURNING "version"
4014
+ TRANSACTION (0.1ms) COMMIT
4015
+ Migrating to AddResumableStepSupportToGenevaDriveStepExecutions (20260128104742)
4016
+ TRANSACTION (0.0ms) BEGIN
4017
+  (0.4ms) ALTER TABLE "geneva_drive_step_executions" ADD "cursor" jsonb
4018
+  (0.1ms) ALTER TABLE "geneva_drive_step_executions" ADD "continues_from_id" bigint
4019
+  (0.6ms) CREATE INDEX "index_geneva_drive_step_executions_on_continues_from_id" ON "geneva_drive_step_executions" ("continues_from_id")
4020
+  (0.4ms) ALTER TABLE "geneva_drive_step_executions" ADD CONSTRAINT "fk_rails_2b5d0059f8"
4021
+ FOREIGN KEY ("continues_from_id")
4022
+ REFERENCES "geneva_drive_step_executions" ("id")
4023
+ ON DELETE SET NULL
4024
+ ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20260128104742') RETURNING "version"
4025
+ TRANSACTION (0.1ms) COMMIT
4026
+  (0.1ms) SELECT pg_advisory_unlock(5769190355348905590)
4027
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4028
+ SQL (0.0ms) SET search_path TO public
4029
+ SQL (0.0ms) SET search_path TO "$user", public
4030
+ SQL (0.0ms) SET search_path TO public
4031
+ SQL (0.0ms) SET search_path TO "$user", public