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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78629281fcf54961d33cb8c85161df6a357b432b87bff61d5ff769d5491a7667
4
- data.tar.gz: 63f984222fb3aad0f086f4d65f263e8134b0243f7186ea5c8818a4ab046890bc
3
+ metadata.gz: ea223431133002302cf358288dc451d095400476158ae0ec3ecbca053ca83ab9
4
+ data.tar.gz: 16e622543d2566a058a0d95f5e92fcd40f050639e7e46adf570da7d6d1a2b33c
5
5
  SHA512:
6
- metadata.gz: 802ccd260a0560dbb9a4968641230c8d3c4452fd81c856f1dcc500e7f37f0d1e29eb9613f7c4581cdcc18a3ac6e9f1017662cf9790874562228b133d1bd8538b
7
- data.tar.gz: 3db09b9db294f748590d3800175512fc555eb84296799b7242479f4727e33088e7d6dd1d0457ef586b1bb043912415ed3cbee95b7210e129802330d6e589d04b
6
+ metadata.gz: 1833b2d00efb841019aa486993080b7c57fdeb3c521dc0110fd39c9d999bf83b2027f9a256094cfcc0a8a50bf1390c71c1fde0254d0adb24f9c34dcd136f144f
7
+ data.tar.gz: 50d3df26b5d77592237a73ad84ec68807e2650250c802db1d50e7dd8b90d2753aba1fb021492fe629dbc358f2ea2299898bd6cca91c32098297bb959ea475041
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## Released
2
2
 
3
+ ## [0.0.5] - 2025-04-14
4
+
5
+ ## Change
6
+ - Changed callback action on base class from `after_save` to `after_commit`
7
+
3
8
  ## [0.0.4] - 2025-03-21
4
9
 
5
10
  ### Added
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
- # Check current state
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
 
@@ -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
- after_save :trigger_callbacks, if: :saved_change_to_status?
16
+ after_commit :trigger_callbacks, if: :saved_change_to_status?
17
17
 
18
18
  private
19
19
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HasStates
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- stateful_models (0.0.3)
4
+ stateful_models (0.0.4)
5
5
  json-schema
6
6
 
7
7
  GEM
@@ -345,3 +345,8 @@ Migrating to CreateIndexesOnHasStatesStates (20250114175939)
345
345
  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
346
346
  HasStates::State Load (0.3ms) SELECT "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'*/
347
347
  HasStates::State Load (0.4ms) SELECT "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'*/
348
+ User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/
349
+ HasStates::Base Load (0.3ms) SELECT "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'*/
350
+ HasStates::Base Load (0.6ms) SELECT "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'*/
351
+ HasStates::Base Load (0.4ms) SELECT "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'*/
352
+ HasStates::Base Load (0.3ms) SELECT "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'*/
@@ -51308,3 +51308,604 @@ Migrating to CreateIndexesOnHasStatesStates (20250114175939)
51308
51308
  TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51309
51309
  HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states"
51310
51310
  TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51311
