stateful_models 0.0.4 → 0.0.5
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 +5 -0
- data/README.md +7 -1
- data/lib/has_states/base.rb +1 -1
- data/lib/has_states/version.rb +1 -1
- data/spec/dummy/Gemfile.lock +1 -1
- data/spec/dummy/log/development.log +5 -0
- data/spec/dummy/log/test.log +601 -0
- metadata +4 -4
- /data/spec/generators/templates/db/migrate/{20250322001530_create_has_states_states.rb → 20250414184759_create_has_states_states.rb} +0 -0
- /data/spec/generators/templates/db/migrate/{20250322001530_create_indexes_on_has_states_states.rb → 20250414184759_create_indexes_on_has_states_states.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea223431133002302cf358288dc451d095400476158ae0ec3ecbca053ca83ab9
|
4
|
+
data.tar.gz: 16e622543d2566a058a0d95f5e92fcd40f050639e7e46adf570da7d6d1a2b33c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1833b2d00efb841019aa486993080b7c57fdeb3c521dc0110fd39c9d999bf83b2027f9a256094cfcc0a8a50bf1390c71c1fde0254d0adb24f9c34dcd136f144f
|
7
|
+
data.tar.gz: 50d3df26b5d77592237a73ad84ec68807e2650250c802db1d50e7dd8b90d2753aba1fb021492fe629dbc358f2ea2299898bd6cca91c32098297bb959ea475041
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -85,8 +85,10 @@ state = user.add_state('kyc', status: 'pending', metadata: {
|
|
85
85
|
notes: 'Awaiting document submission'
|
86
86
|
})
|
87
87
|
|
88
|
-
#
|
88
|
+
# Load state(s) also by name as methods on the record
|
89
89
|
current_kyc = user.current_state('kyc')
|
90
|
+
current_kyc = user.kyc # Returns most recent state of type kyc if multiple states of the same type exist
|
91
|
+
all_kyc = user.kycs
|
90
92
|
|
91
93
|
# Predicate methods are generated for every status.
|
92
94
|
current_kyc.pending? # => true
|
@@ -236,6 +238,10 @@ HasStates lets you inherit from the `HasStates::Base` class to create custom sta
|
|
236
238
|
```ruby
|
237
239
|
class MyState < HasStates::Base
|
238
240
|
# Add validations or methods
|
241
|
+
|
242
|
+
def do_something
|
243
|
+
# Custom method on state
|
244
|
+
end
|
239
245
|
end
|
240
246
|
```
|
241
247
|
|
data/lib/has_states/base.rb
CHANGED
@@ -13,7 +13,7 @@ module HasStates
|
|
13
13
|
validate :state_limit_not_exceeded, on: :create
|
14
14
|
validate :metadata_conforms_to_schema, if: -> { metadata.present? }
|
15
15
|
|
16
|
-
|
16
|
+
after_commit :trigger_callbacks, if: :saved_change_to_status?
|
17
17
|
|
18
18
|
private
|
19
19
|
|
data/lib/has_states/version.rb
CHANGED
data/spec/dummy/Gemfile.lock
CHANGED
@@ -345,3 +345,8 @@ Migrating to CreateIndexesOnHasStatesStates (20250114175939)
|
|
345
345
|
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
346
346
|
[1m[36mHasStates::State Load (0.3ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = 'HasStates::State' ORDER BY "has_states_states"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
347
347
|
[1m[36mHasStates::State Load (0.4ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = 'HasStates::State' ORDER BY "has_states_states"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
348
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
349
|
+
[1m[36mHasStates::Base Load (0.3ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'kyc' ORDER BY "has_states_states"."created_at" DESC LIMIT 1 /*application='Dummy'*/[0m
|
350
|
+
[1m[36mHasStates::Base Load (0.6ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'kyc' /* loading for pp */ ORDER BY "has_states_states"."created_at" DESC LIMIT 11 /*application='Dummy'*/[0m
|
351
|
+
[1m[36mHasStates::Base Load (0.4ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'kyc' ORDER BY "has_states_states"."created_at" DESC LIMIT 1 /*application='Dummy'*/[0m
|
352
|
+
[1m[36mHasStates::Base Load (0.3ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'onboarding' ORDER BY "has_states_states"."created_at" DESC LIMIT 1 /*application='Dummy'*/[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -51308,3 +51308,604 @@ Migrating to CreateIndexesOnHasStatesStates (20250114175939)
|
|
51308
51308
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51309
51309
|
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states"[0m
|
51310
51310
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51311
|
+
[1m[35mSQL (3.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
51312
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
51313
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
51314
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
51315
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
51316
|
+
[1m[35m (6.4ms)[0m [1m[31mDELETE FROM "users"[0m
|
51317
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
51318
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
51319
|
+
[1m[35m (0.3ms)[0m [1m[35mTRUNCATE TABLE "has_states_states"[0m
|
51320
|
+
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM "has_states_states"[0m
|
51321
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
51322
|
+
[1m[35m (0.0ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'has_states_states';[0m
|
51323
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "companies"[0m
|
51324
|
+
[1m[35m (0.0ms)[0m [1m[31mDELETE FROM "companies"[0m
|
51325
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
51326
|
+
[1m[35m (0.0ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'companies';[0m
|
51327
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
51328
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
51329
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51330
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51331
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 1"], ["created_at", "2025-04-14 18:47:59.830784"], ["updated_at", "2025-04-14 18:47:59.830784"]]
|
51332
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51333
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51334
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.839250"], ["updated_at", "2025-04-14 18:47:59.839250"]]
|
51335
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51336
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51337
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51338
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51339
|
+
[1m[36mUser Create (0.8ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 2"], ["created_at", "2025-04-14 18:47:59.851973"], ["updated_at", "2025-04-14 18:47:59.851973"]]
|
51340
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51341
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51342
|
+
[1m[36mHasStates::State Create (0.3ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.854306"], ["updated_at", "2025-04-14 18:47:59.854306"]]
|
51343
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51344
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51345
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51346
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51347
|
+
[1m[36mUser Create (1.3ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 3"], ["created_at", "2025-04-14 18:47:59.860835"], ["updated_at", "2025-04-14 18:47:59.860835"]]
|
51348
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51349
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51350
|
+
[1m[36mHasStates::State Create (0.3ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.878222"], ["updated_at", "2025-04-14 18:47:59.878222"]]
|
51351
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51352
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51353
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.880559"], ["updated_at", "2025-04-14 18:47:59.880559"]]
|
51354
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51355
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51356
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.881480"], ["updated_at", "2025-04-14 18:47:59.881480"]]
|
51357
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51358
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "no_limit_state"]]
|
51359
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51360
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51361
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51362
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 4"], ["created_at", "2025-04-14 18:47:59.885205"], ["updated_at", "2025-04-14 18:47:59.885205"]]
|
51363
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51364
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51365
|
+
[1m[36mHasStates::Base Count (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51366
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "double_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.889049"], ["updated_at", "2025-04-14 18:47:59.889049"]]
|
51367
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51368
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51369
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51370
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "double_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.896137"], ["updated_at", "2025-04-14 18:47:59.896137"]]
|
51371
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51372
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51373
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51374
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51375
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51376
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 5"], ["created_at", "2025-04-14 18:47:59.898955"], ["updated_at", "2025-04-14 18:47:59.898955"]]
|
51377
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51378
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51379
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51380
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "double_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.900802"], ["updated_at", "2025-04-14 18:47:59.900802"]]
|
51381
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51382
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51383
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51384
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "double_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.902389"], ["updated_at", "2025-04-14 18:47:59.902389"]]
|
51385
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51386
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51387
|
+
[1m[36mHasStates::Base Count (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51388
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
51389
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51390
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51391
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51392
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 6"], ["created_at", "2025-04-14 18:47:59.916825"], ["updated_at", "2025-04-14 18:47:59.916825"]]
|
51393
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51394
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51395
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
|
51396
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "single_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.923115"], ["updated_at", "2025-04-14 18:47:59.923115"]]
|
51397
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51398
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51399
|
+
[1m[36mHasStates::Base Count (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
|
51400
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
51401
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51402
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51403
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51404
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 7"], ["created_at", "2025-04-14 18:47:59.931086"], ["updated_at", "2025-04-14 18:47:59.931086"]]
|
51405
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51406
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51407
|
+
[1m[36mHasStates::Base Count (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51408
|
+
[1m[36mHasStates::State Create (0.3ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "double_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.934351"], ["updated_at", "2025-04-14 18:47:59.934351"]]
|
51409
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51410
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51411
|
+
[1m[36mHasStates::Base Count (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51412
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "double_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.937772"], ["updated_at", "2025-04-14 18:47:59.937772"]]
|
51413
|
+
[1m[36mTRANSACTION (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51414
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51415
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.940237"], ["updated_at", "2025-04-14 18:47:59.940237"]]
|
51416
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51417
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51418
|
+
[1m[36mHasStates::State Create (0.3ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.942512"], ["updated_at", "2025-04-14 18:47:59.942512"]]
|
51419
|
+
[1m[36mTRANSACTION (1.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51420
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51421
|
+
[1m[36mHasStates::State Create (0.9ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.947367"], ["updated_at", "2025-04-14 18:47:59.947367"]]
|
51422
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51423
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51424
|
+
[1m[36mHasStates::Base Count (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
|
51425
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "single_limit_state"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.950318"], ["updated_at", "2025-04-14 18:47:59.950318"]]
|
51426
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51427
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51428
|
+
[1m[36mHasStates::Base Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "no_limit_state"]]
|
51429
|
+
[1m[36mHasStates::Base Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
|
51430
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51431
|
+
[1m[36mHasStates::Base Count (1.2ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
|
51432
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
51433
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51434
|
+
[1m[36mHasStates::Base Count (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
|
51435
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
51436
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51437
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_limit_state"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.959742"], ["updated_at", "2025-04-14 18:47:59.959742"]]
|
51438
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51439
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51440
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51441
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51442
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 8"], ["created_at", "2025-04-14 18:47:59.961956"], ["updated_at", "2025-04-14 18:47:59.961956"]]
|
51443
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51444
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51445
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "schema_enabled_state"], ["status", "pending"], ["metadata", "{\"name\":\"John Doe\",\"age\":25}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.990898"], ["updated_at", "2025-04-14 18:47:59.990898"]]
|
51446
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51447
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51448
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51449
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51450
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 9"], ["created_at", "2025-04-14 18:47:59.994385"], ["updated_at", "2025-04-14 18:47:59.994385"]]
|
51451
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51452
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51453
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "no_schema_state"], ["status", "active"], ["metadata", "{\"anything\":\"goes\",\"nested\":{\"data\":\"is fine too\"},\"numbers\":[1,2,3]}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:47:59.995875"], ["updated_at", "2025-04-14 18:47:59.995875"]]
|
51454
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51455
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51456
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51457
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51458
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51459
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51460
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51461
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51462
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51463
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51464
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51465
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51466
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51467
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51468
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 21"], ["created_at", "2025-04-14 18:48:00.014677"], ["updated_at", "2025-04-14 18:48:00.014677"]]
|
51469
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51470
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51471
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.015466"], ["updated_at", "2025-04-14 18:48:00.015466"]]
|
51472
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51473
|
+
[1m[36mHasStates::State Load (0.9ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = ? AND "has_states_states"."state_type" = ?[0m [["type", "HasStates::State"], ["state_type", "kyc"]]
|
51474
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51475
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51476
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51477
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 22"], ["created_at", "2025-04-14 18:48:00.019399"], ["updated_at", "2025-04-14 18:48:00.019399"]]
|
51478
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51479
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51480
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.021044"], ["updated_at", "2025-04-14 18:48:00.021044"]]
|
51481
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51482
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51483
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51484
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51485
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 23"], ["created_at", "2025-04-14 18:48:00.024214"], ["updated_at", "2025-04-14 18:48:00.024214"]]
|
51486
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51487
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51488
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.025041"], ["updated_at", "2025-04-14 18:48:00.025041"]]
|
51489
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51490
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51491
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51492
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51493
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 24"], ["created_at", "2025-04-14 18:48:00.026363"], ["updated_at", "2025-04-14 18:48:00.026363"]]
|
51494
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51495
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51496
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.026765"], ["updated_at", "2025-04-14 18:48:00.026765"]]
|
51497
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51498
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51499
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51500
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51501
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 25"], ["created_at", "2025-04-14 18:48:00.027865"], ["updated_at", "2025-04-14 18:48:00.027865"]]
|
51502
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51503
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51504
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.029265"], ["updated_at", "2025-04-14 18:48:00.029265"]]
|
51505
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51506
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51507
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51508
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51509
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 26"], ["created_at", "2025-04-14 18:48:00.030082"], ["updated_at", "2025-04-14 18:48:00.030082"]]
|
51510
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51511
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51512
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"documents\":{\"passport\":{\"status\":\"rejected\",\"reason\":\"expired\"},\"utility_bill\":{\"status\":\"pending\"}}}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.031053"], ["updated_at", "2025-04-14 18:48:00.031053"]]
|
51513
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51514
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51515
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51516
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51517
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 27"], ["created_at", "2025-04-14 18:48:00.031969"], ["updated_at", "2025-04-14 18:48:00.031969"]]
|
51518
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51519
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51520
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"missing_documents\":[\"passport\",\"utility_bill\"],\"review_history\":[{\"date\":\"2024-01-01\",\"status\":\"rejected\"},{\"date\":\"2024-01-02\",\"status\":\"approved\"}]}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.032988"], ["updated_at", "2025-04-14 18:48:00.032988"]]
|
51521
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51522
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51523
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51524
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51525
|
+
[1m[36mUser Create (0.3ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 28"], ["created_at", "2025-04-14 18:48:00.034181"], ["updated_at", "2025-04-14 18:48:00.034181"]]
|
51526
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51527
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51528
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"string_value\":\"test\",\"integer_value\":42,\"float_value\":42.5,\"boolean_value\":true,\"null_value\":null,\"date_value\":\"2024-01-01\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.037106"], ["updated_at", "2025-04-14 18:48:00.037106"]]
|
51529
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51530
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51531
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51532
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51533
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 29"], ["created_at", "2025-04-14 18:48:00.038533"], ["updated_at", "2025-04-14 18:48:00.038533"]]
|
51534
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51535
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51536
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.039881"], ["updated_at", "2025-04-14 18:48:00.039881"]]
|
51537
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51538
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51539
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51540
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51541
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 30"], ["created_at", "2025-04-14 18:48:00.041334"], ["updated_at", "2025-04-14 18:48:00.041334"]]
|
51542
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51543
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51544
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.042178"], ["updated_at", "2025-04-14 18:48:00.042178"]]
|
51545
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51546
|
+
[1m[36mHasStates::State Load (0.1ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = ? AND "has_states_states"."id" = ? LIMIT ?[0m [["type", "HasStates::State"], ["id", 1], ["LIMIT", 1]]
|
51547
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51548
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51549
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51550
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 31"], ["created_at", "2025-04-14 18:48:00.045270"], ["updated_at", "2025-04-14 18:48:00.045270"]]
|
51551
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51552
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51553
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.046488"], ["updated_at", "2025-04-14 18:48:00.046488"]]
|
51554
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51555
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51556
|
+
[1m[36mHasStates::State Update (0.2ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.047624"], ["id", 1]]
|
51557
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51558
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51559
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Onboarded User"], ["updated_at", "2025-04-14 18:48:00.053685"], ["id", 1]]
|
51560
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51561
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51562
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51563
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51564
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51565
|
+
[1m[36mUser Create (1.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 32"], ["created_at", "2025-04-14 18:48:00.057667"], ["updated_at", "2025-04-14 18:48:00.057667"]]
|
51566
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51567
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51568
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.059899"], ["updated_at", "2025-04-14 18:48:00.059899"]]
|
51569
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51570
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51571
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Onboarded User"], ["updated_at", "2025-04-14 18:48:00.060655"], ["id", 1]]
|
51572
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51573
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51574
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Original Name"], ["updated_at", "2025-04-14 18:48:00.061304"], ["id", 1]]
|
51575
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51576
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51577
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "pending"], ["updated_at", "2025-04-14 18:48:00.061605"], ["id", 1]]
|
51578
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51579
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51580
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51581
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51582
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51583
|
+
[1m[36mUser Create (0.5ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 33"], ["created_at", "2025-04-14 18:48:00.063671"], ["updated_at", "2025-04-14 18:48:00.063671"]]
|
51584
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51585
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51586
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.065385"], ["updated_at", "2025-04-14 18:48:00.065385"]]
|
51587
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51588
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51589
|
+
[1m[36mHasStates::State Update (0.2ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.066018"], ["id", 1]]
|
51590
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51591
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51592
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Execution 1"], ["updated_at", "2025-04-14 18:48:00.067097"], ["id", 1]]
|
51593
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51594
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51595
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51596
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.069602"], ["updated_at", "2025-04-14 18:48:00.069602"]]
|
51597
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51598
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51599
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.070265"], ["id", 2]]
|
51600
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51601
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51602
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Execution 2"], ["updated_at", "2025-04-14 18:48:00.071842"], ["id", 1]]
|
51603
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51604
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51605
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51606
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Final Name"], ["updated_at", "2025-04-14 18:48:00.073965"], ["id", 1]]
|
51607
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51608
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51609
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.074971"], ["updated_at", "2025-04-14 18:48:00.074971"]]
|
51610
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51611
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51612
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.077447"], ["id", 3]]
|
51613
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51614
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51615
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51616
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51617
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51618
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 34"], ["created_at", "2025-04-14 18:48:00.078855"], ["updated_at", "2025-04-14 18:48:00.078855"]]
|
51619
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51620
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51621
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.081296"], ["updated_at", "2025-04-14 18:48:00.081296"]]
|
51622
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51623
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51624
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.081804"], ["id", 1]]
|
51625
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51626
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51627
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Execution 1"], ["updated_at", "2025-04-14 18:48:00.082169"], ["id", 1]]
|
51628
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51629
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51630
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51631
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.083716"], ["updated_at", "2025-04-14 18:48:00.083716"]]
|
51632
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51633
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51634
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.084476"], ["id", 2]]
|
51635
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51636
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51637
|
+
[1m[36mUser Update (0.0ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Execution 2"], ["updated_at", "2025-04-14 18:48:00.084927"], ["id", 1]]
|
51638
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51639
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51640
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51641
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.086364"], ["updated_at", "2025-04-14 18:48:00.086364"]]
|
51642
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51643
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51644
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.087244"], ["id", 3]]
|
51645
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51646
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51647
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Execution 3"], ["updated_at", "2025-04-14 18:48:00.088154"], ["id", 1]]
|
51648
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51649
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51650
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51651
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51652
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51653
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 35"], ["created_at", "2025-04-14 18:48:00.089627"], ["updated_at", "2025-04-14 18:48:00.089627"]]
|
51654
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51655
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51656
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.090567"], ["updated_at", "2025-04-14 18:48:00.090567"]]
|
51657
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51658
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51659
|
+
[1m[36mHasStates::State Update (0.1ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ?[0m [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.091127"], ["id", 1]]
|
51660
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51661
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51662
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["name", "Executed"], ["updated_at", "2025-04-14 18:48:00.091753"], ["id", 1]]
|
51663
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51664
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51665
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51666
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51667
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 36"], ["created_at", "2025-04-14 18:48:00.092687"], ["updated_at", "2025-04-14 18:48:00.092687"]]
|
51668
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51669
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51670
|
+
[1m[36mKYCState Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "KYCState"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"document_type\":\"passport\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.099696"], ["updated_at", "2025-04-14 18:48:00.099696"]]
|
51671
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51672
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51673
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51674
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51675
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 37"], ["created_at", "2025-04-14 18:48:00.104669"], ["updated_at", "2025-04-14 18:48:00.104669"]]
|
51676
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51677
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51678
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51679
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51680
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 38"], ["created_at", "2025-04-14 18:48:00.107639"], ["updated_at", "2025-04-14 18:48:00.107639"]]
|
51681
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51682
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51683
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.108599"], ["updated_at", "2025-04-14 18:48:00.108599"]]
|
51684
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51685
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51686
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51687
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51688
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 39"], ["created_at", "2025-04-14 18:48:00.109947"], ["updated_at", "2025-04-14 18:48:00.109947"]]
|
51689
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51690
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51691
|
+
[1m[36mKYCState Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "KYCState"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"document_type\":\"passport\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.111004"], ["updated_at", "2025-04-14 18:48:00.111004"]]
|
51692
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51693
|
+
[1m[36mHasStates::Base Load (0.1ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51694
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51695
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51696
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51697
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 40"], ["created_at", "2025-04-14 18:48:00.114109"], ["updated_at", "2025-04-14 18:48:00.114109"]]
|
51698
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51699
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51700
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.119230"], ["updated_at", "2025-04-14 18:48:00.119230"]]
|
51701
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51702
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51703
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51704
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51705
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 41"], ["created_at", "2025-04-14 18:48:00.121018"], ["updated_at", "2025-04-14 18:48:00.121018"]]
|
51706
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51707
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51708
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "completed"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.122053"], ["updated_at", "2025-04-14 18:48:00.122053"]]
|
51709
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51710
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51711
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51712
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51713
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 42"], ["created_at", "2025-04-14 18:48:00.124861"], ["updated_at", "2025-04-14 18:48:00.124861"]]
|
51714
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51715
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51716
|
+
[1m[36mHasStates::CustomState Create (0.3ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.132008"], ["updated_at", "2025-04-14 18:48:00.132008"]]
|
51717
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51718
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51719
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51720
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51721
|
+
[1m[36mUser Create (0.3ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 43"], ["created_at", "2025-04-14 18:48:00.152887"], ["updated_at", "2025-04-14 18:48:00.152887"]]
|
51722
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51723
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51724
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51725
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51726
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 44"], ["created_at", "2025-04-14 18:48:00.156998"], ["updated_at", "2025-04-14 18:48:00.156998"]]
|
51727
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51728
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51729
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.158154"], ["updated_at", "2025-04-14 18:48:00.158154"]]
|
51730
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51731
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51732
|
+
[1m[36mHasStates::State Create (0.4ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51733
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51734
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51735
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51736
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51737
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51738
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51739
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51740
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51741
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51742
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51743
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51744
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51745
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51746
|
+
[1m[36mHasStates::Base Load (0.2ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]]
|
51747
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51748
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51749
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51750
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 45"], ["created_at", "2025-04-14 18:48:00.172983"], ["updated_at", "2025-04-14 18:48:00.172983"]]
|
51751
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51752
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51753
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.177193"], ["updated_at", "2025-04-14 18:48:00.177193"]]
|
51754
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51755
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51756
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51757
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51758
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51759
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51760
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51761
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51762
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51763
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51764
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51765
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51766
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51767
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51768
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-13 18:48:00"], ["updated_at", "2025-04-13 18:48:00"]]
|
51769
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51770
|
+
[1m[36mHasStates::Base Load (0.1ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "nonexistent"], ["LIMIT", 1]]
|
51771
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51772
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51773
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51774
|
+
[1m[36mUser Create (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 46"], ["created_at", "2025-04-14 18:48:00.189554"], ["updated_at", "2025-04-14 18:48:00.189554"]]
|
51775
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51776
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51777
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.190856"], ["updated_at", "2025-04-14 18:48:00.190856"]]
|
51778
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51779
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51780
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.192273"], ["updated_at", "2025-04-14 18:48:00.192273"]]
|
51781
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51782
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51783
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.193421"], ["updated_at", "2025-04-14 18:48:00.193421"]]
|
51784
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51785
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51786
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.194217"], ["updated_at", "2025-04-14 18:48:00.194217"]]
|
51787
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51788
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51789
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.194610"], ["updated_at", "2025-04-14 18:48:00.194610"]]
|
51790
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51791
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51792
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.194956"], ["updated_at", "2025-04-14 18:48:00.194956"]]
|
51793
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51794
|
+
[1m[36mHasStates::Base Count (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
|
51795
|
+
[1m[36mHasStates::Base Load (0.1ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
|
51796
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51797
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51798
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51799
|
+
[1m[36mUser Create (0.3ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 47"], ["created_at", "2025-04-14 18:48:00.200173"], ["updated_at", "2025-04-14 18:48:00.200173"]]
|
51800
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51801
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51802
|
+
[1m[36mHasStates::State Create (0.2ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.202361"], ["updated_at", "2025-04-14 18:48:00.202361"]]
|
51803
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51804
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51805
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.203179"], ["updated_at", "2025-04-14 18:48:00.203179"]]
|
51806
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51807
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51808
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.204427"], ["updated_at", "2025-04-14 18:48:00.204427"]]
|
51809
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51810
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51811
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.205458"], ["updated_at", "2025-04-14 18:48:00.205458"]]
|
51812
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51813
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51814
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.206003"], ["updated_at", "2025-04-14 18:48:00.206003"]]
|
51815
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51816
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51817
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.206681"], ["updated_at", "2025-04-14 18:48:00.206681"]]
|
51818
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51819
|
+
[1m[36mHasStates::Base Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "nonexistent"], ["LIMIT", 1]]
|
51820
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51821
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51822
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51823
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 48"], ["created_at", "2025-04-14 18:48:00.210407"], ["updated_at", "2025-04-14 18:48:00.210407"]]
|
51824
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51825
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51826
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.212432"], ["updated_at", "2025-04-14 18:48:00.212432"]]
|
51827
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51828
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51829
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.212979"], ["updated_at", "2025-04-14 18:48:00.212979"]]
|
51830
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51831
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51832
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.213598"], ["updated_at", "2025-04-14 18:48:00.213598"]]
|
51833
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51834
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51835
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.213973"], ["updated_at", "2025-04-14 18:48:00.213973"]]
|
51836
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51837
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51838
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51839
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51840
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 49"], ["created_at", "2025-04-14 18:48:00.215058"], ["updated_at", "2025-04-14 18:48:00.215058"]]
|
51841
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51842
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51843
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.215583"], ["updated_at", "2025-04-14 18:48:00.215583"]]
|
51844
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51845
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51846
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.216038"], ["updated_at", "2025-04-14 18:48:00.216038"]]
|
51847
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51848
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51849
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.216817"], ["updated_at", "2025-04-14 18:48:00.216817"]]
|
51850
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51851
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51852
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.217223"], ["updated_at", "2025-04-14 18:48:00.217223"]]
|
51853
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51854
|
+
[1m[36mHasStates::Base Load (0.1ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]]
|
51855
|
+
[1m[36mHasStates::Base Load (0.1ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]]
|
51856
|
+
[1m[36mHasStates::Base Load (0.0ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["LIMIT", 1]]
|
51857
|
+
[1m[36mHasStates::Base Load (0.0ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["LIMIT", 1]]
|
51858
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51859
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51860
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51861
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 50"], ["created_at", "2025-04-14 18:48:00.221428"], ["updated_at", "2025-04-14 18:48:00.221428"]]
|
51862
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51863
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51864
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.222397"], ["updated_at", "2025-04-14 18:48:00.222397"]]
|
51865
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51866
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51867
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.222852"], ["updated_at", "2025-04-14 18:48:00.222852"]]
|
51868
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51869
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51870
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.223215"], ["updated_at", "2025-04-14 18:48:00.223215"]]
|
51871
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51872
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51873
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.223566"], ["updated_at", "2025-04-14 18:48:00.223566"]]
|
51874
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51875
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51876
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51877
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51878
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 51"], ["created_at", "2025-04-14 18:48:00.224462"], ["updated_at", "2025-04-14 18:48:00.224462"]]
|
51879
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51880
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51881
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.227574"], ["updated_at", "2025-04-14 18:48:00.227574"]]
|
51882
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51883
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51884
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.228268"], ["updated_at", "2025-04-14 18:48:00.228268"]]
|
51885
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51886
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51887
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.228700"], ["updated_at", "2025-04-14 18:48:00.228700"]]
|
51888
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51889
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51890
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.229033"], ["updated_at", "2025-04-14 18:48:00.229033"]]
|
51891
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51892
|
+
[1m[36mHasStates::Base Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
|
51893
|
+
[1m[36mHasStates::Base Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"]]
|
51894
|
+
[1m[36mHasStates::Base Load (0.0ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
|
51895
|
+
[1m[36mHasStates::Base Load (0.0ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? ORDER BY "has_states_states"."created_at" DESC[0m [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"]]
|
51896
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
51897
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
51898
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51899
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id"[0m [["name", "User 52"], ["created_at", "2025-04-14 18:48:00.231933"], ["updated_at", "2025-04-14 18:48:00.231933"]]
|
51900
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51901
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51902
|
+
[1m[36mHasStates::State Create (0.1ms)[0m [1m[32mINSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["type", "HasStates::State"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-04-14 18:48:00.232467"], ["updated_at", "2025-04-14 18:48:00.232467"]]
|
51903
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51904
|
+
[1m[36mHasStates::Base Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states"[0m
|
51905
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51906
|
+
[1m[36mHasStates::Base Load (0.2ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ?[0m [["stateable_id", 1], ["stateable_type", "User"]]
|
51907
|
+
[1m[36mHasStates::State Destroy (0.0ms)[0m [1m[31mDELETE FROM "has_states_states" WHERE "has_states_states"."id" = ?[0m [["id", 1]]
|
51908
|
+
[1m[36mUser Destroy (0.0ms)[0m [1m[31mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
51909
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51910
|
+
[1m[36mHasStates::Base Count (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "has_states_states"[0m
|
51911
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stateful_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Scholl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
@@ -98,8 +98,8 @@ files:
|
|
98
98
|
- spec/factories/has_states.rb
|
99
99
|
- spec/generators/has_states/install_generator_spec.rb
|
100
100
|
- spec/generators/templates/config/initializers/has_states.rb
|
101
|
-
- spec/generators/templates/db/migrate/
|
102
|
-
- spec/generators/templates/db/migrate/
|
101
|
+
- spec/generators/templates/db/migrate/20250414184759_create_has_states_states.rb
|
102
|
+
- spec/generators/templates/db/migrate/20250414184759_create_indexes_on_has_states_states.rb
|
103
103
|
- spec/has_states/callback_spec.rb
|
104
104
|
- spec/has_states/configuration_spec.rb
|
105
105
|
- spec/has_states/state_limit_spec.rb
|
File without changes
|