spec/dummy/log/test.log in stateful_models-0.0.2 vs spec/dummy/log/test.log in stateful_models-0.0.3

- old
+ new

@@ -18145,5 +18145,5659 @@ TRANSACTION (0.0ms) SAVEPOINT active_record_1 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", "2024-12-23 21:38:45.777963"], ["updated_at", "2024-12-23 21:38:45.777963"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (5.3ms) PRAGMA foreign_keys + SQL (0.1ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.3ms) TRUNCATE TABLE "users" +  (5.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.2ms) TRUNCATE TABLE "has_states_states" +  (0.4ms) DELETE FROM "has_states_states" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 15:55:24.911025"], ["updated_at", "2025-01-14 15:55:24.911025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 15:55:24.920230"], ["updated_at", "2025-01-14 15:55:24.920230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:55:24.930220"], ["updated_at", "2025-01-14 15:55:24.930220"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 15:55:24.933297"], ["updated_at", "2025-01-14 15:55:24.933297"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 15:55:24.938345"], ["updated_at", "2025-01-14 15:55:24.938345"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::Base 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", nil], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 15:55:24.940015"], ["updated_at", "2025-01-14 15:55:24.940015"]] + TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 15:55:24.959178"], ["updated_at", "2025-01-14 15:55:24.959178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 15:55:24.962526"], ["updated_at", "2025-01-14 15:55:24.962526"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 15:55:24.964080"], ["updated_at", "2025-01-14 15:55:24.964080"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.1ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (2.0ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 15:56:11.688230"], ["updated_at", "2025-01-14 15:56:11.688230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 15:56:11.696425"], ["updated_at", "2025-01-14 15:56:11.696425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:56:11.705618"], ["updated_at", "2025-01-14 15:56:11.705618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 15:56:11.708467"], ["updated_at", "2025-01-14 15:56:11.708467"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 15:56:11.712564"], ["updated_at", "2025-01-14 15:56:11.712564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 15:56:11.718652"], ["updated_at", "2025-01-14 15:56:11.718652"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 15:56:11.721592"], ["updated_at", "2025-01-14 15:56:11.721592"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:56:11.722845"], ["updated_at", "2025-01-14 15:56:11.722845"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.9ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 15:57:17.619255"], ["updated_at", "2025-01-14 15:57:17.619255"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:57:17.634376"], ["updated_at", "2025-01-14 15:57:17.634376"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 15:57:17.636855"], ["updated_at", "2025-01-14 15:57:17.636855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 15:57:17.640609"], ["updated_at", "2025-01-14 15:57:17.640609"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 15:57:17.655400"], ["updated_at", "2025-01-14 15:57:17.655400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 15:57:17.657935"], ["updated_at", "2025-01-14 15:57:17.657935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:57:17.659342"], ["updated_at", "2025-01-14 15:57:17.659342"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.1ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "users" +  (14.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 15:58:23.425777"], ["updated_at", "2025-01-14 15:58:23.425777"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:58:23.440535"], ["updated_at", "2025-01-14 15:58:23.440535"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 15:58:23.442916"], ["updated_at", "2025-01-14 15:58:23.442916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:58:23.443975"], ["updated_at", "2025-01-14 15:58:23.443975"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 15:58:23.453951"], ["updated_at", "2025-01-14 15:58:23.453951"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 15:58:23.468413"], ["updated_at", "2025-01-14 15:58:23.468413"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 15:58:23.471532"], ["updated_at", "2025-01-14 15:58:23.471532"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:58:23.472772"], ["updated_at", "2025-01-14 15:58:23.472772"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.7ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 15:58:48.355749"], ["updated_at", "2025-01-14 15:58:48.355749"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:58:48.370851"], ["updated_at", "2025-01-14 15:58:48.370851"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 15:58:48.373182"], ["updated_at", "2025-01-14 15:58:48.373182"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:58:48.374142"], ["updated_at", "2025-01-14 15:58:48.374142"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 15:58:48.375410"], ["updated_at", "2025-01-14 15:58:48.375410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 15:58:48.380947"], ["updated_at", "2025-01-14 15:58:48.380947"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 15:58:48.383575"], ["updated_at", "2025-01-14 15:58:48.383575"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 15:58:48.384637"], ["updated_at", "2025-01-14 15:58:48.384637"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.1ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:01:26.901374"], ["updated_at", "2025-01-14 16:01:26.901374"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:01:26.915887"], ["updated_at", "2025-01-14 16:01:26.915887"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:01:26.918308"], ["updated_at", "2025-01-14 16:01:26.918308"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:01:26.919421"], ["updated_at", "2025-01-14 16:01:26.919421"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:01:26.920888"], ["updated_at", "2025-01-14 16:01:26.920888"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-14 16:01:26.923830"], ["updated_at", "2025-01-14 16:01:26.923830"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:01:26.939848"], ["updated_at", "2025-01-14 16:01:26.939848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:01:26.942981"], ["updated_at", "2025-01-14 16:01:26.942981"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:01:26.944816"], ["updated_at", "2025-01-14 16:01:26.944816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::Base Load (0.5ms) 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"]] + HasStates::State Destroy (0.1ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (2.0ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.1ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:14:11.904139"], ["updated_at", "2025-01-14 16:14:11.904139"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:14:11.923395"], ["updated_at", "2025-01-14 16:14:11.923395"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:14:11.926073"], ["updated_at", "2025-01-14 16:14:11.926073"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:14:11.946403"], ["updated_at", "2025-01-14 16:14:11.946403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:14:11.949812"], ["updated_at", "2025-01-14 16:14:11.949812"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:14:11.952163"], ["updated_at", "2025-01-14 16:14:11.952163"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:14:11.954513"], ["updated_at", "2025-01-14 16:14:11.954513"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.2ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:14:42.218362"], ["updated_at", "2025-01-14 16:14:42.218362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.233027"], ["updated_at", "2025-01-14 16:14:42.233027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:14:42.237453"], ["updated_at", "2025-01-14 16:14:42.237453"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "completed"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:14:42.239673"], ["updated_at", "2025-01-14 16:14:42.239673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:14:42.242864"], ["updated_at", "2025-01-14 16:14:42.242864"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::CustomState Create (0.5ms) 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-01-14 16:14:42.250200"], ["updated_at", "2025-01-14 16:14:42.250200"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:14:42.274266"], ["updated_at", "2025-01-14 16:14:42.274266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:14:42.277706"], ["updated_at", "2025-01-14 16:14:42.277706"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.279215"], ["updated_at", "2025-01-14 16:14:42.279215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.280649"], ["updated_at", "2025-01-14 16:14:42.280649"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.281703"], ["updated_at", "2025-01-14 16:14:42.281703"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.282577"], ["updated_at", "2025-01-14 16:14:42.282577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.283939"], ["updated_at", "2025-01-14 16:14:42.283939"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:14:42.285480"], ["updated_at", "2025-01-14 16:14:42.285480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.286475"], ["updated_at", "2025-01-14 16:14:42.286475"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.287246"], ["updated_at", "2025-01-14 16:14:42.287246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.288344"], ["updated_at", "2025-01-14 16:14:42.288344"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.289269"], ["updated_at", "2025-01-14 16:14:42.289269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.289955"], ["updated_at", "2025-01-14 16:14:42.289955"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:14:42.291330"], ["updated_at", "2025-01-14 16:14:42.291330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:14:42.292508"], ["updated_at", "2025-01-14 16:14:42.292508"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.1ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:15:46.552085"], ["updated_at", "2025-01-14 16:15:46.552085"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.566580"], ["updated_at", "2025-01-14 16:15:46.566580"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:15:46.569236"], ["updated_at", "2025-01-14 16:15:46.569236"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:15:46.570586"], ["updated_at", "2025-01-14 16:15:46.570586"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:15:46.572664"], ["updated_at", "2025-01-14 16:15:46.572664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:15:46.576000"], ["updated_at", "2025-01-14 16:15:46.576000"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:15:46.591349"], ["updated_at", "2025-01-14 16:15:46.591349"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:15:46.593966"], ["updated_at", "2025-01-14 16:15:46.593966"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.595634"], ["updated_at", "2025-01-14 16:15:46.595634"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.596534"], ["updated_at", "2025-01-14 16:15:46.596534"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.597317"], ["updated_at", "2025-01-14 16:15:46.597317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.598043"], ["updated_at", "2025-01-14 16:15:46.598043"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.4ms) SAVEPOINT active_record_1 + HasStates::State Create (0.7ms) 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-01-14 16:15:46.598752"], ["updated_at", "2025-01-14 16:15:46.598752"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-15 16:15:46"], ["updated_at", "2025-01-15 16:15:46"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:15:46.612357"], ["updated_at", "2025-01-14 16:15:46.612357"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.613876"], ["updated_at", "2025-01-14 16:15:46.613876"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.614825"], ["updated_at", "2025-01-14 16:15:46.614825"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.615552"], ["updated_at", "2025-01-14 16:15:46.615552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.616272"], ["updated_at", "2025-01-14 16:15:46.616272"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.617068"], ["updated_at", "2025-01-14 16:15:46.617068"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:15:46.618965"], ["updated_at", "2025-01-14 16:15:46.618965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:15:46.619835"], ["updated_at", "2025-01-14 16:15:46.619835"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.9ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (5.4ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:17:12.511020"], ["updated_at", "2025-01-14 16:17:12.511020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:17:12.528358"], ["updated_at", "2025-01-14 16:17:12.528358"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:17:12.531397"], ["updated_at", "2025-01-14 16:17:12.531397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.532611"], ["updated_at", "2025-01-14 16:17:12.532611"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:17:12.534127"], ["updated_at", "2025-01-14 16:17:12.534127"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:17:12.536727"], ["updated_at", "2025-01-14 16:17:12.536727"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:17:12.541600"], ["updated_at", "2025-01-14 16:17:12.541600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:17:12.543574"], ["updated_at", "2025-01-14 16:17:12.543574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.544453"], ["updated_at", "2025-01-14 16:17:12.544453"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.545397"], ["updated_at", "2025-01-14 16:17:12.545397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.546090"], ["updated_at", "2025-01-14 16:17:12.546090"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.546737"], ["updated_at", "2025-01-14 16:17:12.546737"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.547350"], ["updated_at", "2025-01-14 16:17:12.547350"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" ASC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-15 16:17:12"], ["updated_at", "2025-01-15 16:17:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:17:12.558596"], ["updated_at", "2025-01-14 16:17:12.558596"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.559746"], ["updated_at", "2025-01-14 16:17:12.559746"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.560697"], ["updated_at", "2025-01-14 16:17:12.560697"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.571199"], ["updated_at", "2025-01-14 16:17:12.571199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.572181"], ["updated_at", "2025-01-14 16:17:12.572181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.572927"], ["updated_at", "2025-01-14 16:17:12.572927"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" ASC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "nonexistent"], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:17:12.575477"], ["updated_at", "2025-01-14 16:17:12.575477"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:17:12.576746"], ["updated_at", "2025-01-14 16:17:12.576746"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.1ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.9ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.2ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:20:02.543353"], ["updated_at", "2025-01-14 16:20:02.543353"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:20:02.569285"], ["updated_at", "2025-01-14 16:20:02.569285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:20:02.580654"], ["updated_at", "2025-01-14 16:20:02.580654"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:20:02.582302"], ["updated_at", "2025-01-14 16:20:02.582302"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:20:02.584282"], ["updated_at", "2025-01-14 16:20:02.584282"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:20:02.587850"], ["updated_at", "2025-01-14 16:20:02.587850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:20:02.594522"], ["updated_at", "2025-01-14 16:20:02.594522"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:20:02.597667"], ["updated_at", "2025-01-14 16:20:02.597667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.599027"], ["updated_at", "2025-01-14 16:20:02.599027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.599881"], ["updated_at", "2025-01-14 16:20:02.599881"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.600574"], ["updated_at", "2025-01-14 16:20:02.600574"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.601255"], ["updated_at", "2025-01-14 16:20:02.601255"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.601934"], ["updated_at", "2025-01-14 16:20:02.601934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-15 16:20:02"], ["updated_at", "2025-01-15 16:20:02"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:20:02.614333"], ["updated_at", "2025-01-14 16:20:02.614333"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.615595"], ["updated_at", "2025-01-14 16:20:02.615595"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.616434"], ["updated_at", "2025-01-14 16:20:02.616434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.617107"], ["updated_at", "2025-01-14 16:20:02.617107"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.617743"], ["updated_at", "2025-01-14 16:20:02.617743"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.618390"], ["updated_at", "2025-01-14 16:20:02.618390"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:20:02.620220"], ["updated_at", "2025-01-14 16:20:02.620220"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:20:02.621161"], ["updated_at", "2025-01-14 16:20:02.621161"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.7ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.8ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:22:43.604975"], ["updated_at", "2025-01-14 16:22:43.604975"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:22:43.619553"], ["updated_at", "2025-01-14 16:22:43.619553"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:22:43.622432"], ["updated_at", "2025-01-14 16:22:43.622432"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:22:43.623807"], ["updated_at", "2025-01-14 16:22:43.623807"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:22:43.625717"], ["updated_at", "2025-01-14 16:22:43.625717"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:22:43.628718"], ["updated_at", "2025-01-14 16:22:43.628718"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:22:43.643266"], ["updated_at", "2025-01-14 16:22:43.643266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:22:43.660072"], ["updated_at", "2025-01-14 16:22:43.660072"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:43"], ["updated_at", "2025-01-13 16:22:43"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:22:43.679004"], ["updated_at", "2025-01-14 16:22:43.679004"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:22:43.680104"], ["updated_at", "2025-01-14 16:22:43.680104"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.7ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.1ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:22:54.015055"], ["updated_at", "2025-01-14 16:22:54.015055"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-14 16:22:54.029843"], ["updated_at", "2025-01-14 16:22:54.029843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:22:54.032616"], ["updated_at", "2025-01-14 16:22:54.032616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:22:54.033638"], ["updated_at", "2025-01-14 16:22:54.033638"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:22:54.035002"], ["updated_at", "2025-01-14 16:22:54.035002"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:22:54.037732"], ["updated_at", "2025-01-14 16:22:54.037732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:22:54.052803"], ["updated_at", "2025-01-14 16:22:54.052803"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:22:54.055822"], ["updated_at", "2025-01-14 16:22:54.055822"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:22:54.056888"], ["updated_at", "2025-01-14 16:22:54.056888"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:22:54.063719"], ["updated_at", "2025-01-14 16:22:54.063719"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:22:54.064861"], ["updated_at", "2025-01-14 16:22:54.064861"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:22:54"], ["updated_at", "2025-01-13 16:22:54"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:22:54.070344"], ["updated_at", "2025-01-14 16:22:54.070344"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:22:54.071343"], ["updated_at", "2025-01-14 16:22:54.071343"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (7.1ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:23:06.695177"], ["updated_at", "2025-01-14 16:23:06.695177"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:23:06.711365"], ["updated_at", "2025-01-14 16:23:06.711365"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:23:06.714080"], ["updated_at", "2025-01-14 16:23:06.714080"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.715254"], ["updated_at", "2025-01-14 16:23:06.715254"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:23:06.716841"], ["updated_at", "2025-01-14 16:23:06.716841"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:23:06.719589"], ["updated_at", "2025-01-14 16:23:06.719589"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:23:06.724796"], ["updated_at", "2025-01-14 16:23:06.724796"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:23:06.727029"], ["updated_at", "2025-01-14 16:23:06.727029"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.728016"], ["updated_at", "2025-01-14 16:23:06.728016"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.728781"], ["updated_at", "2025-01-14 16:23:06.728781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.729454"], ["updated_at", "2025-01-14 16:23:06.729454"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.730126"], ["updated_at", "2025-01-14 16:23:06.730126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.730785"], ["updated_at", "2025-01-14 16:23:06.730785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.731425"], ["updated_at", "2025-01-14 16:23:06.731425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:23:06.741625"], ["updated_at", "2025-01-14 16:23:06.741625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.742792"], ["updated_at", "2025-01-14 16:23:06.742792"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.743568"], ["updated_at", "2025-01-14 16:23:06.743568"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.744219"], ["updated_at", "2025-01-14 16:23:06.744219"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.744871"], ["updated_at", "2025-01-14 16:23:06.744871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.745520"], ["updated_at", "2025-01-14 16:23:06.745520"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.746334"], ["updated_at", "2025-01-14 16:23:06.746334"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:23:06.748062"], ["updated_at", "2025-01-14 16:23:06.748062"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:06.748993"], ["updated_at", "2025-01-14 16:23:06.748993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:23:12.983833"], ["updated_at", "2025-01-14 16:23:12.983833"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:12.997784"], ["updated_at", "2025-01-14 16:23:12.997784"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:23:13.000293"], ["updated_at", "2025-01-14 16:23:13.000293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:13.001410"], ["updated_at", "2025-01-14 16:23:13.001410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:23:13.002962"], ["updated_at", "2025-01-14 16:23:13.002962"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:23:13.005736"], ["updated_at", "2025-01-14 16:23:13.005736"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:23:13.021698"], ["updated_at", "2025-01-14 16:23:13.021698"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:23:13.024969"], ["updated_at", "2025-01-14 16:23:13.024969"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:13.026188"], ["updated_at", "2025-01-14 16:23:13.026188"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:23:13.033623"], ["updated_at", "2025-01-14 16:23:13.033623"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:13.035186"], ["updated_at", "2025-01-14 16:23:13.035186"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:23:13"], ["updated_at", "2025-01-13 16:23:13"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:23:13.040883"], ["updated_at", "2025-01-14 16:23:13.040883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:23:13.041862"], ["updated_at", "2025-01-14 16:23:13.041862"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:26:14.802287"], ["updated_at", "2025-01-14 16:26:14.802287"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.817113"], ["updated_at", "2025-01-14 16:26:14.817113"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:26:14.819993"], ["updated_at", "2025-01-14 16:26:14.819993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.821400"], ["updated_at", "2025-01-14 16:26:14.821400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:26:14.823011"], ["updated_at", "2025-01-14 16:26:14.823011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:26:14.825722"], ["updated_at", "2025-01-14 16:26:14.825722"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:26:14.839823"], ["updated_at", "2025-01-14 16:26:14.839823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:26:14.843109"], ["updated_at", "2025-01-14 16:26:14.843109"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.844244"], ["updated_at", "2025-01-14 16:26:14.844244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:26:14.850492"], ["updated_at", "2025-01-14 16:26:14.850492"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.851433"], ["updated_at", "2025-01-14 16:26:14.851433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:26:14"], ["updated_at", "2025-01-13 16:26:14"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:26:14.856879"], ["updated_at", "2025-01-14 16:26:14.856879"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.857934"], ["updated_at", "2025-01-14 16:26:14.857934"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.858806"], ["updated_at", "2025-01-14 16:26:14.858806"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.859819"], ["updated_at", "2025-01-14 16:26:14.859819"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.860639"], ["updated_at", "2025-01-14 16:26:14.860639"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.861354"], ["updated_at", "2025-01-14 16:26:14.861354"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.862057"], ["updated_at", "2025-01-14 16:26:14.862057"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:26:14.864397"], ["updated_at", "2025-01-14 16:26:14.864397"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.865254"], ["updated_at", "2025-01-14 16:26:14.865254"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.865941"], ["updated_at", "2025-01-14 16:26:14.865941"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.866599"], ["updated_at", "2025-01-14 16:26:14.866599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:26:14.867230"], ["updated_at", "2025-01-14 16:26:14.867230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.867990"], ["updated_at", "2025-01-14 16:26:14.867990"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.868622"], ["updated_at", "2025-01-14 16:26:14.868622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:26:14.870807"], ["updated_at", "2025-01-14 16:26:14.870807"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:26:14.871804"], ["updated_at", "2025-01-14 16:26:14.871804"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (15.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:43:11.728911"], ["updated_at", "2025-01-14 16:43:11.728911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.743341"], ["updated_at", "2025-01-14 16:43:11.743341"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:43:11.746051"], ["updated_at", "2025-01-14 16:43:11.746051"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.747309"], ["updated_at", "2025-01-14 16:43:11.747309"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:43:11.748981"], ["updated_at", "2025-01-14 16:43:11.748981"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:43:11.751662"], ["updated_at", "2025-01-14 16:43:11.751662"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:43:11.766890"], ["updated_at", "2025-01-14 16:43:11.766890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:43:11.770310"], ["updated_at", "2025-01-14 16:43:11.770310"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.771434"], ["updated_at", "2025-01-14 16:43:11.771434"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.3ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:43:11.778038"], ["updated_at", "2025-01-14 16:43:11.778038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.779443"], ["updated_at", "2025-01-14 16:43:11.779443"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:43:11"], ["updated_at", "2025-01-13 16:43:11"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:43:11.785423"], ["updated_at", "2025-01-14 16:43:11.785423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.786383"], ["updated_at", "2025-01-14 16:43:11.786383"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.787110"], ["updated_at", "2025-01-14 16:43:11.787110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.787760"], ["updated_at", "2025-01-14 16:43:11.787760"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.788601"], ["updated_at", "2025-01-14 16:43:11.788601"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.789313"], ["updated_at", "2025-01-14 16:43:11.789313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.789949"], ["updated_at", "2025-01-14 16:43:11.789949"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:43:11.792366"], ["updated_at", "2025-01-14 16:43:11.792366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.793678"], ["updated_at", "2025-01-14 16:43:11.793678"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.794616"], ["updated_at", "2025-01-14 16:43:11.794616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.795506"], ["updated_at", "2025-01-14 16:43:11.795506"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.796278"], ["updated_at", "2025-01-14 16:43:11.796278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.796985"], ["updated_at", "2025-01-14 16:43:11.796985"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.797647"], ["updated_at", "2025-01-14 16:43:11.797647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:43:11.800013"], ["updated_at", "2025-01-14 16:43:11.800013"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:11.800874"], ["updated_at", "2025-01-14 16:43:11.800874"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.5ms) TRUNCATE TABLE "users" +  (8.7ms) DELETE FROM "users" +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:43:21.290616"], ["updated_at", "2025-01-14 16:43:21.290616"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:21.292471"], ["updated_at", "2025-01-14 16:43:21.292471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.1ms) 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:43:21.295757"], ["updated_at", "2025-01-14 16:43:21.295757"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:21.296563"], ["updated_at", "2025-01-14 16:43:21.296563"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:43:21.298868"], ["updated_at", "2025-01-14 16:43:21.298868"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:21.299556"], ["updated_at", "2025-01-14 16:43:21.299556"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:43:21.301674"], ["updated_at", "2025-01-14 16:43:21.301674"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:43:21.302451"], ["updated_at", "2025-01-14 16:43:21.302451"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:43:34.946688"], ["updated_at", "2025-01-14 16:43:34.946688"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:43:34.948835"], ["updated_at", "2025-01-14 16:43:34.948835"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:45:33.991914"], ["updated_at", "2025-01-14 16:45:33.991914"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:45:33.998823"], ["updated_at", "2025-01-14 16:45:33.998823"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:45:34.000951"], ["updated_at", "2025-01-14 16:45:34.000951"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.001942"], ["updated_at", "2025-01-14 16:45:34.001942"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2025-01-14 16:45:34.003165"], ["updated_at", "2025-01-14 16:45:34.003165"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 16:45:34.004030"], ["updated_at", "2025-01-14 16:45:34.004030"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2025-01-14 16:45:34.005516"], ["updated_at", "2025-01-14 16:45:34.005516"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 16:45:34.006497"], ["updated_at", "2025-01-14 16:45:34.006497"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2025-01-14 16:45:34.008014"], ["updated_at", "2025-01-14 16:45:34.008014"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-14 16:45:34.009119"], ["updated_at", "2025-01-14 16:45:34.009119"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2025-01-14 16:45:34.010896"], ["updated_at", "2025-01-14 16:45:34.010896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.011869"], ["updated_at", "2025-01-14 16:45:34.011869"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2025-01-14 16:45:34.013981"], ["updated_at", "2025-01-14 16:45:34.013981"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.015373"], ["updated_at", "2025-01-14 16:45:34.015373"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.016172"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 16:45:34.016769"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2025-01-14 16:45:34.018487"], ["updated_at", "2025-01-14 16:45:34.018487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.019627"], ["updated_at", "2025-01-14 16:45:34.019627"]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 16:45:34.020257"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-01-14 16:45:34.020755"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-01-14 16:45:34.021215"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2025-01-14 16:45:34.022848"], ["updated_at", "2025-01-14 16:45:34.022848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.023734"], ["updated_at", "2025-01-14 16:45:34.023734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.024359"], ["id", 1]] + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 16:45:34.024814"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.026132"], ["updated_at", "2025-01-14 16:45:34.026132"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.026879"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 16:45:34.027357"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-01-14 16:45:34.028147"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.029004"], ["updated_at", "2025-01-14 16:45:34.029004"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.029844"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-01-14 16:45:34.031528"], ["updated_at", "2025-01-14 16:45:34.031528"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.032597"], ["updated_at", "2025-01-14 16:45:34.032597"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.033214"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 16:45:34.033642"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.034664"], ["updated_at", "2025-01-14 16:45:34.034664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.035259"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 16:45:34.035671"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.036571"], ["updated_at", "2025-01-14 16:45:34.036571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.037147"], ["id", 3]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-01-14 16:45:34.037581"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-01-14 16:45:34.040110"], ["updated_at", "2025-01-14 16:45:34.040110"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.041040"], ["updated_at", "2025-01-14 16:45:34.041040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:34.041660"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-01-14 16:45:34.042093"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-01-14 16:45:34.043463"], ["updated_at", "2025-01-14 16:45:34.043463"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + KYCState 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", "KYCState"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"document_type\":\"passport\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:45:34.046694"], ["updated_at", "2025-01-14 16:45:34.046694"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-01-14 16:45:34.050075"], ["updated_at", "2025-01-14 16:45:34.050075"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-01-14 16:45:34.053903"], ["updated_at", "2025-01-14 16:45:34.053903"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.054987"], ["updated_at", "2025-01-14 16:45:34.054987"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-01-14 16:45:34.056261"], ["updated_at", "2025-01-14 16:45:34.056261"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:34.057058"], ["updated_at", "2025-01-14 16:45:34.057058"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.1ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:45:59.670742"], ["updated_at", "2025-01-14 16:45:59.670742"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.672649"], ["updated_at", "2025-01-14 16:45:59.672649"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.1ms) 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:45:59.676219"], ["updated_at", "2025-01-14 16:45:59.676219"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.677298"], ["updated_at", "2025-01-14 16:45:59.677298"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:45:59.680350"], ["updated_at", "2025-01-14 16:45:59.680350"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.681380"], ["updated_at", "2025-01-14 16:45:59.681380"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:45:59.683559"], ["updated_at", "2025-01-14 16:45:59.683559"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.684625"], ["updated_at", "2025-01-14 16:45:59.684625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:45:59.686503"], ["updated_at", "2025-01-14 16:45:59.686503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.687209"], ["updated_at", "2025-01-14 16:45:59.687209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:45:59.696859"], ["updated_at", "2025-01-14 16:45:59.696859"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.697774"], ["updated_at", "2025-01-14 16:45:59.697774"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:45:59.699607"], ["updated_at", "2025-01-14 16:45:59.699607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:45:59.704024"], ["updated_at", "2025-01-14 16:45:59.704024"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2025-01-14 16:45:59.705650"], ["updated_at", "2025-01-14 16:45:59.705650"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.706630"], ["updated_at", "2025-01-14 16:45:59.706630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2025-01-14 16:45:59.707994"], ["updated_at", "2025-01-14 16:45:59.707994"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 16:45:59.708906"], ["updated_at", "2025-01-14 16:45:59.708906"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2025-01-14 16:45:59.710186"], ["updated_at", "2025-01-14 16:45:59.710186"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 16:45:59.711206"], ["updated_at", "2025-01-14 16:45:59.711206"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2025-01-14 16:45:59.712577"], ["updated_at", "2025-01-14 16:45:59.712577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.713487"], ["updated_at", "2025-01-14 16:45:59.713487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2025-01-14 16:45:59.714738"], ["updated_at", "2025-01-14 16:45:59.714738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.715661"], ["updated_at", "2025-01-14 16:45:59.715661"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2025-01-14 16:45:59.717736"], ["updated_at", "2025-01-14 16:45:59.717736"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.718821"], ["updated_at", "2025-01-14 16:45:59.718821"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.719524"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 16:45:59.720132"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2025-01-14 16:45:59.721938"], ["updated_at", "2025-01-14 16:45:59.721938"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:45:59.723004"], ["updated_at", "2025-01-14 16:45:59.723004"]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 16:45:59.723595"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-01-14 16:45:59.724056"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-01-14 16:45:59.724497"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-01-14 16:45:59.726197"], ["updated_at", "2025-01-14 16:45:59.726197"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.727277"], ["updated_at", "2025-01-14 16:45:59.727277"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.727984"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 16:45:59.728461"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.729607"], ["updated_at", "2025-01-14 16:45:59.729607"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.730247"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 16:45:59.730689"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-01-14 16:45:59.731481"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.732301"], ["updated_at", "2025-01-14 16:45:59.732301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.732980"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-01-14 16:45:59.734584"], ["updated_at", "2025-01-14 16:45:59.734584"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.735491"], ["updated_at", "2025-01-14 16:45:59.735491"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.736074"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 16:45:59.736468"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.737423"], ["updated_at", "2025-01-14 16:45:59.737423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.738082"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 16:45:59.738542"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.739436"], ["updated_at", "2025-01-14 16:45:59.739436"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.740084"], ["id", 3]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-01-14 16:45:59.740547"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-01-14 16:45:59.752381"], ["updated_at", "2025-01-14 16:45:59.752381"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.753887"], ["updated_at", "2025-01-14 16:45:59.753887"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 16:45:59.754668"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-01-14 16:45:59.755158"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-01-14 16:45:59.756447"], ["updated_at", "2025-01-14 16:45:59.756447"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.760006"], ["updated_at", "2025-01-14 16:45:59.760006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-01-14 16:45:59.762848"], ["updated_at", "2025-01-14 16:45:59.762848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-01-14 16:45:59.767199"], ["updated_at", "2025-01-14 16:45:59.767199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.768392"], ["updated_at", "2025-01-14 16:45:59.768392"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 27"], ["created_at", "2025-01-14 16:45:59.769989"], ["updated_at", "2025-01-14 16:45:59.769989"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:45:59.771301"], ["updated_at", "2025-01-14 16:45:59.771301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.8ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.1ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:53:50.650069"], ["updated_at", "2025-01-14 16:53:50.650069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:53:50.674783"], ["updated_at", "2025-01-14 16:53:50.674783"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:53:50.678006"], ["updated_at", "2025-01-14 16:53:50.678006"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.679309"], ["updated_at", "2025-01-14 16:53:50.679309"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:53:50.681107"], ["updated_at", "2025-01-14 16:53:50.681107"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.684588"], ["updated_at", "2025-01-14 16:53:50.684588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:53:50.691221"], ["updated_at", "2025-01-14 16:53:50.691221"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:53:50.694192"], ["updated_at", "2025-01-14 16:53:50.694192"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.695425"], ["updated_at", "2025-01-14 16:53:50.695425"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:53:50.701952"], ["updated_at", "2025-01-14 16:53:50.701952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.702973"], ["updated_at", "2025-01-14 16:53:50.702973"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:53:50"], ["updated_at", "2025-01-13 16:53:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:53:50.708285"], ["updated_at", "2025-01-14 16:53:50.708285"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.709306"], ["updated_at", "2025-01-14 16:53:50.709306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.710146"], ["updated_at", "2025-01-14 16:53:50.710146"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.710952"], ["updated_at", "2025-01-14 16:53:50.710952"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.711700"], ["updated_at", "2025-01-14 16:53:50.711700"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.712403"], ["updated_at", "2025-01-14 16:53:50.712403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.713044"], ["updated_at", "2025-01-14 16:53:50.713044"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:53:50.716150"], ["updated_at", "2025-01-14 16:53:50.716150"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.717447"], ["updated_at", "2025-01-14 16:53:50.717447"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.718273"], ["updated_at", "2025-01-14 16:53:50.718273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.718968"], ["updated_at", "2025-01-14 16:53:50.718968"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.719612"], ["updated_at", "2025-01-14 16:53:50.719612"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:53:50.720313"], ["updated_at", "2025-01-14 16:53:50.720313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.721182"], ["updated_at", "2025-01-14 16:53:50.721182"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:53:50.723619"], ["updated_at", "2025-01-14 16:53:50.723619"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.724850"], ["updated_at", "2025-01-14 16:53:50.724850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.725687"], ["updated_at", "2025-01-14 16:53:50.725687"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.726359"], ["updated_at", "2025-01-14 16:53:50.726359"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.727136"], ["updated_at", "2025-01-14 16:53:50.727136"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.727905"], ["updated_at", "2025-01-14 16:53:50.727905"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.728590"], ["updated_at", "2025-01-14 16:53:50.728590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.729249"], ["updated_at", "2025-01-14 16:53:50.729249"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.729941"], ["updated_at", "2025-01-14 16:53:50.729941"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:53:50.732355"], ["updated_at", "2025-01-14 16:53:50.732355"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.733416"], ["updated_at", "2025-01-14 16:53:50.733416"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.734166"], ["updated_at", "2025-01-14 16:53:50.734166"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.734827"], ["updated_at", "2025-01-14 16:53:50.734827"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.735529"], ["updated_at", "2025-01-14 16:53:50.735529"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.736229"], ["updated_at", "2025-01-14 16:53:50.736229"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.737062"], ["updated_at", "2025-01-14 16:53:50.737062"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.737810"], ["updated_at", "2025-01-14 16:53:50.737810"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.738487"], ["updated_at", "2025-01-14 16:53:50.738487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:53:50.749836"], ["updated_at", "2025-01-14 16:53:50.749836"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.751154"], ["updated_at", "2025-01-14 16:53:50.751154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.752038"], ["updated_at", "2025-01-14 16:53:50.752038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Create (0.6ms) 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-01-14 16:53:50.752842"], ["updated_at", "2025-01-14 16:53:50.752842"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.754182"], ["updated_at", "2025-01-14 16:53:50.754182"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.754911"], ["updated_at", "2025-01-14 16:53:50.754911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.755760"], ["updated_at", "2025-01-14 16:53:50.755760"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.756564"], ["updated_at", "2025-01-14 16:53:50.756564"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.757333"], ["updated_at", "2025-01-14 16:53:50.757333"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:53:50.759150"], ["updated_at", "2025-01-14 16:53:50.759150"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.760301"], ["updated_at", "2025-01-14 16:53:50.760301"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.761247"], ["updated_at", "2025-01-14 16:53:50.761247"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.762009"], ["updated_at", "2025-01-14 16:53:50.762009"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.762679"], ["updated_at", "2025-01-14 16:53:50.762679"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.763658"], ["updated_at", "2025-01-14 16:53:50.763658"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.764651"], ["updated_at", "2025-01-14 16:53:50.764651"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.765543"], ["updated_at", "2025-01-14 16:53:50.765543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.766218"], ["updated_at", "2025-01-14 16:53:50.766218"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:53:50.770012"], ["updated_at", "2025-01-14 16:53:50.770012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:53:50.770922"], ["updated_at", "2025-01-14 16:53:50.770922"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (2.0ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (13.8ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:54:39.236331"], ["updated_at", "2025-01-14 16:54:39.236331"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.250961"], ["updated_at", "2025-01-14 16:54:39.250961"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:54:39.253624"], ["updated_at", "2025-01-14 16:54:39.253624"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.254818"], ["updated_at", "2025-01-14 16:54:39.254818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:54:39.256478"], ["updated_at", "2025-01-14 16:54:39.256478"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:54:39.259338"], ["updated_at", "2025-01-14 16:54:39.259338"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:54:39.275699"], ["updated_at", "2025-01-14 16:54:39.275699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:54:39.279303"], ["updated_at", "2025-01-14 16:54:39.279303"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.280445"], ["updated_at", "2025-01-14 16:54:39.280445"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:54:39.288647"], ["updated_at", "2025-01-14 16:54:39.288647"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:54:39.291017"], ["updated_at", "2025-01-14 16:54:39.291017"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::State Create (1.0ms) 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:54:39"], ["updated_at", "2025-01-13 16:54:39"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:54:39.304038"], ["updated_at", "2025-01-14 16:54:39.304038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:54:39.305941"], ["updated_at", "2025-01-14 16:54:39.305941"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:54:39.307640"], ["updated_at", "2025-01-14 16:54:39.307640"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:54:39.309390"], ["updated_at", "2025-01-14 16:54:39.309390"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::State Create (0.7ms) 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-01-14 16:54:39.312057"], ["updated_at", "2025-01-14 16:54:39.312057"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-14 16:54:39.315376"], ["updated_at", "2025-01-14 16:54:39.315376"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-14 16:54:39.318211"], ["updated_at", "2025-01-14 16:54:39.318211"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + 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", "test_type"]] + 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 [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:54:39.324497"], ["updated_at", "2025-01-14 16:54:39.324497"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.327424"], ["updated_at", "2025-01-14 16:54:39.327424"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.328770"], ["updated_at", "2025-01-14 16:54:39.328770"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.330223"], ["updated_at", "2025-01-14 16:54:39.330223"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.331311"], ["updated_at", "2025-01-14 16:54:39.331311"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.332126"], ["updated_at", "2025-01-14 16:54:39.332126"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.332855"], ["updated_at", "2025-01-14 16:54:39.332855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:54:39.337871"], ["updated_at", "2025-01-14 16:54:39.337871"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-14 16:54:39.340842"], ["updated_at", "2025-01-14 16:54:39.340842"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.343385"], ["updated_at", "2025-01-14 16:54:39.343385"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.344890"], ["updated_at", "2025-01-14 16:54:39.344890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.345894"], ["updated_at", "2025-01-14 16:54:39.345894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.346660"], ["updated_at", "2025-01-14 16:54:39.346660"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.347366"], ["updated_at", "2025-01-14 16:54:39.347366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.348017"], ["updated_at", "2025-01-14 16:54:39.348017"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.348802"], ["updated_at", "2025-01-14 16:54:39.348802"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:54:39.350931"], ["updated_at", "2025-01-14 16:54:39.350931"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.351845"], ["updated_at", "2025-01-14 16:54:39.351845"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.352562"], ["updated_at", "2025-01-14 16:54:39.352562"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.353202"], ["updated_at", "2025-01-14 16:54:39.353202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.353854"], ["updated_at", "2025-01-14 16:54:39.353854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.354473"], ["updated_at", "2025-01-14 16:54:39.354473"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.355125"], ["updated_at", "2025-01-14 16:54:39.355125"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.355816"], ["updated_at", "2025-01-14 16:54:39.355816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.356521"], ["updated_at", "2025-01-14 16:54:39.356521"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + 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]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:54:39.367286"], ["updated_at", "2025-01-14 16:54:39.367286"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.368450"], ["updated_at", "2025-01-14 16:54:39.368450"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.369302"], ["updated_at", "2025-01-14 16:54:39.369302"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.369999"], ["updated_at", "2025-01-14 16:54:39.369999"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.370640"], ["updated_at", "2025-01-14 16:54:39.370640"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.371292"], ["updated_at", "2025-01-14 16:54:39.371292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.371939"], ["updated_at", "2025-01-14 16:54:39.371939"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.372617"], ["updated_at", "2025-01-14 16:54:39.372617"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.373379"], ["updated_at", "2025-01-14 16:54:39.373379"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:54:39.374855"], ["updated_at", "2025-01-14 16:54:39.374855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.375729"], ["updated_at", "2025-01-14 16:54:39.375729"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.376410"], ["updated_at", "2025-01-14 16:54:39.376410"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.377041"], ["updated_at", "2025-01-14 16:54:39.377041"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.377725"], ["updated_at", "2025-01-14 16:54:39.377725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.378576"], ["updated_at", "2025-01-14 16:54:39.378576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.379277"], ["updated_at", "2025-01-14 16:54:39.379277"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.379929"], ["updated_at", "2025-01-14 16:54:39.379929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.380669"], ["updated_at", "2025-01-14 16:54:39.380669"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:54:39.392371"], ["updated_at", "2025-01-14 16:54:39.392371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:54:39.393761"], ["updated_at", "2025-01-14 16:54:39.393761"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (2.0ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.2ms) TRUNCATE TABLE "users" +  (14.3ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:55:51.065572"], ["updated_at", "2025-01-14 16:55:51.065572"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:55:51.080667"], ["updated_at", "2025-01-14 16:55:51.080667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:55:51.083427"], ["updated_at", "2025-01-14 16:55:51.083427"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.084651"], ["updated_at", "2025-01-14 16:55:51.084651"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:55:51.086444"], ["updated_at", "2025-01-14 16:55:51.086444"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:55:51.089144"], ["updated_at", "2025-01-14 16:55:51.089144"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:55:51.104014"], ["updated_at", "2025-01-14 16:55:51.104014"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:55:51.107278"], ["updated_at", "2025-01-14 16:55:51.107278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.108635"], ["updated_at", "2025-01-14 16:55:51.108635"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:55:51.115585"], ["updated_at", "2025-01-14 16:55:51.115585"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.116480"], ["updated_at", "2025-01-14 16:55:51.116480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:55:51"], ["updated_at", "2025-01-13 16:55:51"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:55:51.122255"], ["updated_at", "2025-01-14 16:55:51.122255"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.123431"], ["updated_at", "2025-01-14 16:55:51.123431"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.124226"], ["updated_at", "2025-01-14 16:55:51.124226"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.125379"], ["updated_at", "2025-01-14 16:55:51.125379"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.126191"], ["updated_at", "2025-01-14 16:55:51.126191"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.126978"], ["updated_at", "2025-01-14 16:55:51.126978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.127775"], ["updated_at", "2025-01-14 16:55:51.127775"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:55:51.130122"], ["updated_at", "2025-01-14 16:55:51.130122"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.131012"], ["updated_at", "2025-01-14 16:55:51.131012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.131705"], ["updated_at", "2025-01-14 16:55:51.131705"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.132349"], ["updated_at", "2025-01-14 16:55:51.132349"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.132995"], ["updated_at", "2025-01-14 16:55:51.132995"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.133789"], ["updated_at", "2025-01-14 16:55:51.133789"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.134435"], ["updated_at", "2025-01-14 16:55:51.134435"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:55:51.136521"], ["updated_at", "2025-01-14 16:55:51.136521"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.137442"], ["updated_at", "2025-01-14 16:55:51.137442"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.138375"], ["updated_at", "2025-01-14 16:55:51.138375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.139038"], ["updated_at", "2025-01-14 16:55:51.139038"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.139850"], ["updated_at", "2025-01-14 16:55:51.139850"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.140608"], ["updated_at", "2025-01-14 16:55:51.140608"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.141538"], ["updated_at", "2025-01-14 16:55:51.141538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:55:51.142553"], ["updated_at", "2025-01-14 16:55:51.142553"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.143385"], ["updated_at", "2025-01-14 16:55:51.143385"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:55:51.145586"], ["updated_at", "2025-01-14 16:55:51.145586"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.146563"], ["updated_at", "2025-01-14 16:55:51.146563"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.147308"], ["updated_at", "2025-01-14 16:55:51.147308"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.147977"], ["updated_at", "2025-01-14 16:55:51.147977"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.148611"], ["updated_at", "2025-01-14 16:55:51.148611"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.149266"], ["updated_at", "2025-01-14 16:55:51.149266"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.149913"], ["updated_at", "2025-01-14 16:55:51.149913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.150552"], ["updated_at", "2025-01-14 16:55:51.150552"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.151187"], ["updated_at", "2025-01-14 16:55:51.151187"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:55:51.161788"], ["updated_at", "2025-01-14 16:55:51.161788"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.163027"], ["updated_at", "2025-01-14 16:55:51.163027"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.163843"], ["updated_at", "2025-01-14 16:55:51.163843"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.164530"], ["updated_at", "2025-01-14 16:55:51.164530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.165185"], ["updated_at", "2025-01-14 16:55:51.165185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.165839"], ["updated_at", "2025-01-14 16:55:51.165839"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.166490"], ["updated_at", "2025-01-14 16:55:51.166490"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.167150"], ["updated_at", "2025-01-14 16:55:51.167150"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.167839"], ["updated_at", "2025-01-14 16:55:51.167839"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:55:51.169234"], ["updated_at", "2025-01-14 16:55:51.169234"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.170228"], ["updated_at", "2025-01-14 16:55:51.170228"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.170950"], ["updated_at", "2025-01-14 16:55:51.170950"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.171608"], ["updated_at", "2025-01-14 16:55:51.171608"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.172340"], ["updated_at", "2025-01-14 16:55:51.172340"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.173040"], ["updated_at", "2025-01-14 16:55:51.173040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.173687"], ["updated_at", "2025-01-14 16:55:51.173687"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.174334"], ["updated_at", "2025-01-14 16:55:51.174334"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.175113"], ["updated_at", "2025-01-14 16:55:51.175113"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:55:51.187883"], ["updated_at", "2025-01-14 16:55:51.187883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:55:51.189313"], ["updated_at", "2025-01-14 16:55:51.189313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::Base Load (0.6ms) 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (2.2ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.3ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:57:05.134487"], ["updated_at", "2025-01-14 16:57:05.134487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.158767"], ["updated_at", "2025-01-14 16:57:05.158767"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:57:05.164520"], ["updated_at", "2025-01-14 16:57:05.164520"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:05.167066"], ["updated_at", "2025-01-14 16:57:05.167066"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:57:05.171013"], ["updated_at", "2025-01-14 16:57:05.171013"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:05.178554"], ["updated_at", "2025-01-14 16:57:05.178554"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (1.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:57:05.188582"], ["updated_at", "2025-01-14 16:57:05.188582"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:57:05.199134"], ["updated_at", "2025-01-14 16:57:05.199134"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:05.202828"], ["updated_at", "2025-01-14 16:57:05.202828"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:57:05.215920"], ["updated_at", "2025-01-14 16:57:05.215920"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.216962"], ["updated_at", "2025-01-14 16:57:05.216962"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:05"], ["updated_at", "2025-01-13 16:57:05"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:57:05.222293"], ["updated_at", "2025-01-14 16:57:05.222293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.223645"], ["updated_at", "2025-01-14 16:57:05.223645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.224721"], ["updated_at", "2025-01-14 16:57:05.224721"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.225600"], ["updated_at", "2025-01-14 16:57:05.225600"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.226325"], ["updated_at", "2025-01-14 16:57:05.226325"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.227055"], ["updated_at", "2025-01-14 16:57:05.227055"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.227848"], ["updated_at", "2025-01-14 16:57:05.227848"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:57:05.230137"], ["updated_at", "2025-01-14 16:57:05.230137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.231010"], ["updated_at", "2025-01-14 16:57:05.231010"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.231721"], ["updated_at", "2025-01-14 16:57:05.231721"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.232366"], ["updated_at", "2025-01-14 16:57:05.232366"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.232986"], ["updated_at", "2025-01-14 16:57:05.232986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.233608"], ["updated_at", "2025-01-14 16:57:05.233608"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.234239"], ["updated_at", "2025-01-14 16:57:05.234239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:57:05.236246"], ["updated_at", "2025-01-14 16:57:05.236246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.237147"], ["updated_at", "2025-01-14 16:57:05.237147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.237894"], ["updated_at", "2025-01-14 16:57:05.237894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.238668"], ["updated_at", "2025-01-14 16:57:05.238668"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.239474"], ["updated_at", "2025-01-14 16:57:05.239474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.240278"], ["updated_at", "2025-01-14 16:57:05.240278"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.240973"], ["updated_at", "2025-01-14 16:57:05.240973"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.241713"], ["updated_at", "2025-01-14 16:57:05.241713"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.242538"], ["updated_at", "2025-01-14 16:57:05.242538"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:57:05.244875"], ["updated_at", "2025-01-14 16:57:05.244875"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.246040"], ["updated_at", "2025-01-14 16:57:05.246040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.246973"], ["updated_at", "2025-01-14 16:57:05.246973"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.247664"], ["updated_at", "2025-01-14 16:57:05.247664"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.248318"], ["updated_at", "2025-01-14 16:57:05.248318"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.248957"], ["updated_at", "2025-01-14 16:57:05.248957"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.249641"], ["updated_at", "2025-01-14 16:57:05.249641"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.250268"], ["updated_at", "2025-01-14 16:57:05.250268"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.250894"], ["updated_at", "2025-01-14 16:57:05.250894"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."id" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"], ["LIMIT", 1]] + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:57:05.272599"], ["updated_at", "2025-01-14 16:57:05.272599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.273978"], ["updated_at", "2025-01-14 16:57:05.273978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.275313"], ["updated_at", "2025-01-14 16:57:05.275313"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.276261"], ["updated_at", "2025-01-14 16:57:05.276261"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.276997"], ["updated_at", "2025-01-14 16:57:05.276997"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.277656"], ["updated_at", "2025-01-14 16:57:05.277656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.278307"], ["updated_at", "2025-01-14 16:57:05.278307"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.278963"], ["updated_at", "2025-01-14 16:57:05.278963"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:05.279611"], ["updated_at", "2025-01-14 16:57:05.279611"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:57:05.281183"], ["updated_at", "2025-01-14 16:57:05.281183"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.281987"], ["updated_at", "2025-01-14 16:57:05.281987"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.282650"], ["updated_at", "2025-01-14 16:57:05.282650"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.283273"], ["updated_at", "2025-01-14 16:57:05.283273"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.284147"], ["updated_at", "2025-01-14 16:57:05.284147"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.284818"], ["updated_at", "2025-01-14 16:57:05.284818"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.285521"], ["updated_at", "2025-01-14 16:57:05.285521"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.286156"], ["updated_at", "2025-01-14 16:57:05.286156"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.286778"], ["updated_at", "2025-01-14 16:57:05.286778"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:57:05.290419"], ["updated_at", "2025-01-14 16:57:05.290419"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:05.291489"], ["updated_at", "2025-01-14 16:57:05.291489"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (2.2ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.6ms) DELETE FROM "users" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 16:57:31.351413"], ["updated_at", "2025-01-14 16:57:31.351413"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.381916"], ["updated_at", "2025-01-14 16:57:31.381916"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 16:57:31.384755"], ["updated_at", "2025-01-14 16:57:31.384755"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.385856"], ["updated_at", "2025-01-14 16:57:31.385856"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 16:57:31.387738"], ["updated_at", "2025-01-14 16:57:31.387738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.392025"], ["updated_at", "2025-01-14 16:57:31.392025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 16:57:31.401883"], ["updated_at", "2025-01-14 16:57:31.401883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 16:57:31.406659"], ["updated_at", "2025-01-14 16:57:31.406659"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.409324"], ["updated_at", "2025-01-14 16:57:31.409324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 16:57:31.423045"], ["updated_at", "2025-01-14 16:57:31.423045"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.425043"], ["updated_at", "2025-01-14 16:57:31.425043"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 16:57:31"], ["updated_at", "2025-01-13 16:57:31"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 16:57:31.436251"], ["updated_at", "2025-01-14 16:57:31.436251"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.437469"], ["updated_at", "2025-01-14 16:57:31.437469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.439034"], ["updated_at", "2025-01-14 16:57:31.439034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.440315"], ["updated_at", "2025-01-14 16:57:31.440315"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.441446"], ["updated_at", "2025-01-14 16:57:31.441446"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.442471"], ["updated_at", "2025-01-14 16:57:31.442471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.443455"], ["updated_at", "2025-01-14 16:57:31.443455"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 16:57:31.446091"], ["updated_at", "2025-01-14 16:57:31.446091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.447269"], ["updated_at", "2025-01-14 16:57:31.447269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.448250"], ["updated_at", "2025-01-14 16:57:31.448250"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.449162"], ["updated_at", "2025-01-14 16:57:31.449162"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.450198"], ["updated_at", "2025-01-14 16:57:31.450198"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.451005"], ["updated_at", "2025-01-14 16:57:31.451005"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.451699"], ["updated_at", "2025-01-14 16:57:31.451699"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 16:57:31.453769"], ["updated_at", "2025-01-14 16:57:31.453769"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.454696"], ["updated_at", "2025-01-14 16:57:31.454696"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.455488"], ["updated_at", "2025-01-14 16:57:31.455488"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.456257"], ["updated_at", "2025-01-14 16:57:31.456257"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.456955"], ["updated_at", "2025-01-14 16:57:31.456955"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.457688"], ["updated_at", "2025-01-14 16:57:31.457688"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.458477"], ["updated_at", "2025-01-14 16:57:31.458477"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.459230"], ["updated_at", "2025-01-14 16:57:31.459230"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.459932"], ["updated_at", "2025-01-14 16:57:31.459932"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 16:57:31.461970"], ["updated_at", "2025-01-14 16:57:31.461970"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.462967"], ["updated_at", "2025-01-14 16:57:31.462967"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.463899"], ["updated_at", "2025-01-14 16:57:31.463899"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.464630"], ["updated_at", "2025-01-14 16:57:31.464630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.465375"], ["updated_at", "2025-01-14 16:57:31.465375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.466028"], ["updated_at", "2025-01-14 16:57:31.466028"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.466770"], ["updated_at", "2025-01-14 16:57:31.466770"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.467420"], ["updated_at", "2025-01-14 16:57:31.467420"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.468052"], ["updated_at", "2025-01-14 16:57:31.468052"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."id" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."id" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."id" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"], ["LIMIT", 1]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."id" DESC LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 16:57:31.481137"], ["updated_at", "2025-01-14 16:57:31.481137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.482394"], ["updated_at", "2025-01-14 16:57:31.482394"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.483342"], ["updated_at", "2025-01-14 16:57:31.483342"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.484595"], ["updated_at", "2025-01-14 16:57:31.484595"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.485433"], ["updated_at", "2025-01-14 16:57:31.485433"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.486106"], ["updated_at", "2025-01-14 16:57:31.486106"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.486797"], ["updated_at", "2025-01-14 16:57:31.486797"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 16:57:31.487571"], ["updated_at", "2025-01-14 16:57:31.487571"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-14 16:57:31.488380"], ["updated_at", "2025-01-14 16:57:31.488380"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 16:57:31.490186"], ["updated_at", "2025-01-14 16:57:31.490186"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.491164"], ["updated_at", "2025-01-14 16:57:31.491164"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.491909"], ["updated_at", "2025-01-14 16:57:31.491909"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.492588"], ["updated_at", "2025-01-14 16:57:31.492588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.493596"], ["updated_at", "2025-01-14 16:57:31.493596"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.494398"], ["updated_at", "2025-01-14 16:57:31.494398"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.495105"], ["updated_at", "2025-01-14 16:57:31.495105"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.495792"], ["updated_at", "2025-01-14 16:57:31.495792"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.496488"], ["updated_at", "2025-01-14 16:57:31.496488"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "test_type"], ["status", "completed"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "pending"]] + 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" = ? AND "has_states_states"."status" = ? ORDER BY "has_states_states"."created_at" DESC [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "other_test_type"], ["status", "completed"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 16:57:31.500373"], ["updated_at", "2025-01-14 16:57:31.500373"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 16:57:31.501413"], ["updated_at", "2025-01-14 16:57:31.501413"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.9ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.5ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + SQL (2.0ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 17:08:50.798269"], ["updated_at", "2025-01-14 17:08:50.798269"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.812618"], ["updated_at", "2025-01-14 17:08:50.812618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 17:08:50.815450"], ["updated_at", "2025-01-14 17:08:50.815450"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:08:50.816874"], ["updated_at", "2025-01-14 17:08:50.816874"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2025-01-14 17:08:50.818944"], ["updated_at", "2025-01-14 17:08:50.818944"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:08:50.821831"], ["updated_at", "2025-01-14 17:08:50.821831"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2025-01-14 17:08:50.836299"], ["updated_at", "2025-01-14 17:08:50.836299"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2025-01-14 17:08:50.839632"], ["updated_at", "2025-01-14 17:08:50.839632"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.840803"], ["updated_at", "2025-01-14 17:08:50.840803"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2025-01-14 17:08:50.847375"], ["updated_at", "2025-01-14 17:08:50.847375"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.848432"], ["updated_at", "2025-01-14 17:08:50.848432"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:08:50"], ["updated_at", "2025-01-13 17:08:50"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.2ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2025-01-14 17:08:50.854693"], ["updated_at", "2025-01-14 17:08:50.854693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.856332"], ["updated_at", "2025-01-14 17:08:50.856332"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.857159"], ["updated_at", "2025-01-14 17:08:50.857159"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.857863"], ["updated_at", "2025-01-14 17:08:50.857863"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.858543"], ["updated_at", "2025-01-14 17:08:50.858543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.859185"], ["updated_at", "2025-01-14 17:08:50.859185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.859817"], ["updated_at", "2025-01-14 17:08:50.859817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2025-01-14 17:08:50.862154"], ["updated_at", "2025-01-14 17:08:50.862154"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.863161"], ["updated_at", "2025-01-14 17:08:50.863161"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.863950"], ["updated_at", "2025-01-14 17:08:50.863950"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.864861"], ["updated_at", "2025-01-14 17:08:50.864861"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.865559"], ["updated_at", "2025-01-14 17:08:50.865559"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.866260"], ["updated_at", "2025-01-14 17:08:50.866260"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.866986"], ["updated_at", "2025-01-14 17:08:50.866986"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 17:08:50.869209"], ["updated_at", "2025-01-14 17:08:50.869209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.870533"], ["updated_at", "2025-01-14 17:08:50.870533"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.871362"], ["updated_at", "2025-01-14 17:08:50.871362"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.872034"], ["updated_at", "2025-01-14 17:08:50.872034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.872714"], ["updated_at", "2025-01-14 17:08:50.872714"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 17:08:50.874743"], ["updated_at", "2025-01-14 17:08:50.874743"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.875911"], ["updated_at", "2025-01-14 17:08:50.875911"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.876620"], ["updated_at", "2025-01-14 17:08:50.876620"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.877289"], ["updated_at", "2025-01-14 17:08:50.877289"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.877926"], ["updated_at", "2025-01-14 17:08:50.877926"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + 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]] + 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]] + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 17:08:50.880673"], ["updated_at", "2025-01-14 17:08:50.880673"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.881642"], ["updated_at", "2025-01-14 17:08:50.881642"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.882384"], ["updated_at", "2025-01-14 17:08:50.882384"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.883135"], ["updated_at", "2025-01-14 17:08:50.883135"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.883803"], ["updated_at", "2025-01-14 17:08:50.883803"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 17:08:50.885065"], ["updated_at", "2025-01-14 17:08:50.885065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.886003"], ["updated_at", "2025-01-14 17:08:50.886003"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.886851"], ["updated_at", "2025-01-14 17:08:50.886851"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.887542"], ["updated_at", "2025-01-14 17:08:50.887542"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.888202"], ["updated_at", "2025-01-14 17:08:50.888202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 17:08:50.890630"], ["updated_at", "2025-01-14 17:08:50.890630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:08:50.891442"], ["updated_at", "2025-01-14 17:08:50.891442"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.9ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (5.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 17:09:25.178280"], ["updated_at", "2025-01-14 17:09:25.178280"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.182142"], ["updated_at", "2025-01-14 17:09:25.182142"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 17:09:25.188053"], ["updated_at", "2025-01-14 17:09:25.188053"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.189097"], ["updated_at", "2025-01-14 17:09:25.189097"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 17:09:25.198068"], ["updated_at", "2025-01-14 17:09:25.198068"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.199087"], ["updated_at", "2025-01-14 17:09:25.199087"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.1ms) 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 17:09:25.201288"], ["updated_at", "2025-01-14 17:09:25.201288"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.202018"], ["updated_at", "2025-01-14 17:09:25.202018"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 17:09:25.204239"], ["updated_at", "2025-01-14 17:09:25.204239"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.205094"], ["updated_at", "2025-01-14 17:09:25.205094"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 17:09:25.206553"], ["updated_at", "2025-01-14 17:09:25.206553"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.207185"], ["updated_at", "2025-01-14 17:09:25.207185"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 17:09:25.208435"], ["updated_at", "2025-01-14 17:09:25.208435"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.213080"], ["updated_at", "2025-01-14 17:09:25.213080"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2025-01-14 17:09:25.214901"], ["updated_at", "2025-01-14 17:09:25.214901"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.215928"], ["updated_at", "2025-01-14 17:09:25.215928"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2025-01-14 17:09:25.217182"], ["updated_at", "2025-01-14 17:09:25.217182"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.218129"], ["updated_at", "2025-01-14 17:09:25.218129"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2025-01-14 17:09:25.219741"], ["updated_at", "2025-01-14 17:09:25.219741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.220921"], ["updated_at", "2025-01-14 17:09:25.220921"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2025-01-14 17:09:25.222474"], ["updated_at", "2025-01-14 17:09:25.222474"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.223567"], ["updated_at", "2025-01-14 17:09:25.223567"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2025-01-14 17:09:25.224855"], ["updated_at", "2025-01-14 17:09:25.224855"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.225727"], ["updated_at", "2025-01-14 17:09:25.225727"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2025-01-14 17:09:25.237088"], ["updated_at", "2025-01-14 17:09:25.237088"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.238501"], ["updated_at", "2025-01-14 17:09:25.238501"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.239368"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 17:09:25.240016"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2025-01-14 17:09:25.242356"], ["updated_at", "2025-01-14 17:09:25.242356"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.243252"], ["updated_at", "2025-01-14 17:09:25.243252"]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 17:09:25.244041"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-01-14 17:09:25.244519"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-01-14 17:09:25.244984"], ["id", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-01-14 17:09:25.247292"], ["updated_at", "2025-01-14 17:09:25.247292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.248342"], ["updated_at", "2025-01-14 17:09:25.248342"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.249019"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 17:09:25.249467"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.250766"], ["updated_at", "2025-01-14 17:09:25.250766"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.251492"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 17:09:25.251992"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-01-14 17:09:25.252812"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.253541"], ["updated_at", "2025-01-14 17:09:25.253541"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.254123"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-01-14 17:09:25.255923"], ["updated_at", "2025-01-14 17:09:25.255923"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.256773"], ["updated_at", "2025-01-14 17:09:25.256773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.257333"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 17:09:25.257733"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.258646"], ["updated_at", "2025-01-14 17:09:25.258646"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.259195"], ["id", 2]] + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 17:09:25.259836"], ["id", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.261293"], ["updated_at", "2025-01-14 17:09:25.261293"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.262066"], ["id", 3]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-01-14 17:09:25.262594"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-01-14 17:09:25.264204"], ["updated_at", "2025-01-14 17:09:25.264204"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.265209"], ["updated_at", "2025-01-14 17:09:25.265209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 17:09:25.265999"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-01-14 17:09:25.266458"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-01-14 17:09:25.267682"], ["updated_at", "2025-01-14 17:09:25.267682"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.270766"], ["updated_at", "2025-01-14 17:09:25.270766"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-01-14 17:09:25.272918"], ["updated_at", "2025-01-14 17:09:25.272918"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-01-14 17:09:25.276781"], ["updated_at", "2025-01-14 17:09:25.276781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.278143"], ["updated_at", "2025-01-14 17:09:25.278143"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 27"], ["created_at", "2025-01-14 17:09:25.279837"], ["updated_at", "2025-01-14 17:09:25.279837"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.280913"], ["updated_at", "2025-01-14 17:09:25.280913"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 28"], ["created_at", "2025-01-14 17:09:25.283530"], ["updated_at", "2025-01-14 17:09:25.283530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.284590"], ["updated_at", "2025-01-14 17:09:25.284590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 29"], ["created_at", "2025-01-14 17:09:25.286219"], ["updated_at", "2025-01-14 17:09:25.286219"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.287306"], ["updated_at", "2025-01-14 17:09:25.287306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 30"], ["created_at", "2025-01-14 17:09:25.288841"], ["updated_at", "2025-01-14 17:09:25.288841"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.291697"], ["updated_at", "2025-01-14 17:09:25.291697"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 31"], ["created_at", "2025-01-14 17:09:25.296626"], ["updated_at", "2025-01-14 17:09:25.296626"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 32"], ["created_at", "2025-01-14 17:09:25.299244"], ["updated_at", "2025-01-14 17:09:25.299244"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.300312"], ["updated_at", "2025-01-14 17:09:25.300312"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 33"], ["created_at", "2025-01-14 17:09:25.305929"], ["updated_at", "2025-01-14 17:09:25.305929"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.306819"], ["updated_at", "2025-01-14 17:09:25.306819"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 17:09:25"], ["updated_at", "2025-01-13 17:09:25"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 34"], ["created_at", "2025-01-14 17:09:25.312539"], ["updated_at", "2025-01-14 17:09:25.312539"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.313535"], ["updated_at", "2025-01-14 17:09:25.313535"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.314382"], ["updated_at", "2025-01-14 17:09:25.314382"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.315112"], ["updated_at", "2025-01-14 17:09:25.315112"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.315776"], ["updated_at", "2025-01-14 17:09:25.315776"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.316423"], ["updated_at", "2025-01-14 17:09:25.316423"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.317060"], ["updated_at", "2025-01-14 17:09:25.317060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 35"], ["created_at", "2025-01-14 17:09:25.319275"], ["updated_at", "2025-01-14 17:09:25.319275"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.320374"], ["updated_at", "2025-01-14 17:09:25.320374"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.321152"], ["updated_at", "2025-01-14 17:09:25.321152"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.321840"], ["updated_at", "2025-01-14 17:09:25.321840"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.322485"], ["updated_at", "2025-01-14 17:09:25.322485"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.332656"], ["updated_at", "2025-01-14 17:09:25.332656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.333876"], ["updated_at", "2025-01-14 17:09:25.333876"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 36"], ["created_at", "2025-01-14 17:09:25.335869"], ["updated_at", "2025-01-14 17:09:25.335869"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 17:09:25.337236"], ["updated_at", "2025-01-14 17:09:25.337236"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.338264"], ["updated_at", "2025-01-14 17:09:25.338264"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.339044"], ["updated_at", "2025-01-14 17:09:25.339044"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.339741"], ["updated_at", "2025-01-14 17:09:25.339741"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 37"], ["created_at", "2025-01-14 17:09:25.341069"], ["updated_at", "2025-01-14 17:09:25.341069"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.342202"], ["updated_at", "2025-01-14 17:09:25.342202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.342975"], ["updated_at", "2025-01-14 17:09:25.342975"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.343854"], ["updated_at", "2025-01-14 17:09:25.343854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.344543"], ["updated_at", "2025-01-14 17:09:25.344543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + 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]] + 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", "other_test_type"], ["LIMIT", 1]] + 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", "other_test_type"], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 38"], ["created_at", "2025-01-14 17:09:25.347732"], ["updated_at", "2025-01-14 17:09:25.347732"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.348799"], ["updated_at", "2025-01-14 17:09:25.348799"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.349578"], ["updated_at", "2025-01-14 17:09:25.349578"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.350256"], ["updated_at", "2025-01-14 17:09:25.350256"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.351136"], ["updated_at", "2025-01-14 17:09:25.351136"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 39"], ["created_at", "2025-01-14 17:09:25.352599"], ["updated_at", "2025-01-14 17:09:25.352599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.353717"], ["updated_at", "2025-01-14 17:09:25.353717"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.354517"], ["updated_at", "2025-01-14 17:09:25.354517"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.355199"], ["updated_at", "2025-01-14 17:09:25.355199"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.356030"], ["updated_at", "2025-01-14 17:09:25.356030"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 40"], ["created_at", "2025-01-14 17:09:25.358588"], ["updated_at", "2025-01-14 17:09:25.358588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 17:09:25.359429"], ["updated_at", "2025-01-14 17:09:25.359429"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.1ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.7ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.6ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 18:01:57.483209"], ["updated_at", "2025-01-14 18:01:57.483209"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.487385"], ["updated_at", "2025-01-14 18:01:57.487385"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 18:01:57.493575"], ["updated_at", "2025-01-14 18:01:57.493575"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.494543"], ["updated_at", "2025-01-14 18:01:57.494543"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2025-01-14 18:01:57.503570"], ["updated_at", "2025-01-14 18:01:57.503570"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.504452"], ["updated_at", "2025-01-14 18:01:57.504452"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.1ms) 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2025-01-14 18:01:57.506490"], ["updated_at", "2025-01-14 18:01:57.506490"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.507080"], ["updated_at", "2025-01-14 18:01:57.507080"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2025-01-14 18:01:57.509091"], ["updated_at", "2025-01-14 18:01:57.509091"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.509790"], ["updated_at", "2025-01-14 18:01:57.509790"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2025-01-14 18:01:57.511025"], ["updated_at", "2025-01-14 18:01:57.511025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.511621"], ["updated_at", "2025-01-14 18:01:57.511621"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2025-01-14 18:01:57.512805"], ["updated_at", "2025-01-14 18:01:57.512805"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.517443"], ["updated_at", "2025-01-14 18:01:57.517443"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2025-01-14 18:01:57.519304"], ["updated_at", "2025-01-14 18:01:57.519304"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.520481"], ["updated_at", "2025-01-14 18:01:57.520481"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2025-01-14 18:01:57.521781"], ["updated_at", "2025-01-14 18:01:57.521781"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 18:01:57.522637"], ["updated_at", "2025-01-14 18:01:57.522637"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2025-01-14 18:01:57.523738"], ["updated_at", "2025-01-14 18:01:57.523738"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 18:01:57.524567"], ["updated_at", "2025-01-14 18:01:57.524567"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2025-01-14 18:01:57.525731"], ["updated_at", "2025-01-14 18:01:57.525731"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.526573"], ["updated_at", "2025-01-14 18:01:57.526573"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2025-01-14 18:01:57.527681"], ["updated_at", "2025-01-14 18:01:57.527681"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.528460"], ["updated_at", "2025-01-14 18:01:57.528460"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2025-01-14 18:01:57.530124"], ["updated_at", "2025-01-14 18:01:57.530124"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.530976"], ["updated_at", "2025-01-14 18:01:57.530976"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.531667"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 18:01:57.532282"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2025-01-14 18:01:57.533927"], ["updated_at", "2025-01-14 18:01:57.533927"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.534924"], ["updated_at", "2025-01-14 18:01:57.534924"]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 18:01:57.535616"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-01-14 18:01:57.536148"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-01-14 18:01:57.536631"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-01-14 18:01:57.538393"], ["updated_at", "2025-01-14 18:01:57.538393"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.539368"], ["updated_at", "2025-01-14 18:01:57.539368"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.539977"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 18:01:57.540441"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.541388"], ["updated_at", "2025-01-14 18:01:57.541388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.542051"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 18:01:57.542541"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-01-14 18:01:57.543309"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.544065"], ["updated_at", "2025-01-14 18:01:57.544065"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.544678"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-01-14 18:01:57.546228"], ["updated_at", "2025-01-14 18:01:57.546228"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.547137"], ["updated_at", "2025-01-14 18:01:57.547137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.547770"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 18:01:57.548194"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.558246"], ["updated_at", "2025-01-14 18:01:57.558246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.559327"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 18:01:57.559921"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.561099"], ["updated_at", "2025-01-14 18:01:57.561099"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.561770"], ["id", 3]] + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-01-14 18:01:57.562215"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-01-14 18:01:57.565925"], ["updated_at", "2025-01-14 18:01:57.565925"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.568176"], ["updated_at", "2025-01-14 18:01:57.568176"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:01:57.569525"], ["id", 1]] + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-01-14 18:01:57.570399"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-01-14 18:01:57.572774"], ["updated_at", "2025-01-14 18:01:57.572774"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + KYCState 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", "KYCState"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"document_type\":\"passport\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.576642"], ["updated_at", "2025-01-14 18:01:57.576642"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-01-14 18:01:57.579550"], ["updated_at", "2025-01-14 18:01:57.579550"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-01-14 18:01:57.585346"], ["updated_at", "2025-01-14 18:01:57.585346"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.587060"], ["updated_at", "2025-01-14 18:01:57.587060"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.1ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 27"], ["created_at", "2025-01-14 18:01:57.590156"], ["updated_at", "2025-01-14 18:01:57.590156"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + KYCState 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", "KYCState"], ["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"document_type\":\"passport\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.592475"], ["updated_at", "2025-01-14 18:01:57.592475"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 28"], ["created_at", "2025-01-14 18:01:57.596585"], ["updated_at", "2025-01-14 18:01:57.596585"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.598015"], ["updated_at", "2025-01-14 18:01:57.598015"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 29"], ["created_at", "2025-01-14 18:01:57.599957"], ["updated_at", "2025-01-14 18:01:57.599957"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.601294"], ["updated_at", "2025-01-14 18:01:57.601294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 30"], ["created_at", "2025-01-14 18:01:57.603599"], ["updated_at", "2025-01-14 18:01:57.603599"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.608469"], ["updated_at", "2025-01-14 18:01:57.608469"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 31"], ["created_at", "2025-01-14 18:01:57.617576"], ["updated_at", "2025-01-14 18:01:57.617576"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 32"], ["created_at", "2025-01-14 18:01:57.620371"], ["updated_at", "2025-01-14 18:01:57.620371"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.621667"], ["updated_at", "2025-01-14 18:01:57.621667"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 33"], ["created_at", "2025-01-14 18:01:57.627935"], ["updated_at", "2025-01-14 18:01:57.627935"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.628973"], ["updated_at", "2025-01-14 18:01:57.628973"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:01:57"], ["updated_at", "2025-01-13 18:01:57"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 34"], ["created_at", "2025-01-14 18:01:57.634458"], ["updated_at", "2025-01-14 18:01:57.634458"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.635637"], ["updated_at", "2025-01-14 18:01:57.635637"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.636462"], ["updated_at", "2025-01-14 18:01:57.636462"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.637162"], ["updated_at", "2025-01-14 18:01:57.637162"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.637813"], ["updated_at", "2025-01-14 18:01:57.637813"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.638462"], ["updated_at", "2025-01-14 18:01:57.638462"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.639108"], ["updated_at", "2025-01-14 18:01:57.639108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 35"], ["created_at", "2025-01-14 18:01:57.641130"], ["updated_at", "2025-01-14 18:01:57.641130"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.642034"], ["updated_at", "2025-01-14 18:01:57.642034"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.642758"], ["updated_at", "2025-01-14 18:01:57.642758"]] + TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.651860"], ["updated_at", "2025-01-14 18:01:57.651860"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.653056"], ["updated_at", "2025-01-14 18:01:57.653056"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.653919"], ["updated_at", "2025-01-14 18:01:57.653919"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.654817"], ["updated_at", "2025-01-14 18:01:57.654817"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 36"], ["created_at", "2025-01-14 18:01:57.657171"], ["updated_at", "2025-01-14 18:01:57.657171"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.658074"], ["updated_at", "2025-01-14 18:01:57.658074"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.658922"], ["updated_at", "2025-01-14 18:01:57.658922"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.659701"], ["updated_at", "2025-01-14 18:01:57.659701"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.660656"], ["updated_at", "2025-01-14 18:01:57.660656"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 37"], ["created_at", "2025-01-14 18:01:57.662011"], ["updated_at", "2025-01-14 18:01:57.662011"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.662945"], ["updated_at", "2025-01-14 18:01:57.662945"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.663671"], ["updated_at", "2025-01-14 18:01:57.663671"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.664345"], ["updated_at", "2025-01-14 18:01:57.664345"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.665246"], ["updated_at", "2025-01-14 18:01:57.665246"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + 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]] + 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", "other_test_type"], ["LIMIT", 1]] + 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", "other_test_type"], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 38"], ["created_at", "2025-01-14 18:01:57.668214"], ["updated_at", "2025-01-14 18:01:57.668214"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.669306"], ["updated_at", "2025-01-14 18:01:57.669306"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.670202"], ["updated_at", "2025-01-14 18:01:57.670202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.671327"], ["updated_at", "2025-01-14 18:01:57.671327"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.672020"], ["updated_at", "2025-01-14 18:01:57.672020"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 39"], ["created_at", "2025-01-14 18:01:57.673309"], ["updated_at", "2025-01-14 18:01:57.673309"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:01:57.674153"], ["updated_at", "2025-01-14 18:01:57.674153"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.675023"], ["updated_at", "2025-01-14 18:01:57.675023"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.675681"], ["updated_at", "2025-01-14 18:01:57.675681"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.676343"], ["updated_at", "2025-01-14 18:01:57.676343"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 40"], ["created_at", "2025-01-14 18:01:57.678960"], ["updated_at", "2025-01-14 18:01:57.678960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:01:57.679882"], ["updated_at", "2025-01-14 18:01:57.679882"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + SQL (1.9ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.7ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.0ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 18:03:12.224794"], ["updated_at", "2025-01-14 18:03:12.224794"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.228645"], ["updated_at", "2025-01-14 18:03:12.228645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 18:03:12.234405"], ["updated_at", "2025-01-14 18:03:12.234405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.235521"], ["updated_at", "2025-01-14 18:03:12.235521"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2025-01-14 18:03:12.260417"], ["updated_at", "2025-01-14 18:03:12.260417"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.261324"], ["updated_at", "2025-01-14 18:03:12.261324"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.1ms) 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2025-01-14 18:03:12.263215"], ["updated_at", "2025-01-14 18:03:12.263215"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.263898"], ["updated_at", "2025-01-14 18:03:12.263898"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2025-01-14 18:03:12.266367"], ["updated_at", "2025-01-14 18:03:12.266367"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.267271"], ["updated_at", "2025-01-14 18:03:12.267271"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2025-01-14 18:03:12.269045"], ["updated_at", "2025-01-14 18:03:12.269045"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.270032"], ["updated_at", "2025-01-14 18:03:12.270032"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2025-01-14 18:03:12.281137"], ["updated_at", "2025-01-14 18:03:12.281137"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.286860"], ["updated_at", "2025-01-14 18:03:12.286860"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2025-01-14 18:03:12.288840"], ["updated_at", "2025-01-14 18:03:12.288840"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"documents\":{\"passport\":{\"status\":\"rejected\",\"reason\":\"expired\"},\"utility_bill\":{\"status\":\"pending\"}}}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.290392"], ["updated_at", "2025-01-14 18:03:12.290392"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2025-01-14 18:03:12.291802"], ["updated_at", "2025-01-14 18:03:12.291802"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 18:03:12.292740"], ["updated_at", "2025-01-14 18:03:12.292740"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-01-14 18:03:12.294028"], ["updated_at", "2025-01-14 18:03:12.294028"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.295217"], ["updated_at", "2025-01-14 18:03:12.295217"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-01-14 18:03:12.296502"], ["updated_at", "2025-01-14 18:03:12.296502"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.297319"], ["updated_at", "2025-01-14 18:03:12.297319"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-01-14 18:03:12.298414"], ["updated_at", "2025-01-14 18:03:12.298414"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.299619"], ["updated_at", "2025-01-14 18:03:12.299619"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-01-14 18:03:12.301725"], ["updated_at", "2025-01-14 18:03:12.301725"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.303160"], ["updated_at", "2025-01-14 18:03:12.303160"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.304141"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 18:03:12.304840"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-01-14 18:03:12.306672"], ["updated_at", "2025-01-14 18:03:12.306672"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.307700"], ["updated_at", "2025-01-14 18:03:12.307700"]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 18:03:12.308393"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-01-14 18:03:12.308902"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-01-14 18:03:12.309389"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-01-14 18:03:12.311012"], ["updated_at", "2025-01-14 18:03:12.311012"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.311890"], ["updated_at", "2025-01-14 18:03:12.311890"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.312667"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 18:03:12.313087"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.314104"], ["updated_at", "2025-01-14 18:03:12.314104"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.314727"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 18:03:12.315171"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-01-14 18:03:12.315916"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.316753"], ["updated_at", "2025-01-14 18:03:12.316753"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.317443"], ["id", 3]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 27"], ["created_at", "2025-01-14 18:03:12.319457"], ["updated_at", "2025-01-14 18:03:12.319457"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.320693"], ["updated_at", "2025-01-14 18:03:12.320693"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.321334"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 18:03:12.321793"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.322748"], ["updated_at", "2025-01-14 18:03:12.322748"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.323559"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 18:03:12.323976"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.324893"], ["updated_at", "2025-01-14 18:03:12.324893"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.325634"], ["id", 3]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-01-14 18:03:12.326081"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 28"], ["created_at", "2025-01-14 18:03:12.327577"], ["updated_at", "2025-01-14 18:03:12.327577"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.328402"], ["updated_at", "2025-01-14 18:03:12.328402"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:03:12.328980"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-01-14 18:03:12.329373"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 29"], ["created_at", "2025-01-14 18:03:12.330605"], ["updated_at", "2025-01-14 18:03:12.330605"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.333496"], ["updated_at", "2025-01-14 18:03:12.333496"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 30"], ["created_at", "2025-01-14 18:03:12.335946"], ["updated_at", "2025-01-14 18:03:12.335946"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 31"], ["created_at", "2025-01-14 18:03:12.340400"], ["updated_at", "2025-01-14 18:03:12.340400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.341558"], ["updated_at", "2025-01-14 18:03:12.341558"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 32"], ["created_at", "2025-01-14 18:03:12.343073"], ["updated_at", "2025-01-14 18:03:12.343073"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.344031"], ["updated_at", "2025-01-14 18:03:12.344031"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 33"], ["created_at", "2025-01-14 18:03:12.346332"], ["updated_at", "2025-01-14 18:03:12.346332"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.347171"], ["updated_at", "2025-01-14 18:03:12.347171"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 34"], ["created_at", "2025-01-14 18:03:12.348312"], ["updated_at", "2025-01-14 18:03:12.348312"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.349304"], ["updated_at", "2025-01-14 18:03:12.349304"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 35"], ["created_at", "2025-01-14 18:03:12.351059"], ["updated_at", "2025-01-14 18:03:12.351059"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::CustomState 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::CustomState"], ["state_type", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.354070"], ["updated_at", "2025-01-14 18:03:12.354070"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 36"], ["created_at", "2025-01-14 18:03:12.358990"], ["updated_at", "2025-01-14 18:03:12.358990"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 37"], ["created_at", "2025-01-14 18:03:12.361292"], ["updated_at", "2025-01-14 18:03:12.361292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.362178"], ["updated_at", "2025-01-14 18:03:12.362178"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 38"], ["created_at", "2025-01-14 18:03:12.367846"], ["updated_at", "2025-01-14 18:03:12.367846"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.368981"], ["updated_at", "2025-01-14 18:03:12.368981"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:03:12"], ["updated_at", "2025-01-13 18:03:12"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 39"], ["created_at", "2025-01-14 18:03:12.385334"], ["updated_at", "2025-01-14 18:03:12.385334"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.386708"], ["updated_at", "2025-01-14 18:03:12.386708"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.387773"], ["updated_at", "2025-01-14 18:03:12.387773"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.388560"], ["updated_at", "2025-01-14 18:03:12.388560"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.389259"], ["updated_at", "2025-01-14 18:03:12.389259"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:03:12.390491"], ["updated_at", "2025-01-14 18:03:12.390491"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.391337"], ["updated_at", "2025-01-14 18:03:12.391337"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 40"], ["created_at", "2025-01-14 18:03:12.393484"], ["updated_at", "2025-01-14 18:03:12.393484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Create (0.5ms) 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-01-14 18:03:12.394343"], ["updated_at", "2025-01-14 18:03:12.394343"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.395547"], ["updated_at", "2025-01-14 18:03:12.395547"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.396331"], ["updated_at", "2025-01-14 18:03:12.396331"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.397025"], ["updated_at", "2025-01-14 18:03:12.397025"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.397690"], ["updated_at", "2025-01-14 18:03:12.397690"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.398357"], ["updated_at", "2025-01-14 18:03:12.398357"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 41"], ["created_at", "2025-01-14 18:03:12.400588"], ["updated_at", "2025-01-14 18:03:12.400588"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.401779"], ["updated_at", "2025-01-14 18:03:12.401779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.402889"], ["updated_at", "2025-01-14 18:03:12.402889"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.403740"], ["updated_at", "2025-01-14 18:03:12.403740"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.404618"], ["updated_at", "2025-01-14 18:03:12.404618"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 42"], ["created_at", "2025-01-14 18:03:12.405993"], ["updated_at", "2025-01-14 18:03:12.405993"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.406883"], ["updated_at", "2025-01-14 18:03:12.406883"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.407590"], ["updated_at", "2025-01-14 18:03:12.407590"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.408405"], ["updated_at", "2025-01-14 18:03:12.408405"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.409120"], ["updated_at", "2025-01-14 18:03:12.409120"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + 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]] + 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", "other_test_type"], ["LIMIT", 1]] + 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", "other_test_type"], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 43"], ["created_at", "2025-01-14 18:03:12.411863"], ["updated_at", "2025-01-14 18:03:12.411863"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.412814"], ["updated_at", "2025-01-14 18:03:12.412814"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.413566"], ["updated_at", "2025-01-14 18:03:12.413566"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.414323"], ["updated_at", "2025-01-14 18:03:12.414323"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.414991"], ["updated_at", "2025-01-14 18:03:12.414991"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 44"], ["created_at", "2025-01-14 18:03:12.416461"], ["updated_at", "2025-01-14 18:03:12.416461"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.417629"], ["updated_at", "2025-01-14 18:03:12.417629"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.418527"], ["updated_at", "2025-01-14 18:03:12.418527"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.419471"], ["updated_at", "2025-01-14 18:03:12.419471"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.420330"], ["updated_at", "2025-01-14 18:03:12.420330"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 45"], ["created_at", "2025-01-14 18:03:12.423150"], ["updated_at", "2025-01-14 18:03:12.423150"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:03:12.424015"], ["updated_at", "2025-01-14 18:03:12.424015"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + ActiveRecord::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]] + ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Migrating to CreateIndexesOnHasStatesStates (20250114175939) + TRANSACTION (0.0ms) BEGIN immediate TRANSACTION +  (0.2ms) CREATE INDEX "index_has_states_states_on_stateable_id_and_state_type" ON "has_states_states" ("stateable_id", "state_type") +  (0.0ms) CREATE INDEX "idx_on_stateable_id_state_type_status_6d3d026e4d" ON "has_states_states" ("stateable_id", "state_type", "status") +  (0.0ms) CREATE INDEX "idx_on_stateable_id_state_type_created_at_b5d09fb6ee" ON "has_states_states" ("stateable_id", "state_type", "created_at") +  (0.0ms) CREATE INDEX "idx_on_stateable_id_state_type_status_created_at_19e1cf37c2" ON "has_states_states" ("stateable_id", "state_type", "status", "created_at") + ActiveRecord::SchemaMigration Create (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250114175939') RETURNING "version" + TRANSACTION (14.2ms) COMMIT TRANSACTION + ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + SQL (1.7ms) PRAGMA foreign_keys + SQL (0.0ms) PRAGMA defer_foreign_keys +  (0.0ms) PRAGMA defer_foreign_keys = ON +  (0.0ms) PRAGMA foreign_keys = OFF +  (0.1ms) TRUNCATE TABLE "users" +  (14.4ms) DELETE FROM "users" +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'users'; +  (0.1ms) TRUNCATE TABLE "has_states_states" +  (0.1ms) DELETE FROM "has_states_states" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states'; +  (0.1ms) TRUNCATE TABLE "companies" +  (0.0ms) DELETE FROM "companies" +  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies'; +  (0.0ms) PRAGMA defer_foreign_keys = 0 +  (0.0ms) PRAGMA foreign_keys = 1 + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2025-01-14 18:04:01.354816"], ["updated_at", "2025-01-14 18:04:01.354816"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.359294"], ["updated_at", "2025-01-14 18:04:01.359294"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2025-01-14 18:04:01.365551"], ["updated_at", "2025-01-14 18:04:01.365551"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.366446"], ["updated_at", "2025-01-14 18:04:01.366446"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2025-01-14 18:04:01.381383"], ["updated_at", "2025-01-14 18:04:01.381383"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.382344"], ["updated_at", "2025-01-14 18:04:01.382344"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.1ms) 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2025-01-14 18:04:01.384487"], ["updated_at", "2025-01-14 18:04:01.384487"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.385196"], ["updated_at", "2025-01-14 18:04:01.385196"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2025-01-14 18:04:01.387388"], ["updated_at", "2025-01-14 18:04:01.387388"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.388098"], ["updated_at", "2025-01-14 18:04:01.388098"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2025-01-14 18:04:01.389502"], ["updated_at", "2025-01-14 18:04:01.389502"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.390232"], ["updated_at", "2025-01-14 18:04:01.390232"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2025-01-14 18:04:01.391613"], ["updated_at", "2025-01-14 18:04:01.391613"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.396085"], ["updated_at", "2025-01-14 18:04:01.396085"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2025-01-14 18:04:01.397985"], ["updated_at", "2025-01-14 18:04:01.397985"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"documents\":{\"passport\":{\"status\":\"rejected\",\"reason\":\"expired\"},\"utility_bill\":{\"status\":\"pending\"}}}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.399196"], ["updated_at", "2025-01-14 18:04:01.399196"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2025-01-14 18:04:01.400644"], ["updated_at", "2025-01-14 18:04:01.400644"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 18:04:01.401503"], ["updated_at", "2025-01-14 18:04:01.401503"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2025-01-14 18:04:01.402720"], ["updated_at", "2025-01-14 18:04:01.402720"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"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-01-14 18:04:01.403663"], ["updated_at", "2025-01-14 18:04:01.403663"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2025-01-14 18:04:01.404920"], ["updated_at", "2025-01-14 18:04:01.404920"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.405779"], ["updated_at", "2025-01-14 18:04:01.405779"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2025-01-14 18:04:01.406854"], ["updated_at", "2025-01-14 18:04:01.406854"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.407622"], ["updated_at", "2025-01-14 18:04:01.407622"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::State Load (0.2ms) 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2025-01-14 18:04:01.410734"], ["updated_at", "2025-01-14 18:04:01.410734"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.413089"], ["updated_at", "2025-01-14 18:04:01.413089"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.414110"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 18:04:01.414827"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 25"], ["created_at", "2025-01-14 18:04:01.416626"], ["updated_at", "2025-01-14 18:04:01.416626"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.417636"], ["updated_at", "2025-01-14 18:04:01.417636"]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2025-01-14 18:04:01.418197"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2025-01-14 18:04:01.418653"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2025-01-14 18:04:01.419084"], ["id", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 26"], ["created_at", "2025-01-14 18:04:01.430040"], ["updated_at", "2025-01-14 18:04:01.430040"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.431525"], ["updated_at", "2025-01-14 18:04:01.431525"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.432340"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 18:04:01.432878"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.434484"], ["updated_at", "2025-01-14 18:04:01.434484"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.435504"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 18:04:01.436123"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2025-01-14 18:04:01.436964"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.437752"], ["updated_at", "2025-01-14 18:04:01.437752"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.438354"], ["id", 3]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 27"], ["created_at", "2025-01-14 18:04:01.440267"], ["updated_at", "2025-01-14 18:04:01.440267"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.441161"], ["updated_at", "2025-01-14 18:04:01.441161"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.441795"], ["id", 1]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2025-01-14 18:04:01.442223"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.443229"], ["updated_at", "2025-01-14 18:04:01.443229"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.444113"], ["id", 2]] + User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2025-01-14 18:04:01.444580"], ["id", 1]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.446941"], ["updated_at", "2025-01-14 18:04:01.446941"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.448532"], ["id", 3]] + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2025-01-14 18:04:01.449558"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 28"], ["created_at", "2025-01-14 18:04:01.452539"], ["updated_at", "2025-01-14 18:04:01.452539"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.454844"], ["updated_at", "2025-01-14 18:04:01.454844"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2025-01-14 18:04:01.456177"], ["id", 1]] + User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2025-01-14 18:04:01.457098"], ["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 29"], ["created_at", "2025-01-14 18:04:01.458805"], ["updated_at", "2025-01-14 18:04:01.458805"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.462180"], ["updated_at", "2025-01-14 18:04:01.462180"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 30"], ["created_at", "2025-01-14 18:04:01.464840"], ["updated_at", "2025-01-14 18:04:01.464840"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 31"], ["created_at", "2025-01-14 18:04:01.469400"], ["updated_at", "2025-01-14 18:04:01.469400"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.470436"], ["updated_at", "2025-01-14 18:04:01.470436"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 32"], ["created_at", "2025-01-14 18:04:01.471872"], ["updated_at", "2025-01-14 18:04:01.471872"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.472896"], ["updated_at", "2025-01-14 18:04:01.472896"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 33"], ["created_at", "2025-01-14 18:04:01.475108"], ["updated_at", "2025-01-14 18:04:01.475108"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.476153"], ["updated_at", "2025-01-14 18:04:01.476153"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 34"], ["created_at", "2025-01-14 18:04:01.477706"], ["updated_at", "2025-01-14 18:04:01.477706"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.478681"], ["updated_at", "2025-01-14 18:04:01.478681"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 35"], ["created_at", "2025-01-14 18:04:01.480760"], ["updated_at", "2025-01-14 18:04:01.480760"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.484348"], ["updated_at", "2025-01-14 18:04:01.484348"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 36"], ["created_at", "2025-01-14 18:04:01.489536"], ["updated_at", "2025-01-14 18:04:01.489536"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 37"], ["created_at", "2025-01-14 18:04:01.491898"], ["updated_at", "2025-01-14 18:04:01.491898"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.492966"], ["updated_at", "2025-01-14 18:04:01.492966"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 38"], ["created_at", "2025-01-14 18:04:01.499225"], ["updated_at", "2025-01-14 18:04:01.499225"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.500238"], ["updated_at", "2025-01-14 18:04:01.500238"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-13 18:04:01"], ["updated_at", "2025-01-13 18:04:01"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 39"], ["created_at", "2025-01-14 18:04:01.514146"], ["updated_at", "2025-01-14 18:04:01.514146"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.515548"], ["updated_at", "2025-01-14 18:04:01.515548"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.516480"], ["updated_at", "2025-01-14 18:04:01.516480"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.517202"], ["updated_at", "2025-01-14 18:04:01.517202"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.517871"], ["updated_at", "2025-01-14 18:04:01.517871"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.518530"], ["updated_at", "2025-01-14 18:04:01.518530"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.519762"], ["updated_at", "2025-01-14 18:04:01.519762"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 40"], ["created_at", "2025-01-14 18:04:01.522079"], ["updated_at", "2025-01-14 18:04:01.522079"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.522965"], ["updated_at", "2025-01-14 18:04:01.522965"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.523884"], ["updated_at", "2025-01-14 18:04:01.523884"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.524630"], ["updated_at", "2025-01-14 18:04:01.524630"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.525292"], ["updated_at", "2025-01-14 18:04:01.525292"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.525978"], ["updated_at", "2025-01-14 18:04:01.525978"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.526633"], ["updated_at", "2025-01-14 18:04:01.526633"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 41"], ["created_at", "2025-01-14 18:04:01.528842"], ["updated_at", "2025-01-14 18:04:01.528842"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.529960"], ["updated_at", "2025-01-14 18:04:01.529960"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.530799"], ["updated_at", "2025-01-14 18:04:01.530799"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.531583"], ["updated_at", "2025-01-14 18:04:01.531583"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.1ms) SAVEPOINT active_record_1 + 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", "other_test_type"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2025-01-14 18:04:01.532295"], ["updated_at", "2025-01-14 18:04:01.532295"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 42"], ["created_at", "2025-01-14 18:04:01.533785"], ["updated_at", "2025-01-14 18:04:01.533785"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.534938"], ["updated_at", "2025-01-14 18:04:01.534938"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.535898"], ["updated_at", "2025-01-14 18:04:01.535898"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.536625"], ["updated_at", "2025-01-14 18:04:01.536625"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.537317"], ["updated_at", "2025-01-14 18:04:01.537317"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] + 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]] + 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]] + 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]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 43"], ["created_at", "2025-01-14 18:04:01.540399"], ["updated_at", "2025-01-14 18:04:01.540399"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.541409"], ["updated_at", "2025-01-14 18:04:01.541409"]] + TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.542403"], ["updated_at", "2025-01-14 18:04:01.542403"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.543181"], ["updated_at", "2025-01-14 18:04:01.543181"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.543847"], ["updated_at", "2025-01-14 18:04:01.543847"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 44"], ["created_at", "2025-01-14 18:04:01.545245"], ["updated_at", "2025-01-14 18:04:01.545245"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.546645"], ["updated_at", "2025-01-14 18:04:01.546645"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.547595"], ["updated_at", "2025-01-14 18:04:01.547595"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.548393"], ["updated_at", "2025-01-14 18:04:01.548393"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.549162"], ["updated_at", "2025-01-14 18:04:01.549162"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] + 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"]] + 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"]] + 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"]] + TRANSACTION (0.0ms) ROLLBACK TRANSACTION + TRANSACTION (0.0ms) BEGIN deferred TRANSACTION + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + User Create (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 45"], ["created_at", "2025-01-14 18:04:01.551949"], ["updated_at", "2025-01-14 18:04:01.551949"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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-01-14 18:04:01.552907"], ["updated_at", "2025-01-14 18:04:01.552907"]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) SAVEPOINT active_record_1 + 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" = ? [["stateable_id", 1], ["stateable_type", "User"]] + HasStates::State Destroy (0.0ms) DELETE FROM "has_states_states" WHERE "has_states_states"."id" = ? [["id", 1]] + User Destroy (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]] + TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 + HasStates::Base Count (0.0ms) SELECT COUNT(*) FROM "has_states_states" + TRANSACTION (0.0ms) ROLLBACK TRANSACTION