geneva_drive 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/geneva_drive/executor.rb +5 -7
- data/lib/geneva_drive/flow_control.rb +20 -5
- data/lib/geneva_drive/jobs/housekeeping_job.rb +1 -1
- data/lib/geneva_drive/version.rb +1 -1
- data/test/dummy/config/environments/development.rb +0 -18
- data/test/dummy/config/environments/production.rb +0 -19
- data/test/dummy/config/environments/test.rb +0 -14
- data/test/dummy/log/test.log +54290 -0
- data/test/dummy_install/config/environments/development.rb +0 -18
- data/test/dummy_install/config/environments/production.rb +0 -19
- data/test/dummy_install/config/environments/test.rb +0 -14
- data/test/dummy_install/db/schema.rb +1 -1
- data/test/dummy_install/log/test.log +417 -0
- data/test/workflow/flow_control_test.rb +6 -5
- data/test/workflow/resume_and_skip_test.rb +305 -0
- metadata +49 -17
- data/app/assets/stylesheets/geneva_drive/application.css +0 -15
- data/app/controllers/geneva_drive/application_controller.rb +0 -2
- data/app/helpers/geneva_drive/application_helper.rb +0 -2
- data/app/jobs/geneva_drive/application_job.rb +0 -2
- data/app/mailers/geneva_drive/application_mailer.rb +0 -4
- data/app/models/geneva_drive/application_record.rb +0 -3
- data/app/views/layouts/geneva_drive/application.html.erb +0 -17
- data/test/dummy/app/mailers/application_mailer.rb +0 -4
- data/test/dummy/config/storage.yml +0 -34
- data/test/dummy_install/app/mailers/application_mailer.rb +0 -4
- data/test/dummy_install/config/storage.yml +0 -34
- /data/test/dummy_install/db/migrate/{20260126091843_create_geneva_drive_workflows.rb → 20260126164025_create_geneva_drive_workflows.rb} +0 -0
- /data/test/dummy_install/db/migrate/{20260126091844_create_geneva_drive_step_executions.rb → 20260126164026_create_geneva_drive_step_executions.rb} +0 -0
- /data/test/dummy_install/db/migrate/{20260126091845_add_finished_at_to_geneva_drive_step_executions.rb → 20260126164027_add_finished_at_to_geneva_drive_step_executions.rb} +0 -0
- /data/test/dummy_install/db/migrate/{20260126091846_add_error_class_name_to_geneva_drive_step_executions.rb → 20260126164028_add_error_class_name_to_geneva_drive_step_executions.rb} +0 -0
|
@@ -28,18 +28,6 @@ Rails.application.configure do
|
|
|
28
28
|
# Change to :null_store to avoid any caching.
|
|
29
29
|
config.cache_store = :memory_store
|
|
30
30
|
|
|
31
|
-
# Store uploaded files on the local file system (see config/storage.yml for options).
|
|
32
|
-
config.active_storage.service = :local
|
|
33
|
-
|
|
34
|
-
# Don't care if the mailer can't send.
|
|
35
|
-
config.action_mailer.raise_delivery_errors = false
|
|
36
|
-
|
|
37
|
-
# Make template changes take effect immediately.
|
|
38
|
-
config.action_mailer.perform_caching = false
|
|
39
|
-
|
|
40
|
-
# Set localhost to be used by links generated in mailer templates.
|
|
41
|
-
config.action_mailer.default_url_options = {host: "localhost", port: 3000}
|
|
42
|
-
|
|
43
31
|
# Print deprecation notices to the Rails logger.
|
|
44
32
|
config.active_support.deprecation = :log
|
|
45
33
|
|
|
@@ -58,12 +46,6 @@ Rails.application.configure do
|
|
|
58
46
|
# Raises error for missing translations.
|
|
59
47
|
# config.i18n.raise_on_missing_translations = true
|
|
60
48
|
|
|
61
|
-
# Annotate rendered view with file names.
|
|
62
|
-
config.action_view.annotate_rendered_view_with_filenames = true
|
|
63
|
-
|
|
64
|
-
# Uncomment if you wish to allow Action Cable access from any origin.
|
|
65
|
-
# config.action_cable.disable_request_forgery_protection = true
|
|
66
|
-
|
|
67
49
|
# Raise error when a before_action's only/except options reference missing actions.
|
|
68
50
|
config.action_controller.raise_on_missing_callback_actions = true
|
|
69
51
|
end
|
|
@@ -21,9 +21,6 @@ Rails.application.configure do
|
|
|
21
21
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
22
22
|
# config.asset_host = "http://assets.example.com"
|
|
23
23
|
|
|
24
|
-
# Store uploaded files on the local file system (see config/storage.yml for options).
|
|
25
|
-
config.active_storage.service = :local
|
|
26
|
-
|
|
27
24
|
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
|
28
25
|
config.assume_ssl = true
|
|
29
26
|
|
|
@@ -52,22 +49,6 @@ Rails.application.configure do
|
|
|
52
49
|
# Replace the default in-process and non-durable queuing backend for Active Job.
|
|
53
50
|
# config.active_job.queue_adapter = :resque
|
|
54
51
|
|
|
55
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
|
56
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
57
|
-
# config.action_mailer.raise_delivery_errors = false
|
|
58
|
-
|
|
59
|
-
# Set host to be used by links generated in mailer templates.
|
|
60
|
-
config.action_mailer.default_url_options = {host: "example.com"}
|
|
61
|
-
|
|
62
|
-
# Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
|
|
63
|
-
# config.action_mailer.smtp_settings = {
|
|
64
|
-
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
|
|
65
|
-
# password: Rails.application.credentials.dig(:smtp, :password),
|
|
66
|
-
# address: "smtp.example.com",
|
|
67
|
-
# port: 587,
|
|
68
|
-
# authentication: :plain
|
|
69
|
-
# }
|
|
70
|
-
|
|
71
52
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
72
53
|
# the I18n.default_locale when a translation cannot be found).
|
|
73
54
|
config.i18n.fallbacks = true
|
|
@@ -28,26 +28,12 @@ Rails.application.configure do
|
|
|
28
28
|
# Disable request forgery protection in test environment.
|
|
29
29
|
config.action_controller.allow_forgery_protection = false
|
|
30
30
|
|
|
31
|
-
# Store uploaded files on the local file system in a temporary directory.
|
|
32
|
-
config.active_storage.service = :test
|
|
33
|
-
|
|
34
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
|
35
|
-
# The :test delivery method accumulates sent emails in the
|
|
36
|
-
# ActionMailer::Base.deliveries array.
|
|
37
|
-
config.action_mailer.delivery_method = :test
|
|
38
|
-
|
|
39
|
-
# Set host to be used by links generated in mailer templates.
|
|
40
|
-
config.action_mailer.default_url_options = {host: "example.com"}
|
|
41
|
-
|
|
42
31
|
# Print deprecation notices to the stderr.
|
|
43
32
|
config.active_support.deprecation = :stderr
|
|
44
33
|
|
|
45
34
|
# Raises error for missing translations.
|
|
46
35
|
# config.i18n.raise_on_missing_translations = true
|
|
47
36
|
|
|
48
|
-
# Annotate rendered view with file names.
|
|
49
|
-
# config.action_view.annotate_rendered_view_with_filenames = true
|
|
50
|
-
|
|
51
37
|
# Raise error when a before_action's only/except options reference missing actions.
|
|
52
38
|
config.action_controller.raise_on_missing_callback_actions = true
|
|
53
39
|
end
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#
|
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
|
12
12
|
|
|
13
|
-
ActiveRecord::Schema[8.1].define(version:
|
|
13
|
+
ActiveRecord::Schema[8.1].define(version: 2026_01_26_164028) do
|
|
14
14
|
# These are extensions that must be enabled in order to support this database
|
|
15
15
|
enable_extension "pg_catalog.plpgsql"
|
|
16
16
|
|
|
@@ -2991,3 +2991,420 @@ Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126091846)
|
|
|
2991
2991
|
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
2992
2992
|
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
2993
2993
|
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`.
|
|
2994
|
+
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`.
|
|
2995
|
+
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`.
|
|
2996
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
2997
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
2998
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
2999
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3000
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3001
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3002
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3003
|
+
[1m[35m (96.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "geneva_drive_install_test"[0m
|
|
3004
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3005
|
+
[1m[35m (126.1ms)[0m [1m[35mCREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'[0m
|
|
3006
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
3007
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE 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)[0m
|
|
3008
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(5769190355348905590)[0m
|
|
3009
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3010
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3011
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-26 16:25:47.836013', '2026-01-26 16:25:47.836015') RETURNING "key"[0m
|
|
3012
|
+
Migrating to CreateUsers (20241217000000)
|
|
3013
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3014
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE 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)[0m
|
|
3015
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"[0m
|
|
3016
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3017
|
+
Migrating to CreateGenevaDriveWorkflows (20260126162546)
|
|
3018
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
|
3019
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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)[0m
|
|
3020
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")[0m
|
|
3021
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")[0m
|
|
3022
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")[0m
|
|
3023
|
+
[1m[35m (0.7ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
|
|
3024
|
+
ON geneva_drive_workflows (type, hero_type, hero_id)
|
|
3025
|
+
WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
|
|
3026
|
+
[0m
|
|
3027
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162546') RETURNING "version"[0m
|
|
3028
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3029
|
+
Migrating to CreateGenevaDriveStepExecutions (20260126162547)
|
|
3030
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
|
3031
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE 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"
|
|
3032
|
+
FOREIGN KEY ("workflow_id")
|
|
3033
|
+
REFERENCES "geneva_drive_workflows" ("id")
|
|
3034
|
+
ON DELETE CASCADE)[0m
|
|
3035
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")[0m
|
|
3036
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")[0m
|
|
3037
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")[0m
|
|
3038
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")[0m
|
|
3039
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")[0m
|
|
3040
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")[0m
|
|
3041
|
+
[1m[35m (0.5ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
|
|
3042
|
+
ON geneva_drive_step_executions (workflow_id)
|
|
3043
|
+
WHERE state IN ('scheduled', 'in_progress');
|
|
3044
|
+
[0m
|
|
3045
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162547') RETURNING "version"[0m
|
|
3046
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3047
|
+
Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260126162548)
|
|
3048
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3049
|
+
[1m[35m (0.1ms)[0m [1m[35mALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)[0m
|
|
3050
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")[0m
|
|
3051
|
+
[1m[35m (0.3ms)[0m [1m[33mUPDATE 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)[0m
|
|
3052
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162548') RETURNING "version"[0m
|
|
3053
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3054
|
+
Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126162549)
|
|
3055
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3056
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162549') RETURNING "version"[0m
|
|
3057
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3058
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(5769190355348905590)[0m
|
|
3059
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3060
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3061
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3062
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3063
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3064
|
+
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`.
|
|
3065
|
+
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`.
|
|
3066
|
+
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`.
|
|
3067
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3068
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3069
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3070
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3071
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3072
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3073
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3074
|
+
[1m[35m (77.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "geneva_drive_install_test"[0m
|
|
3075
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3076
|
+
[1m[35m (90.9ms)[0m [1m[35mCREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'[0m
|
|
3077
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
3078
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE 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)[0m
|
|
3079
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(5769190355348905590)[0m
|
|
3080
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3081
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3082
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-26 16:26:08.249700', '2026-01-26 16:26:08.249701') RETURNING "key"[0m
|
|
3083
|
+
Migrating to CreateUsers (20241217000000)
|
|
3084
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3085
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE 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)[0m
|
|
3086
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"[0m
|
|
3087
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3088
|
+
Migrating to CreateGenevaDriveWorkflows (20260126162607)
|
|
3089
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3090
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE 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)[0m
|
|
3091
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")[0m
|
|
3092
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")[0m
|
|
3093
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")[0m
|
|
3094
|
+
[1m[35m (0.4ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
|
|
3095
|
+
ON geneva_drive_workflows (type, hero_type, hero_id)
|
|
3096
|
+
WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
|
|
3097
|
+
[0m
|
|
3098
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162607') RETURNING "version"[0m
|
|
3099
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3100
|
+
Migrating to CreateGenevaDriveStepExecutions (20260126162608)
|
|
3101
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3102
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE 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"
|
|
3103
|
+
FOREIGN KEY ("workflow_id")
|
|
3104
|
+
REFERENCES "geneva_drive_workflows" ("id")
|
|
3105
|
+
ON DELETE CASCADE)[0m
|
|
3106
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")[0m
|
|
3107
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")[0m
|
|
3108
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")[0m
|
|
3109
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")[0m
|
|
3110
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")[0m
|
|
3111
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")[0m
|
|
3112
|
+
[1m[35m (0.3ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
|
|
3113
|
+
ON geneva_drive_step_executions (workflow_id)
|
|
3114
|
+
WHERE state IN ('scheduled', 'in_progress');
|
|
3115
|
+
[0m
|
|
3116
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162608') RETURNING "version"[0m
|
|
3117
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3118
|
+
Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260126162609)
|
|
3119
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3120
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)[0m
|
|
3121
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")[0m
|
|
3122
|
+
[1m[35m (0.3ms)[0m [1m[33mUPDATE 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)[0m
|
|
3123
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162609') RETURNING "version"[0m
|
|
3124
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3125
|
+
Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126162610)
|
|
3126
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3127
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162610') RETURNING "version"[0m
|
|
3128
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3129
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_advisory_unlock(5769190355348905590)[0m
|
|
3130
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3131
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3132
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3133
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3134
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3135
|
+
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`.
|
|
3136
|
+
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`.
|
|
3137
|
+
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`.
|
|
3138
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3139
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3140
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3141
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3142
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3143
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3144
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3145
|
+
[1m[35m (90.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "geneva_drive_install_test"[0m
|
|
3146
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3147
|
+
[1m[35m (84.5ms)[0m [1m[35mCREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'[0m
|
|
3148
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
3149
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
|
|
3150
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(5769190355348905590)[0m
|
|
3151
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3152
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3153
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-26 16:26:34.023511', '2026-01-26 16:26:34.023513') RETURNING "key"[0m
|
|
3154
|
+
Migrating to CreateUsers (20241217000000)
|
|
3155
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3156
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE 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)[0m
|
|
3157
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"[0m
|
|
3158
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3159
|
+
Migrating to CreateGenevaDriveWorkflows (20260126162632)
|
|
3160
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3161
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE 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)[0m
|
|
3162
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")[0m
|
|
3163
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")[0m
|
|
3164
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")[0m
|
|
3165
|
+
[1m[35m (0.4ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
|
|
3166
|
+
ON geneva_drive_workflows (type, hero_type, hero_id)
|
|
3167
|
+
WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
|
|
3168
|
+
[0m
|
|
3169
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162632') RETURNING "version"[0m
|
|
3170
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3171
|
+
Migrating to CreateGenevaDriveStepExecutions (20260126162633)
|
|
3172
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3173
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE 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"
|
|
3174
|
+
FOREIGN KEY ("workflow_id")
|
|
3175
|
+
REFERENCES "geneva_drive_workflows" ("id")
|
|
3176
|
+
ON DELETE CASCADE)[0m
|
|
3177
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")[0m
|
|
3178
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")[0m
|
|
3179
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")[0m
|
|
3180
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")[0m
|
|
3181
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")[0m
|
|
3182
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")[0m
|
|
3183
|
+
[1m[35m (0.3ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
|
|
3184
|
+
ON geneva_drive_step_executions (workflow_id)
|
|
3185
|
+
WHERE state IN ('scheduled', 'in_progress');
|
|
3186
|
+
[0m
|
|
3187
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162633') RETURNING "version"[0m
|
|
3188
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3189
|
+
Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260126162634)
|
|
3190
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3191
|
+
[1m[35m (0.1ms)[0m [1m[35mALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)[0m
|
|
3192
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")[0m
|
|
3193
|
+
[1m[35m (0.3ms)[0m [1m[33mUPDATE 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)[0m
|
|
3194
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162634') RETURNING "version"[0m
|
|
3195
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3196
|
+
Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126162635)
|
|
3197
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3198
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126162635') RETURNING "version"[0m
|
|
3199
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3200
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(5769190355348905590)[0m
|
|
3201
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3202
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3203
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3204
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3205
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3206
|
+
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`.
|
|
3207
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3208
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3209
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3210
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3211
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3212
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3213
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3214
|
+
[1m[35m (108.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "geneva_drive_install_test"[0m
|
|
3215
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3216
|
+
[1m[35m (138.6ms)[0m [1m[35mCREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'[0m
|
|
3217
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
3218
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE 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)[0m
|
|
3219
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(5769190355348905590)[0m
|
|
3220
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3221
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3222
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-26 16:35:15.720150', '2026-01-26 16:35:15.720152') RETURNING "key"[0m
|
|
3223
|
+
Migrating to CreateUsers (20241217000000)
|
|
3224
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3225
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE 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)[0m
|
|
3226
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"[0m
|
|
3227
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
3228
|
+
Migrating to CreateGenevaDriveWorkflows (20260126163514)
|
|
3229
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3230
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE 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)[0m
|
|
3231
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")[0m
|
|
3232
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")[0m
|
|
3233
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")[0m
|
|
3234
|
+
[1m[35m (0.4ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
|
|
3235
|
+
ON geneva_drive_workflows (type, hero_type, hero_id)
|
|
3236
|
+
WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
|
|
3237
|
+
[0m
|
|
3238
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163514') RETURNING "version"[0m
|
|
3239
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3240
|
+
Migrating to CreateGenevaDriveStepExecutions (20260126163515)
|
|
3241
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3242
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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"
|
|
3243
|
+
FOREIGN KEY ("workflow_id")
|
|
3244
|
+
REFERENCES "geneva_drive_workflows" ("id")
|
|
3245
|
+
ON DELETE CASCADE)[0m
|
|
3246
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")[0m
|
|
3247
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")[0m
|
|
3248
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")[0m
|
|
3249
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")[0m
|
|
3250
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")[0m
|
|
3251
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")[0m
|
|
3252
|
+
[1m[35m (0.4ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
|
|
3253
|
+
ON geneva_drive_step_executions (workflow_id)
|
|
3254
|
+
WHERE state IN ('scheduled', 'in_progress');
|
|
3255
|
+
[0m
|
|
3256
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163515') RETURNING "version"[0m
|
|
3257
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3258
|
+
Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260126163516)
|
|
3259
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3260
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)[0m
|
|
3261
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")[0m
|
|
3262
|
+
[1m[35m (0.4ms)[0m [1m[33mUPDATE 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)[0m
|
|
3263
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163516') RETURNING "version"[0m
|
|
3264
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3265
|
+
Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126163517)
|
|
3266
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3267
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163517') RETURNING "version"[0m
|
|
3268
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3269
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(5769190355348905590)[0m
|
|
3270
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3271
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3272
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3273
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3274
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3275
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3276
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3277
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3278
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3279
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3280
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3281
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3282
|
+
[1m[35m (93.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "geneva_drive_install_test"[0m
|
|
3283
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3284
|
+
[1m[35m (90.3ms)[0m [1m[35mCREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'[0m
|
|
3285
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
3286
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
|
|
3287
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(5769190355348905590)[0m
|
|
3288
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3289
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3290
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-26 16:35:48.254875', '2026-01-26 16:35:48.254877') RETURNING "key"[0m
|
|
3291
|
+
Migrating to CreateUsers (20241217000000)
|
|
3292
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3293
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE 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)[0m
|
|
3294
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"[0m
|
|
3295
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3296
|
+
Migrating to CreateGenevaDriveWorkflows (20260126163547)
|
|
3297
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3298
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
|
|
3299
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")[0m
|
|
3300
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")[0m
|
|
3301
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")[0m
|
|
3302
|
+
[1m[35m (0.4ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
|
|
3303
|
+
ON geneva_drive_workflows (type, hero_type, hero_id)
|
|
3304
|
+
WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
|
|
3305
|
+
[0m
|
|
3306
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163547') RETURNING "version"[0m
|
|
3307
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3308
|
+
Migrating to CreateGenevaDriveStepExecutions (20260126163548)
|
|
3309
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3310
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE 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"
|
|
3311
|
+
FOREIGN KEY ("workflow_id")
|
|
3312
|
+
REFERENCES "geneva_drive_workflows" ("id")
|
|
3313
|
+
ON DELETE CASCADE)[0m
|
|
3314
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")[0m
|
|
3315
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")[0m
|
|
3316
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")[0m
|
|
3317
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")[0m
|
|
3318
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")[0m
|
|
3319
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")[0m
|
|
3320
|
+
[1m[35m (0.3ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
|
|
3321
|
+
ON geneva_drive_step_executions (workflow_id)
|
|
3322
|
+
WHERE state IN ('scheduled', 'in_progress');
|
|
3323
|
+
[0m
|
|
3324
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163548') RETURNING "version"[0m
|
|
3325
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3326
|
+
Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260126163549)
|
|
3327
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3328
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)[0m
|
|
3329
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")[0m
|
|
3330
|
+
[1m[35m (0.4ms)[0m [1m[33mUPDATE 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)[0m
|
|
3331
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163549') RETURNING "version"[0m
|
|
3332
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3333
|
+
Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126163550)
|
|
3334
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3335
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126163550') RETURNING "version"[0m
|
|
3336
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3337
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(5769190355348905590)[0m
|
|
3338
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3339
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3340
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3341
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3342
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3343
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3344
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3345
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3346
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3347
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3348
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3349
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
3350
|
+
[1m[35m (88.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "geneva_drive_install_test"[0m
|
|
3351
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3352
|
+
[1m[35m (92.7ms)[0m [1m[35mCREATE DATABASE "geneva_drive_install_test" ENCODING = 'unicode'[0m
|
|
3353
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
3354
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE 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)[0m
|
|
3355
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(5769190355348905590)[0m
|
|
3356
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3357
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
3358
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-01-26 16:40:26.675124', '2026-01-26 16:40:26.675126') RETURNING "key"[0m
|
|
3359
|
+
Migrating to CreateUsers (20241217000000)
|
|
3360
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3361
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE 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)[0m
|
|
3362
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241217000000') RETURNING "version"[0m
|
|
3363
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT[0m
|
|
3364
|
+
Migrating to CreateGenevaDriveWorkflows (20260126164025)
|
|
3365
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3366
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
|
|
3367
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_type" ON "geneva_drive_workflows" ("type")[0m
|
|
3368
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_state" ON "geneva_drive_workflows" ("state")[0m
|
|
3369
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_workflows_on_hero_type_and_hero_id" ON "geneva_drive_workflows" ("hero_type", "hero_id")[0m
|
|
3370
|
+
[1m[35m (0.4ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_workflows_unique_ongoing
|
|
3371
|
+
ON geneva_drive_workflows (type, hero_type, hero_id)
|
|
3372
|
+
WHERE state NOT IN ('finished', 'canceled') AND allow_multiple = false;
|
|
3373
|
+
[0m
|
|
3374
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126164025') RETURNING "version"[0m
|
|
3375
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3376
|
+
Migrating to CreateGenevaDriveStepExecutions (20260126164026)
|
|
3377
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3378
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE 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"
|
|
3379
|
+
FOREIGN KEY ("workflow_id")
|
|
3380
|
+
REFERENCES "geneva_drive_workflows" ("id")
|
|
3381
|
+
ON DELETE CASCADE)[0m
|
|
3382
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id" ON "geneva_drive_step_executions" ("workflow_id")[0m
|
|
3383
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_state" ON "geneva_drive_step_executions" ("state")[0m
|
|
3384
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_scheduled_for" ON "geneva_drive_step_executions" ("scheduled_for")[0m
|
|
3385
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_scheduled" ON "geneva_drive_step_executions" ("state", "scheduled_for")[0m
|
|
3386
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "idx_on_workflow_id_created_at_af16a14fb2" ON "geneva_drive_step_executions" ("workflow_id", "created_at")[0m
|
|
3387
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_workflow_id_and_state" ON "geneva_drive_step_executions" ("workflow_id", "state")[0m
|
|
3388
|
+
[1m[35m (0.3ms)[0m [1m[35m CREATE UNIQUE INDEX index_geneva_drive_step_executions_one_active
|
|
3389
|
+
ON geneva_drive_step_executions (workflow_id)
|
|
3390
|
+
WHERE state IN ('scheduled', 'in_progress');
|
|
3391
|
+
[0m
|
|
3392
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126164026') RETURNING "version"[0m
|
|
3393
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3394
|
+
Migrating to AddFinishedAtToGenevaDriveStepExecutions (20260126164027)
|
|
3395
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
3396
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "geneva_drive_step_executions" ADD "finished_at" timestamp(6)[0m
|
|
3397
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_geneva_drive_step_executions_on_finished_at" ON "geneva_drive_step_executions" ("finished_at")[0m
|
|
3398
|
+
[1m[35m (0.4ms)[0m [1m[33mUPDATE 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)[0m
|
|
3399
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126164027') RETURNING "version"[0m
|
|
3400
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
3401
|
+
Migrating to AddErrorClassNameToGenevaDriveStepExecutions (20260126164028)
|
|
3402
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
3403
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20260126164028') RETURNING "version"[0m
|
|
3404
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
3405
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(5769190355348905590)[0m
|
|
3406
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
3407
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3408
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
3409
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
3410
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO "$user", public[0m
|
|
@@ -259,15 +259,16 @@ class FlowControlTest < ActiveSupport::TestCase
|
|
|
259
259
|
assert_equal "finished", workflow.state
|
|
260
260
|
end
|
|
261
261
|
|
|
262
|
-
test "external skip!
|
|
262
|
+
test "external skip! on paused workflow skips current step and resumes" do
|
|
263
263
|
workflow = SimpleWorkflow.create!(hero: @user)
|
|
264
264
|
workflow.pause!
|
|
265
|
+
assert_equal "step_one", workflow.next_step_name
|
|
265
266
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
end
|
|
267
|
+
workflow.skip!
|
|
268
|
+
workflow.reload
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
assert_equal "ready", workflow.state
|
|
271
|
+
assert_equal "step_two", workflow.next_step_name
|
|
271
272
|
end
|
|
272
273
|
|
|
273
274
|
test "external skip! raises error for finished workflow" do
|