+ SQL (3.1ms) PRAGMA foreign_keys
51312
+ SQL (0.0ms) PRAGMA defer_foreign_keys
51313
+  (0.0ms) PRAGMA defer_foreign_keys = ON
51314
+  (0.0ms) PRAGMA foreign_keys = OFF
51315
+  (0.1ms) TRUNCATE TABLE "users"
51316
+  (6.4ms) DELETE FROM "users"
51317
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
51318
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
51319
+  (0.3ms) TRUNCATE TABLE "has_states_states"
51320
+  (0.6ms) DELETE FROM "has_states_states"
51321
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
51322
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';
51323
+  (0.1ms) TRUNCATE TABLE "companies"
51324
+  (0.0ms) DELETE FROM "companies"
51325
+  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
51326
+  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies';
51327
+  (0.0ms) PRAGMA defer_foreign_keys = 0
51328
+  (0.0ms) PRAGMA foreign_keys = 1
51329
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51330
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51331
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-04-14 18:47:59.830784"], ["updated_at", "2025-04-14 18:47:59.830784"]]
51332
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51333
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51334
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51336
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51337
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51338
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51339
+ User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-04-14 18:47:59.851973"], ["updated_at", "2025-04-14 18:47:59.851973"]]
51340
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51341
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51342
+ HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51344
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51345
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51346
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51347
+ User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-04-14 18:47:59.860835"], ["updated_at", "2025-04-14 18:47:59.860835"]]
51348
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51349
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51350
+ HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51352
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51353
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51355
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51356
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51358
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "no_limit_state"]]
51359
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51360
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51361
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51362
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-04-14 18:47:59.885205"], ["updated_at", "2025-04-14 18:47:59.885205"]]
51363
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51364
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51365
+ HasStates::Base Count (0.5ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51366
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51368
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51369
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51370
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51372
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51373
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51374
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51375
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51376
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-04-14 18:47:59.898955"], ["updated_at", "2025-04-14 18:47:59.898955"]]
51377
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
51378
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51379
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51380
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51382
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51383
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51384
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51386
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51387
+ HasStates::Base Count (0.2ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51388
+ TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
51389
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51390
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51391
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51392
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-04-14 18:47:59.916825"], ["updated_at", "2025-04-14 18:47:59.916825"]]
51393
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51394
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51395
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
51396
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51398
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51399
+ HasStates::Base Count (0.2ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
51400
+ TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
51401
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51402
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51403
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51404
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-04-14 18:47:59.931086"], ["updated_at", "2025-04-14 18:47:59.931086"]]
51405
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51406
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51407
+ HasStates::Base Count (0.2ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51408
+ HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51410
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51411
+ HasStates::Base Count (0.2ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51412
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.7ms) RELEASE SAVEPOINT active_record_1
51414
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51415
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
51417
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51418
+ HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (1.8ms) RELEASE SAVEPOINT active_record_1
51420
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51421
+ HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51423
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51424
+ HasStates::Base Count (0.3ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
51425
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51427
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51428
+ HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "no_limit_state"]]
51429
+ HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
51430
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51431
+ HasStates::Base Count (1.2ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "double_limit_state"]]
51432
+ TRANSACTION (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
51433
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51434
+ HasStates::Base Count (0.3ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "single_limit_state"]]
51435
+ TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
51436
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51437
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51439
+ TRANSACTION (0.1ms) ROLLBACK TRANSACTION
51440
+ TRANSACTION (0.1ms) BEGIN deferred TRANSACTION
51441
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51442
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-04-14 18:47:59.961956"], ["updated_at", "2025-04-14 18:47:59.961956"]]
51443
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51444
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51445
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51447
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51448
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51449
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51450
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-04-14 18:47:59.994385"], ["updated_at", "2025-04-14 18:47:59.994385"]]
51451
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51452
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51453
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51455
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51456
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51457
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51458
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51459
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51460
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51461
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51462
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51463
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51464
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51465
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51466
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51467
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51468
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-04-14 18:48:00.014677"], ["updated_at", "2025-04-14 18:48:00.014677"]]
51469
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51470
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51471
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51473
+ HasStates::State Load (0.9ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = ? AND "has_states_states"."state_type" = ? [["type", "HasStates::State"], ["state_type", "kyc"]]
51474
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51475
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51476
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51477
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-04-14 18:48:00.019399"], ["updated_at", "2025-04-14 18:48:00.019399"]]
51478
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51479
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51480
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51482
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51483
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51484
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51485
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-04-14 18:48:00.024214"], ["updated_at", "2025-04-14 18:48:00.024214"]]
51486
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51487
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51488
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51490
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51491
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51492
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51493
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-04-14 18:48:00.026363"], ["updated_at", "2025-04-14 18:48:00.026363"]]
51494
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51495
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51496
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51498
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51499
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51500
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51501
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-04-14 18:48:00.027865"], ["updated_at", "2025-04-14 18:48:00.027865"]]
51502
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51503
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51504
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51506
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51507
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51508
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51509
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-04-14 18:48:00.030082"], ["updated_at", "2025-04-14 18:48:00.030082"]]
51510
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51511
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51512
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51514
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51515
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51516
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51517
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 27"], ["created_at", "2025-04-14 18:48:00.031969"], ["updated_at", "2025-04-14 18:48:00.031969"]]
51518
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51519
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51520
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51522
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51523
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51524
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51525
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 28"], ["created_at", "2025-04-14 18:48:00.034181"], ["updated_at", "2025-04-14 18:48:00.034181"]]
51526
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51527
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51528
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51530
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51531
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51532
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51533
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 29"], ["created_at", "2025-04-14 18:48:00.038533"], ["updated_at", "2025-04-14 18:48:00.038533"]]
51534
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51535
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51536
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51538
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51539
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51540
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51541
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 30"], ["created_at", "2025-04-14 18:48:00.041334"], ["updated_at", "2025-04-14 18:48:00.041334"]]
51542
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51543
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51544
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51546
+ HasStates::State Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = ? AND "has_states_states"."id" = ? LIMIT ? [["type", "HasStates::State"], ["id", 1], ["LIMIT", 1]]
51547
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51548
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51549
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51550
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 31"], ["created_at", "2025-04-14 18:48:00.045270"], ["updated_at", "2025-04-14 18:48:00.045270"]]
51551
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51552
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51553
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51555
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51556
+ HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.047624"], ["id", 1]]
51557
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51558
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51559
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-04-14 18:48:00.053685"], ["id", 1]]
51560
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51561
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51562
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51563
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51564
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51565
+ User Create (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 32"], ["created_at", "2025-04-14 18:48:00.057667"], ["updated_at", "2025-04-14 18:48:00.057667"]]
51566
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51567
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51568
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51570
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51571
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-04-14 18:48:00.060655"], ["id", 1]]
51572
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51573
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51574
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-04-14 18:48:00.061304"], ["id", 1]]
51575
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51576
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51577
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-04-14 18:48:00.061605"], ["id", 1]]
51578
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51579
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51580
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51581
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51582
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51583
+ User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 33"], ["created_at", "2025-04-14 18:48:00.063671"], ["updated_at", "2025-04-14 18:48:00.063671"]]
51584
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51585
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51586
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51588
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51589
+ HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.066018"], ["id", 1]]
51590
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51591
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51592
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-04-14 18:48:00.067097"], ["id", 1]]
51593
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51594
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51595
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51596
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51598
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51599
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.070265"], ["id", 2]]
51600
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51601
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51602
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-04-14 18:48:00.071842"], ["id", 1]]
51603
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51604
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51605
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51606
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-04-14 18:48:00.073965"], ["id", 1]]
51607
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51608
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51609
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51611
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51612
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.077447"], ["id", 3]]
51613
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51614
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51615
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51616
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51617
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51618
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 34"], ["created_at", "2025-04-14 18:48:00.078855"], ["updated_at", "2025-04-14 18:48:00.078855"]]
51619
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51620
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51621
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51623
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51624
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.081804"], ["id", 1]]
51625
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51626
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51627
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-04-14 18:48:00.082169"], ["id", 1]]
51628
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51629
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51630
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51631
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51633
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51634
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.084476"], ["id", 2]]
51635
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51636
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51637
+ User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-04-14 18:48:00.084927"], ["id", 1]]
51638
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51639
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51640
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51641
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51643
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51644
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.087244"], ["id", 3]]
51645
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51646
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51647
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-04-14 18:48:00.088154"], ["id", 1]]
51648
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51649
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51650
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51651
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51652
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51653
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 35"], ["created_at", "2025-04-14 18:48:00.089627"], ["updated_at", "2025-04-14 18:48:00.089627"]]
51654
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51655
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51656
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51658
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51659
+ HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-04-14 18:48:00.091127"], ["id", 1]]
51660
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51661
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51662
+ User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-04-14 18:48:00.091753"], ["id", 1]]
51663
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51664
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51665
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51666
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51667
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 36"], ["created_at", "2025-04-14 18:48:00.092687"], ["updated_at", "2025-04-14 18:48:00.092687"]]
51668
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51669
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51670
+ KYCState Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51672
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51673
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51674
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51675
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 37"], ["created_at", "2025-04-14 18:48:00.104669"], ["updated_at", "2025-04-14 18:48:00.104669"]]
51676
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51677
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51678
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51679
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51680
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 38"], ["created_at", "2025-04-14 18:48:00.107639"], ["updated_at", "2025-04-14 18:48:00.107639"]]
51681
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51682
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51683
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51685
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51686
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51687
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51688
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 39"], ["created_at", "2025-04-14 18:48:00.109947"], ["updated_at", "2025-04-14 18:48:00.109947"]]
51689
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51690
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51691
+ KYCState Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51693
+ HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
51694
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51695
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51696
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51697
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 40"], ["created_at", "2025-04-14 18:48:00.114109"], ["updated_at", "2025-04-14 18:48:00.114109"]]
51698
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51699
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51700
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51702
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51703
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51704
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51705
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 41"], ["created_at", "2025-04-14 18:48:00.121018"], ["updated_at", "2025-04-14 18:48:00.121018"]]
51706
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51707
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51708
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51710
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51711
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51712
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51713
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 42"], ["created_at", "2025-04-14 18:48:00.124861"], ["updated_at", "2025-04-14 18:48:00.124861"]]
51714
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51715
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51716
+ HasStates::CustomState Create (0.3ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51718
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51719
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51720
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51721
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 43"], ["created_at", "2025-04-14 18:48:00.152887"], ["updated_at", "2025-04-14 18:48:00.152887"]]
51722
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51723
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51724
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51725
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51726
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 44"], ["created_at", "2025-04-14 18:48:00.156998"], ["updated_at", "2025-04-14 18:48:00.156998"]]
51727
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51728
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51729
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51731
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51732
+ HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51734
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51735
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51737
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51738
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51740
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51741
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51743
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51744
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51746
+ HasStates::Base Load (0.2ms) SELECT "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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]]
51747
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51748
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51749
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51750
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 45"], ["created_at", "2025-04-14 18:48:00.172983"], ["updated_at", "2025-04-14 18:48:00.172983"]]
51751
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51752
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51753
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51755
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51756
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51758
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51759
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51761
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51762
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51764
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51765
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51767
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51768
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51770
+ HasStates::Base Load (0.1ms) SELECT "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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "nonexistent"], ["LIMIT", 1]]
51771
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51772
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51773
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51774
+ User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 46"], ["created_at", "2025-04-14 18:48:00.189554"], ["updated_at", "2025-04-14 18:48:00.189554"]]
51775
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51776
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51777
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51779
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51780
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51782
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51783
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51785
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51786
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51788
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51789
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51791
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51792
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51794
+ HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
51795
+ HasStates::Base Load (0.1ms) SELECT "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 [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
51796
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51797
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51798
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51799
+ User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 47"], ["created_at", "2025-04-14 18:48:00.200173"], ["updated_at", "2025-04-14 18:48:00.200173"]]
51800
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51801
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51802
+ HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51804
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51805
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51807
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51808
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51810
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51811
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51813
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51814
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51816
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51817
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51819
+ HasStates::Base Exists? (0.1ms) SELECT 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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "nonexistent"], ["LIMIT", 1]]
51820
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51821
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51822
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51823
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 48"], ["created_at", "2025-04-14 18:48:00.210407"], ["updated_at", "2025-04-14 18:48:00.210407"]]
51824
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51825
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51826
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51828
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51829
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51831
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51832
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51834
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51835
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51837
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51838
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51839
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51840
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 49"], ["created_at", "2025-04-14 18:48:00.215058"], ["updated_at", "2025-04-14 18:48:00.215058"]]
51841
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51842
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51843
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51845
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51846
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51848
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51849
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51851
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51852
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51854
+ HasStates::Base Load (0.1ms) SELECT "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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]]
51855
+ HasStates::Base Load (0.1ms) SELECT "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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]]
51856
+ HasStates::Base Load (0.0ms) SELECT "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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["LIMIT", 1]]
51857
+ HasStates::Base Load (0.0ms) SELECT "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 ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["LIMIT", 1]]
51858
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51859
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51860
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51861
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 50"], ["created_at", "2025-04-14 18:48:00.221428"], ["updated_at", "2025-04-14 18:48:00.221428"]]
51862
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51863
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51864
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51866
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51867
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51869
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51870
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51872
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51873
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51875
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51876
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51877
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51878
+ User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 51"], ["created_at", "2025-04-14 18:48:00.224462"], ["updated_at", "2025-04-14 18:48:00.224462"]]
51879
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51880
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51881
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51883
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51884
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51886
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51887
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51889
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51890
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51892
+ HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
51893
+ HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? AND "has_states_states"."state_type" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"]]
51894
+ HasStates::Base Load (0.0ms) SELECT "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 [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]]
51895
+ HasStates::Base Load (0.0ms) SELECT "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 [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"]]
51896
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
51897
+ TRANSACTION (0.0ms) BEGIN deferred TRANSACTION
51898
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51899
+ User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 52"], ["created_at", "2025-04-14 18:48:00.231933"], ["updated_at", "2025-04-14 18:48:00.231933"]]
51900
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51901
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51902
+ HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("type", "state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51904
+ HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states"
51905
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
51906
+ HasStates::Base Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = ? AND "has_states_states"."stateable_type" = ? [["stateable_id", 1], ["stateable_type", "User"]]
51907
+ HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]]
51908
+ User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
51909
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
51910
+ HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states"
51911
+ TRANSACTION (0.0ms) ROLLBACK TRANSACTION
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
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-03-22 00:00:00.000000000 Z
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/20250322001530_create_has_states_states.rb
102
- - spec/generators/templates/db/migrate/20250322001530_create_indexes_on_has_states_states.rb
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