SQL (18.8ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 SQL (4.3ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 SQL (3.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.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 SQL (4.3ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 SQL (3.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 SQL (3.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) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (2.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) 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 SQL (3.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (2.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) 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 SQL (4.0ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (2.1ms) 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) ROLLBACK TRANSACTION  (0.1ms) DROP TABLE IF EXISTS "companies"  (16.6ms) CREATE TABLE "companies" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "has_states_states"  (0.2ms) CREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "type" varchar NOT NULL, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) CREATE INDEX "idx_on_stateable_type_stateable_id_type_feb6c1fa88" ON "has_states_states" ("stateable_type", "stateable_id", "type")  (0.1ms) CREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id")  (0.3ms) CREATE INDEX "index_has_states_states_on_type_and_status" ON "has_states_states" ("type", "status")  (0.3ms) DROP TABLE IF EXISTS "users"  (0.2ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES (20241221173105)  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES (20241221171423);  (0.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) 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::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2024-12-21 17:36:23.056860', '2024-12-21 17:36:23.056864') RETURNING "key" 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::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]] ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '35ec6322cc760fae01dce9cbb1fec12666c3b375', '2024-12-21 17:36:23.062195', '2024-12-21 17:36:23.062199') RETURNING "key" ActiveRecord::InternalMetadata Load (0.8ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]] ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC SQL (4.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.5ms) TRUNCATE TABLE "users"  (14.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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.2ms) ROLLBACK TRANSACTION SQL (4.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.3ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 17:37:50.879706"], ["updated_at", "2024-12-21 17:37:50.879706"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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", "2024-12-21 17:37:50.905839"], ["updated_at", "2024-12-21 17:37:50.905839"]] 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 3"], ["created_at", "2024-12-21 17:37:50.909946"], ["updated_at", "2024-12-21 17:37:50.909946"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2024-12-21 17:37:50.955798"], ["updated_at", "2024-12-21 17:37:50.955798"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 17:37:50.976515"], ["updated_at", "2024-12-21 17:37:50.976515"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) SAVEPOINT active_record_1 User Create (4.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 17:37:50.984299"], ["updated_at", "2024-12-21 17:37:50.984299"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 2], ["completed_at", nil], ["created_at", "2024-12-21 17:37:50.993044"], ["updated_at", "2024-12-21 17:37:50.993044"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 17:37:51.003934"], ["updated_at", "2024-12-21 17:37:51.003934"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 17:37:51.008128"], ["updated_at", "2024-12-21 17:37:51.008128"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 17:37:51.021885"], ["updated_at", "2024-12-21 17:37:51.021885"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 2], ["completed_at", nil], ["created_at", "2024-12-21 17:37:51.026737"], ["updated_at", "2024-12-21 17:37:51.026737"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.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.5ms) DELETE FROM "has_states_states"  (1.6ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 17:38:59.922018"], ["updated_at", "2024-12-21 17:38:59.922018"]] TRANSACTION (0.1ms) 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", "2024-12-21 17:38:59.945914"], ["updated_at", "2024-12-21 17:38:59.945914"]] 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 (19.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 3"], ["created_at", "2024-12-21 17:38:59.950195"], ["updated_at", "2024-12-21 17:38:59.950195"]] TRANSACTION (0.1ms) 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 6"], ["created_at", "2024-12-21 17:38:59.993621"], ["updated_at", "2024-12-21 17:38:59.993621"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 17:39:00.003052"], ["updated_at", "2024-12-21 17:39:00.003052"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 User Create (1.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 17:39:00.007766"], ["updated_at", "2024-12-21 17:39:00.007766"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 2], ["completed_at", nil], ["created_at", "2024-12-21 17:39:00.010720"], ["updated_at", "2024-12-21 17:39:00.010720"]] 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 17:39:00.016641"], ["updated_at", "2024-12-21 17:39:00.016641"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 17:39:00.018623"], ["updated_at", "2024-12-21 17:39:00.018623"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 17:39:00.029183"], ["updated_at", "2024-12-21 17:39:00.029183"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 2], ["completed_at", nil], ["created_at", "2024-12-21 17:39:00.035009"], ["updated_at", "2024-12-21 17:39:00.035009"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.3ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.6ms) DELETE FROM "has_states_states"  (2.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 17:41:07.900962"], ["updated_at", "2024-12-21 17:41:07.900962"]] TRANSACTION (0.4ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 2"], ["created_at", "2024-12-21 17:41:07.928599"], ["updated_at", "2024-12-21 17:41:07.928599"]] 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 3"], ["created_at", "2024-12-21 17:41:07.933055"], ["updated_at", "2024-12-21 17:41:07.933055"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.4ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (2.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2024-12-21 17:42:14.187190"], ["updated_at", "2024-12-21 17:42:14.187190"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 5"], ["created_at", "2024-12-21 17:42:14.219786"], ["updated_at", "2024-12-21 17:42:14.219786"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 6"], ["created_at", "2024-12-21 17:42:14.227292"], ["updated_at", "2024-12-21 17:42:14.227292"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.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.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 4"], ["created_at", "2024-12-21 17:43:28.172663"], ["updated_at", "2024-12-21 17:43:28.172663"]] 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 5"], ["created_at", "2024-12-21 17:43:28.191081"], ["updated_at", "2024-12-21 17:43:28.191081"]] 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 6"], ["created_at", "2024-12-21 17:43:28.196195"], ["updated_at", "2024-12-21 17:43:28.196195"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.3ms) TRUNCATE TABLE "users"  (20.1ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) TRUNCATE TABLE "has_states_states"  (0.6ms) DELETE FROM "has_states_states"  (2.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.2ms) ROLLBACK TRANSACTION SQL (4.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"  (16.9ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) TRUNCATE TABLE "has_states_states"  (0.6ms) DELETE FROM "has_states_states"  (2.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.1ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (14.2ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (3.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"  (7.9ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (4.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.3ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.2ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (4.1ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.5ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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 SQL (4.7ms) 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"  (15.4ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 17:54:15.045775"], ["updated_at", "2024-12-21 17:54:15.045775"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.1ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 17:56:46.208645"], ["updated_at", "2024-12-21 17:56:46.208645"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 17:56:46.217860"], ["updated_at", "2024-12-21 17:56:46.217860"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.3ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 17:57:17.132268"], ["updated_at", "2024-12-21 17:57:17.132268"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 17:57:17.141781"], ["updated_at", "2024-12-21 17:57:17.141781"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-21 17:57:17.144747"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (4.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.3ms) TRUNCATE TABLE "users"  (15.0ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (3.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.3ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.7ms) DELETE FROM "has_states_states"  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.9ms) 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"  (1.8ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (4.1ms) 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"  (7.9ms) 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"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (5.7ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.4ms) TRUNCATE TABLE "users"  (14.5ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) TRUNCATE TABLE "has_states_states"  (0.6ms) DELETE FROM "has_states_states"  (2.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.3ms) TRUNCATE TABLE "users"  (14.6ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (3.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.9ms) 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.3ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (4.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.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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.5ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.2ms) 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"  (1.8ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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 SQL (4.0ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (17.1ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION HasStates::State Load (1.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = ? AND "has_states_states"."status" = ? /* loading for pp */ LIMIT ? [["type", "HasStates::State"], ["status", "pending"], ["LIMIT", 11]] HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."type" = ? AND "has_states_states"."status" = ? /* loading for pp */ LIMIT ? [["type", "HasStates::State"], ["status", "completed"], ["LIMIT", 11]] TRANSACTION (0.2ms) ROLLBACK TRANSACTION SQL (3.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.3ms) TRUNCATE TABLE "users"  (6.2ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.6ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.4ms) DELETE FROM "users"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) TRUNCATE TABLE "has_states_states"  (0.7ms) DELETE FROM "has_states_states"  (2.3ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:23:55.108094"], ["updated_at", "2024-12-21 18:23:55.108094"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:23:55.116768"], ["updated_at", "2024-12-21 18:23:55.116768"]] 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"."status" = ? [["type", "HasStates::State"], ["status", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) 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"  (1.5ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:24:27.979808"], ["updated_at", "2024-12-21 18:24:27.979808"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:24:27.985026"], ["updated_at", "2024-12-21 18:24:27.985026"]] 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"."state_type" = ? [["type", "HasStates::State"], ["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.2ms) TRUNCATE TABLE "users"  (16.9ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (2.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.4ms) TRUNCATE TABLE "companies"  (0.2ms) DELETE FROM "companies"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 SQL (4.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.3ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.6ms) DELETE FROM "has_states_states"  (1.8ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:26:04.596120"], ["updated_at", "2024-12-21 18:26:04.596120"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:26:04.601048"], ["updated_at", "2024-12-21 18:26:04.601048"]] 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"."state_type" = ? [["type", "HasStates::State"], ["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.3ms) TRUNCATE TABLE "users"  (14.9ms) 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"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:26:24.860868"], ["updated_at", "2024-12-21 18:26:24.860868"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:26:24.865633"], ["updated_at", "2024-12-21 18:26:24.865633"]] 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"."state_type" = ? [["type", "HasStates::State"], ["state_type", "kyc"]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (2.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.5ms) SAVEPOINT active_record_1 User Create (3.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-21 18:26:24.879780"], ["updated_at", "2024-12-21 18:26:24.879780"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.7ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:26:24.893544"], ["updated_at", "2024-12-21 18:26:24.893544"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 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", "2024-12-21 18:26:24.902783"], ["updated_at", "2024-12-21 18:26:24.902783"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 2], ["completed_at", nil], ["created_at", "2024-12-21 18:26:24.905030"], ["updated_at", "2024-12-21 18:26:24.905030"]] 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 12"], ["created_at", "2024-12-21 18:26:24.911193"], ["updated_at", "2024-12-21 18:26:24.911193"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:26:24.912977"], ["updated_at", "2024-12-21 18:26:24.912977"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-21 18:26:24.916834"], ["updated_at", "2024-12-21 18:26:24.916834"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.4ms) INSERT INTO "has_states_states" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", "HasStates::State"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 2], ["completed_at", nil], ["created_at", "2024-12-21 18:26:24.924027"], ["updated_at", "2024-12-21 18:26:24.924027"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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"  (15.1ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:29:41.614738"], ["updated_at", "2024-12-21 18:29:41.614738"]] 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" ("state_type", "type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["type", nil], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:29:41.619657"], ["updated_at", "2024-12-21 18:29:41.619657"]] TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.9ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (4.8ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION  (0.1ms) DROP TABLE IF EXISTS "companies"  (16.8ms) CREATE TABLE "companies" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) DROP TABLE IF EXISTS "has_states_states"  (0.2ms) CREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) CREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id")  (0.1ms) CREATE INDEX "index_has_states_states_on_stateable_type_and_stateable_id" ON "has_states_states" ("stateable_type", "stateable_id")  (0.2ms) DROP TABLE IF EXISTS "users"  (0.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20241221183116)  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES (20241221171423);  (0.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) 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::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2024-12-21 18:34:46.243024', '2024-12-21 18:34:46.243027') RETURNING "key" 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::InternalMetadata Load (0.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]] ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '7cf49bebcf3a23e1e11f3d0a902bc6821c0ea2cb', '2024-12-21 18:34:46.249193', '2024-12-21 18:34:46.249196') RETURNING "key" ActiveRecord::InternalMetadata Load (1.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 (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC ActiveRecord::SchemaMigration Load (3.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC SQL (4.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"  (15.5ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 7"], ["created_at", "2024-12-21 18:35:11.023243"], ["updated_at", "2024-12-21 18:35:11.023243"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:35:11.030566"], ["updated_at", "2024-12-21 18:35:11.030566"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.0ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (15.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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:38:43.200575"], ["updated_at", "2024-12-21 18:38:43.200575"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:38:43.207241"], ["updated_at", "2024-12-21 18:38:43.207241"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (3.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.7ms) SAVEPOINT active_record_1 User Create (4.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 18:38:43.213973"], ["updated_at", "2024-12-21 18:38:43.213973"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (2.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:38:43.241463"], ["updated_at", "2024-12-21 18:38:43.241463"]] TRANSACTION (0.1ms) 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 18:38:43.260172"], ["updated_at", "2024-12-21 18:38:43.260172"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:38:43.266059"], ["updated_at", "2024-12-21 18:38:43.266059"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.5ms) 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"  (16.9ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:44:49.596225"], ["updated_at", "2024-12-21 18:44:49.596225"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:44:49.604964"], ["updated_at", "2024-12-21 18:44:49.604964"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 8"], ["created_at", "2024-12-21 18:44:49.613331"], ["updated_at", "2024-12-21 18:44:49.613331"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:44:49.618671"], ["updated_at", "2024-12-21 18:44:49.618671"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (3.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.5ms) SAVEPOINT active_record_1 User Create (6.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 18:44:49.635123"], ["updated_at", "2024-12-21 18:44:49.635123"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:44:49.654749"], ["updated_at", "2024-12-21 18:44:49.654749"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (4.5ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (2.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.1ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:47:10.434745"], ["updated_at", "2024-12-21 18:47:10.434745"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:47:10.443582"], ["updated_at", "2024-12-21 18:47:10.443582"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 18:47:10.453599"], ["updated_at", "2024-12-21 18:47:10.453599"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (5.3ms) SAVEPOINT active_record_1 HasStates::State Create (9.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:47:10.462873"], ["updated_at", "2024-12-21 18:47:10.462873"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.7ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) 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", "2024-12-21 18:47:10.499695"], ["updated_at", "2024-12-21 18:47:10.499695"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:47:10.505382"], ["updated_at", "2024-12-21 18:47:10.505382"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) 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"  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:48:04.031459"], ["updated_at", "2024-12-21 18:48:04.031459"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:48:04.036347"], ["updated_at", "2024-12-21 18:48:04.036347"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 18:48:04.040813"], ["updated_at", "2024-12-21 18:48:04.040813"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (2.1ms) SAVEPOINT active_record_1 HasStates::State Create (4.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:48:04.045390"], ["updated_at", "2024-12-21 18:48:04.045390"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) 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 9"], ["created_at", "2024-12-21 18:48:04.064551"], ["updated_at", "2024-12-21 18:48:04.064551"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:48:04.069717"], ["updated_at", "2024-12-21 18:48:04.069717"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (4.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (15.0ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:48:42.652322"], ["updated_at", "2024-12-21 18:48:42.652322"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:48:42.657221"], ["updated_at", "2024-12-21 18:48:42.657221"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 18:48:42.661775"], ["updated_at", "2024-12-21 18:48:42.661775"]] TRANSACTION (2.8ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:48:42.675616"], ["updated_at", "2024-12-21 18:48:42.675616"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.9ms) ROLLBACK TRANSACTION TRANSACTION (0.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (4.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 18:48:42.696603"], ["updated_at", "2024-12-21 18:48:42.696603"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:48:42.705598"], ["updated_at", "2024-12-21 18:48:42.705598"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:49:31.930702"], ["updated_at", "2024-12-21 18:49:31.930702"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:49:31.936390"], ["updated_at", "2024-12-21 18:49:31.936390"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 18:49:31.943267"], ["updated_at", "2024-12-21 18:49:31.943267"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (3.4ms) SAVEPOINT active_record_1 HasStates::State Create (5.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:49:31.948272"], ["updated_at", "2024-12-21 18:49:31.948272"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) 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", "2024-12-21 18:49:31.972887"], ["updated_at", "2024-12-21 18:49:31.972887"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:49:31.980287"], ["updated_at", "2024-12-21 18:49:31.980287"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.5ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:49:46.520793"], ["updated_at", "2024-12-21 18:49:46.520793"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:49:46.525900"], ["updated_at", "2024-12-21 18:49:46.525900"]] 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"."state_type" = ? [["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", "2024-12-21 18:49:46.530155"], ["updated_at", "2024-12-21 18:49:46.530155"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (2.1ms) SAVEPOINT active_record_1 HasStates::State Create (4.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:49:46.534461"], ["updated_at", "2024-12-21 18:49:46.534461"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.5ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) 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 9"], ["created_at", "2024-12-21 18:49:46.554797"], ["updated_at", "2024-12-21 18:49:46.554797"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:49:46.560003"], ["updated_at", "2024-12-21 18:49:46.560003"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.7ms) DELETE FROM "users"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'users';  (0.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:51:43.635848"], ["updated_at", "2024-12-21 18:51:43.635848"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:51:43.640931"], ["updated_at", "2024-12-21 18:51:43.640931"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (2.7ms) BEGIN deferred TRANSACTION TRANSACTION (0.6ms) SAVEPOINT active_record_1 User Create (4.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 18:51:43.646435"], ["updated_at", "2024-12-21 18:51:43.646435"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:51:43.661028"], ["updated_at", "2024-12-21 18:51:43.661028"]] TRANSACTION (0.1ms) 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 9"], ["created_at", "2024-12-21 18:51:43.673899"], ["updated_at", "2024-12-21 18:51:43.673899"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:51:43.677956"], ["updated_at", "2024-12-21 18:51:43.677956"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.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.3ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (2.4ms) BEGIN deferred TRANSACTION TRANSACTION (0.4ms) SAVEPOINT active_record_1 User Create (6.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:55:17.448506"], ["updated_at", "2024-12-21 18:55:17.448506"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:55:17.479073"], ["updated_at", "2024-12-21 18:55:17.479073"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (2.7ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 8"], ["created_at", "2024-12-21 18:55:17.494615"], ["updated_at", "2024-12-21 18:55:17.494615"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:55:17.500068"], ["updated_at", "2024-12-21 18:55:17.500068"]] 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 9"], ["created_at", "2024-12-21 18:55:17.512451"], ["updated_at", "2024-12-21 18:55:17.512451"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:55:17.516549"], ["updated_at", "2024-12-21 18:55:17.516549"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.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"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (2.5ms) BEGIN deferred TRANSACTION TRANSACTION (0.5ms) SAVEPOINT active_record_1 User Create (5.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:55:46.479430"], ["updated_at", "2024-12-21 18:55:46.479430"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:55:46.497714"], ["updated_at", "2024-12-21 18:55:46.497714"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (1.8ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["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", "2024-12-21 18:55:46.508643"], ["updated_at", "2024-12-21 18:55:46.508643"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:55:46.511493"], ["updated_at", "2024-12-21 18:55:46.511493"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 18:55:46.520247"], ["updated_at", "2024-12-21 18:55:46.520247"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:55:46.524596"], ["updated_at", "2024-12-21 18:55:46.524596"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (2.4ms) BEGIN deferred TRANSACTION TRANSACTION (0.4ms) SAVEPOINT active_record_1 User Create (5.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 18:59:29.970661"], ["updated_at", "2024-12-21 18:59:29.970661"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:59:29.989114"], ["updated_at", "2024-12-21 18:59:29.989114"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 18:59:29.997220"], ["updated_at", "2024-12-21 18:59:29.997220"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:59:30.000908"], ["updated_at", "2024-12-21 18:59:30.000908"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 18:59:30.009822"], ["updated_at", "2024-12-21 18:59:30.009822"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 18:59:30.012702"], ["updated_at", "2024-12-21 18:59:30.012702"]] TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.9ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (3.9ms) BEGIN deferred TRANSACTION TRANSACTION (0.6ms) SAVEPOINT active_record_1 User Create (8.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 19:04:02.233333"], ["updated_at", "2024-12-21 19:04:02.233333"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:04:02.259920"], ["updated_at", "2024-12-21 19:04:02.259920"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (4.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 19:04:02.280908"], ["updated_at", "2024-12-21 19:04:02.280908"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:04:02.286924"], ["updated_at", "2024-12-21 19:04:02.286924"]] 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 9"], ["created_at", "2024-12-21 19:04:02.298720"], ["updated_at", "2024-12-21 19:04:02.298720"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:04:02.303502"], ["updated_at", "2024-12-21 19:04:02.303502"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.1ms) 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"  (1.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (2.7ms) BEGIN deferred TRANSACTION TRANSACTION (0.4ms) SAVEPOINT active_record_1 User Create (5.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 19:05:26.184612"], ["updated_at", "2024-12-21 19:05:26.184612"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:05:26.201688"], ["updated_at", "2024-12-21 19:05:26.201688"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (2.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 19:05:26.210335"], ["updated_at", "2024-12-21 19:05:26.210335"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:05:26.213764"], ["updated_at", "2024-12-21 19:05:26.213764"]] 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", "2024-12-21 19:05:26.223452"], ["updated_at", "2024-12-21 19:05:26.223452"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:05:26.226699"], ["updated_at", "2024-12-21 19:05:26.226699"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.8ms) 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"  (6.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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (4.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.6ms) SAVEPOINT active_record_1 User Create (10.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 19:05:56.366653"], ["updated_at", "2024-12-21 19:05:56.366653"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:05:56.395227"], ["updated_at", "2024-12-21 19:05:56.395227"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (2.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 19:05:56.405079"], ["updated_at", "2024-12-21 19:05:56.405079"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:05:56.408368"], ["updated_at", "2024-12-21 19:05:56.408368"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:05:56.419966"], ["updated_at", "2024-12-21 19:05:56.419966"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:05:56.428167"], ["updated_at", "2024-12-21 19:05:56.428167"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) 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.3ms) DELETE FROM "has_states_states"  (1.4ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.6ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 19:08:19.892375"], ["updated_at", "2024-12-21 19:08:19.892375"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:08:19.897677"], ["updated_at", "2024-12-21 19:08:19.897677"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (1.8ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-21 19:08:19.904138"], ["updated_at", "2024-12-21 19:08:19.904138"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:08:19.907043"], ["updated_at", "2024-12-21 19:08:19.907043"]] 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", "2024-12-21 19:08:19.913469"], ["updated_at", "2024-12-21 19:08:19.913469"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:08:19.917050"], ["updated_at", "2024-12-21 19:08:19.917050"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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"  (5.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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.5ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.8ms) ROLLBACK TRANSACTION TRANSACTION (0.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 19:09:12.727086"], ["updated_at", "2024-12-21 19:09:12.727086"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:09:12.733714"], ["updated_at", "2024-12-21 19:09:12.733714"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (1.7ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) 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 8"], ["created_at", "2024-12-21 19:09:12.740631"], ["updated_at", "2024-12-21 19:09:12.740631"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:09:12.744389"], ["updated_at", "2024-12-21 19:09:12.744389"]] 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 9"], ["created_at", "2024-12-21 19:09:12.752272"], ["updated_at", "2024-12-21 19:09:12.752272"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:09:12.756213"], ["updated_at", "2024-12-21 19:09:12.756213"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (17.3ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (1.0ms) ROLLBACK TRANSACTION TRANSACTION (0.4ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (2.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 7"], ["created_at", "2024-12-21 19:12:48.379892"], ["updated_at", "2024-12-21 19:12:48.379892"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:12:48.390189"], ["updated_at", "2024-12-21 19:12:48.390189"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (3.5ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 19:12:48.402381"], ["updated_at", "2024-12-21 19:12:48.402381"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:12:48.410060"], ["updated_at", "2024-12-21 19:12:48.410060"]] 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 9"], ["created_at", "2024-12-21 19:12:48.420168"], ["updated_at", "2024-12-21 19:12:48.420168"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:12:48.425277"], ["updated_at", "2024-12-21 19:12:48.425277"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.3ms) TRUNCATE TABLE "users"  (15.0ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (1.8ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (3.1ms) SAVEPOINT active_record_1 User Create (4.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:12:52.544881"], ["updated_at", "2024-12-21 19:12:52.544881"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (1.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:12:52.567182"], ["updated_at", "2024-12-21 19:12:52.567182"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.8ms) ROLLBACK TRANSACTION TRANSACTION (0.4ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 19:15:34.924895"], ["updated_at", "2024-12-21 19:15:34.924895"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:34.932786"], ["updated_at", "2024-12-21 19:15:34.932786"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (2.7ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:15:34.952530"], ["updated_at", "2024-12-21 19:15:34.952530"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:34.957333"], ["updated_at", "2024-12-21 19:15:34.957333"]] 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 10"], ["created_at", "2024-12-21 19:15:34.965303"], ["updated_at", "2024-12-21 19:15:34.965303"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:34.968758"], ["updated_at", "2024-12-21 19:15:34.968758"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.6ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.7ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (2.8ms) SAVEPOINT active_record_1 User Create (3.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:15:39.048053"], ["updated_at", "2024-12-21 19:15:39.048053"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (2.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:39.071034"], ["updated_at", "2024-12-21 19:15:39.071034"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.9ms) ROLLBACK TRANSACTION TRANSACTION (0.4ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 19:15:52.577973"], ["updated_at", "2024-12-21 19:15:52.577973"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:52.585610"], ["updated_at", "2024-12-21 19:15:52.585610"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (2.6ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:15:52.603047"], ["updated_at", "2024-12-21 19:15:52.603047"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:52.606578"], ["updated_at", "2024-12-21 19:15:52.606578"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-21 19:15:52.614092"], ["updated_at", "2024-12-21 19:15:52.614092"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:15:52.617158"], ["updated_at", "2024-12-21 19:15:52.617158"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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"  (5.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.3ms) DELETE FROM "has_states_states"  (1.4ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:17:10.829578"], ["updated_at", "2024-12-21 19:17:10.829578"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:17:10.840364"], ["updated_at", "2024-12-21 19:17:10.840364"]] 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 (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:17:10.870869"], ["updated_at", "2024-12-21 19:17:10.870869"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:17:10.879808"], ["updated_at", "2024-12-21 19:17:10.879808"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:17:10.920290"], ["updated_at", "2024-12-21 19:17:10.920290"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:17:10.923822"], ["updated_at", "2024-12-21 19:17:10.923822"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-21 19:17:10.933140"], ["updated_at", "2024-12-21 19:17:10.933140"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:17:10.935105"], ["updated_at", "2024-12-21 19:17:10.935105"]] 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 11"], ["created_at", "2024-12-21 19:17:10.939101"], ["updated_at", "2024-12-21 19:17:10.939101"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:17:10.945926"], ["updated_at", "2024-12-21 19:17:10.945926"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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"  (15.1ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.2ms) 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 1"], ["created_at", "2024-12-21 19:21:17.060288"], ["updated_at", "2024-12-21 19:21:17.060288"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.3ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:17.074281"], ["updated_at", "2024-12-21 19:21:17.074281"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 19:21:17.140552"], ["updated_at", "2024-12-21 19:21:17.140552"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:17.150683"], ["updated_at", "2024-12-21 19:21:17.150683"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) 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 9"], ["created_at", "2024-12-21 19:21:17.163546"], ["updated_at", "2024-12-21 19:21:17.163546"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:17.165734"], ["updated_at", "2024-12-21 19:21:17.165734"]] TRANSACTION (0.1ms) 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", "2024-12-21 19:21:17.170295"], ["updated_at", "2024-12-21 19:21:17.170295"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:17.171884"], ["updated_at", "2024-12-21 19:21:17.171884"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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"  (15.5ms) 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.3ms) DELETE FROM "has_states_states"  (1.5ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:21:35.598909"], ["updated_at", "2024-12-21 19:21:35.598909"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:35.610883"], ["updated_at", "2024-12-21 19:21:35.610883"]] 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.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 8"], ["created_at", "2024-12-21 19:21:35.701438"], ["updated_at", "2024-12-21 19:21:35.701438"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:35.719342"], ["updated_at", "2024-12-21 19:21:35.719342"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:21:35.737890"], ["updated_at", "2024-12-21 19:21:35.737890"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:35.740848"], ["updated_at", "2024-12-21 19:21:35.740848"]] TRANSACTION (0.2ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-21 19:21:35.747700"], ["updated_at", "2024-12-21 19:21:35.747700"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:35.750585"], ["updated_at", "2024-12-21 19:21:35.750585"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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"  (15.1ms) 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"  (1.8ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 19:21:47.524613"], ["updated_at", "2024-12-21 19:21:47.524613"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.5ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:47.535037"], ["updated_at", "2024-12-21 19:21:47.535037"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:21:47.568315"], ["updated_at", "2024-12-21 19:21:47.568315"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:47.577347"], ["updated_at", "2024-12-21 19:21:47.577347"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:21:47.620269"], ["updated_at", "2024-12-21 19:21:47.620269"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:47.623145"], ["updated_at", "2024-12-21 19:21:47.623145"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-21 19:21:47.630621"], ["updated_at", "2024-12-21 19:21:47.630621"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:47.632051"], ["updated_at", "2024-12-21 19:21:47.632051"]] 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 11"], ["created_at", "2024-12-21 19:21:47.635647"], ["updated_at", "2024-12-21 19:21:47.635647"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:21:47.642773"], ["updated_at", "2024-12-21 19:21:47.642773"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.9ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (14.9ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (2.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:23:49.091066"], ["updated_at", "2024-12-21 19:23:49.091066"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:23:49.103778"], ["updated_at", "2024-12-21 19:23:49.103778"]] 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 (1.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:23:55.352552"], ["updated_at", "2024-12-21 19:23:55.352552"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:23:55.366642"], ["updated_at", "2024-12-21 19:23:55.366642"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:23:55.429472"], ["updated_at", "2024-12-21 19:23:55.429472"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:23:55.436055"], ["updated_at", "2024-12-21 19:23:55.436055"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-21 19:23:55.450101"], ["updated_at", "2024-12-21 19:23:55.450101"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:23:55.453821"], ["updated_at", "2024-12-21 19:23:55.453821"]] TRANSACTION (0.1ms) 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-21 19:23:55.461045"], ["updated_at", "2024-12-21 19:23:55.461045"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:23:55.473529"], ["updated_at", "2024-12-21 19:23:55.473529"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (5.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.1ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (2.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 19:24:26.295468"], ["updated_at", "2024-12-21 19:24:26.295468"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:24:26.306448"], ["updated_at", "2024-12-21 19:24:26.306448"]] 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 (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:25:04.877377"], ["updated_at", "2024-12-21 19:25:04.877377"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:04.890992"], ["updated_at", "2024-12-21 19:25:04.890992"]] TRANSACTION (0.1ms) 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:25:04.947469"], ["updated_at", "2024-12-21 19:25:04.947469"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:04.950536"], ["updated_at", "2024-12-21 19:25:04.950536"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-21 19:25:04.957049"], ["updated_at", "2024-12-21 19:25:04.957049"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:04.958446"], ["updated_at", "2024-12-21 19:25:04.958446"]] 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", "2024-12-21 19:25:04.962545"], ["updated_at", "2024-12-21 19:25:04.962545"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:04.975326"], ["updated_at", "2024-12-21 19:25:04.975326"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.4ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (19.6ms) 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.4ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (3.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.6ms) TRUNCATE TABLE "companies"  (0.2ms) DELETE FROM "companies"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-21 19:25:48.241556"], ["updated_at", "2024-12-21 19:25:48.241556"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:48.253184"], ["updated_at", "2024-12-21 19:25:48.253184"]] 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 (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:25:50.619849"], ["updated_at", "2024-12-21 19:25:50.619849"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:50.634417"], ["updated_at", "2024-12-21 19:25:50.634417"]] 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.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:25:50.709484"], ["updated_at", "2024-12-21 19:25:50.709484"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:50.713299"], ["updated_at", "2024-12-21 19:25:50.713299"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.5ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-21 19:25:50.741573"], ["updated_at", "2024-12-21 19:25:50.741573"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:50.747613"], ["updated_at", "2024-12-21 19:25:50.747613"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-21 19:25:50.758597"], ["updated_at", "2024-12-21 19:25:50.758597"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:25:50.777487"], ["updated_at", "2024-12-21 19:25:50.777487"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION SQL (3.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.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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (1.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:26:09.649696"], ["updated_at", "2024-12-21 19:26:09.649696"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:26:09.660211"], ["updated_at", "2024-12-21 19:26:09.660211"]] 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 (2.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:26:21.253928"], ["updated_at", "2024-12-21 19:26:21.253928"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:26:21.273148"], ["updated_at", "2024-12-21 19:26:21.273148"]] 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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:26:21.336889"], ["updated_at", "2024-12-21 19:26:21.336889"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:26:21.341334"], ["updated_at", "2024-12-21 19:26:21.341334"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-21 19:26:21.351751"], ["updated_at", "2024-12-21 19:26:21.351751"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:26:21.353884"], ["updated_at", "2024-12-21 19:26:21.353884"]] 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 11"], ["created_at", "2024-12-21 19:26:21.358862"], ["updated_at", "2024-12-21 19:26:21.358862"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:26:21.366776"], ["updated_at", "2024-12-21 19:26:21.366776"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (4.3ms) 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"  (19.6ms) 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.4ms) TRUNCATE TABLE "has_states_states"  (0.5ms) DELETE FROM "has_states_states"  (2.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:27:56.609585"], ["updated_at", "2024-12-21 19:27:56.609585"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:27:56.620434"], ["updated_at", "2024-12-21 19:27:56.620434"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:27:56.636478"], ["updated_at", "2024-12-21 19:27:56.636478"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:27:56.646115"], ["updated_at", "2024-12-21 19:27:56.646115"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:27:56.700831"], ["updated_at", "2024-12-21 19:27:56.700831"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:27:56.703943"], ["updated_at", "2024-12-21 19:27:56.703943"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-21 19:27:56.720391"], ["updated_at", "2024-12-21 19:27:56.720391"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:27:56.722477"], ["updated_at", "2024-12-21 19:27:56.722477"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 11"], ["created_at", "2024-12-21 19:27:56.730021"], ["updated_at", "2024-12-21 19:27:56.730021"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:27:56.746151"], ["updated_at", "2024-12-21 19:27:56.746151"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.3ms) TRUNCATE TABLE "users"  (14.6ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (1.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:28:37.450855"], ["updated_at", "2024-12-21 19:28:37.450855"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:28:37.460949"], ["updated_at", "2024-12-21 19:28:37.460949"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:28:37.475491"], ["updated_at", "2024-12-21 19:28:37.475491"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:28:37.483436"], ["updated_at", "2024-12-21 19:28:37.483436"]] 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 (1.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:28:37.543463"], ["updated_at", "2024-12-21 19:28:37.543463"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:28:37.547754"], ["updated_at", "2024-12-21 19:28:37.547754"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-21 19:28:37.563863"], ["updated_at", "2024-12-21 19:28:37.563863"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:28:37.566754"], ["updated_at", "2024-12-21 19:28:37.566754"]] TRANSACTION (0.1ms) 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 11"], ["created_at", "2024-12-21 19:28:37.575182"], ["updated_at", "2024-12-21 19:28:37.575182"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:28:37.584984"], ["updated_at", "2024-12-21 19:28:37.584984"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.2ms) TRUNCATE TABLE "users"  (14.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.2ms) TRUNCATE TABLE "has_states_states"  (0.4ms) DELETE FROM "has_states_states"  (2.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 19:31:53.845985"], ["updated_at", "2024-12-21 19:31:53.845985"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:31:53.856532"], ["updated_at", "2024-12-21 19:31:53.856532"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:31:53.872693"], ["updated_at", "2024-12-21 19:31:53.872693"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:31:53.881928"], ["updated_at", "2024-12-21 19:31:53.881928"]] TRANSACTION (0.1ms) 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 (1.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:31:53.939183"], ["updated_at", "2024-12-21 19:31:53.939183"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:31:53.943482"], ["updated_at", "2024-12-21 19:31:53.943482"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-21 19:31:53.960021"], ["updated_at", "2024-12-21 19:31:53.960021"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:31:53.963044"], ["updated_at", "2024-12-21 19:31:53.963044"]] 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 (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-21 19:31:53.969178"], ["updated_at", "2024-12-21 19:31:53.969178"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:31:53.981501"], ["updated_at", "2024-12-21 19:31:53.981501"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.1ms) 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.6ms) 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.5ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 19:32:47.052452"], ["updated_at", "2024-12-21 19:32:47.052452"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:32:47.061859"], ["updated_at", "2024-12-21 19:32:47.061859"]] 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 2"], ["created_at", "2024-12-21 19:32:47.077026"], ["updated_at", "2024-12-21 19:32:47.077026"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:32:47.085337"], ["updated_at", "2024-12-21 19:32:47.085337"]] 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 (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:32:47.123001"], ["updated_at", "2024-12-21 19:32:47.123001"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:32:47.126668"], ["updated_at", "2024-12-21 19:32:47.126668"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-21 19:32:47.136335"], ["updated_at", "2024-12-21 19:32:47.136335"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:32:47.137906"], ["updated_at", "2024-12-21 19:32:47.137906"]] 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 11"], ["created_at", "2024-12-21 19:32:47.142158"], ["updated_at", "2024-12-21 19:32:47.142158"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:32:47.149490"], ["updated_at", "2024-12-21 19:32:47.149490"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (4.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.3ms) TRUNCATE TABLE "users"  (16.6ms) 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.5ms) DELETE FROM "has_states_states"  (1.9ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-21 19:42:47.534163"], ["updated_at", "2024-12-21 19:42:47.534163"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:42:47.544096"], ["updated_at", "2024-12-21 19:42:47.544096"]] 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 (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-21 19:42:47.558931"], ["updated_at", "2024-12-21 19:42:47.558931"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:42:47.569641"], ["updated_at", "2024-12-21 19:42:47.569641"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:42:47.614576"], ["updated_at", "2024-12-21 19:42:47.614576"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:42:47.617557"], ["updated_at", "2024-12-21 19:42:47.617557"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-21 19:42:47.627818"], ["updated_at", "2024-12-21 19:42:47.627818"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:42:47.629681"], ["updated_at", "2024-12-21 19:42:47.629681"]] 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 11"], ["created_at", "2024-12-21 19:42:47.633575"], ["updated_at", "2024-12-21 19:42:47.633575"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:42:47.640964"], ["updated_at", "2024-12-21 19:42:47.640964"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (6.0ms) PRAGMA foreign_keys SQL (0.4ms) PRAGMA defer_foreign_keys  (3.1ms) PRAGMA defer_foreign_keys = ON  (0.1ms) PRAGMA foreign_keys = OFF  (0.5ms) TRUNCATE TABLE "users"  (14.5ms) DELETE FROM "users"  (0.4ms) 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.1ms) DELETE FROM "has_states_states"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.4ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.5ms) SAVEPOINT active_record_1 User Create (2.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-21 19:49:02.427707"], ["updated_at", "2024-12-21 19:49:02.427707"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:49:02.445235"], ["updated_at", "2024-12-21 19:49:02.445235"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) 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", "2024-12-21 19:49:02.466309"], ["updated_at", "2024-12-21 19:49:02.466309"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:49:02.477570"], ["updated_at", "2024-12-21 19:49:02.477570"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-21 19:49:02.529108"], ["updated_at", "2024-12-21 19:49:02.529108"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (2.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:49:02.564322"], ["updated_at", "2024-12-21 19:49:02.564322"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (3.7ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-21 19:49:02.616770"], ["updated_at", "2024-12-21 19:49:02.616770"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:49:02.619494"], ["updated_at", "2024-12-21 19:49:02.619494"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-21 19:49:02.629443"], ["updated_at", "2024-12-21 19:49:02.629443"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-21 19:49:02.634107"], ["updated_at", "2024-12-21 19:49:02.634107"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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"  (15.8ms) DELETE FROM "users"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) 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", "2024-12-22 00:54:37.831770"], ["updated_at", "2024-12-22 00:54:37.831770"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:54:37.836213"], ["updated_at", "2024-12-22 00:54:37.836213"]] 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", "2024-12-22 00:54:37.839185"], ["updated_at", "2024-12-22 00:54:37.839185"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:54:37.839950"], ["updated_at", "2024-12-22 00:54:37.839950"]] 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", "2024-12-22 00:54:37.846881"], ["updated_at", "2024-12-22 00:54:37.846881"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:54:37.847615"], ["updated_at", "2024-12-22 00:54:37.847615"]] 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"."state_type" = ? [["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", "2024-12-22 00:54:37.849041"], ["updated_at", "2024-12-22 00:54:37.849041"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:54:37.849636"], ["updated_at", "2024-12-22 00:54:37.849636"]] 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 11"], ["created_at", "2024-12-22 00:54:37.850520"], ["updated_at", "2024-12-22 00:54:37.850520"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:54:37.851026"], ["updated_at", "2024-12-22 00:54:37.851026"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 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"  (15.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.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", "2024-12-22 00:56:08.424304"], ["updated_at", "2024-12-22 00:56:08.424304"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:56:08.427994"], ["updated_at", "2024-12-22 00:56:08.427994"]] 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", "2024-12-22 00:56:08.430922"], ["updated_at", "2024-12-22 00:56:08.430922"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:56:08.431594"], ["updated_at", "2024-12-22 00:56:08.431594"]] 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", "2024-12-22 00:56:08.438269"], ["updated_at", "2024-12-22 00:56:08.438269"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:56:08.438979"], ["updated_at", "2024-12-22 00:56:08.438979"]] 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"."state_type" = ? [["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", "2024-12-22 00:56:08.440443"], ["updated_at", "2024-12-22 00:56:08.440443"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:56:08.440999"], ["updated_at", "2024-12-22 00:56:08.440999"]] 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 11"], ["created_at", "2024-12-22 00:56:08.441904"], ["updated_at", "2024-12-22 00:56:08.441904"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:56:08.442424"], ["updated_at", "2024-12-22 00:56:08.442424"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 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.3ms) 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", "2024-12-22 00:58:01.260667"], ["updated_at", "2024-12-22 00:58:01.260667"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:58:01.264361"], ["updated_at", "2024-12-22 00:58:01.264361"]] 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", "2024-12-22 00:58:01.267256"], ["updated_at", "2024-12-22 00:58:01.267256"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:58:01.268174"], ["updated_at", "2024-12-22 00:58:01.268174"]] 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", "2024-12-22 00:58:01.275800"], ["updated_at", "2024-12-22 00:58:01.275800"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:58:01.276711"], ["updated_at", "2024-12-22 00:58:01.276711"]] 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"."state_type" = ? [["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", "2024-12-22 00:58:01.278206"], ["updated_at", "2024-12-22 00:58:01.278206"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:58:01.278830"], ["updated_at", "2024-12-22 00:58:01.278830"]] 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 11"], ["created_at", "2024-12-22 00:58:01.279778"], ["updated_at", "2024-12-22 00:58:01.279778"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 00:58:01.280324"], ["updated_at", "2024-12-22 00:58:01.280324"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.4ms) 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';  (2.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';  (1.4ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:31:18.818488"], ["updated_at", "2024-12-22 20:31:18.818488"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:31:18.828376"], ["updated_at", "2024-12-22 20:31:18.828376"]] 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 2"], ["created_at", "2024-12-22 20:31:18.875370"], ["updated_at", "2024-12-22 20:31:18.875370"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:31:18.878103"], ["updated_at", "2024-12-22 20:31:18.878103"]] 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 9"], ["created_at", "2024-12-22 20:31:18.895749"], ["updated_at", "2024-12-22 20:31:18.895749"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:31:18.897791"], ["updated_at", "2024-12-22 20:31:18.897791"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 20:31:18.901790"], ["updated_at", "2024-12-22 20:31:18.901790"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:31:18.903338"], ["updated_at", "2024-12-22 20:31:18.903338"]] 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 11"], ["created_at", "2024-12-22 20:31:18.905659"], ["updated_at", "2024-12-22 20:31:18.905659"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:31:18.907201"], ["updated_at", "2024-12-22 20:31:18.907201"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.0ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-22 20:33:16.864268"], ["updated_at", "2024-12-22 20:33:16.864268"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:33:16.871402"], ["updated_at", "2024-12-22 20:33:16.871402"]] 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 2"], ["created_at", "2024-12-22 20:33:16.923223"], ["updated_at", "2024-12-22 20:33:16.923223"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:33:16.925299"], ["updated_at", "2024-12-22 20:33:16.925299"]] 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 9"], ["created_at", "2024-12-22 20:33:16.939765"], ["updated_at", "2024-12-22 20:33:16.939765"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:33:16.941817"], ["updated_at", "2024-12-22 20:33:16.941817"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 20:33:16.946243"], ["updated_at", "2024-12-22 20:33:16.946243"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:33:16.948059"], ["updated_at", "2024-12-22 20:33:16.948059"]] 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 11"], ["created_at", "2024-12-22 20:33:16.951705"], ["updated_at", "2024-12-22 20:33:16.951705"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:33:16.954776"], ["updated_at", "2024-12-22 20:33:16.954776"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.4ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.3ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) 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';  (1.7ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (2.5ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:34:21.703103"], ["updated_at", "2024-12-22 20:34:21.703103"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:34:21.712809"], ["updated_at", "2024-12-22 20:34:21.712809"]] 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 2"], ["created_at", "2024-12-22 20:34:21.804469"], ["updated_at", "2024-12-22 20:34:21.804469"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:34:21.808128"], ["updated_at", "2024-12-22 20:34:21.808128"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 20:34:21.832610"], ["updated_at", "2024-12-22 20:34:21.832610"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:34:21.835542"], ["updated_at", "2024-12-22 20:34:21.835542"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-22 20:34:21.840472"], ["updated_at", "2024-12-22 20:34:21.840472"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:34:21.844342"], ["updated_at", "2024-12-22 20:34:21.844342"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-22 20:34:21.851455"], ["updated_at", "2024-12-22 20:34:21.851455"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:34:21.854379"], ["updated_at", "2024-12-22 20:34:21.854379"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (4.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.6ms) TRUNCATE TABLE "users"  (25.5ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 (3.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.3ms) TRUNCATE TABLE "users"  (14.4ms) 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.2ms) 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.1ms) 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 (3.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.2ms) TRUNCATE TABLE "users"  (15.0ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:37:08.603569"], ["updated_at", "2024-12-22 20:37:08.603569"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:37:08.613400"], ["updated_at", "2024-12-22 20:37:08.613400"]] TRANSACTION (0.1ms) 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", "2024-12-22 20:37:08.626424"], ["updated_at", "2024-12-22 20:37:08.626424"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:37:08.628530"], ["updated_at", "2024-12-22 20:37:08.628530"]] 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 9"], ["created_at", "2024-12-22 20:37:08.644944"], ["updated_at", "2024-12-22 20:37:08.644944"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:37:08.647058"], ["updated_at", "2024-12-22 20:37:08.647058"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-22 20:37:08.651609"], ["updated_at", "2024-12-22 20:37:08.651609"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:37:08.654394"], ["updated_at", "2024-12-22 20:37:08.654394"]] TRANSACTION (0.1ms) 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 11"], ["created_at", "2024-12-22 20:37:08.659844"], ["updated_at", "2024-12-22 20:37:08.659844"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:37:08.661804"], ["updated_at", "2024-12-22 20:37:08.661804"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) 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.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:40:55.216410"], ["updated_at", "2024-12-22 20:40:55.216410"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:40:55.224697"], ["updated_at", "2024-12-22 20:40:55.224697"]] 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 2"], ["created_at", "2024-12-22 20:40:55.235054"], ["updated_at", "2024-12-22 20:40:55.235054"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:40:55.236941"], ["updated_at", "2024-12-22 20:40:55.236941"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 20:40:55.259258"], ["updated_at", "2024-12-22 20:40:55.259258"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:40:55.261520"], ["updated_at", "2024-12-22 20:40:55.261520"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-22 20:40:55.268244"], ["updated_at", "2024-12-22 20:40:55.268244"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:40:55.270893"], ["updated_at", "2024-12-22 20:40:55.270893"]] 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 11"], ["created_at", "2024-12-22 20:40:55.274652"], ["updated_at", "2024-12-22 20:40:55.274652"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:40:55.276453"], ["updated_at", "2024-12-22 20:40:55.276453"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.6ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-22 20:41:07.056354"], ["updated_at", "2024-12-22 20:41:07.056354"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:07.062413"], ["updated_at", "2024-12-22 20:41:07.062413"]] TRANSACTION (0.0ms) ROLLBACK TO 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 2"], ["created_at", "2024-12-22 20:41:07.074218"], ["updated_at", "2024-12-22 20:41:07.074218"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:07.075929"], ["updated_at", "2024-12-22 20:41:07.075929"]] TRANSACTION (0.0ms) ROLLBACK TO 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 9"], ["created_at", "2024-12-22 20:41:07.088322"], ["updated_at", "2024-12-22 20:41:07.088322"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:07.089918"], ["updated_at", "2024-12-22 20:41:07.089918"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-22 20:41:07.093018"], ["updated_at", "2024-12-22 20:41:07.093018"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:07.094165"], ["updated_at", "2024-12-22 20:41:07.094165"]] 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", "2024-12-22 20:41:07.096209"], ["updated_at", "2024-12-22 20:41:07.096209"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:07.097305"], ["updated_at", "2024-12-22 20:41:07.097305"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.3ms) TRUNCATE TABLE "users"  (14.6ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) TRUNCATE TABLE "has_states_states"  (0.2ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:41:18.260505"], ["updated_at", "2024-12-22 20:41:18.260505"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:18.269920"], ["updated_at", "2024-12-22 20:41:18.269920"]] 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 2"], ["created_at", "2024-12-22 20:41:18.281728"], ["updated_at", "2024-12-22 20:41:18.281728"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:18.283791"], ["updated_at", "2024-12-22 20:41:18.283791"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 20:41:18.300503"], ["updated_at", "2024-12-22 20:41:18.300503"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:18.303877"], ["updated_at", "2024-12-22 20:41:18.303877"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 20:41:18.308781"], ["updated_at", "2024-12-22 20:41:18.308781"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:18.310177"], ["updated_at", "2024-12-22 20:41:18.310177"]] 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", "2024-12-22 20:41:18.312777"], ["updated_at", "2024-12-22 20:41:18.312777"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:41:18.314489"], ["updated_at", "2024-12-22 20:41:18.314489"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (16.2ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) TRUNCATE TABLE "has_states_states"  (0.1ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) 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 7"], ["created_at", "2024-12-22 20:46:27.207233"], ["updated_at", "2024-12-22 20:46:27.207233"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:46:27.211601"], ["updated_at", "2024-12-22 20:46:27.211601"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-22 20:46:27.217250"], ["updated_at", "2024-12-22 20:46:27.217250"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:46:27.219209"], ["updated_at", "2024-12-22 20:46:27.219209"]] 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 9"], ["created_at", "2024-12-22 20:46:27.222954"], ["updated_at", "2024-12-22 20:46:27.222954"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:46:27.224553"], ["updated_at", "2024-12-22 20:46:27.224553"]] 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", "2024-12-22 20:46:27.228075"], ["updated_at", "2024-12-22 20:46:27.228075"]] 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 11"], ["created_at", "2024-12-22 20:46:27.231128"], ["updated_at", "2024-12-22 20:46:27.231128"]] 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 12"], ["created_at", "2024-12-22 20:46:27.233596"], ["updated_at", "2024-12-22 20:46:27.233596"]] 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 13"], ["created_at", "2024-12-22 20:46:27.235790"], ["updated_at", "2024-12-22 20:46:27.235790"]] 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 14"], ["created_at", "2024-12-22 20:46:27.238037"], ["updated_at", "2024-12-22 20:46:27.238037"]] 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 15"], ["created_at", "2024-12-22 20:46:27.240448"], ["updated_at", "2024-12-22 20:46:27.240448"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.7ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.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 7"], ["created_at", "2024-12-22 20:50:17.954774"], ["updated_at", "2024-12-22 20:50:17.954774"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:50:17.958604"], ["updated_at", "2024-12-22 20:50:17.958604"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 8"], ["created_at", "2024-12-22 20:50:17.963057"], ["updated_at", "2024-12-22 20:50:17.963057"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:50:17.964540"], ["updated_at", "2024-12-22 20:50:17.964540"]] 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 9"], ["created_at", "2024-12-22 20:50:17.967509"], ["updated_at", "2024-12-22 20:50:17.967509"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:50:17.968952"], ["updated_at", "2024-12-22 20:50:17.968952"]] 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 10"], ["created_at", "2024-12-22 20:50:17.972387"], ["updated_at", "2024-12-22 20:50:17.972387"]] 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", "2024-12-22 20:50:17.974998"], ["updated_at", "2024-12-22 20:50:17.974998"]] 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 12"], ["created_at", "2024-12-22 20:50:17.976848"], ["updated_at", "2024-12-22 20:50:17.976848"]] 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 13"], ["created_at", "2024-12-22 20:50:17.978424"], ["updated_at", "2024-12-22 20:50:17.978424"]] 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 14"], ["created_at", "2024-12-22 20:50:17.979869"], ["updated_at", "2024-12-22 20:50:17.979869"]] 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 15"], ["created_at", "2024-12-22 20:50:17.981411"], ["updated_at", "2024-12-22 20:50:17.981411"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) 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.2ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:55:58.097951"], ["updated_at", "2024-12-22 20:55:58.097951"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:55:58.106435"], ["updated_at", "2024-12-22 20:55:58.106435"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 20:55:58.117499"], ["updated_at", "2024-12-22 20:55:58.117499"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:55:58.120568"], ["updated_at", "2024-12-22 20:55:58.120568"]] 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 9"], ["created_at", "2024-12-22 20:55:58.139879"], ["updated_at", "2024-12-22 20:55:58.139879"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:55:58.142273"], ["updated_at", "2024-12-22 20:55:58.142273"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 20:55:58.146249"], ["updated_at", "2024-12-22 20:55:58.146249"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:55:58.147829"], ["updated_at", "2024-12-22 20:55:58.147829"]] 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 11"], ["created_at", "2024-12-22 20:55:58.150473"], ["updated_at", "2024-12-22 20:55:58.150473"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:55:58.151861"], ["updated_at", "2024-12-22 20:55:58.151861"]] TRANSACTION (0.1ms) 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 12"], ["created_at", "2024-12-22 20:55:58.154764"], ["updated_at", "2024-12-22 20:55:58.154764"]] 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 13"], ["created_at", "2024-12-22 20:55:58.158860"], ["updated_at", "2024-12-22 20:55:58.158860"]] 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 14"], ["created_at", "2024-12-22 20:55:58.161984"], ["updated_at", "2024-12-22 20:55:58.161984"]] 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 15"], ["created_at", "2024-12-22 20:55:58.164847"], ["updated_at", "2024-12-22 20:55:58.164847"]] 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 16"], ["created_at", "2024-12-22 20:55:58.167776"], ["updated_at", "2024-12-22 20:55:58.167776"]] TRANSACTION (0.1ms) 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 17"], ["created_at", "2024-12-22 20:55:58.170341"], ["updated_at", "2024-12-22 20:55:58.170341"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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"  (15.4ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 20:59:23.797152"], ["updated_at", "2024-12-22 20:59:23.797152"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.805430"], ["updated_at", "2024-12-22 20:59:23.805430"]] 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 2"], ["created_at", "2024-12-22 20:59:23.817720"], ["updated_at", "2024-12-22 20:59:23.817720"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.819703"], ["updated_at", "2024-12-22 20:59:23.819703"]] 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 9"], ["created_at", "2024-12-22 20:59:23.840792"], ["updated_at", "2024-12-22 20:59:23.840792"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.842924"], ["updated_at", "2024-12-22 20:59:23.842924"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 20:59:23.846615"], ["updated_at", "2024-12-22 20:59:23.846615"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.847980"], ["updated_at", "2024-12-22 20:59:23.847980"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-22 20:59:23.850679"], ["updated_at", "2024-12-22 20:59:23.850679"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.852351"], ["updated_at", "2024-12-22 20:59:23.852351"]] 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 12"], ["created_at", "2024-12-22 20:59:23.854926"], ["updated_at", "2024-12-22 20:59:23.854926"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.863564"], ["updated_at", "2024-12-22 20:59:23.863564"]] 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 13"], ["created_at", "2024-12-22 20:59:23.866854"], ["updated_at", "2024-12-22 20:59:23.866854"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 20:59:23.869079"], ["updated_at", "2024-12-22 20:59:23.869079"]] 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 14"], ["created_at", "2024-12-22 20:59:23.871749"], ["updated_at", "2024-12-22 20:59:23.871749"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 20:59:23.873376"], ["updated_at", "2024-12-22 20:59:23.873376"]] 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 15"], ["created_at", "2024-12-22 20:59:23.876251"], ["updated_at", "2024-12-22 20:59:23.876251"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 20:59:23.879022"], ["updated_at", "2024-12-22 20:59:23.879022"]] 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 16"], ["created_at", "2024-12-22 20:59:23.882272"], ["updated_at", "2024-12-22 20:59:23.882272"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.884577"], ["updated_at", "2024-12-22 20:59:23.884577"]] 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 17"], ["created_at", "2024-12-22 20:59:23.889845"], ["updated_at", "2024-12-22 20:59:23.889845"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 20:59:23.892399"], ["updated_at", "2024-12-22 20:59:23.892399"]] 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"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) 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"  (15.2ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:00:35.490562"], ["updated_at", "2024-12-22 21:00:35.490562"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.498464"], ["updated_at", "2024-12-22 21:00:35.498464"]] 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 2"], ["created_at", "2024-12-22 21:00:35.510308"], ["updated_at", "2024-12-22 21:00:35.510308"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.512218"], ["updated_at", "2024-12-22 21:00:35.512218"]] 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 9"], ["created_at", "2024-12-22 21:00:35.532480"], ["updated_at", "2024-12-22 21:00:35.532480"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.534680"], ["updated_at", "2024-12-22 21:00:35.534680"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 21:00:35.539176"], ["updated_at", "2024-12-22 21:00:35.539176"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.541315"], ["updated_at", "2024-12-22 21:00:35.541315"]] 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 11"], ["created_at", "2024-12-22 21:00:35.544345"], ["updated_at", "2024-12-22 21:00:35.544345"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.546013"], ["updated_at", "2024-12-22 21:00:35.546013"]] 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 12"], ["created_at", "2024-12-22 21:00:35.548540"], ["updated_at", "2024-12-22 21:00:35.548540"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.561504"], ["updated_at", "2024-12-22 21:00:35.561504"]] 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 13"], ["created_at", "2024-12-22 21:00:35.564518"], ["updated_at", "2024-12-22 21:00:35.564518"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:00:35.566429"], ["updated_at", "2024-12-22 21:00:35.566429"]] 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 14"], ["created_at", "2024-12-22 21:00:35.568527"], ["updated_at", "2024-12-22 21:00:35.568527"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:00:35.570831"], ["updated_at", "2024-12-22 21:00:35.570831"]] TRANSACTION (0.1ms) 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 15"], ["created_at", "2024-12-22 21:00:35.575371"], ["updated_at", "2024-12-22 21:00:35.575371"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:00:35.577806"], ["updated_at", "2024-12-22 21:00:35.577806"]] 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", "2024-12-22 21:00:35.580150"], ["updated_at", "2024-12-22 21:00:35.580150"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.581875"], ["updated_at", "2024-12-22 21:00:35.581875"]] 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", "2024-12-22 21:00:35.584312"], ["updated_at", "2024-12-22 21:00:35.584312"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:00:35.586201"], ["updated_at", "2024-12-22 21:00:35.586201"]] 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"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.2ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (15.1ms) 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.2ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION 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 1"], ["created_at", "2024-12-22 21:01:25.623276"], ["updated_at", "2024-12-22 21:01:25.623276"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.631672"], ["updated_at", "2024-12-22 21:01:25.631672"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 21:01:25.641707"], ["updated_at", "2024-12-22 21:01:25.641707"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.644018"], ["updated_at", "2024-12-22 21:01:25.644018"]] 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 9"], ["created_at", "2024-12-22 21:01:25.664623"], ["updated_at", "2024-12-22 21:01:25.664623"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.666868"], ["updated_at", "2024-12-22 21:01:25.666868"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.0ms) 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 10"], ["created_at", "2024-12-22 21:01:25.671414"], ["updated_at", "2024-12-22 21:01:25.671414"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.674149"], ["updated_at", "2024-12-22 21:01:25.674149"]] 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 11"], ["created_at", "2024-12-22 21:01:25.677238"], ["updated_at", "2024-12-22 21:01:25.677238"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.678694"], ["updated_at", "2024-12-22 21:01:25.678694"]] 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 12"], ["created_at", "2024-12-22 21:01:25.681266"], ["updated_at", "2024-12-22 21:01:25.681266"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.693115"], ["updated_at", "2024-12-22 21:01:25.693115"]] 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 13"], ["created_at", "2024-12-22 21:01:25.696375"], ["updated_at", "2024-12-22 21:01:25.696375"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:01:25.698282"], ["updated_at", "2024-12-22 21:01:25.698282"]] 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 14"], ["created_at", "2024-12-22 21:01:25.700484"], ["updated_at", "2024-12-22 21:01:25.700484"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:01:25.702792"], ["updated_at", "2024-12-22 21:01:25.702792"]] 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 15"], ["created_at", "2024-12-22 21:01:25.705671"], ["updated_at", "2024-12-22 21:01:25.705671"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:01:25.707953"], ["updated_at", "2024-12-22 21:01:25.707953"]] 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 16"], ["created_at", "2024-12-22 21:01:25.710613"], ["updated_at", "2024-12-22 21:01:25.710613"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.712959"], ["updated_at", "2024-12-22 21:01:25.712959"]] 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", "2024-12-22 21:01:25.715755"], ["updated_at", "2024-12-22 21:01:25.715755"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:25.717463"], ["updated_at", "2024-12-22 21:01:25.717463"]] 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"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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"  (15.1ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:01:52.630816"], ["updated_at", "2024-12-22 21:01:52.630816"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.645829"], ["updated_at", "2024-12-22 21:01:52.645829"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 21:01:52.661006"], ["updated_at", "2024-12-22 21:01:52.661006"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.663290"], ["updated_at", "2024-12-22 21:01:52.663290"]] 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 9"], ["created_at", "2024-12-22 21:01:52.689676"], ["updated_at", "2024-12-22 21:01:52.689676"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.691692"], ["updated_at", "2024-12-22 21:01:52.691692"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 21:01:52.695669"], ["updated_at", "2024-12-22 21:01:52.695669"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.697582"], ["updated_at", "2024-12-22 21:01:52.697582"]] 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", "2024-12-22 21:01:52.699996"], ["updated_at", "2024-12-22 21:01:52.699996"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.701240"], ["updated_at", "2024-12-22 21:01:52.701240"]] 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 12"], ["created_at", "2024-12-22 21:01:52.703405"], ["updated_at", "2024-12-22 21:01:52.703405"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.715753"], ["updated_at", "2024-12-22 21:01:52.715753"]] 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 13"], ["created_at", "2024-12-22 21:01:52.718893"], ["updated_at", "2024-12-22 21:01:52.718893"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:01:52.720776"], ["updated_at", "2024-12-22 21:01:52.720776"]] 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 14"], ["created_at", "2024-12-22 21:01:52.724103"], ["updated_at", "2024-12-22 21:01:52.724103"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:01:52.726403"], ["updated_at", "2024-12-22 21:01:52.726403"]] 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 15"], ["created_at", "2024-12-22 21:01:52.728990"], ["updated_at", "2024-12-22 21:01:52.728990"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:01:52.731112"], ["updated_at", "2024-12-22 21:01:52.731112"]] 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", "2024-12-22 21:01:52.733917"], ["updated_at", "2024-12-22 21:01:52.733917"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.735975"], ["updated_at", "2024-12-22 21:01:52.735975"]] 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 17"], ["created_at", "2024-12-22 21:01:52.738632"], ["updated_at", "2024-12-22 21:01:52.738632"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:01:52.740423"], ["updated_at", "2024-12-22 21:01:52.740423"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State 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 (3.4ms) 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.2ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:05:12.470465"], ["updated_at", "2024-12-22 21:05:12.470465"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.478099"], ["updated_at", "2024-12-22 21:05:12.478099"]] 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 2"], ["created_at", "2024-12-22 21:05:12.491042"], ["updated_at", "2024-12-22 21:05:12.491042"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.493050"], ["updated_at", "2024-12-22 21:05:12.493050"]] 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 9"], ["created_at", "2024-12-22 21:05:12.516445"], ["updated_at", "2024-12-22 21:05:12.516445"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.518452"], ["updated_at", "2024-12-22 21:05:12.518452"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 21:05:12.522201"], ["updated_at", "2024-12-22 21:05:12.522201"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.524090"], ["updated_at", "2024-12-22 21:05:12.524090"]] 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", "2024-12-22 21:05:12.526942"], ["updated_at", "2024-12-22 21:05:12.526942"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.528112"], ["updated_at", "2024-12-22 21:05:12.528112"]] 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 12"], ["created_at", "2024-12-22 21:05:12.530373"], ["updated_at", "2024-12-22 21:05:12.530373"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.542217"], ["updated_at", "2024-12-22 21:05:12.542217"]] 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 13"], ["created_at", "2024-12-22 21:05:12.545247"], ["updated_at", "2024-12-22 21:05:12.545247"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:05:12.547017"], ["updated_at", "2024-12-22 21:05:12.547017"]] 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 14"], ["created_at", "2024-12-22 21:05:12.549182"], ["updated_at", "2024-12-22 21:05:12.549182"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:05:12.551403"], ["updated_at", "2024-12-22 21:05:12.551403"]] 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 15"], ["created_at", "2024-12-22 21:05:12.554593"], ["updated_at", "2024-12-22 21:05:12.554593"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:05:12.556422"], ["updated_at", "2024-12-22 21:05:12.556422"]] 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", "2024-12-22 21:05:12.558861"], ["updated_at", "2024-12-22 21:05:12.558861"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.560576"], ["updated_at", "2024-12-22 21:05:12.560576"]] TRANSACTION (0.1ms) 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", "2024-12-22 21:05:12.562975"], ["updated_at", "2024-12-22 21:05:12.562975"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.564753"], ["updated_at", "2024-12-22 21:05:12.564753"]] 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"."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 18"], ["created_at", "2024-12-22 21:05:12.568413"], ["updated_at", "2024-12-22 21:05:12.568413"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.571324"], ["updated_at", "2024-12-22 21:05:12.571324"]] 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", "2024-12-22 21:05:12.572828"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:05:12.574111"], ["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 19"], ["created_at", "2024-12-22 21:05:12.577290"], ["updated_at", "2024-12-22 21:05:12.577290"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.579112"], ["updated_at", "2024-12-22 21:05:12.579112"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:05:12.580317"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:05:12.581292"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 21:05:12.582259"], ["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 20"], ["created_at", "2024-12-22 21:05:12.585448"], ["updated_at", "2024-12-22 21:05:12.585448"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:05:12.587699"], ["updated_at", "2024-12-22 21:05:12.587699"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:05:12.588911"], ["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", "completed"], ["updated_at", "2024-12-22 21:05:12.589965"], ["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 SQL (11.3ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.7ms) TRUNCATE TABLE "users"  (15.1ms) 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';  (6.6ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (2.2ms) TRUNCATE TABLE "companies"  (0.1ms) 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.1ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:11:32.854693"], ["updated_at", "2024-12-22 21:11:32.854693"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.863450"], ["updated_at", "2024-12-22 21:11:32.863450"]] 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 2"], ["created_at", "2024-12-22 21:11:32.874782"], ["updated_at", "2024-12-22 21:11:32.874782"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.876674"], ["updated_at", "2024-12-22 21:11:32.876674"]] 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 9"], ["created_at", "2024-12-22 21:11:32.899384"], ["updated_at", "2024-12-22 21:11:32.899384"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.901384"], ["updated_at", "2024-12-22 21:11:32.901384"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-22 21:11:32.905452"], ["updated_at", "2024-12-22 21:11:32.905452"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.906708"], ["updated_at", "2024-12-22 21:11:32.906708"]] 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", "2024-12-22 21:11:32.908893"], ["updated_at", "2024-12-22 21:11:32.908893"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.910114"], ["updated_at", "2024-12-22 21:11:32.910114"]] TRANSACTION (0.1ms) 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-22 21:11:32.914402"], ["updated_at", "2024-12-22 21:11:32.914402"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.925721"], ["updated_at", "2024-12-22 21:11:32.925721"]] 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 13"], ["created_at", "2024-12-22 21:11:32.929198"], ["updated_at", "2024-12-22 21:11:32.929198"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:11:32.931612"], ["updated_at", "2024-12-22 21:11:32.931612"]] 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 14"], ["created_at", "2024-12-22 21:11:32.934095"], ["updated_at", "2024-12-22 21:11:32.934095"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:11:32.935609"], ["updated_at", "2024-12-22 21:11:32.935609"]] 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 15"], ["created_at", "2024-12-22 21:11:32.937764"], ["updated_at", "2024-12-22 21:11:32.937764"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:11:32.939308"], ["updated_at", "2024-12-22 21:11:32.939308"]] 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", "2024-12-22 21:11:32.941475"], ["updated_at", "2024-12-22 21:11:32.941475"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.942968"], ["updated_at", "2024-12-22 21:11:32.942968"]] 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 17"], ["created_at", "2024-12-22 21:11:32.945043"], ["updated_at", "2024-12-22 21:11:32.945043"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.947351"], ["updated_at", "2024-12-22 21:11:32.947351"]] 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"."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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-22 21:11:32.950663"], ["updated_at", "2024-12-22 21:11:32.950663"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.952773"], ["updated_at", "2024-12-22 21:11:32.952773"]] 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", "2024-12-22 21:11:32.954035"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:11:32.955039"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 21:11:32.957850"], ["updated_at", "2024-12-22 21:11:32.957850"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.959553"], ["updated_at", "2024-12-22 21:11:32.959553"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:11:32.960497"], ["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", "2024-12-22 21:11:32.961370"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 21:11:32.962312"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-22 21:11:32.965310"], ["updated_at", "2024-12-22 21:11:32.965310"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.967001"], ["updated_at", "2024-12-22 21:11:32.967001"]] 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", "2024-12-22 21:11:32.968049"], ["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", "completed"], ["updated_at", "2024-12-22 21:11:32.968931"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 21:11:32.971357"], ["updated_at", "2024-12-22 21:11:32.971357"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.972824"], ["updated_at", "2024-12-22 21:11:32.972824"]] 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", "2024-12-22 21:11:32.973851"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:11:32.974738"], ["id", 1]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 21:11:32.976638"], ["updated_at", "2024-12-22 21:11:32.976638"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.978429"], ["updated_at", "2024-12-22 21:11:32.978429"]] 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", "2024-12-22 21:11:32.980043"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:11:32.981153"], ["id", 1]] 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 23"], ["created_at", "2024-12-22 21:11:32.983643"], ["updated_at", "2024-12-22 21:11:32.983643"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:11:32.985488"], ["updated_at", "2024-12-22 21:11:32.985488"]] 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", "2024-12-22 21:11:32.986567"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:11:32.987474"], ["id", 1]] TRANSACTION (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) 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.2ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-22 21:13:23.953514"], ["updated_at", "2024-12-22 21:13:23.953514"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:23.960877"], ["updated_at", "2024-12-22 21:13:23.960877"]] 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 2"], ["created_at", "2024-12-22 21:13:23.971269"], ["updated_at", "2024-12-22 21:13:23.971269"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:23.973618"], ["updated_at", "2024-12-22 21:13:23.973618"]] 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 9"], ["created_at", "2024-12-22 21:13:23.996066"], ["updated_at", "2024-12-22 21:13:23.996066"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:23.998004"], ["updated_at", "2024-12-22 21:13:23.998004"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 21:13:24.001852"], ["updated_at", "2024-12-22 21:13:24.001852"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.003225"], ["updated_at", "2024-12-22 21:13:24.003225"]] 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 11"], ["created_at", "2024-12-22 21:13:24.006038"], ["updated_at", "2024-12-22 21:13:24.006038"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.007747"], ["updated_at", "2024-12-22 21:13:24.007747"]] 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", "2024-12-22 21:13:24.010667"], ["updated_at", "2024-12-22 21:13:24.010667"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.020804"], ["updated_at", "2024-12-22 21:13:24.020804"]] 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 13"], ["created_at", "2024-12-22 21:13:24.024565"], ["updated_at", "2024-12-22 21:13:24.024565"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:13:24.027334"], ["updated_at", "2024-12-22 21:13:24.027334"]] 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 14"], ["created_at", "2024-12-22 21:13:24.029745"], ["updated_at", "2024-12-22 21:13:24.029745"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:13:24.031370"], ["updated_at", "2024-12-22 21:13:24.031370"]] 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 15"], ["created_at", "2024-12-22 21:13:24.034090"], ["updated_at", "2024-12-22 21:13:24.034090"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:13:24.035861"], ["updated_at", "2024-12-22 21:13:24.035861"]] 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", "2024-12-22 21:13:24.038241"], ["updated_at", "2024-12-22 21:13:24.038241"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.040028"], ["updated_at", "2024-12-22 21:13:24.040028"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-22 21:13:24.042574"], ["updated_at", "2024-12-22 21:13:24.042574"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.044787"], ["updated_at", "2024-12-22 21:13:24.044787"]] 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"."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 18"], ["created_at", "2024-12-22 21:13:24.048320"], ["updated_at", "2024-12-22 21:13:24.048320"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.050464"], ["updated_at", "2024-12-22 21:13:24.050464"]] 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", "2024-12-22 21:13:24.052077"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.053257"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 21:13:24.056170"], ["updated_at", "2024-12-22 21:13:24.056170"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.058121"], ["updated_at", "2024-12-22 21:13:24.058121"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.059451"], ["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", "2024-12-22 21:13:24.060391"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 21:13:24.061241"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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 20"], ["created_at", "2024-12-22 21:13:24.064189"], ["updated_at", "2024-12-22 21:13:24.064189"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.066484"], ["updated_at", "2024-12-22 21:13:24.066484"]] 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", "2024-12-22 21:13:24.067645"], ["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", "completed"], ["updated_at", "2024-12-22 21:13:24.068531"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 21:13:24.071088"], ["updated_at", "2024-12-22 21:13:24.071088"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.072888"], ["updated_at", "2024-12-22 21:13:24.072888"]] 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", "2024-12-22 21:13:24.074041"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.075017"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:13:24.075649"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.077752"], ["updated_at", "2024-12-22 21:13:24.077752"]] 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", "2024-12-22 21:13:24.079024"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.079974"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:13:24.080730"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:13:24.082307"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.083791"], ["updated_at", "2024-12-22 21:13:24.083791"]] 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", "2024-12-22 21:13:24.084935"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.085738"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:13:24.086282"], ["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.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 22"], ["created_at", "2024-12-22 21:13:24.113973"], ["updated_at", "2024-12-22 21:13:24.113973"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.116582"], ["updated_at", "2024-12-22 21:13:24.116582"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-22 21:13:24.117848"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.118779"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 4"], ["updated_at", "2024-12-22 21:13:24.119417"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:13:24.119971"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.122374"], ["updated_at", "2024-12-22 21:13:24.122374"]] 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", "2024-12-22 21:13:24.123752"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.124711"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 5"], ["updated_at", "2024-12-22 21:13:24.125413"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:13:24.125974"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.127780"], ["updated_at", "2024-12-22 21:13:24.127780"]] 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", "2024-12-22 21:13:24.128909"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.129858"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 6"], ["updated_at", "2024-12-22 21:13:24.130449"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:13:24.130939"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 21:13:24.133282"], ["updated_at", "2024-12-22 21:13:24.133282"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:13:24.134783"], ["updated_at", "2024-12-22 21:13:24.134783"]] 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", "2024-12-22 21:13:24.135793"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:13:24.136473"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 7"], ["updated_at", "2024-12-22 21:13:24.137027"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 4"], ["updated_at", "2024-12-22 21:13:24.137693"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:13:24.138182"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.6ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:17:44.096620"], ["updated_at", "2024-12-22 21:17:44.096620"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.104618"], ["updated_at", "2024-12-22 21:17:44.104618"]] 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 2"], ["created_at", "2024-12-22 21:17:44.116880"], ["updated_at", "2024-12-22 21:17:44.116880"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.118975"], ["updated_at", "2024-12-22 21:17:44.118975"]] 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 9"], ["created_at", "2024-12-22 21:17:44.139938"], ["updated_at", "2024-12-22 21:17:44.139938"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.141764"], ["updated_at", "2024-12-22 21:17:44.141764"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 21:17:44.145411"], ["updated_at", "2024-12-22 21:17:44.145411"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.146689"], ["updated_at", "2024-12-22 21:17:44.146689"]] 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", "2024-12-22 21:17:44.148859"], ["updated_at", "2024-12-22 21:17:44.148859"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.150018"], ["updated_at", "2024-12-22 21:17:44.150018"]] 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 12"], ["created_at", "2024-12-22 21:17:44.152018"], ["updated_at", "2024-12-22 21:17:44.152018"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.163154"], ["updated_at", "2024-12-22 21:17:44.163154"]] TRANSACTION (0.1ms) 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-22 21:17:44.167500"], ["updated_at", "2024-12-22 21:17:44.167500"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:17:44.169974"], ["updated_at", "2024-12-22 21:17:44.169974"]] 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 14"], ["created_at", "2024-12-22 21:17:44.173068"], ["updated_at", "2024-12-22 21:17:44.173068"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:17:44.175613"], ["updated_at", "2024-12-22 21:17:44.175613"]] 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 15"], ["created_at", "2024-12-22 21:17:44.178490"], ["updated_at", "2024-12-22 21:17:44.178490"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:17:44.180785"], ["updated_at", "2024-12-22 21:17:44.180785"]] 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 16"], ["created_at", "2024-12-22 21:17:44.184009"], ["updated_at", "2024-12-22 21:17:44.184009"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.186742"], ["updated_at", "2024-12-22 21:17:44.186742"]] TRANSACTION (0.1ms) 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 17"], ["created_at", "2024-12-22 21:17:44.189758"], ["updated_at", "2024-12-22 21:17:44.189758"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.193611"], ["updated_at", "2024-12-22 21:17:44.193611"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.3ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-22 21:17:44.204202"], ["updated_at", "2024-12-22 21:17:44.204202"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.209959"], ["updated_at", "2024-12-22 21:17:44.209959"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Update (0.9ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:17:44.213600"], ["id", 1]] User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.217743"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 19"], ["created_at", "2024-12-22 21:17:44.226886"], ["updated_at", "2024-12-22 21:17:44.226886"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.230067"], ["updated_at", "2024-12-22 21:17:44.230067"]] User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.232505"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:17:44.234854"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-22 21:17:44.236802"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 20"], ["created_at", "2024-12-22 21:17:44.256984"], ["updated_at", "2024-12-22 21:17:44.256984"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.260105"], ["updated_at", "2024-12-22 21:17:44.260105"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:17:44.261838"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:17:44.263141"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 21:17:44.269853"], ["updated_at", "2024-12-22 21:17:44.269853"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.273361"], ["updated_at", "2024-12-22 21:17:44.273361"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:17:44.275295"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.276629"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:17:44.277608"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.280300"], ["updated_at", "2024-12-22 21:17:44.280300"]] 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", "completed"], ["updated_at", "2024-12-22 21:17:44.282932"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.284590"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:17:44.285730"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:17:44.288054"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.290074"], ["updated_at", "2024-12-22 21:17:44.290074"]] 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", "2024-12-22 21:17:44.291751"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.292960"], ["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.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 22"], ["created_at", "2024-12-22 21:17:44.317054"], ["updated_at", "2024-12-22 21:17:44.317054"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.319958"], ["updated_at", "2024-12-22 21:17:44.319958"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:17:44.321905"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.323248"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:17:44.324063"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.326514"], ["updated_at", "2024-12-22 21:17:44.326514"]] 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", "2024-12-22 21:17:44.327904"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.328915"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:17:44.329741"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.332585"], ["updated_at", "2024-12-22 21:17:44.332585"]] TRANSACTION (0.1ms) 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", "2024-12-22 21:17:44.334844"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.336113"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:17:44.336977"], ["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 23"], ["created_at", "2024-12-22 21:17:44.340239"], ["updated_at", "2024-12-22 21:17:44.340239"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:17:44.342380"], ["updated_at", "2024-12-22 21:17:44.342380"]] 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", "2024-12-22 21:17:44.343632"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:17:44.344513"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 4"], ["updated_at", "2024-12-22 21:17:44.345428"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:17:44.346071"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (12.0ms) 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"  (14.7ms) DELETE FROM "users"  (2.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (4.4ms) TRUNCATE TABLE "has_states_states"  (0.7ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:18:37.642700"], ["updated_at", "2024-12-22 21:18:37.642700"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.653419"], ["updated_at", "2024-12-22 21:18:37.653419"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 21:18:37.670292"], ["updated_at", "2024-12-22 21:18:37.670292"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.672717"], ["updated_at", "2024-12-22 21:18:37.672717"]] 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 9"], ["created_at", "2024-12-22 21:18:37.699252"], ["updated_at", "2024-12-22 21:18:37.699252"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.701483"], ["updated_at", "2024-12-22 21:18:37.701483"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 21:18:37.705647"], ["updated_at", "2024-12-22 21:18:37.705647"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.707383"], ["updated_at", "2024-12-22 21:18:37.707383"]] 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", "2024-12-22 21:18:37.710483"], ["updated_at", "2024-12-22 21:18:37.710483"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.713245"], ["updated_at", "2024-12-22 21:18:37.713245"]] 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 12"], ["created_at", "2024-12-22 21:18:37.716936"], ["updated_at", "2024-12-22 21:18:37.716936"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.726021"], ["updated_at", "2024-12-22 21:18:37.726021"]] 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 13"], ["created_at", "2024-12-22 21:18:37.730466"], ["updated_at", "2024-12-22 21:18:37.730466"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:18:37.733693"], ["updated_at", "2024-12-22 21:18:37.733693"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 21:18:37.736552"], ["updated_at", "2024-12-22 21:18:37.736552"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:18:37.739011"], ["updated_at", "2024-12-22 21:18:37.739011"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-22 21:18:37.742179"], ["updated_at", "2024-12-22 21:18:37.742179"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:18:37.745219"], ["updated_at", "2024-12-22 21:18:37.745219"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-22 21:18:37.749985"], ["updated_at", "2024-12-22 21:18:37.749985"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.753467"], ["updated_at", "2024-12-22 21:18:37.753467"]] 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 17"], ["created_at", "2024-12-22 21:18:37.756738"], ["updated_at", "2024-12-22 21:18:37.756738"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.759298"], ["updated_at", "2024-12-22 21:18:37.759298"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-22 21:18:37.765258"], ["updated_at", "2024-12-22 21:18:37.765258"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.768765"], ["updated_at", "2024-12-22 21:18:37.768765"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:18:37.770666"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.772271"], ["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.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 19"], ["created_at", "2024-12-22 21:18:37.776670"], ["updated_at", "2024-12-22 21:18:37.776670"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.779753"], ["updated_at", "2024-12-22 21:18:37.779753"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.781798"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:18:37.783400"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-22 21:18:37.784881"], ["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.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 20"], ["created_at", "2024-12-22 21:18:37.789163"], ["updated_at", "2024-12-22 21:18:37.789163"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.791562"], ["updated_at", "2024-12-22 21:18:37.791562"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:18:37.793118"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-22 21:18:37.794593"], ["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.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 21"], ["created_at", "2024-12-22 21:18:37.798739"], ["updated_at", "2024-12-22 21:18:37.798739"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.801576"], ["updated_at", "2024-12-22 21:18:37.801576"]] 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", "2024-12-22 21:18:37.803318"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.804473"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:18:37.805250"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.807738"], ["updated_at", "2024-12-22 21:18:37.807738"]] 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", "2024-12-22 21:18:37.809094"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.810211"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:18:37.811019"], ["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.1ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:18:37.812796"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.815017"], ["updated_at", "2024-12-22 21:18:37.815017"]] 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", "2024-12-22 21:18:37.816580"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.817562"], ["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.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 22"], ["created_at", "2024-12-22 21:18:37.848769"], ["updated_at", "2024-12-22 21:18:37.848769"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.851163"], ["updated_at", "2024-12-22 21:18:37.851163"]] 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", "2024-12-22 21:18:37.853142"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.854030"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:18:37.854690"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.856630"], ["updated_at", "2024-12-22 21:18:37.856630"]] 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", "2024-12-22 21:18:37.857704"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.858430"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:18:37.859031"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.860866"], ["updated_at", "2024-12-22 21:18:37.860866"]] 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", "2024-12-22 21:18:37.862188"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.863047"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:18:37.863783"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 21:18:37.866440"], ["updated_at", "2024-12-22 21:18:37.866440"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:37.868057"], ["updated_at", "2024-12-22 21:18:37.868057"]] 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", "2024-12-22 21:18:37.869123"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:18:37.869877"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 4"], ["updated_at", "2024-12-22 21:18:37.870495"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:18:37.871203"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.7ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (14.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.2ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:18:49.534598"], ["updated_at", "2024-12-22 21:18:49.534598"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:49.577384"], ["updated_at", "2024-12-22 21:18:49.577384"]] 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", "2024-12-22 21:18:49.579271"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:18:49.580537"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:49.583929"], ["updated_at", "2024-12-22 21:18:49.583929"]] 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", "2024-12-22 21:18:49.585036"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:18:49.585759"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:18:49.587014"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:49.588169"], ["updated_at", "2024-12-22 21:18:49.588169"]] 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", "2024-12-22 21:18:49.589107"], ["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.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 2"], ["created_at", "2024-12-22 21:18:49.594626"], ["updated_at", "2024-12-22 21:18:49.594626"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:18:49.597266"], ["updated_at", "2024-12-22 21:18:49.597266"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:18:49.598752"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:18:49.599805"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) 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.6ms) 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.2ms) 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 SQL (3.4ms) 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"  (5.5ms) 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.2ms) 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.1ms) DELETE FROM "companies"  (0.0ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-22 21:19:00.122001"], ["updated_at", "2024-12-22 21:19:00.122001"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.131159"], ["updated_at", "2024-12-22 21:19:00.131159"]] 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 2"], ["created_at", "2024-12-22 21:19:00.142886"], ["updated_at", "2024-12-22 21:19:00.142886"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.144810"], ["updated_at", "2024-12-22 21:19:00.144810"]] 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 9"], ["created_at", "2024-12-22 21:19:00.165550"], ["updated_at", "2024-12-22 21:19:00.165550"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.167467"], ["updated_at", "2024-12-22 21:19:00.167467"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 21:19:00.174592"], ["updated_at", "2024-12-22 21:19:00.174592"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.176478"], ["updated_at", "2024-12-22 21:19:00.176478"]] 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 11"], ["created_at", "2024-12-22 21:19:00.179752"], ["updated_at", "2024-12-22 21:19:00.179752"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.181740"], ["updated_at", "2024-12-22 21:19:00.181740"]] 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 12"], ["created_at", "2024-12-22 21:19:00.184603"], ["updated_at", "2024-12-22 21:19:00.184603"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.192701"], ["updated_at", "2024-12-22 21:19:00.192701"]] 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 13"], ["created_at", "2024-12-22 21:19:00.196069"], ["updated_at", "2024-12-22 21:19:00.196069"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:19:00.198767"], ["updated_at", "2024-12-22 21:19:00.198767"]] 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 14"], ["created_at", "2024-12-22 21:19:00.201494"], ["updated_at", "2024-12-22 21:19:00.201494"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:19:00.203374"], ["updated_at", "2024-12-22 21:19:00.203374"]] 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 15"], ["created_at", "2024-12-22 21:19:00.205711"], ["updated_at", "2024-12-22 21:19:00.205711"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:19:00.207329"], ["updated_at", "2024-12-22 21:19:00.207329"]] 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", "2024-12-22 21:19:00.209237"], ["updated_at", "2024-12-22 21:19:00.209237"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.210518"], ["updated_at", "2024-12-22 21:19:00.210518"]] 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", "2024-12-22 21:19:00.212265"], ["updated_at", "2024-12-22 21:19:00.212265"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.213634"], ["updated_at", "2024-12-22 21:19:00.213634"]] 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"."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 18"], ["created_at", "2024-12-22 21:19:00.217031"], ["updated_at", "2024-12-22 21:19:00.217031"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.218726"], ["updated_at", "2024-12-22 21:19:00.218726"]] 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", "2024-12-22 21:19:00.219851"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.220838"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 21:19:00.223428"], ["updated_at", "2024-12-22 21:19:00.223428"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.224759"], ["updated_at", "2024-12-22 21:19:00.224759"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.225616"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:19:00.226429"], ["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", "2024-12-22 21:19:00.227206"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-22 21:19:00.229205"], ["updated_at", "2024-12-22 21:19:00.229205"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.230918"], ["updated_at", "2024-12-22 21:19:00.230918"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:19:00.232033"], ["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", "completed"], ["updated_at", "2024-12-22 21:19:00.232961"], ["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 21"], ["created_at", "2024-12-22 21:19:00.235555"], ["updated_at", "2024-12-22 21:19:00.235555"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.237186"], ["updated_at", "2024-12-22 21:19:00.237186"]] 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", "2024-12-22 21:19:00.238236"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.239020"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:19:00.239604"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.241187"], ["updated_at", "2024-12-22 21:19:00.241187"]] 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", "2024-12-22 21:19:00.242183"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.242855"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:19:00.243469"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:19:00.244559"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.245693"], ["updated_at", "2024-12-22 21:19:00.245693"]] 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", "2024-12-22 21:19:00.246748"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.247516"], ["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.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 22"], ["created_at", "2024-12-22 21:19:00.274243"], ["updated_at", "2024-12-22 21:19:00.274243"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.276505"], ["updated_at", "2024-12-22 21:19:00.276505"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:19:00.277844"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.279436"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:19:00.280212"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.282382"], ["updated_at", "2024-12-22 21:19:00.282382"]] 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", "2024-12-22 21:19:00.283785"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.284724"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:19:00.285376"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.287259"], ["updated_at", "2024-12-22 21:19:00.287259"]] 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", "2024-12-22 21:19:00.288345"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.289069"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:19:00.289649"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 21:19:00.292178"], ["updated_at", "2024-12-22 21:19:00.292178"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:19:00.293614"], ["updated_at", "2024-12-22 21:19:00.293614"]] 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", "2024-12-22 21:19:00.294657"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:19:00.295403"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 4"], ["updated_at", "2024-12-22 21:19:00.295989"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:19:00.296540"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.1ms) 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"  (15.1ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-22 21:20:23.754143"], ["updated_at", "2024-12-22 21:20:23.754143"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.761349"], ["updated_at", "2024-12-22 21:20:23.761349"]] 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 2"], ["created_at", "2024-12-22 21:20:23.772505"], ["updated_at", "2024-12-22 21:20:23.772505"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.774263"], ["updated_at", "2024-12-22 21:20:23.774263"]] 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 9"], ["created_at", "2024-12-22 21:20:23.795365"], ["updated_at", "2024-12-22 21:20:23.795365"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.797206"], ["updated_at", "2024-12-22 21:20:23.797206"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 21:20:23.800682"], ["updated_at", "2024-12-22 21:20:23.800682"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.802282"], ["updated_at", "2024-12-22 21:20:23.802282"]] 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 11"], ["created_at", "2024-12-22 21:20:23.805282"], ["updated_at", "2024-12-22 21:20:23.805282"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.806691"], ["updated_at", "2024-12-22 21:20:23.806691"]] 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 12"], ["created_at", "2024-12-22 21:20:23.808877"], ["updated_at", "2024-12-22 21:20:23.808877"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.820036"], ["updated_at", "2024-12-22 21:20:23.820036"]] 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 13"], ["created_at", "2024-12-22 21:20:23.823641"], ["updated_at", "2024-12-22 21:20:23.823641"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:20:23.825666"], ["updated_at", "2024-12-22 21:20:23.825666"]] 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 14"], ["created_at", "2024-12-22 21:20:23.828077"], ["updated_at", "2024-12-22 21:20:23.828077"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:20:23.830019"], ["updated_at", "2024-12-22 21:20:23.830019"]] 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 15"], ["created_at", "2024-12-22 21:20:23.832614"], ["updated_at", "2024-12-22 21:20:23.832614"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:20:23.835515"], ["updated_at", "2024-12-22 21:20:23.835515"]] 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 16"], ["created_at", "2024-12-22 21:20:23.839245"], ["updated_at", "2024-12-22 21:20:23.839245"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.841308"], ["updated_at", "2024-12-22 21:20:23.841308"]] 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", "2024-12-22 21:20:23.843500"], ["updated_at", "2024-12-22 21:20:23.843500"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.844997"], ["updated_at", "2024-12-22 21:20:23.844997"]] 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"."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 18"], ["created_at", "2024-12-22 21:20:23.848259"], ["updated_at", "2024-12-22 21:20:23.848259"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.849747"], ["updated_at", "2024-12-22 21:20:23.849747"]] 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", "2024-12-22 21:20:23.851080"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:20:23.852188"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 21:20:23.854882"], ["updated_at", "2024-12-22 21:20:23.854882"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.857035"], ["updated_at", "2024-12-22 21:20:23.857035"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:20:23.860420"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:20:23.862230"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 21:20:23.863416"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-22 21:20:23.866161"], ["updated_at", "2024-12-22 21:20:23.866161"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.867866"], ["updated_at", "2024-12-22 21:20:23.867866"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:20:23.869113"], ["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", "completed"], ["updated_at", "2024-12-22 21:20:23.870129"], ["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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 21:20:23.874339"], ["updated_at", "2024-12-22 21:20:23.874339"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.877327"], ["updated_at", "2024-12-22 21:20:23.877327"]] 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", "2024-12-22 21:20:23.878881"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:20:23.879853"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.882104"], ["updated_at", "2024-12-22 21:20:23.882104"]] 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", "2024-12-22 21:20:23.883329"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:20:23.884200"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:20:23.885647"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.886998"], ["updated_at", "2024-12-22 21:20:23.886998"]] 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", "2024-12-22 21:20:23.888031"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 21:20:23.890669"], ["updated_at", "2024-12-22 21:20:23.890669"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.893014"], ["updated_at", "2024-12-22 21:20:23.893014"]] 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", "2024-12-22 21:20:23.894345"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:20:23.895189"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.897088"], ["updated_at", "2024-12-22 21:20:23.897088"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.6ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:20:23.908749"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:20:23.910814"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.913291"], ["updated_at", "2024-12-22 21:20:23.913291"]] 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", "2024-12-22 21:20:23.914472"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:20:23.915255"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 21:20:23.917706"], ["updated_at", "2024-12-22 21:20:23.917706"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:20:23.920157"], ["updated_at", "2024-12-22 21:20:23.920157"]] 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", "2024-12-22 21:20:23.921489"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:20:23.922356"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.9ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (15.0ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:21:00.218180"], ["updated_at", "2024-12-22 21:21:00.218180"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.226626"], ["updated_at", "2024-12-22 21:21:00.226626"]] 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 2"], ["created_at", "2024-12-22 21:21:00.237590"], ["updated_at", "2024-12-22 21:21:00.237590"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.239487"], ["updated_at", "2024-12-22 21:21:00.239487"]] 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 9"], ["created_at", "2024-12-22 21:21:00.259960"], ["updated_at", "2024-12-22 21:21:00.259960"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.261940"], ["updated_at", "2024-12-22 21:21:00.261940"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 21:21:00.265541"], ["updated_at", "2024-12-22 21:21:00.265541"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.266807"], ["updated_at", "2024-12-22 21:21:00.266807"]] 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 11"], ["created_at", "2024-12-22 21:21:00.269673"], ["updated_at", "2024-12-22 21:21:00.269673"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.271524"], ["updated_at", "2024-12-22 21:21:00.271524"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-22 21:21:00.277839"], ["updated_at", "2024-12-22 21:21:00.277839"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.296891"], ["updated_at", "2024-12-22 21:21:00.296891"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-22 21:21:00.300928"], ["updated_at", "2024-12-22 21:21:00.300928"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:21:00.304156"], ["updated_at", "2024-12-22 21:21:00.304156"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 21:21:00.307991"], ["updated_at", "2024-12-22 21:21:00.307991"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:21:00.311056"], ["updated_at", "2024-12-22 21:21:00.311056"]] 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 15"], ["created_at", "2024-12-22 21:21:00.314242"], ["updated_at", "2024-12-22 21:21:00.314242"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:21:00.316780"], ["updated_at", "2024-12-22 21:21:00.316780"]] TRANSACTION (0.1ms) 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 16"], ["created_at", "2024-12-22 21:21:00.320289"], ["updated_at", "2024-12-22 21:21:00.320289"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.322773"], ["updated_at", "2024-12-22 21:21:00.322773"]] 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 17"], ["created_at", "2024-12-22 21:21:00.326225"], ["updated_at", "2024-12-22 21:21:00.326225"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.328866"], ["updated_at", "2024-12-22 21:21:00.328866"]] 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"."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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-22 21:21:00.333231"], ["updated_at", "2024-12-22 21:21:00.333231"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.336113"], ["updated_at", "2024-12-22 21:21:00.336113"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.338429"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:21:00.340643"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 19"], ["created_at", "2024-12-22 21:21:00.345086"], ["updated_at", "2024-12-22 21:21:00.345086"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.347716"], ["updated_at", "2024-12-22 21:21:00.347716"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:21:00.349172"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.5ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:21:00.350676"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-22 21:21:00.353444"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-22 21:21:00.360470"], ["updated_at", "2024-12-22 21:21:00.360470"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.365480"], ["updated_at", "2024-12-22 21:21:00.365480"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.4ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:21:00.368271"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.370518"], ["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.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 21"], ["created_at", "2024-12-22 21:21:00.375937"], ["updated_at", "2024-12-22 21:21:00.375937"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.379380"], ["updated_at", "2024-12-22 21:21:00.379380"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.381942"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:21:00.383492"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.387948"], ["updated_at", "2024-12-22 21:21:00.387948"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.6ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.390481"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:21:00.393044"], ["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.1ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:21:00.395747"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.398496"], ["updated_at", "2024-12-22 21:21:00.398496"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.400921"], ["id", 3]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 22"], ["created_at", "2024-12-22 21:21:00.407107"], ["updated_at", "2024-12-22 21:21:00.407107"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.412864"], ["updated_at", "2024-12-22 21:21:00.412864"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.416685"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:21:00.418854"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.424528"], ["updated_at", "2024-12-22 21:21:00.424528"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.6ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.428287"], ["id", 2]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:21:00.431330"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.437056"], ["updated_at", "2024-12-22 21:21:00.437056"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.8ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.440600"], ["id", 3]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:21:00.443376"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 23"], ["created_at", "2024-12-22 21:21:00.451060"], ["updated_at", "2024-12-22 21:21:00.451060"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:00.454898"], ["updated_at", "2024-12-22 21:21:00.454898"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (17.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 21:21:00.458884"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:21:00.478318"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.3ms) TRUNCATE TABLE "users"  (14.5ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 21:21:23.356266"], ["updated_at", "2024-12-22 21:21:23.356266"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.370000"], ["updated_at", "2024-12-22 21:21:23.370000"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 21:21:23.387014"], ["updated_at", "2024-12-22 21:21:23.387014"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.389480"], ["updated_at", "2024-12-22 21:21:23.389480"]] TRANSACTION (0.1ms) 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 9"], ["created_at", "2024-12-22 21:21:23.419783"], ["updated_at", "2024-12-22 21:21:23.419783"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.421889"], ["updated_at", "2024-12-22 21:21:23.421889"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 21:21:23.427742"], ["updated_at", "2024-12-22 21:21:23.427742"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.429666"], ["updated_at", "2024-12-22 21:21:23.429666"]] 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 11"], ["created_at", "2024-12-22 21:21:23.433032"], ["updated_at", "2024-12-22 21:21:23.433032"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.434640"], ["updated_at", "2024-12-22 21:21:23.434640"]] 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 12"], ["created_at", "2024-12-22 21:21:23.437025"], ["updated_at", "2024-12-22 21:21:23.437025"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.449091"], ["updated_at", "2024-12-22 21:21:23.449091"]] 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 13"], ["created_at", "2024-12-22 21:21:23.451903"], ["updated_at", "2024-12-22 21:21:23.451903"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:21:23.453949"], ["updated_at", "2024-12-22 21:21:23.453949"]] 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 14"], ["created_at", "2024-12-22 21:21:23.455995"], ["updated_at", "2024-12-22 21:21:23.455995"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:21:23.458404"], ["updated_at", "2024-12-22 21:21:23.458404"]] 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 15"], ["created_at", "2024-12-22 21:21:23.461416"], ["updated_at", "2024-12-22 21:21:23.461416"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 21:21:23.463019"], ["updated_at", "2024-12-22 21:21:23.463019"]] 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 (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-22 21:21:23.465030"], ["updated_at", "2024-12-22 21:21:23.465030"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.468359"], ["updated_at", "2024-12-22 21:21:23.468359"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-22 21:21:23.471583"], ["updated_at", "2024-12-22 21:21:23.471583"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.475118"], ["updated_at", "2024-12-22 21:21:23.475118"]] 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"."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 18"], ["created_at", "2024-12-22 21:21:23.479509"], ["updated_at", "2024-12-22 21:21:23.479509"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.481324"], ["updated_at", "2024-12-22 21:21:23.481324"]] 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", "2024-12-22 21:21:23.482642"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:21:23.483787"], ["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 19"], ["created_at", "2024-12-22 21:21:23.486426"], ["updated_at", "2024-12-22 21:21:23.486426"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.488054"], ["updated_at", "2024-12-22 21:21:23.488054"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 21:21:23.488956"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:21:23.489934"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 21:21:23.491017"], ["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.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 20"], ["created_at", "2024-12-22 21:21:23.494968"], ["updated_at", "2024-12-22 21:21:23.494968"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.497333"], ["updated_at", "2024-12-22 21:21:23.497333"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 21:21:23.498774"], ["id", 1]] 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", "2024-12-22 21:21:23.499780"], ["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 21"], ["created_at", "2024-12-22 21:21:23.502739"], ["updated_at", "2024-12-22 21:21:23.502739"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.504679"], ["updated_at", "2024-12-22 21:21:23.504679"]] 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", "2024-12-22 21:21:23.505883"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:21:23.506866"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.509127"], ["updated_at", "2024-12-22 21:21:23.509127"]] 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", "2024-12-22 21:21:23.510209"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:21:23.510959"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 21:21:23.512358"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.513663"], ["updated_at", "2024-12-22 21:21:23.513663"]] 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", "2024-12-22 21:21:23.514721"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 21:21:23.517596"], ["updated_at", "2024-12-22 21:21:23.517596"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.519880"], ["updated_at", "2024-12-22 21:21:23.519880"]] 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", "2024-12-22 21:21:23.521188"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 21:21:23.522039"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.525286"], ["updated_at", "2024-12-22 21:21:23.525286"]] 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", "2024-12-22 21:21:23.526737"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 21:21:23.527679"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.529946"], ["updated_at", "2024-12-22 21:21:23.529946"]] 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", "2024-12-22 21:21:23.531118"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 21:21:23.532054"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 21:21:23.534742"], ["updated_at", "2024-12-22 21:21:23.534742"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 21:21:23.536443"], ["updated_at", "2024-12-22 21:21:23.536443"]] 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", "2024-12-22 21:21:23.537520"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 21:21:23.551231"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (5.7ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:18:11.944603"], ["updated_at", "2024-12-22 23:18:11.944603"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:11.951750"], ["updated_at", "2024-12-22 23:18:11.951750"]] 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.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 23:18:11.965451"], ["updated_at", "2024-12-22 23:18:11.965451"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:11.968511"], ["updated_at", "2024-12-22 23:18:11.968511"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 23:18:11.998462"], ["updated_at", "2024-12-22 23:18:11.998462"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.001277"], ["updated_at", "2024-12-22 23:18:12.001277"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-22 23:18:12.006573"], ["updated_at", "2024-12-22 23:18:12.006573"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.009218"], ["updated_at", "2024-12-22 23:18:12.009218"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-22 23:18:12.017437"], ["updated_at", "2024-12-22 23:18:12.017437"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.020359"], ["updated_at", "2024-12-22 23:18:12.020359"]] TRANSACTION (0.1ms) 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 12"], ["created_at", "2024-12-22 23:18:12.024888"], ["updated_at", "2024-12-22 23:18:12.024888"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.038991"], ["updated_at", "2024-12-22 23:18:12.038991"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-22 23:18:12.043950"], ["updated_at", "2024-12-22 23:18:12.043950"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:18:12.047484"], ["updated_at", "2024-12-22 23:18:12.047484"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 23:18:12.052669"], ["updated_at", "2024-12-22 23:18:12.052669"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:18:12.056235"], ["updated_at", "2024-12-22 23:18:12.056235"]] TRANSACTION (0.1ms) 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 15"], ["created_at", "2024-12-22 23:18:12.060242"], ["updated_at", "2024-12-22 23:18:12.060242"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:18:12.062954"], ["updated_at", "2024-12-22 23:18:12.062954"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-22 23:18:12.066477"], ["updated_at", "2024-12-22 23:18:12.066477"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.069756"], ["updated_at", "2024-12-22 23:18:12.069756"]] 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 17"], ["created_at", "2024-12-22 23:18:12.073655"], ["updated_at", "2024-12-22 23:18:12.073655"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.076438"], ["updated_at", "2024-12-22 23:18:12.076438"]] 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"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-22 23:18:12.082046"], ["updated_at", "2024-12-22 23:18:12.082046"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.086084"], ["updated_at", "2024-12-22 23:18:12.086084"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:18:12.088715"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:18:12.090800"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 19"], ["created_at", "2024-12-22 23:18:12.095128"], ["updated_at", "2024-12-22 23:18:12.095128"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.097648"], ["updated_at", "2024-12-22 23:18:12.097648"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:18:12.099385"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:18:12.100963"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.8ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-22 23:18:12.115861"], ["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) 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 20"], ["created_at", "2024-12-22 23:18:12.121508"], ["updated_at", "2024-12-22 23:18:12.121508"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "other_process"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.124563"], ["updated_at", "2024-12-22 23:18:12.124563"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:18:12.126542"], ["id", 1]] 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", "2024-12-22 23:18:12.127918"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 21"], ["created_at", "2024-12-22 23:18:12.133804"], ["updated_at", "2024-12-22 23:18:12.133804"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.137726"], ["updated_at", "2024-12-22 23:18:12.137726"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:18:12.139864"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:18:12.141354"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.144369"], ["updated_at", "2024-12-22 23:18:12.144369"]] 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", "completed"], ["updated_at", "2024-12-22 23:18:12.146088"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:18:12.148538"], ["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 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:18:12.151483"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.153809"], ["updated_at", "2024-12-22 23:18:12.153809"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:18:12.155518"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:18:12.158986"], ["updated_at", "2024-12-22 23:18:12.158986"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.160939"], ["updated_at", "2024-12-22 23:18:12.160939"]] 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", "2024-12-22 23:18:12.162105"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:18:12.162860"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.164989"], ["updated_at", "2024-12-22 23:18:12.164989"]] 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", "2024-12-22 23:18:12.166446"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:18:12.167449"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.169679"], ["updated_at", "2024-12-22 23:18:12.169679"]] 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", "2024-12-22 23:18:12.171158"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:18:12.171936"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 23:18:12.174490"], ["updated_at", "2024-12-22 23:18:12.174490"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:18:12.175939"], ["updated_at", "2024-12-22 23:18:12.175939"]] 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", "2024-12-22 23:18:12.176968"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:18:12.177903"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.1ms) 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.9ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 (3.3ms) 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.5ms) 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.2ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 (3.3ms) 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.9ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 (14.9ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.8ms) TRUNCATE TABLE "users"  (15.1ms) DELETE FROM "users"  (2.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (4.5ms) TRUNCATE TABLE "has_states_states"  (0.2ms) 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';  (2.5ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:29:34.791669"], ["updated_at", "2024-12-22 23:29:34.791669"]] 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", "2024-12-22 23:29:34.811238"], ["updated_at", "2024-12-22 23:29:34.811238"]] 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 9"], ["created_at", "2024-12-22 23:29:34.840025"], ["updated_at", "2024-12-22 23:29:34.840025"]] 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 10"], ["created_at", "2024-12-22 23:29:34.843240"], ["updated_at", "2024-12-22 23:29:34.843240"]] 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 11"], ["created_at", "2024-12-22 23:29:34.847010"], ["updated_at", "2024-12-22 23:29:34.847010"]] 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-22 23:29:34.863760"], ["updated_at", "2024-12-22 23:29:34.863760"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-22 23:29:34.867921"], ["updated_at", "2024-12-22 23:29:34.867921"]] TRANSACTION (0.1ms) 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 14"], ["created_at", "2024-12-22 23:29:34.872821"], ["updated_at", "2024-12-22 23:29:34.872821"]] 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 15"], ["created_at", "2024-12-22 23:29:34.876493"], ["updated_at", "2024-12-22 23:29:34.876493"]] 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 16"], ["created_at", "2024-12-22 23:29:34.880777"], ["updated_at", "2024-12-22 23:29:34.880777"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (15.2ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) 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.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:32:02.554219"], ["updated_at", "2024-12-22 23:32:02.554219"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 2"], ["created_at", "2024-12-22 23:32:02.595115"], ["updated_at", "2024-12-22 23:32:02.595115"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 23:32:02.640312"], ["updated_at", "2024-12-22 23:32:02.640312"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-22 23:32:02.645844"], ["updated_at", "2024-12-22 23:32:02.645844"]] TRANSACTION (0.2ms) 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 11"], ["created_at", "2024-12-22 23:32:02.651004"], ["updated_at", "2024-12-22 23:32:02.651004"]] 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 12"], ["created_at", "2024-12-22 23:32:02.674261"], ["updated_at", "2024-12-22 23:32:02.674261"]] 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 13"], ["created_at", "2024-12-22 23:32:02.679019"], ["updated_at", "2024-12-22 23:32:02.679019"]] 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 14"], ["created_at", "2024-12-22 23:32:02.684649"], ["updated_at", "2024-12-22 23:32:02.684649"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) 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 15"], ["created_at", "2024-12-22 23:32:02.703736"], ["updated_at", "2024-12-22 23:32:02.703736"]] 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 16"], ["created_at", "2024-12-22 23:32:02.708788"], ["updated_at", "2024-12-22 23:32:02.708788"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-22 23:32:02.717870"], ["updated_at", "2024-12-22 23:32:02.717870"]] 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 18"], ["created_at", "2024-12-22 23:32:02.723427"], ["updated_at", "2024-12-22 23:32:02.723427"]] 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 (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:32:02.729768"], ["updated_at", "2024-12-22 23:32:02.729768"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION SQL (3.4ms) PRAGMA foreign_keys SQL (0.2ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.4ms) TRUNCATE TABLE "users"  (14.7ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.5ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-22 23:33:24.737390"], ["updated_at", "2024-12-22 23:33:24.737390"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 23:33:24.762090"], ["updated_at", "2024-12-22 23:33:24.762090"]] 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 9"], ["created_at", "2024-12-22 23:33:24.791993"], ["updated_at", "2024-12-22 23:33:24.791993"]] 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 10"], ["created_at", "2024-12-22 23:33:24.795313"], ["updated_at", "2024-12-22 23:33:24.795313"]] 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", "2024-12-22 23:33:24.797732"], ["updated_at", "2024-12-22 23:33:24.797732"]] 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 12"], ["created_at", "2024-12-22 23:33:24.813474"], ["updated_at", "2024-12-22 23:33:24.813474"]] 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 13"], ["created_at", "2024-12-22 23:33:24.816686"], ["updated_at", "2024-12-22 23:33:24.816686"]] 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 14"], ["created_at", "2024-12-22 23:33:24.819888"], ["updated_at", "2024-12-22 23:33:24.819888"]] 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 15"], ["created_at", "2024-12-22 23:33:24.823672"], ["updated_at", "2024-12-22 23:33:24.823672"]] 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", "2024-12-22 23:33:24.827341"], ["updated_at", "2024-12-22 23:33:24.827341"]] 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", "2024-12-22 23:33:24.830303"], ["updated_at", "2024-12-22 23:33:24.830303"]] 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 18"], ["created_at", "2024-12-22 23:33:24.833112"], ["updated_at", "2024-12-22 23:33:24.833112"]] 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 19"], ["created_at", "2024-12-22 23:33:24.836684"], ["updated_at", "2024-12-22 23:33:24.836684"]] 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 20"], ["created_at", "2024-12-22 23:33:24.840605"], ["updated_at", "2024-12-22 23:33:24.840605"]] 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.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:33:24.844382"], ["updated_at", "2024-12-22 23:33:24.844382"]] TRANSACTION (0.1ms) 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 22"], ["created_at", "2024-12-22 23:33:24.861098"], ["updated_at", "2024-12-22 23:33:24.861098"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.8ms) TRUNCATE TABLE "users"  (14.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.2ms) 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';  (3.5ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:33:56.734915"], ["updated_at", "2024-12-22 23:33:56.734915"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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"  (7.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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-22 23:37:02.670281"], ["updated_at", "2024-12-22 23:37:02.670281"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:02.680224"], ["updated_at", "2024-12-22 23:37:02.680224"]] 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 2"], ["created_at", "2024-12-22 23:37:02.685124"], ["updated_at", "2024-12-22 23:37:02.685124"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:02.686752"], ["updated_at", "2024-12-22 23:37:02.686752"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.1ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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 (10.5ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (1.5ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.7ms) TRUNCATE TABLE "users"  (15.1ms) 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';  (7.5ms) 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';  (3.1ms) TRUNCATE TABLE "companies"  (0.2ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-22 23:37:48.006590"], ["updated_at", "2024-12-22 23:37:48.006590"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.021480"], ["updated_at", "2024-12-22 23:37:48.021480"]] TRANSACTION (0.1ms) 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 23:37:48.033725"], ["updated_at", "2024-12-22 23:37:48.033725"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.036397"], ["updated_at", "2024-12-22 23:37:48.036397"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 23:37:48.047673"], ["updated_at", "2024-12-22 23:37:48.047673"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.050246"], ["updated_at", "2024-12-22 23:37:48.050246"]] 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 10"], ["created_at", "2024-12-22 23:37:48.053893"], ["updated_at", "2024-12-22 23:37:48.053893"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.055893"], ["updated_at", "2024-12-22 23:37:48.055893"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-22 23:37:48.059595"], ["updated_at", "2024-12-22 23:37:48.059595"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.079087"], ["updated_at", "2024-12-22 23:37:48.079087"]] 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 12"], ["created_at", "2024-12-22 23:37:48.082615"], ["updated_at", "2024-12-22 23:37:48.082615"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:37:48.085135"], ["updated_at", "2024-12-22 23:37:48.085135"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-22 23:37:48.087597"], ["updated_at", "2024-12-22 23:37:48.087597"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:37:48.089541"], ["updated_at", "2024-12-22 23:37:48.089541"]] 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 14"], ["created_at", "2024-12-22 23:37:48.091555"], ["updated_at", "2024-12-22 23:37:48.091555"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:37:48.093444"], ["updated_at", "2024-12-22 23:37:48.093444"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-22 23:37:48.097153"], ["updated_at", "2024-12-22 23:37:48.097153"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.100541"], ["updated_at", "2024-12-22 23:37:48.100541"]] 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 16"], ["created_at", "2024-12-22 23:37:48.103196"], ["updated_at", "2024-12-22 23:37:48.103196"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.105401"], ["updated_at", "2024-12-22 23:37:48.105401"]] 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"."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 17"], ["created_at", "2024-12-22 23:37:48.108741"], ["updated_at", "2024-12-22 23:37:48.108741"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.110776"], ["updated_at", "2024-12-22 23:37:48.110776"]] 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", "2024-12-22 23:37:48.112197"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:37:48.113340"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 18"], ["created_at", "2024-12-22 23:37:48.116360"], ["updated_at", "2024-12-22 23:37:48.116360"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.118286"], ["updated_at", "2024-12-22 23:37:48.118286"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:37:48.119377"], ["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", "2024-12-22 23:37:48.120207"], ["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", "2024-12-22 23:37:48.121150"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:37:48.123612"], ["updated_at", "2024-12-22 23:37:48.123612"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-22 23:37:48.133610"], ["updated_at", "2024-12-22 23:37:48.133610"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.136327"], ["updated_at", "2024-12-22 23:37:48.136327"]] 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", "2024-12-22 23:37:48.137852"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:37:48.138751"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.140724"], ["updated_at", "2024-12-22 23:37:48.140724"]] 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", "2024-12-22 23:37:48.142386"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:37:48.143225"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:37:48.144632"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.146042"], ["updated_at", "2024-12-22 23:37:48.146042"]] 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", "2024-12-22 23:37:48.147319"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:37:48.149977"], ["updated_at", "2024-12-22 23:37:48.149977"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.151679"], ["updated_at", "2024-12-22 23:37:48.151679"]] 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", "2024-12-22 23:37:48.152739"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:37:48.153517"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.155240"], ["updated_at", "2024-12-22 23:37:48.155240"]] 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", "2024-12-22 23:37:48.156151"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:37:48.156812"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.159032"], ["updated_at", "2024-12-22 23:37:48.159032"]] 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", "2024-12-22 23:37:48.173192"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:37:48.174386"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:37:48.177813"], ["updated_at", "2024-12-22 23:37:48.177813"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:37:48.179826"], ["updated_at", "2024-12-22 23:37:48.179826"]] 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", "2024-12-22 23:37:48.181133"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:37:48.182972"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.5ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.2ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.4ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.1ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION HasStates::State Load (0.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? /* loading for pp */ LIMIT ? [["state_type", "kyc"], ["LIMIT", 11]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:41:23.716808"], ["updated_at", "2024-12-22 23:41:23.716808"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:23.726014"], ["updated_at", "2024-12-22 23:41:23.726014"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-22 23:41:23.733427"], ["updated_at", "2024-12-22 23:41:23.733427"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:23.735650"], ["updated_at", "2024-12-22 23:41:23.735650"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) 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.5ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:41:28.277440"], ["updated_at", "2024-12-22 23:41:28.277440"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.285192"], ["updated_at", "2024-12-22 23:41:28.285192"]] 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 2"], ["created_at", "2024-12-22 23:41:28.296537"], ["updated_at", "2024-12-22 23:41:28.296537"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.298725"], ["updated_at", "2024-12-22 23:41:28.298725"]] TRANSACTION (0.1ms) 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 9"], ["created_at", "2024-12-22 23:41:28.310861"], ["updated_at", "2024-12-22 23:41:28.310861"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.313329"], ["updated_at", "2024-12-22 23:41:28.313329"]] 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", "2024-12-22 23:41:28.316411"], ["updated_at", "2024-12-22 23:41:28.316411"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.317929"], ["updated_at", "2024-12-22 23:41:28.317929"]] 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 11"], ["created_at", "2024-12-22 23:41:28.321025"], ["updated_at", "2024-12-22 23:41:28.321025"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.343417"], ["updated_at", "2024-12-22 23:41:28.343417"]] TRANSACTION (0.1ms) 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", "2024-12-22 23:41:28.348471"], ["updated_at", "2024-12-22 23:41:28.348471"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:41:28.351565"], ["updated_at", "2024-12-22 23:41:28.351565"]] TRANSACTION (0.1ms) 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 13"], ["created_at", "2024-12-22 23:41:28.356088"], ["updated_at", "2024-12-22 23:41:28.356088"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:41:28.359432"], ["updated_at", "2024-12-22 23:41:28.359432"]] TRANSACTION (0.1ms) 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 14"], ["created_at", "2024-12-22 23:41:28.363837"], ["updated_at", "2024-12-22 23:41:28.363837"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:41:28.366850"], ["updated_at", "2024-12-22 23:41:28.366850"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.4ms) 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 15"], ["created_at", "2024-12-22 23:41:28.371822"], ["updated_at", "2024-12-22 23:41:28.371822"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.375041"], ["updated_at", "2024-12-22 23:41:28.375041"]] 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 16"], ["created_at", "2024-12-22 23:41:28.378650"], ["updated_at", "2024-12-22 23:41:28.378650"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.381318"], ["updated_at", "2024-12-22 23:41:28.381318"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 17"], ["created_at", "2024-12-22 23:41:28.386351"], ["updated_at", "2024-12-22 23:41:28.386351"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.389515"], ["updated_at", "2024-12-22 23:41:28.389515"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:41:28.391734"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:41:28.393798"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 18"], ["created_at", "2024-12-22 23:41:28.397834"], ["updated_at", "2024-12-22 23:41:28.397834"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.400308"], ["updated_at", "2024-12-22 23:41:28.400308"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:41:28.401712"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.6ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:41:28.402819"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 23:41:28.404386"], ["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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:41:28.407734"], ["updated_at", "2024-12-22 23:41:28.407734"]] 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 20"], ["created_at", "2024-12-22 23:41:28.419798"], ["updated_at", "2024-12-22 23:41:28.419798"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.423126"], ["updated_at", "2024-12-22 23:41:28.423126"]] 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", "2024-12-22 23:41:28.425109"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:41:28.426386"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.429439"], ["updated_at", "2024-12-22 23:41:28.429439"]] 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", "2024-12-22 23:41:28.430886"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:41:28.431843"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:41:28.433847"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.435575"], ["updated_at", "2024-12-22 23:41:28.435575"]] 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", "2024-12-22 23:41:28.436923"], ["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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:41:28.439369"], ["updated_at", "2024-12-22 23:41:28.439369"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.441820"], ["updated_at", "2024-12-22 23:41:28.441820"]] 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", "2024-12-22 23:41:28.443230"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:41:28.444245"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.446273"], ["updated_at", "2024-12-22 23:41:28.446273"]] 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", "2024-12-22 23:41:28.447982"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:41:28.448721"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.450346"], ["updated_at", "2024-12-22 23:41:28.450346"]] 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", "2024-12-22 23:41:28.451258"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:41:28.451979"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:41:28.467401"], ["updated_at", "2024-12-22 23:41:28.467401"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:28.470632"], ["updated_at", "2024-12-22 23:41:28.470632"]] 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", "2024-12-22 23:41:28.472090"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:41:28.473158"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.4ms) 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.2ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:41:37.370700"], ["updated_at", "2024-12-22 23:41:37.370700"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.380452"], ["updated_at", "2024-12-22 23:41:37.380452"]] 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 2"], ["created_at", "2024-12-22 23:41:37.389845"], ["updated_at", "2024-12-22 23:41:37.389845"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.392238"], ["updated_at", "2024-12-22 23:41:37.392238"]] 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 9"], ["created_at", "2024-12-22 23:41:37.400923"], ["updated_at", "2024-12-22 23:41:37.400923"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.402377"], ["updated_at", "2024-12-22 23:41:37.402377"]] 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 10"], ["created_at", "2024-12-22 23:41:37.405179"], ["updated_at", "2024-12-22 23:41:37.405179"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.406990"], ["updated_at", "2024-12-22 23:41:37.406990"]] 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 11"], ["created_at", "2024-12-22 23:41:37.409960"], ["updated_at", "2024-12-22 23:41:37.409960"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.424620"], ["updated_at", "2024-12-22 23:41:37.424620"]] 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 12"], ["created_at", "2024-12-22 23:41:37.427764"], ["updated_at", "2024-12-22 23:41:37.427764"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:41:37.429918"], ["updated_at", "2024-12-22 23:41:37.429918"]] 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 13"], ["created_at", "2024-12-22 23:41:37.431875"], ["updated_at", "2024-12-22 23:41:37.431875"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:41:37.433430"], ["updated_at", "2024-12-22 23:41:37.433430"]] 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 14"], ["created_at", "2024-12-22 23:41:37.435321"], ["updated_at", "2024-12-22 23:41:37.435321"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:41:37.437118"], ["updated_at", "2024-12-22 23:41:37.437118"]] 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 15"], ["created_at", "2024-12-22 23:41:37.441751"], ["updated_at", "2024-12-22 23:41:37.441751"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.444281"], ["updated_at", "2024-12-22 23:41:37.444281"]] 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 16"], ["created_at", "2024-12-22 23:41:37.446454"], ["updated_at", "2024-12-22 23:41:37.446454"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.448166"], ["updated_at", "2024-12-22 23:41:37.448166"]] 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"."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 17"], ["created_at", "2024-12-22 23:41:37.451279"], ["updated_at", "2024-12-22 23:41:37.451279"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.452790"], ["updated_at", "2024-12-22 23:41:37.452790"]] 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", "2024-12-22 23:41:37.453986"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:41:37.455154"], ["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.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 18"], ["created_at", "2024-12-22 23:41:37.458310"], ["updated_at", "2024-12-22 23:41:37.458310"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.460312"], ["updated_at", "2024-12-22 23:41:37.460312"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:41:37.461318"], ["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", "2024-12-22 23:41:37.462299"], ["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", "2024-12-22 23:41:37.463138"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:41:37.465618"], ["updated_at", "2024-12-22 23:41:37.465618"]] 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 20"], ["created_at", "2024-12-22 23:41:37.476519"], ["updated_at", "2024-12-22 23:41:37.476519"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.478943"], ["updated_at", "2024-12-22 23:41:37.478943"]] 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", "2024-12-22 23:41:37.480274"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:41:37.481169"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.483120"], ["updated_at", "2024-12-22 23:41:37.483120"]] 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", "2024-12-22 23:41:37.484345"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:41:37.485155"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:41:37.486639"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.488293"], ["updated_at", "2024-12-22 23:41:37.488293"]] 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", "2024-12-22 23:41:37.489559"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:41:37.492342"], ["updated_at", "2024-12-22 23:41:37.492342"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.494399"], ["updated_at", "2024-12-22 23:41:37.494399"]] 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", "2024-12-22 23:41:37.495635"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:41:37.496515"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.498356"], ["updated_at", "2024-12-22 23:41:37.498356"]] 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", "2024-12-22 23:41:37.499376"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:41:37.500086"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.501769"], ["updated_at", "2024-12-22 23:41:37.501769"]] 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", "2024-12-22 23:41:37.502857"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:41:37.503646"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:41:37.506605"], ["updated_at", "2024-12-22 23:41:37.506605"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:41:37.508915"], ["updated_at", "2024-12-22 23:41:37.508915"]] 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", "2024-12-22 23:41:37.510364"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:41:37.511237"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (10.6ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (1.9ms) TRUNCATE TABLE "users"  (15.1ms) 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';  (5.1ms) TRUNCATE TABLE "has_states_states"  (0.2ms) DELETE FROM "has_states_states"  (1.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (3.1ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (1.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-22 23:46:42.327255"], ["updated_at", "2024-12-22 23:46:42.327255"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.344140"], ["updated_at", "2024-12-22 23:46:42.344140"]] 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.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 23:46:42.362704"], ["updated_at", "2024-12-22 23:46:42.362704"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.366583"], ["updated_at", "2024-12-22 23:46:42.366583"]] TRANSACTION (0.1ms) 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 23:46:42.381091"], ["updated_at", "2024-12-22 23:46:42.381091"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.383793"], ["updated_at", "2024-12-22 23:46:42.383793"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 10"], ["created_at", "2024-12-22 23:46:42.415239"], ["updated_at", "2024-12-22 23:46:42.415239"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.417473"], ["updated_at", "2024-12-22 23:46:42.417473"]] 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 11"], ["created_at", "2024-12-22 23:46:42.420495"], ["updated_at", "2024-12-22 23:46:42.420495"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.422320"], ["updated_at", "2024-12-22 23:46:42.422320"]] 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 12"], ["created_at", "2024-12-22 23:46:42.425609"], ["updated_at", "2024-12-22 23:46:42.425609"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.442836"], ["updated_at", "2024-12-22 23:46:42.442836"]] 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 13"], ["created_at", "2024-12-22 23:46:42.446255"], ["updated_at", "2024-12-22 23:46:42.446255"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:46:42.448386"], ["updated_at", "2024-12-22 23:46:42.448386"]] 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 14"], ["created_at", "2024-12-22 23:46:42.450285"], ["updated_at", "2024-12-22 23:46:42.450285"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:46:42.451900"], ["updated_at", "2024-12-22 23:46:42.451900"]] 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 15"], ["created_at", "2024-12-22 23:46:42.453910"], ["updated_at", "2024-12-22 23:46:42.453910"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:46:42.455632"], ["updated_at", "2024-12-22 23:46:42.455632"]] 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 16"], ["created_at", "2024-12-22 23:46:42.458643"], ["updated_at", "2024-12-22 23:46:42.458643"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.460812"], ["updated_at", "2024-12-22 23:46:42.460812"]] 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 17"], ["created_at", "2024-12-22 23:46:42.463623"], ["updated_at", "2024-12-22 23:46:42.463623"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.465414"], ["updated_at", "2024-12-22 23:46:42.465414"]] 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"."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 18"], ["created_at", "2024-12-22 23:46:42.468387"], ["updated_at", "2024-12-22 23:46:42.468387"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.470061"], ["updated_at", "2024-12-22 23:46:42.470061"]] 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", "2024-12-22 23:46:42.471267"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:46:42.472361"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:46:42.475023"], ["updated_at", "2024-12-22 23:46:42.475023"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.476896"], ["updated_at", "2024-12-22 23:46:42.476896"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:46:42.478556"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:46:42.479766"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 23:46:42.480665"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-22 23:46:42.484047"], ["updated_at", "2024-12-22 23:46:42.484047"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.485931"], ["updated_at", "2024-12-22 23:46:42.485931"]] 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", "2024-12-22 23:46:42.487198"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:46:42.487962"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.489806"], ["updated_at", "2024-12-22 23:46:42.489806"]] 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", "2024-12-22 23:46:42.490852"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:46:42.491691"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:46:42.493086"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.494512"], ["updated_at", "2024-12-22 23:46:42.494512"]] 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", "2024-12-22 23:46:42.495762"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:46:42.498227"], ["updated_at", "2024-12-22 23:46:42.498227"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.499804"], ["updated_at", "2024-12-22 23:46:42.499804"]] TRANSACTION (0.1ms) 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", "2024-12-22 23:46:42.512681"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:46:42.514004"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.516496"], ["updated_at", "2024-12-22 23:46:42.516496"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-22 23:46:42.517742"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:46:42.518659"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.520692"], ["updated_at", "2024-12-22 23:46:42.520692"]] 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", "2024-12-22 23:46:42.523207"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:46:42.524274"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:46:42.527042"], ["updated_at", "2024-12-22 23:46:42.527042"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:46:42.529639"], ["updated_at", "2024-12-22 23:46:42.529639"]] 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", "2024-12-22 23:46:42.531203"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:46:42.532287"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.5ms) 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.4ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:48:03.892368"], ["updated_at", "2024-12-22 23:48:03.892368"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.901007"], ["updated_at", "2024-12-22 23:48:03.901007"]] 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 2"], ["created_at", "2024-12-22 23:48:03.910595"], ["updated_at", "2024-12-22 23:48:03.910595"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.912580"], ["updated_at", "2024-12-22 23:48:03.912580"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 23:48:03.922171"], ["updated_at", "2024-12-22 23:48:03.922171"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.924254"], ["updated_at", "2024-12-22 23:48:03.924254"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 10"], ["created_at", "2024-12-22 23:48:03.948810"], ["updated_at", "2024-12-22 23:48:03.948810"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.950898"], ["updated_at", "2024-12-22 23:48:03.950898"]] 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", "2024-12-22 23:48:03.953811"], ["updated_at", "2024-12-22 23:48:03.953811"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.954996"], ["updated_at", "2024-12-22 23:48:03.954996"]] 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 12"], ["created_at", "2024-12-22 23:48:03.957313"], ["updated_at", "2024-12-22 23:48:03.957313"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.973043"], ["updated_at", "2024-12-22 23:48:03.973043"]] 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 13"], ["created_at", "2024-12-22 23:48:03.975996"], ["updated_at", "2024-12-22 23:48:03.975996"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:48:03.978013"], ["updated_at", "2024-12-22 23:48:03.978013"]] 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 14"], ["created_at", "2024-12-22 23:48:03.980788"], ["updated_at", "2024-12-22 23:48:03.980788"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:48:03.983454"], ["updated_at", "2024-12-22 23:48:03.983454"]] 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 15"], ["created_at", "2024-12-22 23:48:03.986029"], ["updated_at", "2024-12-22 23:48:03.986029"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:48:03.987857"], ["updated_at", "2024-12-22 23:48:03.987857"]] 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 16"], ["created_at", "2024-12-22 23:48:03.991404"], ["updated_at", "2024-12-22 23:48:03.991404"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.993801"], ["updated_at", "2024-12-22 23:48:03.993801"]] 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", "2024-12-22 23:48:03.996007"], ["updated_at", "2024-12-22 23:48:03.996007"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:03.997962"], ["updated_at", "2024-12-22 23:48:03.997962"]] 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"."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 18"], ["created_at", "2024-12-22 23:48:04.001785"], ["updated_at", "2024-12-22 23:48:04.001785"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.015447"], ["updated_at", "2024-12-22 23:48:04.015447"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:48:04.017806"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:48:04.019519"], ["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 19"], ["created_at", "2024-12-22 23:48:04.022641"], ["updated_at", "2024-12-22 23:48:04.022641"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.025586"], ["updated_at", "2024-12-22 23:48:04.025586"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:48:04.027135"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:48:04.028013"], ["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", "2024-12-22 23:48:04.028987"], ["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 20"], ["created_at", "2024-12-22 23:48:04.032614"], ["updated_at", "2024-12-22 23:48:04.032614"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.035833"], ["updated_at", "2024-12-22 23:48:04.035833"]] 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", "2024-12-22 23:48:04.037471"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:48:04.038423"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.040942"], ["updated_at", "2024-12-22 23:48:04.040942"]] 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", "2024-12-22 23:48:04.042154"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:48:04.043036"], ["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) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:48:04.044564"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.047144"], ["updated_at", "2024-12-22 23:48:04.047144"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-22 23:48:04.048705"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:48:04.051659"], ["updated_at", "2024-12-22 23:48:04.051659"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.054082"], ["updated_at", "2024-12-22 23:48:04.054082"]] 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", "2024-12-22 23:48:04.055273"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:48:04.056431"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.058430"], ["updated_at", "2024-12-22 23:48:04.058430"]] 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", "2024-12-22 23:48:04.059620"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:48:04.060445"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.062302"], ["updated_at", "2024-12-22 23:48:04.062302"]] 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", "2024-12-22 23:48:04.063431"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:48:04.064242"], ["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 22"], ["created_at", "2024-12-22 23:48:04.066950"], ["updated_at", "2024-12-22 23:48:04.066950"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:04.068958"], ["updated_at", "2024-12-22 23:48:04.068958"]] TRANSACTION (0.1ms) 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", "2024-12-22 23:48:04.070459"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:48:04.071460"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.3ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.9ms) 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.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.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:48:52.487974"], ["updated_at", "2024-12-22 23:48:52.487974"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.495048"], ["updated_at", "2024-12-22 23:48:52.495048"]] 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 2"], ["created_at", "2024-12-22 23:48:52.503379"], ["updated_at", "2024-12-22 23:48:52.503379"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.505218"], ["updated_at", "2024-12-22 23:48:52.505218"]] 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 9"], ["created_at", "2024-12-22 23:48:52.514226"], ["updated_at", "2024-12-22 23:48:52.514226"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.516484"], ["updated_at", "2024-12-22 23:48:52.516484"]] 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 10"], ["created_at", "2024-12-22 23:48:52.536346"], ["updated_at", "2024-12-22 23:48:52.536346"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.538061"], ["updated_at", "2024-12-22 23:48:52.538061"]] 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 11"], ["created_at", "2024-12-22 23:48:52.540557"], ["updated_at", "2024-12-22 23:48:52.540557"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.541985"], ["updated_at", "2024-12-22 23:48:52.541985"]] 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 12"], ["created_at", "2024-12-22 23:48:52.544330"], ["updated_at", "2024-12-22 23:48:52.544330"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.558452"], ["updated_at", "2024-12-22 23:48:52.558452"]] 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 13"], ["created_at", "2024-12-22 23:48:52.561942"], ["updated_at", "2024-12-22 23:48:52.561942"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:48:52.564119"], ["updated_at", "2024-12-22 23:48:52.564119"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 23:48:52.566560"], ["updated_at", "2024-12-22 23:48:52.566560"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:48:52.568693"], ["updated_at", "2024-12-22 23:48:52.568693"]] 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 15"], ["created_at", "2024-12-22 23:48:52.571003"], ["updated_at", "2024-12-22 23:48:52.571003"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:48:52.572800"], ["updated_at", "2024-12-22 23:48:52.572800"]] 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", "2024-12-22 23:48:52.575732"], ["updated_at", "2024-12-22 23:48:52.575732"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.577414"], ["updated_at", "2024-12-22 23:48:52.577414"]] 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 17"], ["created_at", "2024-12-22 23:48:52.579582"], ["updated_at", "2024-12-22 23:48:52.579582"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.581708"], ["updated_at", "2024-12-22 23:48:52.581708"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 18"], ["created_at", "2024-12-22 23:48:52.586091"], ["updated_at", "2024-12-22 23:48:52.586091"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.588397"], ["updated_at", "2024-12-22 23:48:52.588397"]] 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", "2024-12-22 23:48:52.589746"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:48:52.590819"], ["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 19"], ["created_at", "2024-12-22 23:48:52.593477"], ["updated_at", "2024-12-22 23:48:52.593477"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.595328"], ["updated_at", "2024-12-22 23:48:52.595328"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:48:52.596332"], ["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", "2024-12-22 23:48:52.597281"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 23:48:52.598090"], ["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 20"], ["created_at", "2024-12-22 23:48:52.601584"], ["updated_at", "2024-12-22 23:48:52.601584"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.604027"], ["updated_at", "2024-12-22 23:48:52.604027"]] 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", "2024-12-22 23:48:52.605388"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:48:52.606277"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.608382"], ["updated_at", "2024-12-22 23:48:52.608382"]] 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", "2024-12-22 23:48:52.609524"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:48:52.610337"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:48:52.611610"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.612980"], ["updated_at", "2024-12-22 23:48:52.612980"]] 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", "2024-12-22 23:48:52.614152"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:48:52.616634"], ["updated_at", "2024-12-22 23:48:52.616634"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.618748"], ["updated_at", "2024-12-22 23:48:52.618748"]] 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", "2024-12-22 23:48:52.619972"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:48:52.620782"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.622542"], ["updated_at", "2024-12-22 23:48:52.622542"]] 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", "2024-12-22 23:48:52.623563"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:48:52.624385"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.626065"], ["updated_at", "2024-12-22 23:48:52.626065"]] 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", "2024-12-22 23:48:52.626994"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:48:52.627651"], ["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.1ms) SAVEPOINT active_record_1 User Create (11.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:48:52.629896"], ["updated_at", "2024-12-22 23:48:52.629896"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:48:52.643172"], ["updated_at", "2024-12-22 23:48:52.643172"]] 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", "2024-12-22 23:48:52.644722"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:48:52.645649"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.4ms) TRUNCATE TABLE "users"  (15.1ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:49:15.248748"], ["updated_at", "2024-12-22 23:49:15.248748"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.258332"], ["updated_at", "2024-12-22 23:49:15.258332"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-22 23:49:15.270996"], ["updated_at", "2024-12-22 23:49:15.270996"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.273431"], ["updated_at", "2024-12-22 23:49:15.273431"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-22 23:49:15.288312"], ["updated_at", "2024-12-22 23:49:15.288312"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.291016"], ["updated_at", "2024-12-22 23:49:15.291016"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 10"], ["created_at", "2024-12-22 23:49:15.325305"], ["updated_at", "2024-12-22 23:49:15.325305"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.327920"], ["updated_at", "2024-12-22 23:49:15.327920"]] 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 11"], ["created_at", "2024-12-22 23:49:15.333103"], ["updated_at", "2024-12-22 23:49:15.333103"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.336153"], ["updated_at", "2024-12-22 23:49:15.336153"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-22 23:49:15.341964"], ["updated_at", "2024-12-22 23:49:15.341964"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.373720"], ["updated_at", "2024-12-22 23:49:15.373720"]] 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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-22 23:49:15.380000"], ["updated_at", "2024-12-22 23:49:15.380000"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:49:15.385444"], ["updated_at", "2024-12-22 23:49:15.385444"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 23:49:15.392024"], ["updated_at", "2024-12-22 23:49:15.392024"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:49:15.395030"], ["updated_at", "2024-12-22 23:49:15.395030"]] 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 15"], ["created_at", "2024-12-22 23:49:15.399965"], ["updated_at", "2024-12-22 23:49:15.399965"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:49:15.405039"], ["updated_at", "2024-12-22 23:49:15.405039"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-22 23:49:15.411616"], ["updated_at", "2024-12-22 23:49:15.411616"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.414927"], ["updated_at", "2024-12-22 23:49:15.414927"]] 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.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-22 23:49:15.420710"], ["updated_at", "2024-12-22 23:49:15.420710"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.426686"], ["updated_at", "2024-12-22 23:49:15.426686"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.5ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 18"], ["created_at", "2024-12-22 23:49:15.436475"], ["updated_at", "2024-12-22 23:49:15.436475"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.467005"], ["updated_at", "2024-12-22 23:49:15.467005"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.471030"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:49:15.473795"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 19"], ["created_at", "2024-12-22 23:49:15.479725"], ["updated_at", "2024-12-22 23:49:15.479725"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.482977"], ["updated_at", "2024-12-22 23:49:15.482977"]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:49:15.485608"], ["id", 1]] TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.5ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:49:15.489610"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-22 23:49:15.492046"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 20"], ["created_at", "2024-12-22 23:49:15.497594"], ["updated_at", "2024-12-22 23:49:15.497594"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.9ms) SAVEPOINT active_record_1 HasStates::State Create (1.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.501011"], ["updated_at", "2024-12-22 23:49:15.501011"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.504930"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:49:15.507196"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.511989"], ["updated_at", "2024-12-22 23:49:15.511989"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.515007"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:49:15.516809"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.4ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:49:15.520051"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.523292"], ["updated_at", "2024-12-22 23:49:15.523292"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.526813"], ["id", 3]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:49:15.532353"], ["updated_at", "2024-12-22 23:49:15.532353"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.536200"], ["updated_at", "2024-12-22 23:49:15.536200"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.538978"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:49:15.541237"], ["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.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.545040"], ["updated_at", "2024-12-22 23:49:15.545040"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.547481"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:49:15.549026"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.552364"], ["updated_at", "2024-12-22 23:49:15.552364"]] 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", "2024-12-22 23:49:15.554359"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:49:15.555657"], ["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.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 22"], ["created_at", "2024-12-22 23:49:15.559355"], ["updated_at", "2024-12-22 23:49:15.559355"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:49:15.561718"], ["updated_at", "2024-12-22 23:49:15.561718"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:49:15.563737"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:49:15.565083"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.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.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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-22 23:56:10.935487"], ["updated_at", "2024-12-22 23:56:10.935487"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:10.944542"], ["updated_at", "2024-12-22 23:56:10.944542"]] 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 2"], ["created_at", "2024-12-22 23:56:10.953502"], ["updated_at", "2024-12-22 23:56:10.953502"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:10.955308"], ["updated_at", "2024-12-22 23:56:10.955308"]] 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 9"], ["created_at", "2024-12-22 23:56:10.970486"], ["updated_at", "2024-12-22 23:56:10.970486"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:10.972568"], ["updated_at", "2024-12-22 23:56:10.972568"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 23:56:10.976350"], ["updated_at", "2024-12-22 23:56:10.976350"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:10.978421"], ["updated_at", "2024-12-22 23:56:10.978421"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-22 23:56:10.990798"], ["updated_at", "2024-12-22 23:56:10.990798"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:10.996185"], ["updated_at", "2024-12-22 23:56:10.996185"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.3ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-22 23:56:11.003924"], ["updated_at", "2024-12-22 23:56:11.003924"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.008617"], ["updated_at", "2024-12-22 23:56:11.008617"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 13"], ["created_at", "2024-12-22 23:56:11.016050"], ["updated_at", "2024-12-22 23:56:11.016050"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.035664"], ["updated_at", "2024-12-22 23:56:11.035664"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 23:56:11.042605"], ["updated_at", "2024-12-22 23:56:11.042605"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:56:11.047354"], ["updated_at", "2024-12-22 23:56:11.047354"]] TRANSACTION (0.1ms) 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-22 23:56:11.053198"], ["updated_at", "2024-12-22 23:56:11.053198"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:56:11.058605"], ["updated_at", "2024-12-22 23:56:11.058605"]] TRANSACTION (0.1ms) 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 16"], ["created_at", "2024-12-22 23:56:11.063292"], ["updated_at", "2024-12-22 23:56:11.063292"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:56:11.066678"], ["updated_at", "2024-12-22 23:56:11.066678"]] TRANSACTION (0.1ms) 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 17"], ["created_at", "2024-12-22 23:56:11.072846"], ["updated_at", "2024-12-22 23:56:11.072846"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.075636"], ["updated_at", "2024-12-22 23:56:11.075636"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-22 23:56:11.079425"], ["updated_at", "2024-12-22 23:56:11.079425"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.082447"], ["updated_at", "2024-12-22 23:56:11.082447"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:56:11.088038"], ["updated_at", "2024-12-22 23:56:11.088038"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.091449"], ["updated_at", "2024-12-22 23:56:11.091449"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:56:11.093756"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:56:11.096182"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 20"], ["created_at", "2024-12-22 23:56:11.100758"], ["updated_at", "2024-12-22 23:56:11.100758"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.104294"], ["updated_at", "2024-12-22 23:56:11.104294"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:56:11.106798"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:56:11.108319"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 23:56:11.109521"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:56:11.114142"], ["updated_at", "2024-12-22 23:56:11.114142"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.117536"], ["updated_at", "2024-12-22 23:56:11.117536"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:56:11.120439"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:56:11.122197"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.125703"], ["updated_at", "2024-12-22 23:56:11.125703"]] 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", "2024-12-22 23:56:11.127575"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:56:11.128903"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:56:11.130842"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.132631"], ["updated_at", "2024-12-22 23:56:11.132631"]] 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", "2024-12-22 23:56:11.134100"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-22 23:56:11.136761"], ["updated_at", "2024-12-22 23:56:11.136761"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.138658"], ["updated_at", "2024-12-22 23:56:11.138658"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:56:11.140283"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:56:11.141537"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.144621"], ["updated_at", "2024-12-22 23:56:11.144621"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:56:11.146696"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:56:11.148232"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.151445"], ["updated_at", "2024-12-22 23:56:11.151445"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:56:11.153826"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:56:11.155874"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.4ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-22 23:56:11.160063"], ["updated_at", "2024-12-22 23:56:11.160063"]] TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:56:11.178412"], ["updated_at", "2024-12-22 23:56:11.178412"]] TRANSACTION (0.1ms) 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", "2024-12-22 23:56:11.181162"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:56:11.182596"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) PRAGMA foreign_keys SQL (0.0ms) 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.0ms) DELETE FROM sqlite_sequence where name = 'users';  (0.2ms) 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.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 1"], ["created_at", "2024-12-22 23:58:35.293699"], ["updated_at", "2024-12-22 23:58:35.293699"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.300752"], ["updated_at", "2024-12-22 23:58:35.300752"]] 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 2"], ["created_at", "2024-12-22 23:58:35.309329"], ["updated_at", "2024-12-22 23:58:35.309329"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.311137"], ["updated_at", "2024-12-22 23:58:35.311137"]] 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 9"], ["created_at", "2024-12-22 23:58:35.325849"], ["updated_at", "2024-12-22 23:58:35.325849"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.328363"], ["updated_at", "2024-12-22 23:58:35.328363"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-22 23:58:35.335548"], ["updated_at", "2024-12-22 23:58:35.335548"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.338758"], ["updated_at", "2024-12-22 23:58:35.338758"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) 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 11"], ["created_at", "2024-12-22 23:58:35.346748"], ["updated_at", "2024-12-22 23:58:35.346748"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.349130"], ["updated_at", "2024-12-22 23:58:35.349130"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-22 23:58:35.352792"], ["updated_at", "2024-12-22 23:58:35.352792"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.355157"], ["updated_at", "2024-12-22 23:58:35.355157"]] 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 13"], ["created_at", "2024-12-22 23:58:35.358760"], ["updated_at", "2024-12-22 23:58:35.358760"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.372320"], ["updated_at", "2024-12-22 23:58:35.372320"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-22 23:58:35.376604"], ["updated_at", "2024-12-22 23:58:35.376604"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:58:35.379824"], ["updated_at", "2024-12-22 23:58:35.379824"]] 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 15"], ["created_at", "2024-12-22 23:58:35.383224"], ["updated_at", "2024-12-22 23:58:35.383224"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:58:35.386264"], ["updated_at", "2024-12-22 23:58:35.386264"]] 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 16"], ["created_at", "2024-12-22 23:58:35.389292"], ["updated_at", "2024-12-22 23:58:35.389292"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-22 23:58:35.391657"], ["updated_at", "2024-12-22 23:58:35.391657"]] 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-22 23:58:35.396637"], ["updated_at", "2024-12-22 23:58:35.396637"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.399536"], ["updated_at", "2024-12-22 23:58:35.399536"]] 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 18"], ["created_at", "2024-12-22 23:58:35.402709"], ["updated_at", "2024-12-22 23:58:35.402709"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.405275"], ["updated_at", "2024-12-22 23:58:35.405275"]] 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"."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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-22 23:58:35.409408"], ["updated_at", "2024-12-22 23:58:35.409408"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.412163"], ["updated_at", "2024-12-22 23:58:35.412163"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.413843"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:58:35.415487"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 20"], ["created_at", "2024-12-22 23:58:35.419631"], ["updated_at", "2024-12-22 23:58:35.419631"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.422014"], ["updated_at", "2024-12-22 23:58:35.422014"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-22 23:58:35.423327"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-22 23:58:35.424342"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-22 23:58:35.425449"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-22 23:58:35.429645"], ["updated_at", "2024-12-22 23:58:35.429645"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.432165"], ["updated_at", "2024-12-22 23:58:35.432165"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.434060"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:58:35.435589"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.438892"], ["updated_at", "2024-12-22 23:58:35.438892"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.440724"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:58:35.442612"], ["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.1ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-22 23:58:35.445332"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.448049"], ["updated_at", "2024-12-22 23:58:35.448049"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.449974"], ["id", 3]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 22"], ["created_at", "2024-12-22 23:58:35.454530"], ["updated_at", "2024-12-22 23:58:35.454530"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.457256"], ["updated_at", "2024-12-22 23:58:35.457256"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.459534"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-22 23:58:35.460829"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.464529"], ["updated_at", "2024-12-22 23:58:35.464529"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.467095"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-22 23:58:35.468557"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.471483"], ["updated_at", "2024-12-22 23:58:35.471483"]] 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", "2024-12-22 23:58:35.473208"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-22 23:58:35.474301"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 23"], ["created_at", "2024-12-22 23:58:35.480044"], ["updated_at", "2024-12-22 23:58:35.480044"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-22 23:58:35.485115"], ["updated_at", "2024-12-22 23:58:35.485115"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-22 23:58:35.488043"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-22 23:58:35.489825"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION HasStates::State Load (0.8ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? /* loading for pp */ LIMIT ? [["state_type", "kyc"], ["LIMIT", 11]] HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? /* loading for pp */ LIMIT ? [["state_type", "onboarding"], ["LIMIT", 11]] HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? /* loading for pp */ LIMIT ? [["state_type", "kyc"], ["LIMIT", 11]] HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? /* loading for pp */ LIMIT ? [["state_type", "onboarding"], ["LIMIT", 11]] HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? /* loading for pp */ LIMIT ? [["state_type", "procurement"], ["LIMIT", 11]] User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT ? [["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "Bob"], ["created_at", "2024-12-23 00:01:59.262012"], ["updated_at", "2024-12-23 00:01:59.262012"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.4ms) 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" = ? /* loading for pp */ LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "kyc"], ["LIMIT", 11]] HasStates::State Load (0.3ms) 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" = ? /* loading for pp */ LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "kyc"], ["LIMIT", 11]] HasStates::State Exists? (0.3ms) 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" = ? AND "has_states_states"."status" = ? LIMIT ? [["stateable_id", 1], ["stateable_type", "User"], ["state_type", "kyc"], ["status", "completed"], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.4ms) 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"  (15.6ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:04:57.735259"], ["updated_at", "2024-12-23 00:04:57.735259"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.744235"], ["updated_at", "2024-12-23 00:04:57.744235"]] 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 2"], ["created_at", "2024-12-23 00:04:57.754067"], ["updated_at", "2024-12-23 00:04:57.754067"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.756305"], ["updated_at", "2024-12-23 00:04:57.756305"]] 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 9"], ["created_at", "2024-12-23 00:04:57.773742"], ["updated_at", "2024-12-23 00:04:57.773742"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.776087"], ["updated_at", "2024-12-23 00:04:57.776087"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:04:57.780314"], ["updated_at", "2024-12-23 00:04:57.780314"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.781515"], ["updated_at", "2024-12-23 00:04:57.781515"]] 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 11"], ["created_at", "2024-12-23 00:04:57.785107"], ["updated_at", "2024-12-23 00:04:57.785107"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.786742"], ["updated_at", "2024-12-23 00:04:57.786742"]] 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 12"], ["created_at", "2024-12-23 00:04:57.788904"], ["updated_at", "2024-12-23 00:04:57.788904"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.790013"], ["updated_at", "2024-12-23 00:04:57.790013"]] 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 13"], ["created_at", "2024-12-23 00:04:57.792025"], ["updated_at", "2024-12-23 00:04:57.792025"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.800451"], ["updated_at", "2024-12-23 00:04:57.800451"]] 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 14"], ["created_at", "2024-12-23 00:04:57.803319"], ["updated_at", "2024-12-23 00:04:57.803319"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:04:57.804996"], ["updated_at", "2024-12-23 00:04:57.804996"]] 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 15"], ["created_at", "2024-12-23 00:04:57.807160"], ["updated_at", "2024-12-23 00:04:57.807160"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:04:57.808786"], ["updated_at", "2024-12-23 00:04:57.808786"]] 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", "2024-12-23 00:04:57.811219"], ["updated_at", "2024-12-23 00:04:57.811219"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:04:57.812994"], ["updated_at", "2024-12-23 00:04:57.812994"]] 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 17"], ["created_at", "2024-12-23 00:04:57.815963"], ["updated_at", "2024-12-23 00:04:57.815963"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.817917"], ["updated_at", "2024-12-23 00:04:57.817917"]] 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 18"], ["created_at", "2024-12-23 00:04:57.820468"], ["updated_at", "2024-12-23 00:04:57.820468"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.822846"], ["updated_at", "2024-12-23 00:04:57.822846"]] 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"."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 19"], ["created_at", "2024-12-23 00:04:57.826289"], ["updated_at", "2024-12-23 00:04:57.826289"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.828336"], ["updated_at", "2024-12-23 00:04:57.828336"]] 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", "2024-12-23 00:04:57.829554"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:04:57.830641"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:04:57.833051"], ["updated_at", "2024-12-23 00:04:57.833051"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.835353"], ["updated_at", "2024-12-23 00:04:57.835353"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:04:57.836499"], ["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", "2024-12-23 00:04:57.837478"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:04:57.838430"], ["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 (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:04:57.853629"], ["updated_at", "2024-12-23 00:04:57.853629"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.857157"], ["updated_at", "2024-12-23 00:04:57.857157"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-23 00:04:57.858694"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:04:57.859721"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.862017"], ["updated_at", "2024-12-23 00:04:57.862017"]] 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", "2024-12-23 00:04:57.863328"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:04:57.864377"], ["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.1ms) SAVEPOINT active_record_1 User Update (0.6ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:04:57.865705"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.868733"], ["updated_at", "2024-12-23 00:04:57.868733"]] 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", "2024-12-23 00:04:57.870054"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:04:57.872968"], ["updated_at", "2024-12-23 00:04:57.872968"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.874805"], ["updated_at", "2024-12-23 00:04:57.874805"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:04:57.876513"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:04:57.877454"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.879146"], ["updated_at", "2024-12-23 00:04:57.879146"]] 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", "2024-12-23 00:04:57.880121"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:04:57.880822"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.882345"], ["updated_at", "2024-12-23 00:04:57.882345"]] 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", "2024-12-23 00:04:57.883256"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:04:57.883918"], ["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 23"], ["created_at", "2024-12-23 00:04:57.886748"], ["updated_at", "2024-12-23 00:04:57.886748"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:04:57.888625"], ["updated_at", "2024-12-23 00:04:57.888625"]] 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", "2024-12-23 00:04:57.890203"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:04:57.891208"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.6ms) 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.3ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-23 00:08:38.887308"], ["updated_at", "2024-12-23 00:08:38.887308"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.900255"], ["updated_at", "2024-12-23 00:08:38.900255"]] 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 2"], ["created_at", "2024-12-23 00:08:38.914296"], ["updated_at", "2024-12-23 00:08:38.914296"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.916775"], ["updated_at", "2024-12-23 00:08:38.916775"]] 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 9"], ["created_at", "2024-12-23 00:08:38.937243"], ["updated_at", "2024-12-23 00:08:38.937243"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.940017"], ["updated_at", "2024-12-23 00:08:38.940017"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:08:38.945768"], ["updated_at", "2024-12-23 00:08:38.945768"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.947821"], ["updated_at", "2024-12-23 00:08:38.947821"]] 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 11"], ["created_at", "2024-12-23 00:08:38.952838"], ["updated_at", "2024-12-23 00:08:38.952838"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.954666"], ["updated_at", "2024-12-23 00:08:38.954666"]] 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 12"], ["created_at", "2024-12-23 00:08:38.958058"], ["updated_at", "2024-12-23 00:08:38.958058"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.960002"], ["updated_at", "2024-12-23 00:08:38.960002"]] 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 (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-23 00:08:38.963965"], ["updated_at", "2024-12-23 00:08:38.963965"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:38.989399"], ["updated_at", "2024-12-23 00:08:38.989399"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 00:08:39.030356"], ["updated_at", "2024-12-23 00:08:39.030356"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:08:39.037876"], ["updated_at", "2024-12-23 00:08:39.037876"]] 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.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 00:08:39.045336"], ["updated_at", "2024-12-23 00:08:39.045336"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:08:39.050881"], ["updated_at", "2024-12-23 00:08:39.050881"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (1.6ms) BEGIN deferred TRANSACTION TRANSACTION (0.2ms) SAVEPOINT active_record_1 User Create (4.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 00:08:39.057455"], ["updated_at", "2024-12-23 00:08:39.057455"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:08:39.067488"], ["updated_at", "2024-12-23 00:08:39.067488"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:08:39.078214"], ["updated_at", "2024-12-23 00:08:39.078214"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.083925"], ["updated_at", "2024-12-23 00:08:39.083925"]] 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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 00:08:39.090930"], ["updated_at", "2024-12-23 00:08:39.090930"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.097108"], ["updated_at", "2024-12-23 00:08:39.097108"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.5ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 00:08:39.109595"], ["updated_at", "2024-12-23 00:08:39.109595"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.116597"], ["updated_at", "2024-12-23 00:08:39.116597"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.9ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:39.121562"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:08:39.125744"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 20"], ["created_at", "2024-12-23 00:08:39.132466"], ["updated_at", "2024-12-23 00:08:39.132466"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.134605"], ["updated_at", "2024-12-23 00:08:39.134605"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:08:39.135874"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:08:39.137197"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:08:39.138186"], ["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.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 21"], ["created_at", "2024-12-23 00:08:39.142260"], ["updated_at", "2024-12-23 00:08:39.142260"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.145045"], ["updated_at", "2024-12-23 00:08:39.145045"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:39.146713"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:08:39.147882"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.150692"], ["updated_at", "2024-12-23 00:08:39.150692"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:39.152621"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:08:39.153865"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:08:39.156117"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.158692"], ["updated_at", "2024-12-23 00:08:39.158692"]] 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", "2024-12-23 00:08:39.160596"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:08:39.164852"], ["updated_at", "2024-12-23 00:08:39.164852"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.170002"], ["updated_at", "2024-12-23 00:08:39.170002"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:39.173807"], ["id", 1]] User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:08:39.176522"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.182713"], ["updated_at", "2024-12-23 00:08:39.182713"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:39.186475"], ["id", 2]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:08:39.188870"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.194142"], ["updated_at", "2024-12-23 00:08:39.194142"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.7ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:39.197781"], ["id", 3]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:08:39.200567"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 23"], ["created_at", "2024-12-23 00:08:39.206930"], ["updated_at", "2024-12-23 00:08:39.206930"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:39.209922"], ["updated_at", "2024-12-23 00:08:39.209922"]] TRANSACTION (0.1ms) 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", "2024-12-23 00:08:39.211808"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:08:39.213117"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (5.8ms) 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"  (14.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.4ms) TRUNCATE TABLE "has_states_states"  (0.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:08:50.912058"], ["updated_at", "2024-12-23 00:08:50.912058"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:50.924171"], ["updated_at", "2024-12-23 00:08:50.924171"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 00:08:50.951037"], ["updated_at", "2024-12-23 00:08:50.951037"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:50.953678"], ["updated_at", "2024-12-23 00:08:50.953678"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:08:50.975875"], ["updated_at", "2024-12-23 00:08:50.975875"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:50.978727"], ["updated_at", "2024-12-23 00:08:50.978727"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:08:50.983773"], ["updated_at", "2024-12-23 00:08:50.983773"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:50.986051"], ["updated_at", "2024-12-23 00:08:50.986051"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 00:08:50.991602"], ["updated_at", "2024-12-23 00:08:50.991602"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:50.994213"], ["updated_at", "2024-12-23 00:08:50.994213"]] TRANSACTION (0.1ms) 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 12"], ["created_at", "2024-12-23 00:08:50.997845"], ["updated_at", "2024-12-23 00:08:50.997845"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:50.999359"], ["updated_at", "2024-12-23 00:08:50.999359"]] 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 13"], ["created_at", "2024-12-23 00:08:51.002147"], ["updated_at", "2024-12-23 00:08:51.002147"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.015208"], ["updated_at", "2024-12-23 00:08:51.015208"]] 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 14"], ["created_at", "2024-12-23 00:08:51.019239"], ["updated_at", "2024-12-23 00:08:51.019239"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:08:51.023174"], ["updated_at", "2024-12-23 00:08:51.023174"]] 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 (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 00:08:51.027390"], ["updated_at", "2024-12-23 00:08:51.027390"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:08:51.029938"], ["updated_at", "2024-12-23 00:08:51.029938"]] 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 16"], ["created_at", "2024-12-23 00:08:51.032827"], ["updated_at", "2024-12-23 00:08:51.032827"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:08:51.035117"], ["updated_at", "2024-12-23 00:08:51.035117"]] 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 17"], ["created_at", "2024-12-23 00:08:51.039866"], ["updated_at", "2024-12-23 00:08:51.039866"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.042965"], ["updated_at", "2024-12-23 00:08:51.042965"]] 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 18"], ["created_at", "2024-12-23 00:08:51.046321"], ["updated_at", "2024-12-23 00:08:51.046321"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.048658"], ["updated_at", "2024-12-23 00:08:51.048658"]] 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"."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 19"], ["created_at", "2024-12-23 00:08:51.052536"], ["updated_at", "2024-12-23 00:08:51.052536"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.054747"], ["updated_at", "2024-12-23 00:08:51.054747"]] 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", "2024-12-23 00:08:51.056482"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:08:51.057934"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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 20"], ["created_at", "2024-12-23 00:08:51.061753"], ["updated_at", "2024-12-23 00:08:51.061753"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.063919"], ["updated_at", "2024-12-23 00:08:51.063919"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:08:51.065113"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:08:51.066054"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:08:51.067020"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:08:51.069874"], ["updated_at", "2024-12-23 00:08:51.069874"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.071917"], ["updated_at", "2024-12-23 00:08:51.071917"]] 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", "2024-12-23 00:08:51.073413"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:08:51.074377"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.076874"], ["updated_at", "2024-12-23 00:08:51.076874"]] 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", "2024-12-23 00:08:51.078118"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:08:51.078962"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:08:51.080345"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.081745"], ["updated_at", "2024-12-23 00:08:51.081745"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:08:51.082947"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:08:51.085608"], ["updated_at", "2024-12-23 00:08:51.085608"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.087361"], ["updated_at", "2024-12-23 00:08:51.087361"]] 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", "2024-12-23 00:08:51.088595"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:08:51.089638"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.091875"], ["updated_at", "2024-12-23 00:08:51.091875"]] 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", "2024-12-23 00:08:51.093469"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:08:51.094458"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.096496"], ["updated_at", "2024-12-23 00:08:51.096496"]] 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", "2024-12-23 00:08:51.097571"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:08:51.098268"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:08:51.100625"], ["updated_at", "2024-12-23 00:08:51.100625"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:08:51.102083"], ["updated_at", "2024-12-23 00:08:51.102083"]] 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", "2024-12-23 00:08:51.103201"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:08:51.103931"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (5.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.3ms) 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.4ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 00:09:13.275924"], ["updated_at", "2024-12-23 00:09:13.275924"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.284241"], ["updated_at", "2024-12-23 00:09:13.284241"]] 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 2"], ["created_at", "2024-12-23 00:09:13.292519"], ["updated_at", "2024-12-23 00:09:13.292519"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.294267"], ["updated_at", "2024-12-23 00:09:13.294267"]] 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 9"], ["created_at", "2024-12-23 00:09:13.309872"], ["updated_at", "2024-12-23 00:09:13.309872"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.312022"], ["updated_at", "2024-12-23 00:09:13.312022"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:09:13.315980"], ["updated_at", "2024-12-23 00:09:13.315980"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.317430"], ["updated_at", "2024-12-23 00:09:13.317430"]] 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 11"], ["created_at", "2024-12-23 00:09:13.322131"], ["updated_at", "2024-12-23 00:09:13.322131"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.323891"], ["updated_at", "2024-12-23 00:09:13.323891"]] 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 12"], ["created_at", "2024-12-23 00:09:13.326258"], ["updated_at", "2024-12-23 00:09:13.326258"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.327457"], ["updated_at", "2024-12-23 00:09:13.327457"]] 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 13"], ["created_at", "2024-12-23 00:09:13.329921"], ["updated_at", "2024-12-23 00:09:13.329921"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.338449"], ["updated_at", "2024-12-23 00:09:13.338449"]] 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 14"], ["created_at", "2024-12-23 00:09:13.341476"], ["updated_at", "2024-12-23 00:09:13.341476"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:09:13.343210"], ["updated_at", "2024-12-23 00:09:13.343210"]] 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 15"], ["created_at", "2024-12-23 00:09:13.345342"], ["updated_at", "2024-12-23 00:09:13.345342"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:09:13.347098"], ["updated_at", "2024-12-23 00:09:13.347098"]] 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", "2024-12-23 00:09:13.349096"], ["updated_at", "2024-12-23 00:09:13.349096"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:09:13.350980"], ["updated_at", "2024-12-23 00:09:13.350980"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:09:13.369614"], ["updated_at", "2024-12-23 00:09:13.369614"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.372742"], ["updated_at", "2024-12-23 00:09:13.372742"]] 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 18"], ["created_at", "2024-12-23 00:09:13.375405"], ["updated_at", "2024-12-23 00:09:13.375405"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.377076"], ["updated_at", "2024-12-23 00:09:13.377076"]] 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"."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 19"], ["created_at", "2024-12-23 00:09:13.381407"], ["updated_at", "2024-12-23 00:09:13.381407"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.383878"], ["updated_at", "2024-12-23 00:09:13.383878"]] 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", "2024-12-23 00:09:13.385584"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:09:13.386737"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:09:13.390044"], ["updated_at", "2024-12-23 00:09:13.390044"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.391870"], ["updated_at", "2024-12-23 00:09:13.391870"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:09:13.392857"], ["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", "2024-12-23 00:09:13.393668"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:09:13.394439"], ["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 21"], ["created_at", "2024-12-23 00:09:13.397721"], ["updated_at", "2024-12-23 00:09:13.397721"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.399526"], ["updated_at", "2024-12-23 00:09:13.399526"]] 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", "2024-12-23 00:09:13.400719"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:09:13.401571"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.403760"], ["updated_at", "2024-12-23 00:09:13.403760"]] 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", "2024-12-23 00:09:13.404970"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:09:13.405789"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:09:13.407630"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.408982"], ["updated_at", "2024-12-23 00:09:13.408982"]] 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", "2024-12-23 00:09:13.409961"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:09:13.412467"], ["updated_at", "2024-12-23 00:09:13.412467"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.414029"], ["updated_at", "2024-12-23 00:09:13.414029"]] 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", "2024-12-23 00:09:13.415265"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:09:13.416442"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.418566"], ["updated_at", "2024-12-23 00:09:13.418566"]] 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", "2024-12-23 00:09:13.419881"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:09:13.420801"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.422670"], ["updated_at", "2024-12-23 00:09:13.422670"]] 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", "2024-12-23 00:09:13.423748"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:09:13.424454"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:09:13.426741"], ["updated_at", "2024-12-23 00:09:13.426741"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:09:13.428483"], ["updated_at", "2024-12-23 00:09:13.428483"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-23 00:09:13.429607"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:09:13.430390"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (5.5ms) 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.4ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 00:10:05.128692"], ["updated_at", "2024-12-23 00:10:05.128692"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.147949"], ["updated_at", "2024-12-23 00:10:05.147949"]] 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 2"], ["created_at", "2024-12-23 00:10:05.158041"], ["updated_at", "2024-12-23 00:10:05.158041"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.159897"], ["updated_at", "2024-12-23 00:10:05.159897"]] 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 9"], ["created_at", "2024-12-23 00:10:05.174962"], ["updated_at", "2024-12-23 00:10:05.174962"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.176959"], ["updated_at", "2024-12-23 00:10:05.176959"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:10:05.180630"], ["updated_at", "2024-12-23 00:10:05.180630"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.181696"], ["updated_at", "2024-12-23 00:10:05.181696"]] 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", "2024-12-23 00:10:05.184658"], ["updated_at", "2024-12-23 00:10:05.184658"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.185727"], ["updated_at", "2024-12-23 00:10:05.185727"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 00:10:05.189367"], ["updated_at", "2024-12-23 00:10:05.189367"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.191130"], ["updated_at", "2024-12-23 00:10:05.191130"]] 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 13"], ["created_at", "2024-12-23 00:10:05.193471"], ["updated_at", "2024-12-23 00:10:05.193471"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.201339"], ["updated_at", "2024-12-23 00:10:05.201339"]] 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 14"], ["created_at", "2024-12-23 00:10:05.204369"], ["updated_at", "2024-12-23 00:10:05.204369"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:10:05.206781"], ["updated_at", "2024-12-23 00:10:05.206781"]] 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 15"], ["created_at", "2024-12-23 00:10:05.209012"], ["updated_at", "2024-12-23 00:10:05.209012"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:10:05.210739"], ["updated_at", "2024-12-23 00:10:05.210739"]] 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", "2024-12-23 00:10:05.212989"], ["updated_at", "2024-12-23 00:10:05.212989"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:10:05.214636"], ["updated_at", "2024-12-23 00:10:05.214636"]] 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", "2024-12-23 00:10:05.217386"], ["updated_at", "2024-12-23 00:10:05.217386"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.218765"], ["updated_at", "2024-12-23 00:10:05.218765"]] 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 18"], ["created_at", "2024-12-23 00:10:05.220574"], ["updated_at", "2024-12-23 00:10:05.220574"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.222159"], ["updated_at", "2024-12-23 00:10:05.222159"]] 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"."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 19"], ["created_at", "2024-12-23 00:10:05.224903"], ["updated_at", "2024-12-23 00:10:05.224903"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.226554"], ["updated_at", "2024-12-23 00:10:05.226554"]] 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", "2024-12-23 00:10:05.227720"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:10:05.228813"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:10:05.231347"], ["updated_at", "2024-12-23 00:10:05.231347"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.232840"], ["updated_at", "2024-12-23 00:10:05.232840"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:10:05.233695"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:10:05.234419"], ["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", "2024-12-23 00:10:05.235259"], ["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 21"], ["created_at", "2024-12-23 00:10:05.238259"], ["updated_at", "2024-12-23 00:10:05.238259"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.240558"], ["updated_at", "2024-12-23 00:10:05.240558"]] 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", "2024-12-23 00:10:05.241888"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:10:05.242734"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.244911"], ["updated_at", "2024-12-23 00:10:05.244911"]] 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", "2024-12-23 00:10:05.246205"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:10:05.247043"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:10:05.248311"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.249483"], ["updated_at", "2024-12-23 00:10:05.249483"]] 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", "2024-12-23 00:10:05.250527"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:10:05.252782"], ["updated_at", "2024-12-23 00:10:05.252782"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.254403"], ["updated_at", "2024-12-23 00:10:05.254403"]] 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", "2024-12-23 00:10:05.255629"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:10:05.256566"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.258428"], ["updated_at", "2024-12-23 00:10:05.258428"]] 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", "2024-12-23 00:10:05.259453"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:10:05.260248"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.262273"], ["updated_at", "2024-12-23 00:10:05.262273"]] 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", "2024-12-23 00:10:05.263389"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:10:05.264045"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:10:05.266392"], ["updated_at", "2024-12-23 00:10:05.266392"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:10:05.267844"], ["updated_at", "2024-12-23 00:10:05.267844"]] 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", "2024-12-23 00:10:05.268830"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:10:05.269473"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.4ms) 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"  (15.6ms) 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';  (7.8ms) TRUNCATE TABLE "has_states_states"  (0.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:11:14.803932"], ["updated_at", "2024-12-23 00:11:14.803932"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.812391"], ["updated_at", "2024-12-23 00:11:14.812391"]] 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 2"], ["created_at", "2024-12-23 00:11:14.822348"], ["updated_at", "2024-12-23 00:11:14.822348"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.824674"], ["updated_at", "2024-12-23 00:11:14.824674"]] 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 9"], ["created_at", "2024-12-23 00:11:14.840334"], ["updated_at", "2024-12-23 00:11:14.840334"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.842365"], ["updated_at", "2024-12-23 00:11:14.842365"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:11:14.845838"], ["updated_at", "2024-12-23 00:11:14.845838"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.847008"], ["updated_at", "2024-12-23 00:11:14.847008"]] 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 11"], ["created_at", "2024-12-23 00:11:14.850814"], ["updated_at", "2024-12-23 00:11:14.850814"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.852408"], ["updated_at", "2024-12-23 00:11:14.852408"]] 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 12"], ["created_at", "2024-12-23 00:11:14.854985"], ["updated_at", "2024-12-23 00:11:14.854985"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.856179"], ["updated_at", "2024-12-23 00:11:14.856179"]] 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 13"], ["created_at", "2024-12-23 00:11:14.858171"], ["updated_at", "2024-12-23 00:11:14.858171"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.867808"], ["updated_at", "2024-12-23 00:11:14.867808"]] 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 14"], ["created_at", "2024-12-23 00:11:14.871151"], ["updated_at", "2024-12-23 00:11:14.871151"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:11:14.873063"], ["updated_at", "2024-12-23 00:11:14.873063"]] 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 15"], ["created_at", "2024-12-23 00:11:14.874881"], ["updated_at", "2024-12-23 00:11:14.874881"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:11:14.876456"], ["updated_at", "2024-12-23 00:11:14.876456"]] 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 16"], ["created_at", "2024-12-23 00:11:14.878218"], ["updated_at", "2024-12-23 00:11:14.878218"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:11:14.880608"], ["updated_at", "2024-12-23 00:11:14.880608"]] 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 17"], ["created_at", "2024-12-23 00:11:14.884415"], ["updated_at", "2024-12-23 00:11:14.884415"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.886698"], ["updated_at", "2024-12-23 00:11:14.886698"]] 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 18"], ["created_at", "2024-12-23 00:11:14.888917"], ["updated_at", "2024-12-23 00:11:14.888917"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.890652"], ["updated_at", "2024-12-23 00:11:14.890652"]] 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"."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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 00:11:14.893581"], ["updated_at", "2024-12-23 00:11:14.893581"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.895137"], ["updated_at", "2024-12-23 00:11:14.895137"]] 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", "2024-12-23 00:11:14.896609"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:11:14.898032"], ["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 20"], ["created_at", "2024-12-23 00:11:14.901391"], ["updated_at", "2024-12-23 00:11:14.901391"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.903412"], ["updated_at", "2024-12-23 00:11:14.903412"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:11:14.904534"], ["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", "2024-12-23 00:11:14.905431"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:11:14.906285"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:11:14.908858"], ["updated_at", "2024-12-23 00:11:14.908858"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.910454"], ["updated_at", "2024-12-23 00:11:14.910454"]] 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", "2024-12-23 00:11:14.911452"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:11:14.912292"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.914568"], ["updated_at", "2024-12-23 00:11:14.914568"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:11:14.916036"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:11:14.917399"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:11:14.919084"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.920781"], ["updated_at", "2024-12-23 00:11:14.920781"]] 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", "2024-12-23 00:11:14.921870"], ["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.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:11:14.924499"], ["updated_at", "2024-12-23 00:11:14.924499"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.926186"], ["updated_at", "2024-12-23 00:11:14.926186"]] 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", "2024-12-23 00:11:14.927286"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:11:14.928032"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.930781"], ["updated_at", "2024-12-23 00:11:14.930781"]] 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", "2024-12-23 00:11:14.932543"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:11:14.933641"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.936377"], ["updated_at", "2024-12-23 00:11:14.936377"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.7ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:11:14.937701"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:11:14.949239"], ["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.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 23"], ["created_at", "2024-12-23 00:11:14.953045"], ["updated_at", "2024-12-23 00:11:14.953045"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:11:14.955246"], ["updated_at", "2024-12-23 00:11:14.955246"]] 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", "2024-12-23 00:11:14.956526"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:11:14.957404"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.4ms) 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.6ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:12:51.063726"], ["updated_at", "2024-12-23 00:12:51.063726"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.071251"], ["updated_at", "2024-12-23 00:12:51.071251"]] 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 2"], ["created_at", "2024-12-23 00:12:51.080149"], ["updated_at", "2024-12-23 00:12:51.080149"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.082109"], ["updated_at", "2024-12-23 00:12:51.082109"]] 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 9"], ["created_at", "2024-12-23 00:12:51.097545"], ["updated_at", "2024-12-23 00:12:51.097545"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.099407"], ["updated_at", "2024-12-23 00:12:51.099407"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:12:51.103098"], ["updated_at", "2024-12-23 00:12:51.103098"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.104844"], ["updated_at", "2024-12-23 00:12:51.104844"]] 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 11"], ["created_at", "2024-12-23 00:12:51.109467"], ["updated_at", "2024-12-23 00:12:51.109467"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.111011"], ["updated_at", "2024-12-23 00:12:51.111011"]] 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 12"], ["created_at", "2024-12-23 00:12:51.113312"], ["updated_at", "2024-12-23 00:12:51.113312"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.114396"], ["updated_at", "2024-12-23 00:12:51.114396"]] 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 13"], ["created_at", "2024-12-23 00:12:51.116343"], ["updated_at", "2024-12-23 00:12:51.116343"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.125576"], ["updated_at", "2024-12-23 00:12:51.125576"]] 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 14"], ["created_at", "2024-12-23 00:12:51.129361"], ["updated_at", "2024-12-23 00:12:51.129361"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:12:51.131289"], ["updated_at", "2024-12-23 00:12:51.131289"]] 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 15"], ["created_at", "2024-12-23 00:12:51.133253"], ["updated_at", "2024-12-23 00:12:51.133253"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:12:51.134890"], ["updated_at", "2024-12-23 00:12:51.134890"]] TRANSACTION (0.1ms) 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 16"], ["created_at", "2024-12-23 00:12:51.137717"], ["updated_at", "2024-12-23 00:12:51.137717"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:12:51.140245"], ["updated_at", "2024-12-23 00:12:51.140245"]] 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 17"], ["created_at", "2024-12-23 00:12:51.143806"], ["updated_at", "2024-12-23 00:12:51.143806"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.145766"], ["updated_at", "2024-12-23 00:12:51.145766"]] 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 18"], ["created_at", "2024-12-23 00:12:51.147933"], ["updated_at", "2024-12-23 00:12:51.147933"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.149353"], ["updated_at", "2024-12-23 00:12:51.149353"]] 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"."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 19"], ["created_at", "2024-12-23 00:12:51.152031"], ["updated_at", "2024-12-23 00:12:51.152031"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.153444"], ["updated_at", "2024-12-23 00:12:51.153444"]] 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", "2024-12-23 00:12:51.154650"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:12:51.155633"], ["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 20"], ["created_at", "2024-12-23 00:12:51.158178"], ["updated_at", "2024-12-23 00:12:51.158178"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.160152"], ["updated_at", "2024-12-23 00:12:51.160152"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:12:51.161299"], ["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", "2024-12-23 00:12:51.162364"], ["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", "2024-12-23 00:12:51.163216"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:12:51.166007"], ["updated_at", "2024-12-23 00:12:51.166007"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.167875"], ["updated_at", "2024-12-23 00:12:51.167875"]] 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", "2024-12-23 00:12:51.169095"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:12:51.169900"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.171793"], ["updated_at", "2024-12-23 00:12:51.171793"]] 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", "2024-12-23 00:12:51.172892"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:12:51.173874"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:12:51.175559"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.177085"], ["updated_at", "2024-12-23 00:12:51.177085"]] 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", "2024-12-23 00:12:51.178511"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:12:51.180895"], ["updated_at", "2024-12-23 00:12:51.180895"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.182406"], ["updated_at", "2024-12-23 00:12:51.182406"]] 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", "2024-12-23 00:12:51.183483"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:12:51.184194"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.186046"], ["updated_at", "2024-12-23 00:12:51.186046"]] 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", "2024-12-23 00:12:51.187382"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:12:51.188241"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.190250"], ["updated_at", "2024-12-23 00:12:51.190250"]] 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", "2024-12-23 00:12:51.191477"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:12:51.192293"], ["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 23"], ["created_at", "2024-12-23 00:12:51.195042"], ["updated_at", "2024-12-23 00:12:51.195042"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:12:51.207304"], ["updated_at", "2024-12-23 00:12:51.207304"]] 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", "2024-12-23 00:12:51.209934"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:12:51.211415"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (4.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.6ms) DELETE FROM "users"  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';  (0.4ms) TRUNCATE TABLE "has_states_states"  (0.2ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-23 00:14:01.611498"], ["updated_at", "2024-12-23 00:14:01.611498"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.629256"], ["updated_at", "2024-12-23 00:14:01.629256"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.3ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 00:14:01.655540"], ["updated_at", "2024-12-23 00:14:01.655540"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.659129"], ["updated_at", "2024-12-23 00:14:01.659129"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:14:01.682856"], ["updated_at", "2024-12-23 00:14:01.682856"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.685489"], ["updated_at", "2024-12-23 00:14:01.685489"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:14:01.691091"], ["updated_at", "2024-12-23 00:14:01.691091"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.693396"], ["updated_at", "2024-12-23 00:14:01.693396"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 00:14:01.699567"], ["updated_at", "2024-12-23 00:14:01.699567"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.702459"], ["updated_at", "2024-12-23 00:14:01.702459"]] 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 (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 00:14:01.706839"], ["updated_at", "2024-12-23 00:14:01.706839"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.710042"], ["updated_at", "2024-12-23 00:14:01.710042"]] 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 13"], ["created_at", "2024-12-23 00:14:01.715784"], ["updated_at", "2024-12-23 00:14:01.715784"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.736392"], ["updated_at", "2024-12-23 00:14:01.736392"]] 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.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 00:14:01.743195"], ["updated_at", "2024-12-23 00:14:01.743195"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:14:01.748540"], ["updated_at", "2024-12-23 00:14:01.748540"]] 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 (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 00:14:01.755457"], ["updated_at", "2024-12-23 00:14:01.755457"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:14:01.759031"], ["updated_at", "2024-12-23 00:14:01.759031"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 00:14:01.763576"], ["updated_at", "2024-12-23 00:14:01.763576"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:14:01.768133"], ["updated_at", "2024-12-23 00:14:01.768133"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:14:01.774731"], ["updated_at", "2024-12-23 00:14:01.774731"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.778140"], ["updated_at", "2024-12-23 00:14:01.778140"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 00:14:01.783156"], ["updated_at", "2024-12-23 00:14:01.783156"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.786872"], ["updated_at", "2024-12-23 00:14:01.786872"]] 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"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 19"], ["created_at", "2024-12-23 00:14:01.791615"], ["updated_at", "2024-12-23 00:14:01.791615"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.794564"], ["updated_at", "2024-12-23 00:14:01.794564"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:14:01.797127"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:14:01.799202"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 20"], ["created_at", "2024-12-23 00:14:01.803806"], ["updated_at", "2024-12-23 00:14:01.803806"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.806518"], ["updated_at", "2024-12-23 00:14:01.806518"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:14:01.808054"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:14:01.809280"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:14:01.810399"], ["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.1ms) 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 21"], ["created_at", "2024-12-23 00:14:01.827689"], ["updated_at", "2024-12-23 00:14:01.827689"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.831614"], ["updated_at", "2024-12-23 00:14:01.831614"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:14:01.833763"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:14:01.835567"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.839228"], ["updated_at", "2024-12-23 00:14:01.839228"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:14:01.841173"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:14:01.843963"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:14:01.846493"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.848667"], ["updated_at", "2024-12-23 00:14:01.848667"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:14:01.850447"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:14:01.854374"], ["updated_at", "2024-12-23 00:14:01.854374"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.857433"], ["updated_at", "2024-12-23 00:14:01.857433"]] 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", "2024-12-23 00:14:01.859090"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:14:01.860259"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.863214"], ["updated_at", "2024-12-23 00:14:01.863214"]] 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", "2024-12-23 00:14:01.864913"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:14:01.866005"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.868811"], ["updated_at", "2024-12-23 00:14:01.868811"]] 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", "2024-12-23 00:14:01.870777"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:14:01.871721"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:14:01.874471"], ["updated_at", "2024-12-23 00:14:01.874471"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:14:01.876226"], ["updated_at", "2024-12-23 00:14:01.876226"]] 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", "2024-12-23 00:14:01.877381"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:14:01.878233"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.6ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:25:56.462941"], ["updated_at", "2024-12-23 00:25:56.462941"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.470171"], ["updated_at", "2024-12-23 00:25:56.470171"]] 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 2"], ["created_at", "2024-12-23 00:25:56.481832"], ["updated_at", "2024-12-23 00:25:56.481832"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.484381"], ["updated_at", "2024-12-23 00:25:56.484381"]] 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 9"], ["created_at", "2024-12-23 00:25:56.499965"], ["updated_at", "2024-12-23 00:25:56.499965"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.501889"], ["updated_at", "2024-12-23 00:25:56.501889"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:25:56.505119"], ["updated_at", "2024-12-23 00:25:56.505119"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.506418"], ["updated_at", "2024-12-23 00:25:56.506418"]] 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 11"], ["created_at", "2024-12-23 00:25:56.510919"], ["updated_at", "2024-12-23 00:25:56.510919"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.512976"], ["updated_at", "2024-12-23 00:25:56.512976"]] 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 12"], ["created_at", "2024-12-23 00:25:56.516195"], ["updated_at", "2024-12-23 00:25:56.516195"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (13.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.518246"], ["updated_at", "2024-12-23 00:25:56.518246"]] 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 13"], ["created_at", "2024-12-23 00:25:56.534164"], ["updated_at", "2024-12-23 00:25:56.534164"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.546608"], ["updated_at", "2024-12-23 00:25:56.546608"]] 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 14"], ["created_at", "2024-12-23 00:25:56.550339"], ["updated_at", "2024-12-23 00:25:56.550339"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:25:56.552854"], ["updated_at", "2024-12-23 00:25:56.552854"]] 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 15"], ["created_at", "2024-12-23 00:25:56.556057"], ["updated_at", "2024-12-23 00:25:56.556057"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:25:56.558841"], ["updated_at", "2024-12-23 00:25:56.558841"]] 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 16"], ["created_at", "2024-12-23 00:25:56.562291"], ["updated_at", "2024-12-23 00:25:56.562291"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:25:56.564865"], ["updated_at", "2024-12-23 00:25:56.564865"]] 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 17"], ["created_at", "2024-12-23 00:25:56.569119"], ["updated_at", "2024-12-23 00:25:56.569119"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.571202"], ["updated_at", "2024-12-23 00:25:56.571202"]] 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 18"], ["created_at", "2024-12-23 00:25:56.573348"], ["updated_at", "2024-12-23 00:25:56.573348"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.574896"], ["updated_at", "2024-12-23 00:25:56.574896"]] 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"."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 19"], ["created_at", "2024-12-23 00:25:56.578460"], ["updated_at", "2024-12-23 00:25:56.578460"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.581026"], ["updated_at", "2024-12-23 00:25:56.581026"]] 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", "2024-12-23 00:25:56.582291"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:25:56.583345"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:25:56.585867"], ["updated_at", "2024-12-23 00:25:56.585867"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.587547"], ["updated_at", "2024-12-23 00:25:56.587547"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:25:56.588405"], ["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", "2024-12-23 00:25:56.589169"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:25:56.590088"], ["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 21"], ["created_at", "2024-12-23 00:25:56.592795"], ["updated_at", "2024-12-23 00:25:56.592795"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.594840"], ["updated_at", "2024-12-23 00:25:56.594840"]] 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", "2024-12-23 00:25:56.596227"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:25:56.597191"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.599105"], ["updated_at", "2024-12-23 00:25:56.599105"]] 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", "2024-12-23 00:25:56.600185"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:25:56.600960"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:25:56.602234"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.603727"], ["updated_at", "2024-12-23 00:25:56.603727"]] 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", "2024-12-23 00:25:56.604858"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:25:56.607593"], ["updated_at", "2024-12-23 00:25:56.607593"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.609325"], ["updated_at", "2024-12-23 00:25:56.609325"]] TRANSACTION (0.1ms) 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", "2024-12-23 00:25:56.610620"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:25:56.611599"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.613947"], ["updated_at", "2024-12-23 00:25:56.613947"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:25:56.615548"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:25:56.616547"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.618390"], ["updated_at", "2024-12-23 00:25:56.618390"]] 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", "2024-12-23 00:25:56.619435"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:25:56.620270"], ["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 23"], ["created_at", "2024-12-23 00:25:56.622723"], ["updated_at", "2024-12-23 00:25:56.622723"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:25:56.624442"], ["updated_at", "2024-12-23 00:25:56.624442"]] 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", "2024-12-23 00:25:56.625481"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:25:56.626310"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.6ms) 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.4ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:26:43.330117"], ["updated_at", "2024-12-23 00:26:43.330117"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.337553"], ["updated_at", "2024-12-23 00:26:43.337553"]] 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 2"], ["created_at", "2024-12-23 00:26:43.346241"], ["updated_at", "2024-12-23 00:26:43.346241"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.347949"], ["updated_at", "2024-12-23 00:26:43.347949"]] 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 9"], ["created_at", "2024-12-23 00:26:43.362839"], ["updated_at", "2024-12-23 00:26:43.362839"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.364650"], ["updated_at", "2024-12-23 00:26:43.364650"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:26:43.368560"], ["updated_at", "2024-12-23 00:26:43.368560"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.370346"], ["updated_at", "2024-12-23 00:26:43.370346"]] 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 11"], ["created_at", "2024-12-23 00:26:43.376620"], ["updated_at", "2024-12-23 00:26:43.376620"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.379678"], ["updated_at", "2024-12-23 00:26:43.379678"]] TRANSACTION (0.1ms) 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 00:26:43.404496"], ["updated_at", "2024-12-23 00:26:43.404496"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.407157"], ["updated_at", "2024-12-23 00:26:43.407157"]] 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 13"], ["created_at", "2024-12-23 00:26:43.410387"], ["updated_at", "2024-12-23 00:26:43.410387"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.427939"], ["updated_at", "2024-12-23 00:26:43.427939"]] 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 14"], ["created_at", "2024-12-23 00:26:43.433209"], ["updated_at", "2024-12-23 00:26:43.433209"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:26:43.437828"], ["updated_at", "2024-12-23 00:26:43.437828"]] 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 15"], ["created_at", "2024-12-23 00:26:43.441456"], ["updated_at", "2024-12-23 00:26:43.441456"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:26:43.444149"], ["updated_at", "2024-12-23 00:26:43.444149"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 00:26:43.447581"], ["updated_at", "2024-12-23 00:26:43.447581"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:26:43.451461"], ["updated_at", "2024-12-23 00:26:43.451461"]] 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 17"], ["created_at", "2024-12-23 00:26:43.457239"], ["updated_at", "2024-12-23 00:26:43.457239"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.460325"], ["updated_at", "2024-12-23 00:26:43.460325"]] 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 (1.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 00:26:43.463646"], ["updated_at", "2024-12-23 00:26:43.463646"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.469385"], ["updated_at", "2024-12-23 00:26:43.469385"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 19"], ["created_at", "2024-12-23 00:26:43.477915"], ["updated_at", "2024-12-23 00:26:43.477915"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.482592"], ["updated_at", "2024-12-23 00:26:43.482592"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:26:43.487042"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:26:43.489313"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 20"], ["created_at", "2024-12-23 00:26:43.494097"], ["updated_at", "2024-12-23 00:26:43.494097"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.496990"], ["updated_at", "2024-12-23 00:26:43.496990"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:26:43.498727"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:26:43.500427"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:26:43.502037"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 21"], ["created_at", "2024-12-23 00:26:43.506742"], ["updated_at", "2024-12-23 00:26:43.506742"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.510214"], ["updated_at", "2024-12-23 00:26:43.510214"]] 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", "2024-12-23 00:26:43.512240"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:26:43.513566"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.518266"], ["updated_at", "2024-12-23 00:26:43.518266"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:26:43.520521"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:26:43.522182"], ["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) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:26:43.524625"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.526954"], ["updated_at", "2024-12-23 00:26:43.526954"]] 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", "2024-12-23 00:26:43.528659"], ["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.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 22"], ["created_at", "2024-12-23 00:26:43.532615"], ["updated_at", "2024-12-23 00:26:43.532615"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.535526"], ["updated_at", "2024-12-23 00:26:43.535526"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:26:43.537593"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:26:43.538906"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.541732"], ["updated_at", "2024-12-23 00:26:43.541732"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:26:43.543290"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:26:43.544575"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.547622"], ["updated_at", "2024-12-23 00:26:43.547622"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:26:43.549486"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:26:43.550689"], ["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 23"], ["created_at", "2024-12-23 00:26:43.553860"], ["updated_at", "2024-12-23 00:26:43.553860"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:26:43.556051"], ["updated_at", "2024-12-23 00:26:43.556051"]] 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", "2024-12-23 00:26:43.557456"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:26:43.558459"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.6ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.4ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:28:44.879874"], ["updated_at", "2024-12-23 00:28:44.879874"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.887610"], ["updated_at", "2024-12-23 00:28:44.887610"]] 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 2"], ["created_at", "2024-12-23 00:28:44.896211"], ["updated_at", "2024-12-23 00:28:44.896211"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.898052"], ["updated_at", "2024-12-23 00:28:44.898052"]] 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 9"], ["created_at", "2024-12-23 00:28:44.912700"], ["updated_at", "2024-12-23 00:28:44.912700"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.914637"], ["updated_at", "2024-12-23 00:28:44.914637"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 00:28:44.918355"], ["updated_at", "2024-12-23 00:28:44.918355"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.919686"], ["updated_at", "2024-12-23 00:28:44.919686"]] 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 11"], ["created_at", "2024-12-23 00:28:44.923625"], ["updated_at", "2024-12-23 00:28:44.923625"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.925480"], ["updated_at", "2024-12-23 00:28:44.925480"]] 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 12"], ["created_at", "2024-12-23 00:28:44.928884"], ["updated_at", "2024-12-23 00:28:44.928884"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.930583"], ["updated_at", "2024-12-23 00:28:44.930583"]] 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 13"], ["created_at", "2024-12-23 00:28:44.933718"], ["updated_at", "2024-12-23 00:28:44.933718"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.943269"], ["updated_at", "2024-12-23 00:28:44.943269"]] 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 14"], ["created_at", "2024-12-23 00:28:44.946170"], ["updated_at", "2024-12-23 00:28:44.946170"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:28:44.948357"], ["updated_at", "2024-12-23 00:28:44.948357"]] 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 15"], ["created_at", "2024-12-23 00:28:44.950726"], ["updated_at", "2024-12-23 00:28:44.950726"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:28:44.952518"], ["updated_at", "2024-12-23 00:28:44.952518"]] 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 16"], ["created_at", "2024-12-23 00:28:44.955369"], ["updated_at", "2024-12-23 00:28:44.955369"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:28:44.957657"], ["updated_at", "2024-12-23 00:28:44.957657"]] 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", "2024-12-23 00:28:44.961166"], ["updated_at", "2024-12-23 00:28:44.961166"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.963485"], ["updated_at", "2024-12-23 00:28:44.963485"]] 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 18"], ["created_at", "2024-12-23 00:28:44.966289"], ["updated_at", "2024-12-23 00:28:44.966289"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.969089"], ["updated_at", "2024-12-23 00:28:44.969089"]] 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"."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 19"], ["created_at", "2024-12-23 00:28:44.972968"], ["updated_at", "2024-12-23 00:28:44.972968"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.974912"], ["updated_at", "2024-12-23 00:28:44.974912"]] 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", "2024-12-23 00:28:44.976170"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:28:44.977325"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:28:44.979852"], ["updated_at", "2024-12-23 00:28:44.979852"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:44.981993"], ["updated_at", "2024-12-23 00:28:44.981993"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:28:44.983219"], ["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", "2024-12-23 00:28:44.984371"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:28:44.985382"], ["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.1ms) SAVEPOINT active_record_1 User Create (13.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:28:44.988629"], ["updated_at", "2024-12-23 00:28:44.988629"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.004433"], ["updated_at", "2024-12-23 00:28:45.004433"]] 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", "2024-12-23 00:28:45.006030"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:28:45.007019"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.009097"], ["updated_at", "2024-12-23 00:28:45.009097"]] 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", "2024-12-23 00:28:45.010213"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:28:45.011020"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:28:45.013172"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.014557"], ["updated_at", "2024-12-23 00:28:45.014557"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-23 00:28:45.015693"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:28:45.018458"], ["updated_at", "2024-12-23 00:28:45.018458"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.020087"], ["updated_at", "2024-12-23 00:28:45.020087"]] TRANSACTION (0.1ms) 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", "2024-12-23 00:28:45.021928"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:28:45.022736"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.024701"], ["updated_at", "2024-12-23 00:28:45.024701"]] 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", "2024-12-23 00:28:45.025942"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:28:45.026842"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.028691"], ["updated_at", "2024-12-23 00:28:45.028691"]] 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", "2024-12-23 00:28:45.029711"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:28:45.030466"], ["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 23"], ["created_at", "2024-12-23 00:28:45.033790"], ["updated_at", "2024-12-23 00:28:45.033790"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:28:45.035805"], ["updated_at", "2024-12-23 00:28:45.035805"]] 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", "2024-12-23 00:28:45.037056"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:28:45.037928"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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"  (15.2ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:29:58.044005"], ["updated_at", "2024-12-23 00:29:58.044005"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.052329"], ["updated_at", "2024-12-23 00:29:58.052329"]] 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 2"], ["created_at", "2024-12-23 00:29:58.064092"], ["updated_at", "2024-12-23 00:29:58.064092"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.066466"], ["updated_at", "2024-12-23 00:29:58.066466"]] 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 9"], ["created_at", "2024-12-23 00:29:58.081515"], ["updated_at", "2024-12-23 00:29:58.081515"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.083398"], ["updated_at", "2024-12-23 00:29:58.083398"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:29:58.087140"], ["updated_at", "2024-12-23 00:29:58.087140"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.088432"], ["updated_at", "2024-12-23 00:29:58.088432"]] 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", "2024-12-23 00:29:58.091820"], ["updated_at", "2024-12-23 00:29:58.091820"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.092896"], ["updated_at", "2024-12-23 00:29:58.092896"]] 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 12"], ["created_at", "2024-12-23 00:29:58.095136"], ["updated_at", "2024-12-23 00:29:58.095136"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.096691"], ["updated_at", "2024-12-23 00:29:58.096691"]] 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 13"], ["created_at", "2024-12-23 00:29:58.099463"], ["updated_at", "2024-12-23 00:29:58.099463"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.109953"], ["updated_at", "2024-12-23 00:29:58.109953"]] 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 14"], ["created_at", "2024-12-23 00:29:58.112991"], ["updated_at", "2024-12-23 00:29:58.112991"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:29:58.115635"], ["updated_at", "2024-12-23 00:29:58.115635"]] 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 15"], ["created_at", "2024-12-23 00:29:58.118135"], ["updated_at", "2024-12-23 00:29:58.118135"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:29:58.119776"], ["updated_at", "2024-12-23 00:29:58.119776"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 00:29:58.122457"], ["updated_at", "2024-12-23 00:29:58.122457"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:29:58.124945"], ["updated_at", "2024-12-23 00:29:58.124945"]] 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 17"], ["created_at", "2024-12-23 00:29:58.128816"], ["updated_at", "2024-12-23 00:29:58.128816"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.130944"], ["updated_at", "2024-12-23 00:29:58.130944"]] 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 18"], ["created_at", "2024-12-23 00:29:58.133564"], ["updated_at", "2024-12-23 00:29:58.133564"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.135655"], ["updated_at", "2024-12-23 00:29:58.135655"]] 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"."id" = ? LIMIT ? [["id", 1], ["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 19"], ["created_at", "2024-12-23 00:29:58.153156"], ["updated_at", "2024-12-23 00:29:58.153156"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.155756"], ["updated_at", "2024-12-23 00:29:58.155756"]] 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", "2024-12-23 00:29:58.157660"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:29:58.159192"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 20"], ["created_at", "2024-12-23 00:29:58.163571"], ["updated_at", "2024-12-23 00:29:58.163571"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.165672"], ["updated_at", "2024-12-23 00:29:58.165672"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:29:58.166772"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:29:58.167843"], ["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", "2024-12-23 00:29:58.168822"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:29:58.172167"], ["updated_at", "2024-12-23 00:29:58.172167"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.174728"], ["updated_at", "2024-12-23 00:29:58.174728"]] 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", "2024-12-23 00:29:58.176239"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:29:58.177225"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.179667"], ["updated_at", "2024-12-23 00:29:58.179667"]] 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", "2024-12-23 00:29:58.181284"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:29:58.182214"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:29:58.183673"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.185040"], ["updated_at", "2024-12-23 00:29:58.185040"]] 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", "2024-12-23 00:29:58.186050"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:29:58.188788"], ["updated_at", "2024-12-23 00:29:58.188788"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.190900"], ["updated_at", "2024-12-23 00:29:58.190900"]] 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", "2024-12-23 00:29:58.192215"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:29:58.193121"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.195485"], ["updated_at", "2024-12-23 00:29:58.195485"]] 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", "2024-12-23 00:29:58.196856"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:29:58.197849"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.200043"], ["updated_at", "2024-12-23 00:29:58.200043"]] 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", "2024-12-23 00:29:58.201194"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:29:58.201938"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:29:58.204376"], ["updated_at", "2024-12-23 00:29:58.204376"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:29:58.206055"], ["updated_at", "2024-12-23 00:29:58.206055"]] 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", "2024-12-23 00:29:58.207144"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:29:58.208005"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) 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"  (8.0ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.0ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 TRANSACTION (0.2ms) 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 1"], ["created_at", "2024-12-23 00:40:24.220915"], ["updated_at", "2024-12-23 00:40:24.220915"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.238549"], ["updated_at", "2024-12-23 00:40:24.238549"]] 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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 00:40:24.270832"], ["updated_at", "2024-12-23 00:40:24.270832"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.275399"], ["updated_at", "2024-12-23 00:40:24.275399"]] 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.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:40:24.340599"], ["updated_at", "2024-12-23 00:40:24.340599"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.344161"], ["updated_at", "2024-12-23 00:40:24.344161"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.7ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:40:24.354918"], ["updated_at", "2024-12-23 00:40:24.354918"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.358296"], ["updated_at", "2024-12-23 00:40:24.358296"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 00:40:24.366577"], ["updated_at", "2024-12-23 00:40:24.366577"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.369313"], ["updated_at", "2024-12-23 00:40:24.369313"]] 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 12"], ["created_at", "2024-12-23 00:40:24.373296"], ["updated_at", "2024-12-23 00:40:24.373296"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.375910"], ["updated_at", "2024-12-23 00:40:24.375910"]] 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 13"], ["created_at", "2024-12-23 00:40:24.380956"], ["updated_at", "2024-12-23 00:40:24.380956"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.395172"], ["updated_at", "2024-12-23 00:40:24.395172"]] TRANSACTION (0.1ms) 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 14"], ["created_at", "2024-12-23 00:40:24.400418"], ["updated_at", "2024-12-23 00:40:24.400418"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:40:24.403615"], ["updated_at", "2024-12-23 00:40:24.403615"]] 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 15"], ["created_at", "2024-12-23 00:40:24.407997"], ["updated_at", "2024-12-23 00:40:24.407997"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:40:24.411042"], ["updated_at", "2024-12-23 00:40:24.411042"]] 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 16"], ["created_at", "2024-12-23 00:40:24.414402"], ["updated_at", "2024-12-23 00:40:24.414402"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:40:24.416912"], ["updated_at", "2024-12-23 00:40:24.416912"]] 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 17"], ["created_at", "2024-12-23 00:40:24.420390"], ["updated_at", "2024-12-23 00:40:24.420390"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.422796"], ["updated_at", "2024-12-23 00:40:24.422796"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 00:40:24.428610"], ["updated_at", "2024-12-23 00:40:24.428610"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.434936"], ["updated_at", "2024-12-23 00:40:24.434936"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.6ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 00:40:24.447802"], ["updated_at", "2024-12-23 00:40:24.447802"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.453773"], ["updated_at", "2024-12-23 00:40:24.453773"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.8ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:40:24.457996"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:40:24.462006"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:40:24.471122"], ["updated_at", "2024-12-23 00:40:24.471122"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.478269"], ["updated_at", "2024-12-23 00:40:24.478269"]] User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:40:24.482739"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.6ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:40:24.486146"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-23 00:40:24.489183"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 21"], ["created_at", "2024-12-23 00:40:24.495499"], ["updated_at", "2024-12-23 00:40:24.495499"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.498511"], ["updated_at", "2024-12-23 00:40:24.498511"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:40:24.500741"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:40:24.502147"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.505267"], ["updated_at", "2024-12-23 00:40:24.505267"]] 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", "2024-12-23 00:40:24.507269"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:40:24.508515"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:40:24.510498"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.512337"], ["updated_at", "2024-12-23 00:40:24.512337"]] 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", "2024-12-23 00:40:24.513727"], ["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.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 22"], ["created_at", "2024-12-23 00:40:24.517113"], ["updated_at", "2024-12-23 00:40:24.517113"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.519318"], ["updated_at", "2024-12-23 00:40:24.519318"]] 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", "2024-12-23 00:40:24.520750"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:40:24.521705"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.523780"], ["updated_at", "2024-12-23 00:40:24.523780"]] 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", "2024-12-23 00:40:24.524963"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:40:24.525807"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.527550"], ["updated_at", "2024-12-23 00:40:24.527550"]] 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", "2024-12-23 00:40:24.528599"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:40:24.529339"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:40:24.531953"], ["updated_at", "2024-12-23 00:40:24.531953"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:40:24.533684"], ["updated_at", "2024-12-23 00:40:24.533684"]] 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", "2024-12-23 00:40:24.534811"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:40:24.535702"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (5.0ms) 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"  (15.0ms) 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.3ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.5ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:41:01.887928"], ["updated_at", "2024-12-23 00:41:01.887928"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.894922"], ["updated_at", "2024-12-23 00:41:01.894922"]] TRANSACTION (0.1ms) 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", "2024-12-23 00:41:01.908432"], ["updated_at", "2024-12-23 00:41:01.908432"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.910244"], ["updated_at", "2024-12-23 00:41:01.910244"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:41:01.946317"], ["updated_at", "2024-12-23 00:41:01.946317"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (1.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.948769"], ["updated_at", "2024-12-23 00:41:01.948769"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-23 00:41:01.956298"], ["updated_at", "2024-12-23 00:41:01.956298"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.958396"], ["updated_at", "2024-12-23 00:41:01.958396"]] 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 00:41:01.964378"], ["updated_at", "2024-12-23 00:41:01.964378"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.966461"], ["updated_at", "2024-12-23 00:41:01.966461"]] 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 (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 00:41:01.970259"], ["updated_at", "2024-12-23 00:41:01.970259"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.973198"], ["updated_at", "2024-12-23 00:41:01.973198"]] 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 13"], ["created_at", "2024-12-23 00:41:01.976737"], ["updated_at", "2024-12-23 00:41:01.976737"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:01.988169"], ["updated_at", "2024-12-23 00:41:01.988169"]] 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 14"], ["created_at", "2024-12-23 00:41:01.991683"], ["updated_at", "2024-12-23 00:41:01.991683"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:41:01.993782"], ["updated_at", "2024-12-23 00:41:01.993782"]] 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 15"], ["created_at", "2024-12-23 00:41:01.997236"], ["updated_at", "2024-12-23 00:41:01.997236"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:41:01.999143"], ["updated_at", "2024-12-23 00:41:01.999143"]] 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 16"], ["created_at", "2024-12-23 00:41:02.001992"], ["updated_at", "2024-12-23 00:41:02.001992"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:41:02.004416"], ["updated_at", "2024-12-23 00:41:02.004416"]] 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", "2024-12-23 00:41:02.007497"], ["updated_at", "2024-12-23 00:41:02.007497"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.009242"], ["updated_at", "2024-12-23 00:41:02.009242"]] 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 18"], ["created_at", "2024-12-23 00:41:02.011332"], ["updated_at", "2024-12-23 00:41:02.011332"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.012811"], ["updated_at", "2024-12-23 00:41:02.012811"]] 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"."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 19"], ["created_at", "2024-12-23 00:41:02.016191"], ["updated_at", "2024-12-23 00:41:02.016191"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.018218"], ["updated_at", "2024-12-23 00:41:02.018218"]] 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", "2024-12-23 00:41:02.019498"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:41:02.020584"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:41:02.023786"], ["updated_at", "2024-12-23 00:41:02.023786"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.025839"], ["updated_at", "2024-12-23 00:41:02.025839"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:41:02.026824"], ["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", "2024-12-23 00:41:02.027718"], ["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", "2024-12-23 00:41:02.028556"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:41:02.031294"], ["updated_at", "2024-12-23 00:41:02.031294"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.033094"], ["updated_at", "2024-12-23 00:41:02.033094"]] 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", "2024-12-23 00:41:02.034193"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:41:02.034987"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.037094"], ["updated_at", "2024-12-23 00:41:02.037094"]] 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", "2024-12-23 00:41:02.038350"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:41:02.039191"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:41:02.040575"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.041979"], ["updated_at", "2024-12-23 00:41:02.041979"]] 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", "2024-12-23 00:41:02.043080"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:41:02.045956"], ["updated_at", "2024-12-23 00:41:02.045956"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.047547"], ["updated_at", "2024-12-23 00:41:02.047547"]] 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", "2024-12-23 00:41:02.048505"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:41:02.049228"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.050920"], ["updated_at", "2024-12-23 00:41:02.050920"]] 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", "2024-12-23 00:41:02.052027"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:41:02.052837"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.055314"], ["updated_at", "2024-12-23 00:41:02.055314"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-23 00:41:02.056766"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:41:02.057722"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:41:02.060967"], ["updated_at", "2024-12-23 00:41:02.060967"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:41:02.062854"], ["updated_at", "2024-12-23 00:41:02.062854"]] 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", "2024-12-23 00:41:02.063993"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:41:02.064730"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (14.9ms) 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.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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:42:28.858596"], ["updated_at", "2024-12-23 00:42:28.858596"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.866326"], ["updated_at", "2024-12-23 00:42:28.866326"]] 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 2"], ["created_at", "2024-12-23 00:42:28.877119"], ["updated_at", "2024-12-23 00:42:28.877119"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.878929"], ["updated_at", "2024-12-23 00:42:28.878929"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:42:28.910524"], ["updated_at", "2024-12-23 00:42:28.910524"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.912977"], ["updated_at", "2024-12-23 00:42:28.912977"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:42:28.918339"], ["updated_at", "2024-12-23 00:42:28.918339"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.920333"], ["updated_at", "2024-12-23 00:42:28.920333"]] 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 11"], ["created_at", "2024-12-23 00:42:28.926366"], ["updated_at", "2024-12-23 00:42:28.926366"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.928084"], ["updated_at", "2024-12-23 00:42:28.928084"]] 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 12"], ["created_at", "2024-12-23 00:42:28.931140"], ["updated_at", "2024-12-23 00:42:28.931140"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.932874"], ["updated_at", "2024-12-23 00:42:28.932874"]] 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 13"], ["created_at", "2024-12-23 00:42:28.936885"], ["updated_at", "2024-12-23 00:42:28.936885"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.947722"], ["updated_at", "2024-12-23 00:42:28.947722"]] 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 14"], ["created_at", "2024-12-23 00:42:28.951532"], ["updated_at", "2024-12-23 00:42:28.951532"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:42:28.954079"], ["updated_at", "2024-12-23 00:42:28.954079"]] 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 15"], ["created_at", "2024-12-23 00:42:28.957410"], ["updated_at", "2024-12-23 00:42:28.957410"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:42:28.959855"], ["updated_at", "2024-12-23 00:42:28.959855"]] 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", "2024-12-23 00:42:28.963095"], ["updated_at", "2024-12-23 00:42:28.963095"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:42:28.964940"], ["updated_at", "2024-12-23 00:42:28.964940"]] 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", "2024-12-23 00:42:28.967263"], ["updated_at", "2024-12-23 00:42:28.967263"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.969055"], ["updated_at", "2024-12-23 00:42:28.969055"]] 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 18"], ["created_at", "2024-12-23 00:42:28.972552"], ["updated_at", "2024-12-23 00:42:28.972552"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.974269"], ["updated_at", "2024-12-23 00:42:28.974269"]] 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"."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 19"], ["created_at", "2024-12-23 00:42:28.978538"], ["updated_at", "2024-12-23 00:42:28.978538"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.980489"], ["updated_at", "2024-12-23 00:42:28.980489"]] 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", "2024-12-23 00:42:28.981906"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:42:28.983097"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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 20"], ["created_at", "2024-12-23 00:42:28.986733"], ["updated_at", "2024-12-23 00:42:28.986733"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.988793"], ["updated_at", "2024-12-23 00:42:28.988793"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:42:28.989680"], ["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", "2024-12-23 00:42:28.990504"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:42:28.991530"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:42:28.995182"], ["updated_at", "2024-12-23 00:42:28.995182"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:28.997190"], ["updated_at", "2024-12-23 00:42:28.997190"]] 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", "2024-12-23 00:42:28.998898"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:42:28.999874"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:29.001651"], ["updated_at", "2024-12-23 00:42:29.001651"]] 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", "2024-12-23 00:42:29.002681"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:42:29.003620"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:42:29.005469"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:29.006950"], ["updated_at", "2024-12-23 00:42:29.006950"]] 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", "2024-12-23 00:42:29.008298"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:42:29.011845"], ["updated_at", "2024-12-23 00:42:29.011845"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:29.013833"], ["updated_at", "2024-12-23 00:42:29.013833"]] 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", "2024-12-23 00:42:29.014886"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:42:29.015622"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:29.017307"], ["updated_at", "2024-12-23 00:42:29.017307"]] 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", "2024-12-23 00:42:29.018288"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:42:29.018984"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:29.020668"], ["updated_at", "2024-12-23 00:42:29.020668"]] 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", "2024-12-23 00:42:29.021684"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:42:29.022367"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:42:29.024838"], ["updated_at", "2024-12-23 00:42:29.024838"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:42:29.026713"], ["updated_at", "2024-12-23 00:42:29.026713"]] 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", "2024-12-23 00:42:29.027802"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:42:29.028590"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.6ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.2ms) SAVEPOINT active_record_1 User Create (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:46:02.887827"], ["updated_at", "2024-12-23 00:46:02.887827"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:02.900298"], ["updated_at", "2024-12-23 00:46:02.900298"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 00:46:02.914216"], ["updated_at", "2024-12-23 00:46:02.914216"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:02.917128"], ["updated_at", "2024-12-23 00:46:02.917128"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:46:02.950590"], ["updated_at", "2024-12-23 00:46:02.950590"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:02.954911"], ["updated_at", "2024-12-23 00:46:02.954911"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.3ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-23 00:46:02.962386"], ["updated_at", "2024-12-23 00:46:02.962386"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:02.964631"], ["updated_at", "2024-12-23 00:46:02.964631"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 00:46:02.973630"], ["updated_at", "2024-12-23 00:46:02.973630"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:02.978025"], ["updated_at", "2024-12-23 00:46:02.978025"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 00:46:02.984773"], ["updated_at", "2024-12-23 00:46:02.984773"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.3ms) SAVEPOINT active_record_1 HasStates::State Create (1.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:02.990294"], ["updated_at", "2024-12-23 00:46:02.990294"]] TRANSACTION (0.1ms) 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 13"], ["created_at", "2024-12-23 00:46:02.995849"], ["updated_at", "2024-12-23 00:46:02.995849"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.011652"], ["updated_at", "2024-12-23 00:46:03.011652"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 00:46:03.017181"], ["updated_at", "2024-12-23 00:46:03.017181"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:46:03.021836"], ["updated_at", "2024-12-23 00:46:03.021836"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 00:46:03.028619"], ["updated_at", "2024-12-23 00:46:03.028619"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:46:03.032440"], ["updated_at", "2024-12-23 00:46:03.032440"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 00:46:03.039598"], ["updated_at", "2024-12-23 00:46:03.039598"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:46:03.044012"], ["updated_at", "2024-12-23 00:46:03.044012"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:46:03.050013"], ["updated_at", "2024-12-23 00:46:03.050013"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.053824"], ["updated_at", "2024-12-23 00:46:03.053824"]] TRANSACTION (0.1ms) 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 18"], ["created_at", "2024-12-23 00:46:03.058300"], ["updated_at", "2024-12-23 00:46:03.058300"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.061752"], ["updated_at", "2024-12-23 00:46:03.061752"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 00:46:03.067042"], ["updated_at", "2024-12-23 00:46:03.067042"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.070647"], ["updated_at", "2024-12-23 00:46:03.070647"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:46:03.073230"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:46:03.075499"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 20"], ["created_at", "2024-12-23 00:46:03.079670"], ["updated_at", "2024-12-23 00:46:03.079670"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.082275"], ["updated_at", "2024-12-23 00:46:03.082275"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:46:03.083802"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.7ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:46:03.098963"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:46:03.101567"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:46:03.106504"], ["updated_at", "2024-12-23 00:46:03.106504"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.110237"], ["updated_at", "2024-12-23 00:46:03.110237"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:46:03.112544"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:46:03.115055"], ["id", 1]] TRANSACTION (0.3ms) 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.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.119177"], ["updated_at", "2024-12-23 00:46:03.119177"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:46:03.121708"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:46:03.123470"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:46:03.126009"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.128239"], ["updated_at", "2024-12-23 00:46:03.128239"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:46:03.130895"], ["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.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 22"], ["created_at", "2024-12-23 00:46:03.135374"], ["updated_at", "2024-12-23 00:46:03.135374"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.137987"], ["updated_at", "2024-12-23 00:46:03.137987"]] 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", "2024-12-23 00:46:03.139841"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:46:03.141133"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.143808"], ["updated_at", "2024-12-23 00:46:03.143808"]] 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", "2024-12-23 00:46:03.145242"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:46:03.146428"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.148885"], ["updated_at", "2024-12-23 00:46:03.148885"]] 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", "2024-12-23 00:46:03.150492"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:46:03.151676"], ["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", "2024-12-23 00:46:03.155057"], ["updated_at", "2024-12-23 00:46:03.155057"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:03.157658"], ["updated_at", "2024-12-23 00:46:03.157658"]] 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", "2024-12-23 00:46:03.159094"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:46:03.160188"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) 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"  (15.1ms) 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.3ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:46:47.317711"], ["updated_at", "2024-12-23 00:46:47.317711"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.325283"], ["updated_at", "2024-12-23 00:46:47.325283"]] 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 (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 00:46:47.334103"], ["updated_at", "2024-12-23 00:46:47.334103"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.336172"], ["updated_at", "2024-12-23 00:46:47.336172"]] 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 9"], ["created_at", "2024-12-23 00:46:47.350118"], ["updated_at", "2024-12-23 00:46:47.350118"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.352108"], ["updated_at", "2024-12-23 00:46:47.352108"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:46:47.356359"], ["updated_at", "2024-12-23 00:46:47.356359"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.358046"], ["updated_at", "2024-12-23 00:46:47.358046"]] 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 11"], ["created_at", "2024-12-23 00:46:47.361867"], ["updated_at", "2024-12-23 00:46:47.361867"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.363337"], ["updated_at", "2024-12-23 00:46:47.363337"]] 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 12"], ["created_at", "2024-12-23 00:46:47.365404"], ["updated_at", "2024-12-23 00:46:47.365404"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.366455"], ["updated_at", "2024-12-23 00:46:47.366455"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-23 00:46:47.368493"], ["updated_at", "2024-12-23 00:46:47.368493"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.377355"], ["updated_at", "2024-12-23 00:46:47.377355"]] 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 14"], ["created_at", "2024-12-23 00:46:47.380473"], ["updated_at", "2024-12-23 00:46:47.380473"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:46:47.382744"], ["updated_at", "2024-12-23 00:46:47.382744"]] 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 15"], ["created_at", "2024-12-23 00:46:47.385164"], ["updated_at", "2024-12-23 00:46:47.385164"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:46:47.387032"], ["updated_at", "2024-12-23 00:46:47.387032"]] 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 16"], ["created_at", "2024-12-23 00:46:47.389580"], ["updated_at", "2024-12-23 00:46:47.389580"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:46:47.391767"], ["updated_at", "2024-12-23 00:46:47.391767"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:46:47.395895"], ["updated_at", "2024-12-23 00:46:47.395895"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.398626"], ["updated_at", "2024-12-23 00:46:47.398626"]] 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 18"], ["created_at", "2024-12-23 00:46:47.400914"], ["updated_at", "2024-12-23 00:46:47.400914"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.402656"], ["updated_at", "2024-12-23 00:46:47.402656"]] 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"."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 19"], ["created_at", "2024-12-23 00:46:47.405474"], ["updated_at", "2024-12-23 00:46:47.405474"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.407019"], ["updated_at", "2024-12-23 00:46:47.407019"]] 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", "2024-12-23 00:46:47.408123"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:46:47.409111"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:46:47.412380"], ["updated_at", "2024-12-23 00:46:47.412380"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.414464"], ["updated_at", "2024-12-23 00:46:47.414464"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:46:47.415625"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:46:47.416766"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (11.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 00:46:47.417647"], ["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.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 21"], ["created_at", "2024-12-23 00:46:47.432498"], ["updated_at", "2024-12-23 00:46:47.432498"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.434709"], ["updated_at", "2024-12-23 00:46:47.434709"]] 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", "2024-12-23 00:46:47.436038"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:46:47.436953"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.439935"], ["updated_at", "2024-12-23 00:46:47.439935"]] 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", "2024-12-23 00:46:47.441734"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:46:47.442775"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:46:47.444762"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.446498"], ["updated_at", "2024-12-23 00:46:47.446498"]] 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", "2024-12-23 00:46:47.447670"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:46:47.450606"], ["updated_at", "2024-12-23 00:46:47.450606"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.452318"], ["updated_at", "2024-12-23 00:46:47.452318"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:46:47.453978"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:46:47.455806"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.459411"], ["updated_at", "2024-12-23 00:46:47.459411"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:46:47.461112"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:46:47.462348"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.464880"], ["updated_at", "2024-12-23 00:46:47.464880"]] 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", "2024-12-23 00:46:47.466609"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:46:47.467528"], ["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.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 23"], ["created_at", "2024-12-23 00:46:47.470332"], ["updated_at", "2024-12-23 00:46:47.470332"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:46:47.472181"], ["updated_at", "2024-12-23 00:46:47.472181"]] 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", "2024-12-23 00:46:47.473429"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:46:47.474317"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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.9ms) 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.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';  (7.9ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:47:35.650674"], ["updated_at", "2024-12-23 00:47:35.650674"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.658634"], ["updated_at", "2024-12-23 00:47:35.658634"]] 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 2"], ["created_at", "2024-12-23 00:47:35.668360"], ["updated_at", "2024-12-23 00:47:35.668360"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.670354"], ["updated_at", "2024-12-23 00:47:35.670354"]] 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 9"], ["created_at", "2024-12-23 00:47:35.684622"], ["updated_at", "2024-12-23 00:47:35.684622"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.686579"], ["updated_at", "2024-12-23 00:47:35.686579"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:47:35.689964"], ["updated_at", "2024-12-23 00:47:35.689964"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.691491"], ["updated_at", "2024-12-23 00:47:35.691491"]] 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 11"], ["created_at", "2024-12-23 00:47:35.696041"], ["updated_at", "2024-12-23 00:47:35.696041"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.697934"], ["updated_at", "2024-12-23 00:47:35.697934"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 00:47:35.700536"], ["updated_at", "2024-12-23 00:47:35.700536"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.702049"], ["updated_at", "2024-12-23 00:47:35.702049"]] 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 13"], ["created_at", "2024-12-23 00:47:35.704956"], ["updated_at", "2024-12-23 00:47:35.704956"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.715376"], ["updated_at", "2024-12-23 00:47:35.715376"]] 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 14"], ["created_at", "2024-12-23 00:47:35.718617"], ["updated_at", "2024-12-23 00:47:35.718617"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:47:35.720797"], ["updated_at", "2024-12-23 00:47:35.720797"]] TRANSACTION (0.1ms) 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 00:47:35.724603"], ["updated_at", "2024-12-23 00:47:35.724603"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:47:35.728017"], ["updated_at", "2024-12-23 00:47:35.728017"]] 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 16"], ["created_at", "2024-12-23 00:47:35.730745"], ["updated_at", "2024-12-23 00:47:35.730745"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:47:35.733393"], ["updated_at", "2024-12-23 00:47:35.733393"]] 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 17"], ["created_at", "2024-12-23 00:47:35.737688"], ["updated_at", "2024-12-23 00:47:35.737688"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.740126"], ["updated_at", "2024-12-23 00:47:35.740126"]] 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 18"], ["created_at", "2024-12-23 00:47:35.743731"], ["updated_at", "2024-12-23 00:47:35.743731"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.746291"], ["updated_at", "2024-12-23 00:47:35.746291"]] 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"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 19"], ["created_at", "2024-12-23 00:47:35.750418"], ["updated_at", "2024-12-23 00:47:35.750418"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.752553"], ["updated_at", "2024-12-23 00:47:35.752553"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:47:35.754024"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:47:35.755672"], ["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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:47:35.758885"], ["updated_at", "2024-12-23 00:47:35.758885"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.761343"], ["updated_at", "2024-12-23 00:47:35.761343"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:47:35.762575"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:47:35.763898"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:47:35.764989"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:47:35.767679"], ["updated_at", "2024-12-23 00:47:35.767679"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.769454"], ["updated_at", "2024-12-23 00:47:35.769454"]] 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", "2024-12-23 00:47:35.770675"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:47:35.771461"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.773283"], ["updated_at", "2024-12-23 00:47:35.773283"]] 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", "2024-12-23 00:47:35.774365"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:47:35.775328"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:47:35.777093"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.778347"], ["updated_at", "2024-12-23 00:47:35.778347"]] 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", "2024-12-23 00:47:35.779374"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:47:35.781903"], ["updated_at", "2024-12-23 00:47:35.781903"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.783438"], ["updated_at", "2024-12-23 00:47:35.783438"]] 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", "2024-12-23 00:47:35.784467"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:47:35.785178"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.786887"], ["updated_at", "2024-12-23 00:47:35.786887"]] 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", "2024-12-23 00:47:35.787953"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:47:35.788667"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.790302"], ["updated_at", "2024-12-23 00:47:35.790302"]] 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", "2024-12-23 00:47:35.791248"], ["id", 3]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:47:35.791957"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["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 23"], ["created_at", "2024-12-23 00:47:35.806746"], ["updated_at", "2024-12-23 00:47:35.806746"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:35.808785"], ["updated_at", "2024-12-23 00:47:35.808785"]] 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", "2024-12-23 00:47:35.810129"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:47:35.810976"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) 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.4ms) 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.2ms) TRUNCATE TABLE "has_states_states"  (0.3ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:47:49.145586"], ["updated_at", "2024-12-23 00:47:49.145586"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.155867"], ["updated_at", "2024-12-23 00:47:49.155867"]] 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 2"], ["created_at", "2024-12-23 00:47:49.168117"], ["updated_at", "2024-12-23 00:47:49.168117"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.170207"], ["updated_at", "2024-12-23 00:47:49.170207"]] 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 9"], ["created_at", "2024-12-23 00:47:49.186781"], ["updated_at", "2024-12-23 00:47:49.186781"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.188818"], ["updated_at", "2024-12-23 00:47:49.188818"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:47:49.192545"], ["updated_at", "2024-12-23 00:47:49.192545"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.194145"], ["updated_at", "2024-12-23 00:47:49.194145"]] 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 11"], ["created_at", "2024-12-23 00:47:49.198948"], ["updated_at", "2024-12-23 00:47:49.198948"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.201217"], ["updated_at", "2024-12-23 00:47:49.201217"]] 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 12"], ["created_at", "2024-12-23 00:47:49.204133"], ["updated_at", "2024-12-23 00:47:49.204133"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.205377"], ["updated_at", "2024-12-23 00:47:49.205377"]] 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 13"], ["created_at", "2024-12-23 00:47:49.207687"], ["updated_at", "2024-12-23 00:47:49.207687"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.216857"], ["updated_at", "2024-12-23 00:47:49.216857"]] 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 14"], ["created_at", "2024-12-23 00:47:49.220064"], ["updated_at", "2024-12-23 00:47:49.220064"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:47:49.222015"], ["updated_at", "2024-12-23 00:47:49.222015"]] 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 15"], ["created_at", "2024-12-23 00:47:49.223824"], ["updated_at", "2024-12-23 00:47:49.223824"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:47:49.225692"], ["updated_at", "2024-12-23 00:47:49.225692"]] 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 16"], ["created_at", "2024-12-23 00:47:49.227910"], ["updated_at", "2024-12-23 00:47:49.227910"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:47:49.229972"], ["updated_at", "2024-12-23 00:47:49.229972"]] 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 17"], ["created_at", "2024-12-23 00:47:49.234635"], ["updated_at", "2024-12-23 00:47:49.234635"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.236991"], ["updated_at", "2024-12-23 00:47:49.236991"]] TRANSACTION (0.1ms) 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 00:47:49.239457"], ["updated_at", "2024-12-23 00:47:49.239457"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.241220"], ["updated_at", "2024-12-23 00:47:49.241220"]] 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"."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 19"], ["created_at", "2024-12-23 00:47:49.244892"], ["updated_at", "2024-12-23 00:47:49.244892"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.247291"], ["updated_at", "2024-12-23 00:47:49.247291"]] 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", "2024-12-23 00:47:49.248790"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:47:49.250061"], ["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 20"], ["created_at", "2024-12-23 00:47:49.253334"], ["updated_at", "2024-12-23 00:47:49.253334"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.255360"], ["updated_at", "2024-12-23 00:47:49.255360"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:47:49.256430"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:47:49.257387"], ["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", "2024-12-23 00:47:49.258220"], ["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 21"], ["created_at", "2024-12-23 00:47:49.260817"], ["updated_at", "2024-12-23 00:47:49.260817"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.263045"], ["updated_at", "2024-12-23 00:47:49.263045"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:47:49.264419"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:47:49.265510"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.267567"], ["updated_at", "2024-12-23 00:47:49.267567"]] 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", "2024-12-23 00:47:49.268738"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:47:49.269609"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:47:49.270945"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.272147"], ["updated_at", "2024-12-23 00:47:49.272147"]] 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", "2024-12-23 00:47:49.273126"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:47:49.275472"], ["updated_at", "2024-12-23 00:47:49.275472"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.276823"], ["updated_at", "2024-12-23 00:47:49.276823"]] 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", "2024-12-23 00:47:49.277856"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:47:49.278584"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.280584"], ["updated_at", "2024-12-23 00:47:49.280584"]] 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", "2024-12-23 00:47:49.281952"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:47:49.283051"], ["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) SAVEPOINT active_record_1 HasStates::State Create (10.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.285108"], ["updated_at", "2024-12-23 00:47:49.285108"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:47:49.297612"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:47:49.299106"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:47:49.302378"], ["updated_at", "2024-12-23 00:47:49.302378"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:47:49.304268"], ["updated_at", "2024-12-23 00:47:49.304268"]] 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", "2024-12-23 00:47:49.305479"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:47:49.306965"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.2ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.1ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (15.1ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:48:14.427290"], ["updated_at", "2024-12-23 00:48:14.427290"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.434969"], ["updated_at", "2024-12-23 00:48:14.434969"]] 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 2"], ["created_at", "2024-12-23 00:48:14.445363"], ["updated_at", "2024-12-23 00:48:14.445363"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.447357"], ["updated_at", "2024-12-23 00:48:14.447357"]] 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 9"], ["created_at", "2024-12-23 00:48:14.461740"], ["updated_at", "2024-12-23 00:48:14.461740"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.463835"], ["updated_at", "2024-12-23 00:48:14.463835"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:48:14.467739"], ["updated_at", "2024-12-23 00:48:14.467739"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.469384"], ["updated_at", "2024-12-23 00:48:14.469384"]] 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", "2024-12-23 00:48:14.473178"], ["updated_at", "2024-12-23 00:48:14.473178"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.474423"], ["updated_at", "2024-12-23 00:48:14.474423"]] 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 12"], ["created_at", "2024-12-23 00:48:14.476601"], ["updated_at", "2024-12-23 00:48:14.476601"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.477788"], ["updated_at", "2024-12-23 00:48:14.477788"]] 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 13"], ["created_at", "2024-12-23 00:48:14.480153"], ["updated_at", "2024-12-23 00:48:14.480153"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.488759"], ["updated_at", "2024-12-23 00:48:14.488759"]] 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 14"], ["created_at", "2024-12-23 00:48:14.491525"], ["updated_at", "2024-12-23 00:48:14.491525"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:48:14.493545"], ["updated_at", "2024-12-23 00:48:14.493545"]] 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 15"], ["created_at", "2024-12-23 00:48:14.495738"], ["updated_at", "2024-12-23 00:48:14.495738"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:48:14.497671"], ["updated_at", "2024-12-23 00:48:14.497671"]] 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", "2024-12-23 00:48:14.500005"], ["updated_at", "2024-12-23 00:48:14.500005"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:48:14.501893"], ["updated_at", "2024-12-23 00:48:14.501893"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:48:14.505357"], ["updated_at", "2024-12-23 00:48:14.505357"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.507661"], ["updated_at", "2024-12-23 00:48:14.507661"]] 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 18"], ["created_at", "2024-12-23 00:48:14.509984"], ["updated_at", "2024-12-23 00:48:14.509984"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.512116"], ["updated_at", "2024-12-23 00:48:14.512116"]] 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"."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 19"], ["created_at", "2024-12-23 00:48:14.515359"], ["updated_at", "2024-12-23 00:48:14.515359"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.517464"], ["updated_at", "2024-12-23 00:48:14.517464"]] 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", "2024-12-23 00:48:14.519394"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:48:14.520768"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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 20"], ["created_at", "2024-12-23 00:48:14.523762"], ["updated_at", "2024-12-23 00:48:14.523762"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.525936"], ["updated_at", "2024-12-23 00:48:14.525936"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:48:14.527147"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:48:14.528162"], ["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", "2024-12-23 00:48:14.529037"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:48:14.531836"], ["updated_at", "2024-12-23 00:48:14.531836"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.533627"], ["updated_at", "2024-12-23 00:48:14.533627"]] 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", "2024-12-23 00:48:14.534816"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:48:14.535670"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.537678"], ["updated_at", "2024-12-23 00:48:14.537678"]] 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", "2024-12-23 00:48:14.538808"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:48:14.539685"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:48:14.541100"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.542620"], ["updated_at", "2024-12-23 00:48:14.542620"]] 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", "2024-12-23 00:48:14.543814"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:48:14.546241"], ["updated_at", "2024-12-23 00:48:14.546241"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.547710"], ["updated_at", "2024-12-23 00:48:14.547710"]] 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", "2024-12-23 00:48:14.549098"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:48:14.550171"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.552104"], ["updated_at", "2024-12-23 00:48:14.552104"]] 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", "2024-12-23 00:48:14.553186"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:48:14.554002"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.555851"], ["updated_at", "2024-12-23 00:48:14.555851"]] 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", "2024-12-23 00:48:14.556964"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:48:14.557688"], ["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 23"], ["created_at", "2024-12-23 00:48:14.560050"], ["updated_at", "2024-12-23 00:48:14.560050"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:48:14.562017"], ["updated_at", "2024-12-23 00:48:14.562017"]] 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", "2024-12-23 00:48:14.563964"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:48:14.564842"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (8.6ms) 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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:49:23.985580"], ["updated_at", "2024-12-23 00:49:23.985580"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:23.994709"], ["updated_at", "2024-12-23 00:49:23.994709"]] 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 2"], ["created_at", "2024-12-23 00:49:24.005146"], ["updated_at", "2024-12-23 00:49:24.005146"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.007364"], ["updated_at", "2024-12-23 00:49:24.007364"]] 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 9"], ["created_at", "2024-12-23 00:49:24.023453"], ["updated_at", "2024-12-23 00:49:24.023453"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.025756"], ["updated_at", "2024-12-23 00:49:24.025756"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-23 00:49:24.031575"], ["updated_at", "2024-12-23 00:49:24.031575"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.033294"], ["updated_at", "2024-12-23 00:49:24.033294"]] 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 11"], ["created_at", "2024-12-23 00:49:24.037369"], ["updated_at", "2024-12-23 00:49:24.037369"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.038914"], ["updated_at", "2024-12-23 00:49:24.038914"]] 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 12"], ["created_at", "2024-12-23 00:49:24.041281"], ["updated_at", "2024-12-23 00:49:24.041281"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.042829"], ["updated_at", "2024-12-23 00:49:24.042829"]] 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 13"], ["created_at", "2024-12-23 00:49:24.046195"], ["updated_at", "2024-12-23 00:49:24.046195"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.054998"], ["updated_at", "2024-12-23 00:49:24.054998"]] 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 14"], ["created_at", "2024-12-23 00:49:24.057937"], ["updated_at", "2024-12-23 00:49:24.057937"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:49:24.059856"], ["updated_at", "2024-12-23 00:49:24.059856"]] 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 15"], ["created_at", "2024-12-23 00:49:24.062004"], ["updated_at", "2024-12-23 00:49:24.062004"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:49:24.063733"], ["updated_at", "2024-12-23 00:49:24.063733"]] 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", "2024-12-23 00:49:24.065853"], ["updated_at", "2024-12-23 00:49:24.065853"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:49:24.067793"], ["updated_at", "2024-12-23 00:49:24.067793"]] 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", "2024-12-23 00:49:24.071393"], ["updated_at", "2024-12-23 00:49:24.071393"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.072937"], ["updated_at", "2024-12-23 00:49:24.072937"]] 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 18"], ["created_at", "2024-12-23 00:49:24.074953"], ["updated_at", "2024-12-23 00:49:24.074953"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.076561"], ["updated_at", "2024-12-23 00:49:24.076561"]] 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"."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 19"], ["created_at", "2024-12-23 00:49:24.079561"], ["updated_at", "2024-12-23 00:49:24.079561"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.081326"], ["updated_at", "2024-12-23 00:49:24.081326"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:49:24.082865"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:49:24.084300"], ["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 20"], ["created_at", "2024-12-23 00:49:24.087562"], ["updated_at", "2024-12-23 00:49:24.087562"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.089648"], ["updated_at", "2024-12-23 00:49:24.089648"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:49:24.090773"], ["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", "2024-12-23 00:49:24.091644"], ["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", "2024-12-23 00:49:24.092544"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:49:24.095630"], ["updated_at", "2024-12-23 00:49:24.095630"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.097810"], ["updated_at", "2024-12-23 00:49:24.097810"]] 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", "2024-12-23 00:49:24.098976"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:49:24.099933"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.101832"], ["updated_at", "2024-12-23 00:49:24.101832"]] 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", "2024-12-23 00:49:24.103280"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:49:24.104334"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:49:24.105827"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.107179"], ["updated_at", "2024-12-23 00:49:24.107179"]] 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", "2024-12-23 00:49:24.108197"], ["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.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 22"], ["created_at", "2024-12-23 00:49:24.111144"], ["updated_at", "2024-12-23 00:49:24.111144"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.112939"], ["updated_at", "2024-12-23 00:49:24.112939"]] 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", "2024-12-23 00:49:24.114064"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:49:24.114819"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.116905"], ["updated_at", "2024-12-23 00:49:24.116905"]] 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", "2024-12-23 00:49:24.118355"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:49:24.119467"], ["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) SAVEPOINT active_record_1 HasStates::State Create (11.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.121471"], ["updated_at", "2024-12-23 00:49:24.121471"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:49:24.134284"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:49:24.135669"], ["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 23"], ["created_at", "2024-12-23 00:49:24.138630"], ["updated_at", "2024-12-23 00:49:24.138630"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:49:24.140436"], ["updated_at", "2024-12-23 00:49:24.140436"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (1.2ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:49:24.141601"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:49:24.143503"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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"  (15.1ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:50:58.210633"], ["updated_at", "2024-12-23 00:50:58.210633"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.217619"], ["updated_at", "2024-12-23 00:50:58.217619"]] 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 2"], ["created_at", "2024-12-23 00:50:58.226539"], ["updated_at", "2024-12-23 00:50:58.226539"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.228590"], ["updated_at", "2024-12-23 00:50:58.228590"]] 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 (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:50:58.242890"], ["updated_at", "2024-12-23 00:50:58.242890"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.245215"], ["updated_at", "2024-12-23 00:50:58.245215"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 00:50:58.249707"], ["updated_at", "2024-12-23 00:50:58.249707"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.251482"], ["updated_at", "2024-12-23 00:50:58.251482"]] 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 11"], ["created_at", "2024-12-23 00:50:58.255602"], ["updated_at", "2024-12-23 00:50:58.255602"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.257496"], ["updated_at", "2024-12-23 00:50:58.257496"]] 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 12"], ["created_at", "2024-12-23 00:50:58.260354"], ["updated_at", "2024-12-23 00:50:58.260354"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.262067"], ["updated_at", "2024-12-23 00:50:58.262067"]] 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 13"], ["created_at", "2024-12-23 00:50:58.264757"], ["updated_at", "2024-12-23 00:50:58.264757"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.273364"], ["updated_at", "2024-12-23 00:50:58.273364"]] 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 14"], ["created_at", "2024-12-23 00:50:58.277637"], ["updated_at", "2024-12-23 00:50:58.277637"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:50:58.279807"], ["updated_at", "2024-12-23 00:50:58.279807"]] 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 15"], ["created_at", "2024-12-23 00:50:58.281966"], ["updated_at", "2024-12-23 00:50:58.281966"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:50:58.283508"], ["updated_at", "2024-12-23 00:50:58.283508"]] 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", "2024-12-23 00:50:58.285367"], ["updated_at", "2024-12-23 00:50:58.285367"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:50:58.286795"], ["updated_at", "2024-12-23 00:50:58.286795"]] 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 17"], ["created_at", "2024-12-23 00:50:58.288655"], ["updated_at", "2024-12-23 00:50:58.288655"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.290948"], ["updated_at", "2024-12-23 00:50:58.290948"]] 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 18"], ["created_at", "2024-12-23 00:50:58.293574"], ["updated_at", "2024-12-23 00:50:58.293574"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.295941"], ["updated_at", "2024-12-23 00:50:58.295941"]] 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"."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 19"], ["created_at", "2024-12-23 00:50:58.299435"], ["updated_at", "2024-12-23 00:50:58.299435"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.301270"], ["updated_at", "2024-12-23 00:50:58.301270"]] 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", "2024-12-23 00:50:58.302797"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:50:58.303885"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 00:50:58.307065"], ["updated_at", "2024-12-23 00:50:58.307065"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.309654"], ["updated_at", "2024-12-23 00:50:58.309654"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:50:58.310823"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.6ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:50:58.323587"], ["id", 1]] TRANSACTION (0.1ms) 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", "pending"], ["updated_at", "2024-12-23 00:50:58.325839"], ["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 21"], ["created_at", "2024-12-23 00:50:58.329188"], ["updated_at", "2024-12-23 00:50:58.329188"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.331541"], ["updated_at", "2024-12-23 00:50:58.331541"]] 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", "2024-12-23 00:50:58.333063"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:50:58.334105"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.337270"], ["updated_at", "2024-12-23 00:50:58.337270"]] 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", "2024-12-23 00:50:58.338862"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:50:58.340033"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:50:58.341961"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.343684"], ["updated_at", "2024-12-23 00:50:58.343684"]] 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", "2024-12-23 00:50:58.344998"], ["id", 3]] 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) 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 22"], ["created_at", "2024-12-23 00:50:58.349169"], ["updated_at", "2024-12-23 00:50:58.349169"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.352287"], ["updated_at", "2024-12-23 00:50:58.352287"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:50:58.354125"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:50:58.355454"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.359092"], ["updated_at", "2024-12-23 00:50:58.359092"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:50:58.362094"], ["id", 2]] User Update (0.6ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:50:58.364402"], ["id", 1]] TRANSACTION (0.2ms) 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.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.369807"], ["updated_at", "2024-12-23 00:50:58.369807"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:50:58.372510"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:50:58.374345"], ["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.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 23"], ["created_at", "2024-12-23 00:50:58.378658"], ["updated_at", "2024-12-23 00:50:58.378658"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:50:58.382028"], ["updated_at", "2024-12-23 00:50:58.382028"]] 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", "2024-12-23 00:50:58.384180"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:50:58.385499"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.3ms) 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.2ms) 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.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.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 1"], ["created_at", "2024-12-23 00:55:30.181489"], ["updated_at", "2024-12-23 00:55:30.181489"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.189275"], ["updated_at", "2024-12-23 00:55:30.189275"]] 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 2"], ["created_at", "2024-12-23 00:55:30.198914"], ["updated_at", "2024-12-23 00:55:30.198914"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.200890"], ["updated_at", "2024-12-23 00:55:30.200890"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 00:55:30.217530"], ["updated_at", "2024-12-23 00:55:30.217530"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.219841"], ["updated_at", "2024-12-23 00:55:30.219841"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:55:30.224058"], ["updated_at", "2024-12-23 00:55:30.224058"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.226018"], ["updated_at", "2024-12-23 00:55:30.226018"]] 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 11"], ["created_at", "2024-12-23 00:55:30.229768"], ["updated_at", "2024-12-23 00:55:30.229768"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.231117"], ["updated_at", "2024-12-23 00:55:30.231117"]] 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 12"], ["created_at", "2024-12-23 00:55:30.233296"], ["updated_at", "2024-12-23 00:55:30.233296"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.234293"], ["updated_at", "2024-12-23 00:55:30.234293"]] 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 13"], ["created_at", "2024-12-23 00:55:30.236510"], ["updated_at", "2024-12-23 00:55:30.236510"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.245837"], ["updated_at", "2024-12-23 00:55:30.245837"]] 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 14"], ["created_at", "2024-12-23 00:55:30.249003"], ["updated_at", "2024-12-23 00:55:30.249003"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:30.250753"], ["updated_at", "2024-12-23 00:55:30.250753"]] 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 15"], ["created_at", "2024-12-23 00:55:30.253006"], ["updated_at", "2024-12-23 00:55:30.253006"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:30.255632"], ["updated_at", "2024-12-23 00:55:30.255632"]] 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 16"], ["created_at", "2024-12-23 00:55:30.258519"], ["updated_at", "2024-12-23 00:55:30.258519"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:30.261161"], ["updated_at", "2024-12-23 00:55:30.261161"]] 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 17"], ["created_at", "2024-12-23 00:55:30.265522"], ["updated_at", "2024-12-23 00:55:30.265522"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.267648"], ["updated_at", "2024-12-23 00:55:30.267648"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 00:55:30.270494"], ["updated_at", "2024-12-23 00:55:30.270494"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.273794"], ["updated_at", "2024-12-23 00:55:30.273794"]] 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"."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 19"], ["created_at", "2024-12-23 00:55:30.277839"], ["updated_at", "2024-12-23 00:55:30.277839"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.280065"], ["updated_at", "2024-12-23 00:55:30.280065"]] 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", "2024-12-23 00:55:30.281409"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:55:30.282630"], ["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.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 20"], ["created_at", "2024-12-23 00:55:30.286405"], ["updated_at", "2024-12-23 00:55:30.286405"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.288847"], ["updated_at", "2024-12-23 00:55:30.288847"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:55:30.290004"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 00:55:30.291123"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:55:30.292183"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:55:30.294981"], ["updated_at", "2024-12-23 00:55:30.294981"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.296874"], ["updated_at", "2024-12-23 00:55:30.296874"]] 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", "2024-12-23 00:55:30.298085"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:55:30.298851"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.300629"], ["updated_at", "2024-12-23 00:55:30.300629"]] 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", "2024-12-23 00:55:30.302222"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:55:30.303342"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:55:30.305047"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.306900"], ["updated_at", "2024-12-23 00:55:30.306900"]] 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", "2024-12-23 00:55:30.308365"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:55:30.311215"], ["updated_at", "2024-12-23 00:55:30.311215"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.312891"], ["updated_at", "2024-12-23 00:55:30.312891"]] 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", "2024-12-23 00:55:30.314009"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:55:30.314806"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.316670"], ["updated_at", "2024-12-23 00:55:30.316670"]] 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", "2024-12-23 00:55:30.317723"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:55:30.318573"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.320632"], ["updated_at", "2024-12-23 00:55:30.320632"]] 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", "2024-12-23 00:55:30.321906"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:55:30.322795"], ["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 23"], ["created_at", "2024-12-23 00:55:30.325540"], ["updated_at", "2024-12-23 00:55:30.325540"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:30.327373"], ["updated_at", "2024-12-23 00:55:30.327373"]] TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:55:30.339550"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:55:30.341336"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (15.0ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 00:55:39.220413"], ["updated_at", "2024-12-23 00:55:39.220413"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.227693"], ["updated_at", "2024-12-23 00:55:39.227693"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 00:55:39.239952"], ["updated_at", "2024-12-23 00:55:39.239952"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.242028"], ["updated_at", "2024-12-23 00:55:39.242028"]] 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 9"], ["created_at", "2024-12-23 00:55:39.258237"], ["updated_at", "2024-12-23 00:55:39.258237"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.260475"], ["updated_at", "2024-12-23 00:55:39.260475"]] 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"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:55:39.264626"], ["updated_at", "2024-12-23 00:55:39.264626"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.266689"], ["updated_at", "2024-12-23 00:55:39.266689"]] 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 11"], ["created_at", "2024-12-23 00:55:39.271796"], ["updated_at", "2024-12-23 00:55:39.271796"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.273681"], ["updated_at", "2024-12-23 00:55:39.273681"]] 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 12"], ["created_at", "2024-12-23 00:55:39.276273"], ["updated_at", "2024-12-23 00:55:39.276273"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.277645"], ["updated_at", "2024-12-23 00:55:39.277645"]] 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 13"], ["created_at", "2024-12-23 00:55:39.279744"], ["updated_at", "2024-12-23 00:55:39.279744"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.288412"], ["updated_at", "2024-12-23 00:55:39.288412"]] 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 14"], ["created_at", "2024-12-23 00:55:39.291950"], ["updated_at", "2024-12-23 00:55:39.291950"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:39.294163"], ["updated_at", "2024-12-23 00:55:39.294163"]] 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 15"], ["created_at", "2024-12-23 00:55:39.296620"], ["updated_at", "2024-12-23 00:55:39.296620"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:39.298638"], ["updated_at", "2024-12-23 00:55:39.298638"]] TRANSACTION (0.1ms) 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 16"], ["created_at", "2024-12-23 00:55:39.301130"], ["updated_at", "2024-12-23 00:55:39.301130"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:39.303397"], ["updated_at", "2024-12-23 00:55:39.303397"]] 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 17"], ["created_at", "2024-12-23 00:55:39.307527"], ["updated_at", "2024-12-23 00:55:39.307527"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.309527"], ["updated_at", "2024-12-23 00:55:39.309527"]] 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 18"], ["created_at", "2024-12-23 00:55:39.311729"], ["updated_at", "2024-12-23 00:55:39.311729"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.313678"], ["updated_at", "2024-12-23 00:55:39.313678"]] 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"."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 19"], ["created_at", "2024-12-23 00:55:39.317108"], ["updated_at", "2024-12-23 00:55:39.317108"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.319286"], ["updated_at", "2024-12-23 00:55:39.319286"]] 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", "2024-12-23 00:55:39.320956"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:55:39.322171"], ["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 20"], ["created_at", "2024-12-23 00:55:39.324778"], ["updated_at", "2024-12-23 00:55:39.324778"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.326715"], ["updated_at", "2024-12-23 00:55:39.326715"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:55:39.327595"], ["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", "2024-12-23 00:55:39.328449"], ["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", "2024-12-23 00:55:39.329247"], ["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 21"], ["created_at", "2024-12-23 00:55:39.332396"], ["updated_at", "2024-12-23 00:55:39.332396"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.334947"], ["updated_at", "2024-12-23 00:55:39.334947"]] 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", "2024-12-23 00:55:39.336847"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:55:39.337955"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.340629"], ["updated_at", "2024-12-23 00:55:39.340629"]] 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", "2024-12-23 00:55:39.342052"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:55:39.342968"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:55:39.344520"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.346262"], ["updated_at", "2024-12-23 00:55:39.346262"]] 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", "2024-12-23 00:55:39.347498"], ["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.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 22"], ["created_at", "2024-12-23 00:55:39.350273"], ["updated_at", "2024-12-23 00:55:39.350273"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.352497"], ["updated_at", "2024-12-23 00:55:39.352497"]] 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", "2024-12-23 00:55:39.354010"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:55:39.355109"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.357422"], ["updated_at", "2024-12-23 00:55:39.357422"]] 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", "2024-12-23 00:55:39.358533"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:55:39.359495"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.361557"], ["updated_at", "2024-12-23 00:55:39.361557"]] 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", "2024-12-23 00:55:39.362777"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:55:39.363646"], ["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.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 23"], ["created_at", "2024-12-23 00:55:39.366965"], ["updated_at", "2024-12-23 00:55:39.366965"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:39.368933"], ["updated_at", "2024-12-23 00:55:39.368933"]] 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", "2024-12-23 00:55:39.370145"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:55:39.371161"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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"  (15.1ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:55:45.995234"], ["updated_at", "2024-12-23 00:55:45.995234"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.003669"], ["updated_at", "2024-12-23 00:55:46.003669"]] 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 2"], ["created_at", "2024-12-23 00:55:46.013167"], ["updated_at", "2024-12-23 00:55:46.013167"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.015286"], ["updated_at", "2024-12-23 00:55:46.015286"]] 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 9"], ["created_at", "2024-12-23 00:55:46.028951"], ["updated_at", "2024-12-23 00:55:46.028951"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.031011"], ["updated_at", "2024-12-23 00:55:46.031011"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] 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 10"], ["created_at", "2024-12-23 00:55:46.034967"], ["updated_at", "2024-12-23 00:55:46.034967"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.037045"], ["updated_at", "2024-12-23 00:55:46.037045"]] 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 11"], ["created_at", "2024-12-23 00:55:46.042322"], ["updated_at", "2024-12-23 00:55:46.042322"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.044270"], ["updated_at", "2024-12-23 00:55:46.044270"]] 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 12"], ["created_at", "2024-12-23 00:55:46.047287"], ["updated_at", "2024-12-23 00:55:46.047287"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.048879"], ["updated_at", "2024-12-23 00:55:46.048879"]] 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 13"], ["created_at", "2024-12-23 00:55:46.051479"], ["updated_at", "2024-12-23 00:55:46.051479"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.060701"], ["updated_at", "2024-12-23 00:55:46.060701"]] 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 14"], ["created_at", "2024-12-23 00:55:46.064554"], ["updated_at", "2024-12-23 00:55:46.064554"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:46.066785"], ["updated_at", "2024-12-23 00:55:46.066785"]] 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 15"], ["created_at", "2024-12-23 00:55:46.069106"], ["updated_at", "2024-12-23 00:55:46.069106"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:46.071822"], ["updated_at", "2024-12-23 00:55:46.071822"]] 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 16"], ["created_at", "2024-12-23 00:55:46.075656"], ["updated_at", "2024-12-23 00:55:46.075656"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:55:46.077937"], ["updated_at", "2024-12-23 00:55:46.077937"]] 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 17"], ["created_at", "2024-12-23 00:55:46.082036"], ["updated_at", "2024-12-23 00:55:46.082036"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.084321"], ["updated_at", "2024-12-23 00:55:46.084321"]] 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 18"], ["created_at", "2024-12-23 00:55:46.086650"], ["updated_at", "2024-12-23 00:55:46.086650"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.088491"], ["updated_at", "2024-12-23 00:55:46.088491"]] 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"."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 19"], ["created_at", "2024-12-23 00:55:46.091877"], ["updated_at", "2024-12-23 00:55:46.091877"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.093748"], ["updated_at", "2024-12-23 00:55:46.093748"]] 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", "2024-12-23 00:55:46.095090"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:55:46.096208"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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 20"], ["created_at", "2024-12-23 00:55:46.099364"], ["updated_at", "2024-12-23 00:55:46.099364"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.101373"], ["updated_at", "2024-12-23 00:55:46.101373"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:55:46.102509"], ["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", "2024-12-23 00:55:46.103396"], ["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", "2024-12-23 00:55:46.104352"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:55:46.106949"], ["updated_at", "2024-12-23 00:55:46.106949"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.108991"], ["updated_at", "2024-12-23 00:55:46.108991"]] 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", "2024-12-23 00:55:46.110355"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:55:46.111297"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.113712"], ["updated_at", "2024-12-23 00:55:46.113712"]] 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", "2024-12-23 00:55:46.115507"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:55:46.116618"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:55:46.118225"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.119686"], ["updated_at", "2024-12-23 00:55:46.119686"]] 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", "2024-12-23 00:55:46.120785"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:55:46.123217"], ["updated_at", "2024-12-23 00:55:46.123217"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.125045"], ["updated_at", "2024-12-23 00:55:46.125045"]] 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", "2024-12-23 00:55:46.126293"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:55:46.127200"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.129701"], ["updated_at", "2024-12-23 00:55:46.129701"]] 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", "2024-12-23 00:55:46.131437"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:55:46.132498"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.134530"], ["updated_at", "2024-12-23 00:55:46.134530"]] 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", "2024-12-23 00:55:46.135781"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:55:46.136490"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 00:55:46.139046"], ["updated_at", "2024-12-23 00:55:46.139046"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:55:46.140768"], ["updated_at", "2024-12-23 00:55:46.140768"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.6ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:55:46.152798"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:55:46.154653"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.1ms) PRAGMA foreign_keys SQL (0.0ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.1ms) PRAGMA foreign_keys = OFF  (0.3ms) TRUNCATE TABLE "users"  (15.1ms) 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.4ms) 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';  (7.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:56:00.835110"], ["updated_at", "2024-12-23 00:56:00.835110"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.843165"], ["updated_at", "2024-12-23 00:56:00.843165"]] 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 2"], ["created_at", "2024-12-23 00:56:00.852468"], ["updated_at", "2024-12-23 00:56:00.852468"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.854442"], ["updated_at", "2024-12-23 00:56:00.854442"]] 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 9"], ["created_at", "2024-12-23 00:56:00.868396"], ["updated_at", "2024-12-23 00:56:00.868396"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.870290"], ["updated_at", "2024-12-23 00:56:00.870290"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 00:56:00.873626"], ["updated_at", "2024-12-23 00:56:00.873626"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.874857"], ["updated_at", "2024-12-23 00:56:00.874857"]] 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 11"], ["created_at", "2024-12-23 00:56:00.878905"], ["updated_at", "2024-12-23 00:56:00.878905"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.880448"], ["updated_at", "2024-12-23 00:56:00.880448"]] 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 12"], ["created_at", "2024-12-23 00:56:00.882836"], ["updated_at", "2024-12-23 00:56:00.882836"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.884024"], ["updated_at", "2024-12-23 00:56:00.884024"]] 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 13"], ["created_at", "2024-12-23 00:56:00.885895"], ["updated_at", "2024-12-23 00:56:00.885895"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.894373"], ["updated_at", "2024-12-23 00:56:00.894373"]] 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 14"], ["created_at", "2024-12-23 00:56:00.897883"], ["updated_at", "2024-12-23 00:56:00.897883"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:56:00.899888"], ["updated_at", "2024-12-23 00:56:00.899888"]] 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 15"], ["created_at", "2024-12-23 00:56:00.901761"], ["updated_at", "2024-12-23 00:56:00.901761"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:56:00.903395"], ["updated_at", "2024-12-23 00:56:00.903395"]] 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", "2024-12-23 00:56:00.905817"], ["updated_at", "2024-12-23 00:56:00.905817"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:56:00.907534"], ["updated_at", "2024-12-23 00:56:00.907534"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 00:56:00.911331"], ["updated_at", "2024-12-23 00:56:00.911331"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.914038"], ["updated_at", "2024-12-23 00:56:00.914038"]] 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 18"], ["created_at", "2024-12-23 00:56:00.916681"], ["updated_at", "2024-12-23 00:56:00.916681"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.918489"], ["updated_at", "2024-12-23 00:56:00.918489"]] 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"."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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 00:56:00.921516"], ["updated_at", "2024-12-23 00:56:00.921516"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.923233"], ["updated_at", "2024-12-23 00:56:00.923233"]] 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", "2024-12-23 00:56:00.924366"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:56:00.925367"], ["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.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 20"], ["created_at", "2024-12-23 00:56:00.928846"], ["updated_at", "2024-12-23 00:56:00.928846"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.931274"], ["updated_at", "2024-12-23 00:56:00.931274"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:56:00.932377"], ["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", "2024-12-23 00:56:00.933332"], ["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", "2024-12-23 00:56:00.934236"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:56:00.936751"], ["updated_at", "2024-12-23 00:56:00.936751"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.938272"], ["updated_at", "2024-12-23 00:56:00.938272"]] 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", "2024-12-23 00:56:00.939273"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:56:00.940009"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.941694"], ["updated_at", "2024-12-23 00:56:00.941694"]] 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", "2024-12-23 00:56:00.942730"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:56:00.943549"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:56:00.945089"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.946449"], ["updated_at", "2024-12-23 00:56:00.946449"]] 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", "2024-12-23 00:56:00.947623"], ["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.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 22"], ["created_at", "2024-12-23 00:56:00.950322"], ["updated_at", "2024-12-23 00:56:00.950322"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.952168"], ["updated_at", "2024-12-23 00:56:00.952168"]] 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", "2024-12-23 00:56:00.953299"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:56:00.954060"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.955864"], ["updated_at", "2024-12-23 00:56:00.955864"]] 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", "2024-12-23 00:56:00.956924"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:56:00.957703"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.959312"], ["updated_at", "2024-12-23 00:56:00.959312"]] 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", "2024-12-23 00:56:00.960321"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:56:00.960975"], ["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.1ms) 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 23"], ["created_at", "2024-12-23 00:56:00.974106"], ["updated_at", "2024-12-23 00:56:00.974106"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:00.976895"], ["updated_at", "2024-12-23 00:56:00.976895"]] 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", "2024-12-23 00:56:00.978506"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:56:00.979551"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.5ms) 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.9ms) 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.3ms) TRUNCATE TABLE "has_states_states"  (0.1ms) DELETE FROM "has_states_states"  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.3ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 00:56:29.134395"], ["updated_at", "2024-12-23 00:56:29.134395"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.142904"], ["updated_at", "2024-12-23 00:56:29.142904"]] 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 2"], ["created_at", "2024-12-23 00:56:29.152767"], ["updated_at", "2024-12-23 00:56:29.152767"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.154841"], ["updated_at", "2024-12-23 00:56:29.154841"]] 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 9"], ["created_at", "2024-12-23 00:56:29.171273"], ["updated_at", "2024-12-23 00:56:29.171273"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.173330"], ["updated_at", "2024-12-23 00:56:29.173330"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 00:56:29.177508"], ["updated_at", "2024-12-23 00:56:29.177508"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.179062"], ["updated_at", "2024-12-23 00:56:29.179062"]] 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", "2024-12-23 00:56:29.182850"], ["updated_at", "2024-12-23 00:56:29.182850"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.184090"], ["updated_at", "2024-12-23 00:56:29.184090"]] 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", "2024-12-23 00:56:29.187423"], ["updated_at", "2024-12-23 00:56:29.187423"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.189237"], ["updated_at", "2024-12-23 00:56:29.189237"]] 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 13"], ["created_at", "2024-12-23 00:56:29.192406"], ["updated_at", "2024-12-23 00:56:29.192406"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.201347"], ["updated_at", "2024-12-23 00:56:29.201347"]] 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 14"], ["created_at", "2024-12-23 00:56:29.205317"], ["updated_at", "2024-12-23 00:56:29.205317"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:56:29.208173"], ["updated_at", "2024-12-23 00:56:29.208173"]] 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 15"], ["created_at", "2024-12-23 00:56:29.210818"], ["updated_at", "2024-12-23 00:56:29.210818"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:56:29.212759"], ["updated_at", "2024-12-23 00:56:29.212759"]] 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", "2024-12-23 00:56:29.214766"], ["updated_at", "2024-12-23 00:56:29.214766"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 00:56:29.216322"], ["updated_at", "2024-12-23 00:56:29.216322"]] 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 17"], ["created_at", "2024-12-23 00:56:29.220333"], ["updated_at", "2024-12-23 00:56:29.220333"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.222590"], ["updated_at", "2024-12-23 00:56:29.222590"]] 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 18"], ["created_at", "2024-12-23 00:56:29.225613"], ["updated_at", "2024-12-23 00:56:29.225613"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.227359"], ["updated_at", "2024-12-23 00:56:29.227359"]] 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"."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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 00:56:29.230637"], ["updated_at", "2024-12-23 00:56:29.230637"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.232677"], ["updated_at", "2024-12-23 00:56:29.232677"]] 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", "2024-12-23 00:56:29.233882"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:56:29.234917"], ["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.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 20"], ["created_at", "2024-12-23 00:56:29.238316"], ["updated_at", "2024-12-23 00:56:29.238316"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.240857"], ["updated_at", "2024-12-23 00:56:29.240857"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 00:56:29.242153"], ["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", "2024-12-23 00:56:29.243111"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 00:56:29.243941"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 00:56:29.247103"], ["updated_at", "2024-12-23 00:56:29.247103"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.248771"], ["updated_at", "2024-12-23 00:56:29.248771"]] 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", "2024-12-23 00:56:29.249795"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:56:29.250555"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.253205"], ["updated_at", "2024-12-23 00:56:29.253205"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:56:29.255360"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:56:29.256724"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 00:56:29.258555"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.260023"], ["updated_at", "2024-12-23 00:56:29.260023"]] 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", "2024-12-23 00:56:29.261243"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 00:56:29.263678"], ["updated_at", "2024-12-23 00:56:29.263678"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.265278"], ["updated_at", "2024-12-23 00:56:29.265278"]] 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", "2024-12-23 00:56:29.266505"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 00:56:29.267194"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.268800"], ["updated_at", "2024-12-23 00:56:29.268800"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 00:56:29.270982"], ["id", 2]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 00:56:29.272997"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.277508"], ["updated_at", "2024-12-23 00:56:29.277508"]] 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", "2024-12-23 00:56:29.279594"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 00:56:29.280565"], ["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.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 23"], ["created_at", "2024-12-23 00:56:29.283502"], ["updated_at", "2024-12-23 00:56:29.283502"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 00:56:29.296618"], ["updated_at", "2024-12-23 00:56:29.296618"]] 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", "2024-12-23 00:56:29.298766"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 00:56:29.299793"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.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.1ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.1ms) PRAGMA defer_foreign_keys = 0  (0.0ms) PRAGMA foreign_keys = 1 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 1"], ["created_at", "2024-12-23 01:05:26.235193"], ["updated_at", "2024-12-23 01:05:26.235193"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.241917"], ["updated_at", "2024-12-23 01:05:26.241917"]] 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 2"], ["created_at", "2024-12-23 01:05:26.251020"], ["updated_at", "2024-12-23 01:05:26.251020"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.252969"], ["updated_at", "2024-12-23 01:05:26.252969"]] 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 9"], ["created_at", "2024-12-23 01:05:26.267214"], ["updated_at", "2024-12-23 01:05:26.267214"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.269129"], ["updated_at", "2024-12-23 01:05:26.269129"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 01:05:26.272614"], ["updated_at", "2024-12-23 01:05:26.272614"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.274114"], ["updated_at", "2024-12-23 01:05:26.274114"]] 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 11"], ["created_at", "2024-12-23 01:05:26.278650"], ["updated_at", "2024-12-23 01:05:26.278650"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.280245"], ["updated_at", "2024-12-23 01:05:26.280245"]] 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 12"], ["created_at", "2024-12-23 01:05:26.282744"], ["updated_at", "2024-12-23 01:05:26.282744"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.284129"], ["updated_at", "2024-12-23 01:05:26.284129"]] 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 13"], ["created_at", "2024-12-23 01:05:26.287296"], ["updated_at", "2024-12-23 01:05:26.287296"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.295744"], ["updated_at", "2024-12-23 01:05:26.295744"]] 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 14"], ["created_at", "2024-12-23 01:05:26.298775"], ["updated_at", "2024-12-23 01:05:26.298775"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:05:26.300856"], ["updated_at", "2024-12-23 01:05:26.300856"]] 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 15"], ["created_at", "2024-12-23 01:05:26.303009"], ["updated_at", "2024-12-23 01:05:26.303009"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:05:26.305903"], ["updated_at", "2024-12-23 01:05:26.305903"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 01:05:26.312264"], ["updated_at", "2024-12-23 01:05:26.312264"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:05:26.316808"], ["updated_at", "2024-12-23 01:05:26.316808"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 01:05:26.321550"], ["updated_at", "2024-12-23 01:05:26.321550"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.324896"], ["updated_at", "2024-12-23 01:05:26.324896"]] TRANSACTION (0.1ms) 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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 01:05:26.328715"], ["updated_at", "2024-12-23 01:05:26.328715"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.331537"], ["updated_at", "2024-12-23 01:05:26.331537"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 19"], ["created_at", "2024-12-23 01:05:26.336906"], ["updated_at", "2024-12-23 01:05:26.336906"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.340514"], ["updated_at", "2024-12-23 01:05:26.340514"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.343431"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:05:26.345364"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 01:05:26.349956"], ["updated_at", "2024-12-23 01:05:26.349956"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.354490"], ["updated_at", "2024-12-23 01:05:26.354490"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:05:26.357101"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (20.7ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 01:05:26.358909"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.7ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 01:05:26.381726"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 01:05:26.389310"], ["updated_at", "2024-12-23 01:05:26.389310"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.395032"], ["updated_at", "2024-12-23 01:05:26.395032"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.6ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.398420"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:05:26.400672"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.406331"], ["updated_at", "2024-12-23 01:05:26.406331"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.409191"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:05:26.411371"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:05:26.414209"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.416632"], ["updated_at", "2024-12-23 01:05:26.416632"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (1.1ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.418927"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 01:05:26.423796"], ["updated_at", "2024-12-23 01:05:26.423796"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.427497"], ["updated_at", "2024-12-23 01:05:26.427497"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.429909"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:05:26.431704"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.435044"], ["updated_at", "2024-12-23 01:05:26.435044"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.437086"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:05:26.439242"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.442896"], ["updated_at", "2024-12-23 01:05:26.442896"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.445456"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:05:26.447457"], ["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.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (1.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 01:05:26.451261"], ["updated_at", "2024-12-23 01:05:26.451261"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:05:26.454890"], ["updated_at", "2024-12-23 01:05:26.454890"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:05:26.456791"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:05:26.458187"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.3ms) ROLLBACK TRANSACTION SQL (3.1ms) 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.7ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 01:12:34.035851"], ["updated_at", "2024-12-23 01:12:34.035851"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.043047"], ["updated_at", "2024-12-23 01:12:34.043047"]] 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 2"], ["created_at", "2024-12-23 01:12:34.051672"], ["updated_at", "2024-12-23 01:12:34.051672"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.053456"], ["updated_at", "2024-12-23 01:12:34.053456"]] 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 9"], ["created_at", "2024-12-23 01:12:34.067385"], ["updated_at", "2024-12-23 01:12:34.067385"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.069300"], ["updated_at", "2024-12-23 01:12:34.069300"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 01:12:34.072865"], ["updated_at", "2024-12-23 01:12:34.072865"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.074258"], ["updated_at", "2024-12-23 01:12:34.074258"]] 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 11"], ["created_at", "2024-12-23 01:12:34.078000"], ["updated_at", "2024-12-23 01:12:34.078000"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.079250"], ["updated_at", "2024-12-23 01:12:34.079250"]] 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 12"], ["created_at", "2024-12-23 01:12:34.081450"], ["updated_at", "2024-12-23 01:12:34.081450"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.082723"], ["updated_at", "2024-12-23 01:12:34.082723"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-23 01:12:34.085385"], ["updated_at", "2024-12-23 01:12:34.085385"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.093512"], ["updated_at", "2024-12-23 01:12:34.093512"]] 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 14"], ["created_at", "2024-12-23 01:12:34.096308"], ["updated_at", "2024-12-23 01:12:34.096308"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:12:34.098910"], ["updated_at", "2024-12-23 01:12:34.098910"]] 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 15"], ["created_at", "2024-12-23 01:12:34.101225"], ["updated_at", "2024-12-23 01:12:34.101225"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:12:34.102882"], ["updated_at", "2024-12-23 01:12:34.102882"]] 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", "2024-12-23 01:12:34.104744"], ["updated_at", "2024-12-23 01:12:34.104744"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:12:34.106117"], ["updated_at", "2024-12-23 01:12:34.106117"]] 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", "2024-12-23 01:12:34.107868"], ["updated_at", "2024-12-23 01:12:34.107868"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.120221"], ["updated_at", "2024-12-23 01:12:34.120221"]] 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 18"], ["created_at", "2024-12-23 01:12:34.123762"], ["updated_at", "2024-12-23 01:12:34.123762"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.126121"], ["updated_at", "2024-12-23 01:12:34.126121"]] 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"."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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 01:12:34.130247"], ["updated_at", "2024-12-23 01:12:34.130247"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.132840"], ["updated_at", "2024-12-23 01:12:34.132840"]] 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", "2024-12-23 01:12:34.134294"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:12:34.135560"], ["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 20"], ["created_at", "2024-12-23 01:12:34.138912"], ["updated_at", "2024-12-23 01:12:34.138912"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.141290"], ["updated_at", "2024-12-23 01:12:34.141290"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:12:34.142991"], ["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", "2024-12-23 01:12:34.143931"], ["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", "2024-12-23 01:12:34.144828"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 01:12:34.147496"], ["updated_at", "2024-12-23 01:12:34.147496"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.149124"], ["updated_at", "2024-12-23 01:12:34.149124"]] 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", "2024-12-23 01:12:34.150371"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:12:34.151314"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.154392"], ["updated_at", "2024-12-23 01:12:34.154392"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:12:34.157846"], ["id", 2]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:12:34.160142"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.4ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:12:34.163812"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.166779"], ["updated_at", "2024-12-23 01:12:34.166779"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:12:34.169501"], ["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.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 22"], ["created_at", "2024-12-23 01:12:34.174207"], ["updated_at", "2024-12-23 01:12:34.174207"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.176995"], ["updated_at", "2024-12-23 01:12:34.176995"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:12:34.179187"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:12:34.180990"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.184112"], ["updated_at", "2024-12-23 01:12:34.184112"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:12:34.186229"], ["id", 2]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:12:34.188288"], ["id", 1]] TRANSACTION (0.2ms) 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.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.191876"], ["updated_at", "2024-12-23 01:12:34.191876"]] 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", "2024-12-23 01:12:34.193830"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:12:34.195057"], ["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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 01:12:34.198837"], ["updated_at", "2024-12-23 01:12:34.198837"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:34.201614"], ["updated_at", "2024-12-23 01:12:34.201614"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:12:34.204304"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:12:34.206280"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.5ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.0ms) PRAGMA defer_foreign_keys = ON  (0.0ms) PRAGMA foreign_keys = OFF  (0.2ms) TRUNCATE TABLE "users"  (14.9ms) 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.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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 01:12:54.186472"], ["updated_at", "2024-12-23 01:12:54.186472"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.193459"], ["updated_at", "2024-12-23 01:12:54.193459"]] 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 2"], ["created_at", "2024-12-23 01:12:54.202839"], ["updated_at", "2024-12-23 01:12:54.202839"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.204684"], ["updated_at", "2024-12-23 01:12:54.204684"]] 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 9"], ["created_at", "2024-12-23 01:12:54.218081"], ["updated_at", "2024-12-23 01:12:54.218081"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.219931"], ["updated_at", "2024-12-23 01:12:54.219931"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 01:12:54.223686"], ["updated_at", "2024-12-23 01:12:54.223686"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.225035"], ["updated_at", "2024-12-23 01:12:54.225035"]] 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 11"], ["created_at", "2024-12-23 01:12:54.229479"], ["updated_at", "2024-12-23 01:12:54.229479"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.231422"], ["updated_at", "2024-12-23 01:12:54.231422"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 01:12:54.234412"], ["updated_at", "2024-12-23 01:12:54.234412"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.236543"], ["updated_at", "2024-12-23 01:12:54.236543"]] 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 13"], ["created_at", "2024-12-23 01:12:54.239080"], ["updated_at", "2024-12-23 01:12:54.239080"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.247934"], ["updated_at", "2024-12-23 01:12:54.247934"]] 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 14"], ["created_at", "2024-12-23 01:12:54.250885"], ["updated_at", "2024-12-23 01:12:54.250885"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:12:54.252844"], ["updated_at", "2024-12-23 01:12:54.252844"]] 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 15"], ["created_at", "2024-12-23 01:12:54.254676"], ["updated_at", "2024-12-23 01:12:54.254676"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:12:54.256166"], ["updated_at", "2024-12-23 01:12:54.256166"]] 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", "2024-12-23 01:12:54.258261"], ["updated_at", "2024-12-23 01:12:54.258261"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:12:54.260202"], ["updated_at", "2024-12-23 01:12:54.260202"]] 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 (11.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 01:12:54.262570"], ["updated_at", "2024-12-23 01:12:54.262570"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.276439"], ["updated_at", "2024-12-23 01:12:54.276439"]] 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 18"], ["created_at", "2024-12-23 01:12:54.279244"], ["updated_at", "2024-12-23 01:12:54.279244"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.281326"], ["updated_at", "2024-12-23 01:12:54.281326"]] 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"."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.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 01:12:54.285644"], ["updated_at", "2024-12-23 01:12:54.285644"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.288268"], ["updated_at", "2024-12-23 01:12:54.288268"]] 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", "2024-12-23 01:12:54.289885"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:12:54.291017"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 01:12:54.294380"], ["updated_at", "2024-12-23 01:12:54.294380"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.296498"], ["updated_at", "2024-12-23 01:12:54.296498"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:12:54.297540"], ["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", "2024-12-23 01:12:54.298410"], ["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", "2024-12-23 01:12:54.299253"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 01:12:54.302268"], ["updated_at", "2024-12-23 01:12:54.302268"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.304629"], ["updated_at", "2024-12-23 01:12:54.304629"]] 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", "2024-12-23 01:12:54.305825"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:12:54.306657"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.308541"], ["updated_at", "2024-12-23 01:12:54.308541"]] 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", "2024-12-23 01:12:54.309609"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:12:54.310403"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:12:54.312118"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.313440"], ["updated_at", "2024-12-23 01:12:54.313440"]] 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", "2024-12-23 01:12:54.314447"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 01:12:54.316787"], ["updated_at", "2024-12-23 01:12:54.316787"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.318473"], ["updated_at", "2024-12-23 01:12:54.318473"]] 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", "2024-12-23 01:12:54.319595"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:12:54.320440"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.322488"], ["updated_at", "2024-12-23 01:12:54.322488"]] 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", "2024-12-23 01:12:54.323497"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:12:54.324215"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.325748"], ["updated_at", "2024-12-23 01:12:54.325748"]] 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", "2024-12-23 01:12:54.326722"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:12:54.327447"], ["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 23"], ["created_at", "2024-12-23 01:12:54.330053"], ["updated_at", "2024-12-23 01:12:54.330053"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:12:54.331687"], ["updated_at", "2024-12-23 01:12:54.331687"]] 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", "2024-12-23 01:12:54.332995"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:12:54.333901"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.3ms) 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"  (15.0ms) 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.3ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 01:13:01.357388"], ["updated_at", "2024-12-23 01:13:01.357388"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.364463"], ["updated_at", "2024-12-23 01:13:01.364463"]] 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 2"], ["created_at", "2024-12-23 01:13:01.373928"], ["updated_at", "2024-12-23 01:13:01.373928"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.375745"], ["updated_at", "2024-12-23 01:13:01.375745"]] 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 9"], ["created_at", "2024-12-23 01:13:01.390045"], ["updated_at", "2024-12-23 01:13:01.390045"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.391932"], ["updated_at", "2024-12-23 01:13:01.391932"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 01:13:01.395602"], ["updated_at", "2024-12-23 01:13:01.395602"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.396953"], ["updated_at", "2024-12-23 01:13:01.396953"]] 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 01:13:01.401257"], ["updated_at", "2024-12-23 01:13:01.401257"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.403648"], ["updated_at", "2024-12-23 01:13:01.403648"]] 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 12"], ["created_at", "2024-12-23 01:13:01.406660"], ["updated_at", "2024-12-23 01:13:01.406660"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.407954"], ["updated_at", "2024-12-23 01:13:01.407954"]] 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 13"], ["created_at", "2024-12-23 01:13:01.410248"], ["updated_at", "2024-12-23 01:13:01.410248"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.420067"], ["updated_at", "2024-12-23 01:13:01.420067"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 01:13:01.424202"], ["updated_at", "2024-12-23 01:13:01.424202"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:13:01.426742"], ["updated_at", "2024-12-23 01:13:01.426742"]] 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 15"], ["created_at", "2024-12-23 01:13:01.429084"], ["updated_at", "2024-12-23 01:13:01.429084"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:13:01.430837"], ["updated_at", "2024-12-23 01:13:01.430837"]] 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", "2024-12-23 01:13:01.432756"], ["updated_at", "2024-12-23 01:13:01.432756"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:13:01.434263"], ["updated_at", "2024-12-23 01:13:01.434263"]] 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 17"], ["created_at", "2024-12-23 01:13:01.436464"], ["updated_at", "2024-12-23 01:13:01.436464"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.439626"], ["updated_at", "2024-12-23 01:13:01.439626"]] 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 18"], ["created_at", "2024-12-23 01:13:01.441989"], ["updated_at", "2024-12-23 01:13:01.441989"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.443923"], ["updated_at", "2024-12-23 01:13:01.443923"]] 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"."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 19"], ["created_at", "2024-12-23 01:13:01.447323"], ["updated_at", "2024-12-23 01:13:01.447323"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.449051"], ["updated_at", "2024-12-23 01:13:01.449051"]] 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", "2024-12-23 01:13:01.450491"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:13:01.451945"], ["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 20"], ["created_at", "2024-12-23 01:13:01.455803"], ["updated_at", "2024-12-23 01:13:01.455803"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.458062"], ["updated_at", "2024-12-23 01:13:01.458062"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:13:01.459404"], ["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", "2024-12-23 01:13:01.460359"], ["id", 1]] TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 01:13:01.474045"], ["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 21"], ["created_at", "2024-12-23 01:13:01.478179"], ["updated_at", "2024-12-23 01:13:01.478179"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.480379"], ["updated_at", "2024-12-23 01:13:01.480379"]] 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", "2024-12-23 01:13:01.481646"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:13:01.482515"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.7ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.485429"], ["updated_at", "2024-12-23 01:13:01.485429"]] 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", "2024-12-23 01:13:01.487686"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:13:01.489023"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:13:01.490860"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.492429"], ["updated_at", "2024-12-23 01:13:01.492429"]] 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", "2024-12-23 01:13:01.493688"], ["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 (1.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 01:13:01.496186"], ["updated_at", "2024-12-23 01:13:01.496186"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.498400"], ["updated_at", "2024-12-23 01:13:01.498400"]] 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", "2024-12-23 01:13:01.499455"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:13:01.500242"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.501906"], ["updated_at", "2024-12-23 01:13:01.501906"]] 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", "2024-12-23 01:13:01.502955"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:13:01.503811"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.506080"], ["updated_at", "2024-12-23 01:13:01.506080"]] 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", "2024-12-23 01:13:01.507677"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:13:01.508463"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 01:13:01.510828"], ["updated_at", "2024-12-23 01:13:01.510828"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:13:01.512332"], ["updated_at", "2024-12-23 01:13:01.512332"]] 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", "2024-12-23 01:13:01.513360"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:13:01.514102"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.2ms) PRAGMA foreign_keys SQL (0.1ms) PRAGMA defer_foreign_keys  (0.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.0ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 01:34:37.992634"], ["updated_at", "2024-12-23 01:34:37.992634"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:37.999732"], ["updated_at", "2024-12-23 01:34:37.999732"]] 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 2"], ["created_at", "2024-12-23 01:34:38.008339"], ["updated_at", "2024-12-23 01:34:38.008339"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.010350"], ["updated_at", "2024-12-23 01:34:38.010350"]] 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 9"], ["created_at", "2024-12-23 01:34:38.026642"], ["updated_at", "2024-12-23 01:34:38.026642"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.028736"], ["updated_at", "2024-12-23 01:34:38.028736"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.1ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-23 01:34:38.032465"], ["updated_at", "2024-12-23 01:34:38.032465"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.034402"], ["updated_at", "2024-12-23 01:34:38.034402"]] 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 11"], ["created_at", "2024-12-23 01:34:38.038271"], ["updated_at", "2024-12-23 01:34:38.038271"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.039502"], ["updated_at", "2024-12-23 01:34:38.039502"]] 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", "2024-12-23 01:34:38.042014"], ["updated_at", "2024-12-23 01:34:38.042014"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.043388"], ["updated_at", "2024-12-23 01:34:38.043388"]] TRANSACTION (0.1ms) 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 13"], ["created_at", "2024-12-23 01:34:38.045610"], ["updated_at", "2024-12-23 01:34:38.045610"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.054245"], ["updated_at", "2024-12-23 01:34:38.054245"]] 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 14"], ["created_at", "2024-12-23 01:34:38.057589"], ["updated_at", "2024-12-23 01:34:38.057589"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:34:38.059707"], ["updated_at", "2024-12-23 01:34:38.059707"]] 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 15"], ["created_at", "2024-12-23 01:34:38.061692"], ["updated_at", "2024-12-23 01:34:38.061692"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:34:38.063344"], ["updated_at", "2024-12-23 01:34:38.063344"]] 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 01:34:38.065223"], ["updated_at", "2024-12-23 01:34:38.065223"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:34:38.067237"], ["updated_at", "2024-12-23 01:34:38.067237"]] 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", "2024-12-23 01:34:38.069592"], ["updated_at", "2024-12-23 01:34:38.069592"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.071065"], ["updated_at", "2024-12-23 01:34:38.071065"]] 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 18"], ["created_at", "2024-12-23 01:34:38.072932"], ["updated_at", "2024-12-23 01:34:38.072932"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.074594"], ["updated_at", "2024-12-23 01:34:38.074594"]] 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"."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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 01:34:38.077936"], ["updated_at", "2024-12-23 01:34:38.077936"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.080581"], ["updated_at", "2024-12-23 01:34:38.080581"]] 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", "2024-12-23 01:34:38.082151"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:34:38.083424"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) 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 20"], ["created_at", "2024-12-23 01:34:38.086245"], ["updated_at", "2024-12-23 01:34:38.086245"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.087861"], ["updated_at", "2024-12-23 01:34:38.087861"]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:34:38.088726"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 01:34:38.102837"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 01:34:38.104384"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 01:34:38.107875"], ["updated_at", "2024-12-23 01:34:38.107875"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.110638"], ["updated_at", "2024-12-23 01:34:38.110638"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (1.0ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:34:38.112143"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:34:38.114147"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.116713"], ["updated_at", "2024-12-23 01:34:38.116713"]] TRANSACTION (0.1ms) 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", "2024-12-23 01:34:38.118221"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:34:38.119132"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:34:38.120528"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.121857"], ["updated_at", "2024-12-23 01:34:38.121857"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (1.0ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:34:38.122884"], ["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.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 22"], ["created_at", "2024-12-23 01:34:38.127567"], ["updated_at", "2024-12-23 01:34:38.127567"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.130446"], ["updated_at", "2024-12-23 01:34:38.130446"]] 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", "2024-12-23 01:34:38.132158"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:34:38.133457"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.136573"], ["updated_at", "2024-12-23 01:34:38.136573"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:34:38.138298"], ["id", 2]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:34:38.140290"], ["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.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.145228"], ["updated_at", "2024-12-23 01:34:38.145228"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:34:38.148652"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:34:38.150268"], ["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.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 23"], ["created_at", "2024-12-23 01:34:38.154151"], ["updated_at", "2024-12-23 01:34:38.154151"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:38.156841"], ["updated_at", "2024-12-23 01:34:38.156841"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:34:38.158753"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:34:38.160588"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.4ms) 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"  (7.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.2ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 01:34:49.478759"], ["updated_at", "2024-12-23 01:34:49.478759"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.487696"], ["updated_at", "2024-12-23 01:34:49.487696"]] 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 2"], ["created_at", "2024-12-23 01:34:49.496853"], ["updated_at", "2024-12-23 01:34:49.496853"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.498898"], ["updated_at", "2024-12-23 01:34:49.498898"]] 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 9"], ["created_at", "2024-12-23 01:34:49.523751"], ["updated_at", "2024-12-23 01:34:49.523751"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.526109"], ["updated_at", "2024-12-23 01:34:49.526109"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 01:34:49.530219"], ["updated_at", "2024-12-23 01:34:49.530219"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.531711"], ["updated_at", "2024-12-23 01:34:49.531711"]] TRANSACTION (0.1ms) 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 11"], ["created_at", "2024-12-23 01:34:49.537483"], ["updated_at", "2024-12-23 01:34:49.537483"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.539728"], ["updated_at", "2024-12-23 01:34:49.539728"]] 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 12"], ["created_at", "2024-12-23 01:34:49.543229"], ["updated_at", "2024-12-23 01:34:49.543229"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.544825"], ["updated_at", "2024-12-23 01:34:49.544825"]] 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 13"], ["created_at", "2024-12-23 01:34:49.547511"], ["updated_at", "2024-12-23 01:34:49.547511"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.558371"], ["updated_at", "2024-12-23 01:34:49.558371"]] 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 14"], ["created_at", "2024-12-23 01:34:49.562114"], ["updated_at", "2024-12-23 01:34:49.562114"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:34:49.564367"], ["updated_at", "2024-12-23 01:34:49.564367"]] 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 15"], ["created_at", "2024-12-23 01:34:49.566874"], ["updated_at", "2024-12-23 01:34:49.566874"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:34:49.569730"], ["updated_at", "2024-12-23 01:34:49.569730"]] 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 16"], ["created_at", "2024-12-23 01:34:49.573100"], ["updated_at", "2024-12-23 01:34:49.573100"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:34:49.575433"], ["updated_at", "2024-12-23 01:34:49.575433"]] 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", "2024-12-23 01:34:49.578040"], ["updated_at", "2024-12-23 01:34:49.578040"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.579998"], ["updated_at", "2024-12-23 01:34:49.579998"]] TRANSACTION (0.1ms) 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 18"], ["created_at", "2024-12-23 01:34:49.582117"], ["updated_at", "2024-12-23 01:34:49.582117"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.583892"], ["updated_at", "2024-12-23 01:34:49.583892"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) 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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 01:34:49.588161"], ["updated_at", "2024-12-23 01:34:49.588161"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.590997"], ["updated_at", "2024-12-23 01:34:49.590997"]] 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", "2024-12-23 01:34:49.592610"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:34:49.593985"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 01:34:49.597033"], ["updated_at", "2024-12-23 01:34:49.597033"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.598740"], ["updated_at", "2024-12-23 01:34:49.598740"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:34:49.599790"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.7ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 01:34:49.612674"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 01:34:49.614824"], ["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.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 21"], ["created_at", "2024-12-23 01:34:49.618618"], ["updated_at", "2024-12-23 01:34:49.618618"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.621690"], ["updated_at", "2024-12-23 01:34:49.621690"]] 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", "2024-12-23 01:34:49.623601"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:34:49.625521"], ["id", 1]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.628082"], ["updated_at", "2024-12-23 01:34:49.628082"]] 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", "2024-12-23 01:34:49.629500"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:34:49.630471"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:34:49.631946"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.633562"], ["updated_at", "2024-12-23 01:34:49.633562"]] 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", "2024-12-23 01:34:49.634761"], ["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.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 22"], ["created_at", "2024-12-23 01:34:49.639061"], ["updated_at", "2024-12-23 01:34:49.639061"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.641822"], ["updated_at", "2024-12-23 01:34:49.641822"]] 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", "2024-12-23 01:34:49.643186"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:34:49.644124"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.646465"], ["updated_at", "2024-12-23 01:34:49.646465"]] 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", "2024-12-23 01:34:49.647701"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:34:49.648562"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.650415"], ["updated_at", "2024-12-23 01:34:49.650415"]] 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", "2024-12-23 01:34:49.651597"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:34:49.652417"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 01:34:49.655367"], ["updated_at", "2024-12-23 01:34:49.655367"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:34:49.657686"], ["updated_at", "2024-12-23 01:34:49.657686"]] 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", "2024-12-23 01:34:49.658881"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:34:49.659703"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.1ms) 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.4ms) 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.2ms) 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.1ms) DELETE FROM "companies"  (0.1ms) 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.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (0.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 01:39:53.629138"], ["updated_at", "2024-12-23 01:39:53.629138"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (23.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.639953"], ["updated_at", "2024-12-23 01:39:53.639953"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 01:39:53.685543"], ["updated_at", "2024-12-23 01:39:53.685543"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.691380"], ["updated_at", "2024-12-23 01:39:53.691380"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.2ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.6ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 01:39:53.739358"], ["updated_at", "2024-12-23 01:39:53.739358"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.744436"], ["updated_at", "2024-12-23 01:39:53.744436"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.4ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 10"], ["created_at", "2024-12-23 01:39:53.755624"], ["updated_at", "2024-12-23 01:39:53.755624"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.760147"], ["updated_at", "2024-12-23 01:39:53.760147"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 11"], ["created_at", "2024-12-23 01:39:53.771726"], ["updated_at", "2024-12-23 01:39:53.771726"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.774829"], ["updated_at", "2024-12-23 01:39:53.774829"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 01:39:53.781478"], ["updated_at", "2024-12-23 01:39:53.781478"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.783944"], ["updated_at", "2024-12-23 01:39:53.783944"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-23 01:39:53.789238"], ["updated_at", "2024-12-23 01:39:53.789238"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.807837"], ["updated_at", "2024-12-23 01:39:53.807837"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 01:39:53.814017"], ["updated_at", "2024-12-23 01:39:53.814017"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:39:53.818038"], ["updated_at", "2024-12-23 01:39:53.818038"]] TRANSACTION (0.2ms) 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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 01:39:53.825783"], ["updated_at", "2024-12-23 01:39:53.825783"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:39:53.831840"], ["updated_at", "2024-12-23 01:39:53.831840"]] 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.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 01:39:53.839573"], ["updated_at", "2024-12-23 01:39:53.839573"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.9ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:39:53.845167"], ["updated_at", "2024-12-23 01:39:53.845167"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 01:39:53.852690"], ["updated_at", "2024-12-23 01:39:53.852690"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.857359"], ["updated_at", "2024-12-23 01:39:53.857359"]] 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 18"], ["created_at", "2024-12-23 01:39:53.865151"], ["updated_at", "2024-12-23 01:39:53.865151"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.869660"], ["updated_at", "2024-12-23 01:39:53.869660"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Create (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 01:39:53.876993"], ["updated_at", "2024-12-23 01:39:53.876993"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.881045"], ["updated_at", "2024-12-23 01:39:53.881045"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:39:53.884061"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:39:53.886439"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.2ms) ROLLBACK TRANSACTION TRANSACTION (0.1ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Create (1.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 01:39:53.894507"], ["updated_at", "2024-12-23 01:39:53.894507"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.900447"], ["updated_at", "2024-12-23 01:39:53.900447"]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:39:53.903779"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.7ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 01:39:53.906497"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "2024-12-23 01:39:53.909786"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 21"], ["created_at", "2024-12-23 01:39:53.916410"], ["updated_at", "2024-12-23 01:39:53.916410"]] TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.919821"], ["updated_at", "2024-12-23 01:39:53.919821"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:39:53.923041"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:39:53.925084"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.928963"], ["updated_at", "2024-12-23 01:39:53.928963"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:39:53.930807"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:39:53.932121"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:39:53.934025"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.936125"], ["updated_at", "2024-12-23 01:39:53.936125"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:39:53.937998"], ["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.1ms) 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 22"], ["created_at", "2024-12-23 01:39:53.942667"], ["updated_at", "2024-12-23 01:39:53.942667"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.945967"], ["updated_at", "2024-12-23 01:39:53.945967"]] 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", "2024-12-23 01:39:53.947783"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:39:53.949028"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.951767"], ["updated_at", "2024-12-23 01:39:53.951767"]] 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", "2024-12-23 01:39:53.953352"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:39:53.954562"], ["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.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.958018"], ["updated_at", "2024-12-23 01:39:53.958018"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:39:53.960516"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:39:53.961920"], ["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.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 23"], ["created_at", "2024-12-23 01:39:53.966258"], ["updated_at", "2024-12-23 01:39:53.966258"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:39:53.968610"], ["updated_at", "2024-12-23 01:39:53.968610"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:39:53.970374"], ["id", 1]] User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:39:53.972394"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.3ms) TRUNCATE TABLE "users"  (15.0ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 01:41:46.940025"], ["updated_at", "2024-12-23 01:41:46.940025"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:46.946735"], ["updated_at", "2024-12-23 01:41:46.946735"]] 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", "2024-12-23 01:41:46.957436"], ["updated_at", "2024-12-23 01:41:46.957436"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:46.959394"], ["updated_at", "2024-12-23 01:41:46.959394"]] 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 9"], ["created_at", "2024-12-23 01:41:46.975816"], ["updated_at", "2024-12-23 01:41:46.975816"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:46.978018"], ["updated_at", "2024-12-23 01:41:46.978018"]] 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"."state_type" = ? [["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 10"], ["created_at", "2024-12-23 01:41:46.982413"], ["updated_at", "2024-12-23 01:41:46.982413"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:46.983677"], ["updated_at", "2024-12-23 01:41:46.983677"]] 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 11"], ["created_at", "2024-12-23 01:41:46.987803"], ["updated_at", "2024-12-23 01:41:46.987803"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:46.989609"], ["updated_at", "2024-12-23 01:41:46.989609"]] 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 12"], ["created_at", "2024-12-23 01:41:46.992931"], ["updated_at", "2024-12-23 01:41:46.992931"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:46.994623"], ["updated_at", "2024-12-23 01:41:46.994623"]] 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 13"], ["created_at", "2024-12-23 01:41:46.997589"], ["updated_at", "2024-12-23 01:41:46.997589"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.006103"], ["updated_at", "2024-12-23 01:41:47.006103"]] 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 14"], ["created_at", "2024-12-23 01:41:47.009463"], ["updated_at", "2024-12-23 01:41:47.009463"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:41:47.011716"], ["updated_at", "2024-12-23 01:41:47.011716"]] 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 15"], ["created_at", "2024-12-23 01:41:47.014652"], ["updated_at", "2024-12-23 01:41:47.014652"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:41:47.017306"], ["updated_at", "2024-12-23 01:41:47.017306"]] 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 16"], ["created_at", "2024-12-23 01:41:47.043441"], ["updated_at", "2024-12-23 01:41:47.043441"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 01:41:47.046642"], ["updated_at", "2024-12-23 01:41:47.046642"]] 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 17"], ["created_at", "2024-12-23 01:41:47.050427"], ["updated_at", "2024-12-23 01:41:47.050427"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.052697"], ["updated_at", "2024-12-23 01:41:47.052697"]] 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 18"], ["created_at", "2024-12-23 01:41:47.056578"], ["updated_at", "2024-12-23 01:41:47.056578"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.058343"], ["updated_at", "2024-12-23 01:41:47.058343"]] 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"."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 19"], ["created_at", "2024-12-23 01:41:47.061965"], ["updated_at", "2024-12-23 01:41:47.061965"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.064747"], ["updated_at", "2024-12-23 01:41:47.064747"]] 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", "2024-12-23 01:41:47.066502"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:41:47.067985"], ["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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 01:41:47.071527"], ["updated_at", "2024-12-23 01:41:47.071527"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.073988"], ["updated_at", "2024-12-23 01:41:47.073988"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 01:41:47.075014"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 01:41:47.075936"], ["id", 1]] 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", "pending"], ["updated_at", "2024-12-23 01:41:47.076957"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 21"], ["created_at", "2024-12-23 01:41:47.085144"], ["updated_at", "2024-12-23 01:41:47.085144"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.089996"], ["updated_at", "2024-12-23 01:41:47.089996"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.092415"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:41:47.094093"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.097833"], ["updated_at", "2024-12-23 01:41:47.097833"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.100219"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:41:47.101973"], ["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) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 01:41:47.104986"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.107291"], ["updated_at", "2024-12-23 01:41:47.107291"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.108995"], ["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.1ms) 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 22"], ["created_at", "2024-12-23 01:41:47.113396"], ["updated_at", "2024-12-23 01:41:47.113396"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.116659"], ["updated_at", "2024-12-23 01:41:47.116659"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.119022"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 01:41:47.120436"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.124081"], ["updated_at", "2024-12-23 01:41:47.124081"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.125827"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 01:41:47.127177"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.130534"], ["updated_at", "2024-12-23 01:41:47.130534"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.132824"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 01:41:47.134579"], ["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.1ms) 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 23"], ["created_at", "2024-12-23 01:41:47.139547"], ["updated_at", "2024-12-23 01:41:47.139547"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 01:41:47.142061"], ["updated_at", "2024-12-23 01:41:47.142061"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 01:41:47.143602"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 01:41:47.144880"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) ROLLBACK TRANSACTION SQL (3.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.2ms) TRUNCATE TABLE "users"  (14.5ms) 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.2ms) 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.2ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 02:03:51.414257"], ["updated_at", "2024-12-23 02:03:51.414257"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.445620"], ["updated_at", "2024-12-23 02:03:51.445620"]] TRANSACTION (0.1ms) 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 02:03:51.462692"], ["updated_at", "2024-12-23 02:03:51.462692"]] TRANSACTION (0.4ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.465852"], ["updated_at", "2024-12-23 02:03:51.465852"]] 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.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 9"], ["created_at", "2024-12-23 02:03:51.487223"], ["updated_at", "2024-12-23 02:03:51.487223"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.489660"], ["updated_at", "2024-12-23 02:03:51.489660"]] 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"."state_type" = ? [["state_type", "kyc"]] 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", "2024-12-23 02:03:51.493919"], ["updated_at", "2024-12-23 02:03:51.493919"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.495378"], ["updated_at", "2024-12-23 02:03:51.495378"]] 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 11"], ["created_at", "2024-12-23 02:03:51.500994"], ["updated_at", "2024-12-23 02:03:51.500994"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.502739"], ["updated_at", "2024-12-23 02:03:51.502739"]] 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 (3.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 02:03:51.512722"], ["updated_at", "2024-12-23 02:03:51.512722"]] TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.525282"], ["updated_at", "2024-12-23 02:03:51.525282"]] 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 (6.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-23 02:03:51.538869"], ["updated_at", "2024-12-23 02:03:51.538869"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.5ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.586736"], ["updated_at", "2024-12-23 02:03:51.586736"]] TRANSACTION (0.2ms) 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 (4.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 02:03:51.596780"], ["updated_at", "2024-12-23 02:03:51.596780"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (3.1ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 02:03:51.606837"], ["updated_at", "2024-12-23 02:03:51.606837"]] TRANSACTION (0.1ms) 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 15"], ["created_at", "2024-12-23 02:03:51.619231"], ["updated_at", "2024-12-23 02:03:51.619231"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 02:03:51.626087"], ["updated_at", "2024-12-23 02:03:51.626087"]] 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 16"], ["created_at", "2024-12-23 02:03:51.632145"], ["updated_at", "2024-12-23 02:03:51.632145"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 02:03:51.634335"], ["updated_at", "2024-12-23 02:03:51.634335"]] 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.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 02:03:51.637265"], ["updated_at", "2024-12-23 02:03:51.637265"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.641725"], ["updated_at", "2024-12-23 02:03:51.641725"]] 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 18"], ["created_at", "2024-12-23 02:03:51.645036"], ["updated_at", "2024-12-23 02:03:51.645036"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.647511"], ["updated_at", "2024-12-23 02:03:51.647511"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.6ms) 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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 19"], ["created_at", "2024-12-23 02:03:51.651477"], ["updated_at", "2024-12-23 02:03:51.651477"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.653468"], ["updated_at", "2024-12-23 02:03:51.653468"]] 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", "2024-12-23 02:03:51.654938"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 02:03:51.656178"], ["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 20"], ["created_at", "2024-12-23 02:03:51.660374"], ["updated_at", "2024-12-23 02:03:51.660374"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.662721"], ["updated_at", "2024-12-23 02:03:51.662721"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 02:03:51.663849"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 02:03:51.664736"], ["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", "2024-12-23 02:03:51.665572"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 21"], ["created_at", "2024-12-23 02:03:51.669083"], ["updated_at", "2024-12-23 02:03:51.669083"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.671378"], ["updated_at", "2024-12-23 02:03:51.671378"]] 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", "2024-12-23 02:03:51.673574"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 02:03:51.675010"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.677544"], ["updated_at", "2024-12-23 02:03:51.677544"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 02:03:51.679321"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 02:03:51.680674"], ["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) SAVEPOINT active_record_1 User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 02:03:51.682146"], ["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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.683621"], ["updated_at", "2024-12-23 02:03:51.683621"]] 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", "2024-12-23 02:03:51.684722"], ["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.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 22"], ["created_at", "2024-12-23 02:03:51.687934"], ["updated_at", "2024-12-23 02:03:51.687934"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.690205"], ["updated_at", "2024-12-23 02:03:51.690205"]] 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", "2024-12-23 02:03:51.691426"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 02:03:51.692428"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.695023"], ["updated_at", "2024-12-23 02:03:51.695023"]] 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", "2024-12-23 02:03:51.696350"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 02:03:51.697171"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.2ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.699058"], ["updated_at", "2024-12-23 02:03:51.699058"]] 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", "2024-12-23 02:03:51.700115"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 02:03:51.701137"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 02:03:51.704117"], ["updated_at", "2024-12-23 02:03:51.704117"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:03:51.706331"], ["updated_at", "2024-12-23 02:03:51.706331"]] 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", "2024-12-23 02:03:51.708097"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 02:03:51.709169"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (3.1ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.2ms) 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.1ms) DELETE FROM sqlite_sequence where name = 'has_states_states';  (0.1ms) TRUNCATE TABLE "companies"  (0.1ms) DELETE FROM "companies"  (0.1ms) 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.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 1"], ["created_at", "2024-12-23 02:04:32.396449"], ["updated_at", "2024-12-23 02:04:32.396449"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.405560"], ["updated_at", "2024-12-23 02:04:32.405560"]] 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 (1.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 2"], ["created_at", "2024-12-23 02:04:32.441215"], ["updated_at", "2024-12-23 02:04:32.441215"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.445054"], ["updated_at", "2024-12-23 02:04:32.445054"]] 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 9"], ["created_at", "2024-12-23 02:04:32.475447"], ["updated_at", "2024-12-23 02:04:32.475447"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.479477"], ["updated_at", "2024-12-23 02:04:32.479477"]] 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"."state_type" = ? [["state_type", "kyc"]] TRANSACTION (0.1ms) 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 10"], ["created_at", "2024-12-23 02:04:32.486673"], ["updated_at", "2024-12-23 02:04:32.486673"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (1.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.489334"], ["updated_at", "2024-12-23 02:04:32.489334"]] 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 11"], ["created_at", "2024-12-23 02:04:32.497089"], ["updated_at", "2024-12-23 02:04:32.497089"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.2ms) SAVEPOINT active_record_1 HasStates::State Create (1.0ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.499586"], ["updated_at", "2024-12-23 02:04:32.499586"]] 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 (0.9ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 12"], ["created_at", "2024-12-23 02:04:32.507460"], ["updated_at", "2024-12-23 02:04:32.507460"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.510785"], ["updated_at", "2024-12-23 02:04:32.510785"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 13"], ["created_at", "2024-12-23 02:04:32.517006"], ["updated_at", "2024-12-23 02:04:32.517006"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.8ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"reason\":\"documents_missing\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.534662"], ["updated_at", "2024-12-23 02:04:32.534662"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 14"], ["created_at", "2024-12-23 02:04:32.540498"], ["updated_at", "2024-12-23 02:04:32.540498"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 02:04:32.544712"], ["updated_at", "2024-12-23 02:04:32.544712"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 15"], ["created_at", "2024-12-23 02:04:32.549387"], ["updated_at", "2024-12-23 02:04:32.549387"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 02:04:32.553271"], ["updated_at", "2024-12-23 02:04:32.553271"]] 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 (0.8ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 16"], ["created_at", "2024-12-23 02:04:32.558650"], ["updated_at", "2024-12-23 02:04:32.558650"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["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", "2024-12-23 02:04:32.563221"], ["updated_at", "2024-12-23 02:04:32.563221"]] TRANSACTION (0.1ms) 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.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 17"], ["created_at", "2024-12-23 02:04:32.568525"], ["updated_at", "2024-12-23 02:04:32.568525"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.573017"], ["updated_at", "2024-12-23 02:04:32.573017"]] TRANSACTION (0.1ms) 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 18"], ["created_at", "2024-12-23 02:04:32.578387"], ["updated_at", "2024-12-23 02:04:32.578387"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.581985"], ["updated_at", "2024-12-23 02:04:32.581985"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 HasStates::State Load (0.2ms) SELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 19"], ["created_at", "2024-12-23 02:04:32.589330"], ["updated_at", "2024-12-23 02:04:32.589330"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Create (0.6ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.593471"], ["updated_at", "2024-12-23 02:04:32.593471"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 02:04:32.596220"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 02:04:32.598613"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TRANSACTION (0.1ms) 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 20"], ["created_at", "2024-12-23 02:04:32.604848"], ["updated_at", "2024-12-23 02:04:32.604848"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.608385"], ["updated_at", "2024-12-23 02:04:32.608385"]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 02:04:32.610241"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 02:04:32.612195"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 02:04:32.613770"], ["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.1ms) 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 21"], ["created_at", "2024-12-23 02:04:32.618778"], ["updated_at", "2024-12-23 02:04:32.618778"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.4ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.622266"], ["updated_at", "2024-12-23 02:04:32.622266"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 02:04:32.624151"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 02:04:32.625477"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.628487"], ["updated_at", "2024-12-23 02:04:32.628487"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 02:04:32.630123"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 02:04:32.631691"], ["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) SAVEPOINT active_record_1 User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 02:04:32.633691"], ["id", 1]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.635770"], ["updated_at", "2024-12-23 02:04:32.635770"]] 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", "2024-12-23 02:04:32.637500"], ["id", 3]] 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) 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 22"], ["created_at", "2024-12-23 02:04:32.641194"], ["updated_at", "2024-12-23 02:04:32.641194"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.643224"], ["updated_at", "2024-12-23 02:04:32.643224"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 02:04:32.644756"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 02:04:32.645879"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.648103"], ["updated_at", "2024-12-23 02:04:32.648103"]] 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", "2024-12-23 02:04:32.649488"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 02:04:32.650420"], ["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) SAVEPOINT active_record_1 HasStates::State Create (0.3ms) INSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.652532"], ["updated_at", "2024-12-23 02:04:32.652532"]] 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", "2024-12-23 02:04:32.653867"], ["id", 3]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 02:04:32.654760"], ["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.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 23"], ["created_at", "2024-12-23 02:04:32.657868"], ["updated_at", "2024-12-23 02:04:32.657868"]] 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" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["state_type", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 02:04:32.659625"], ["updated_at", "2024-12-23 02:04:32.659625"]] 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", "2024-12-23 02:04:32.660841"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 02:04:32.661764"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 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.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) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.0ms) ROLLBACK TRANSACTION TRANSACTION (0.0ms) BEGIN deferred TRANSACTION TRANSACTION (0.1ms) 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) 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.2ms) 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) 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  (0.0ms) DROP TABLE IF EXISTS "companies"  (14.5ms) CREATE TABLE "companies" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.0ms) DROP TABLE IF EXISTS "has_states_states"  (0.1ms) CREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar NOT NULL, "state_type" varchar, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) CREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id")  (0.0ms) CREATE INDEX "index_has_states_states_on_stateable_type_and_stateable_id" ON "has_states_states" ("stateable_type", "stateable_id")  (0.0ms) CREATE INDEX "index_has_states_states_on_type_and_stateable_id" ON "has_states_states" ("type", "stateable_id")  (0.0ms) DROP TABLE IF EXISTS "users"  (0.1ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES (20241223212128)  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES (20241221171423);  (0.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]] ActiveRecord::InternalMetadata Create (0.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2024-12-23 21:24:41.366323', '2024-12-23 21:24:41.366325') RETURNING "key" ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]] ActiveRecord::InternalMetadata Load (0.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]] ActiveRecord::InternalMetadata Create (0.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'd04bf395e1985c74c4393fc5169274f4696b2492', '2024-12-23 21:24:41.366855', '2024-12-23 21:24:41.366856') RETURNING "key" ActiveRecord::InternalMetadata Load (0.0ms) 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 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.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", "2024-12-23 21:25:06.669009"], ["updated_at", "2024-12-23 21:25:06.669009"]] 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", "2024-12-23 21:25:06.672601"], ["updated_at", "2024-12-23 21:25:06.672601"]] 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", "2024-12-23 21:25:06.678396"], ["updated_at", "2024-12-23 21:25:06.678396"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.679448"], ["updated_at", "2024-12-23 21:25:06.679448"]] 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 9"], ["created_at", "2024-12-23 21:25:06.698457"], ["updated_at", "2024-12-23 21:25:06.698457"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.699650"], ["updated_at", "2024-12-23 21:25:06.699650"]] 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", "2024-12-23 21:25:06.701912"], ["updated_at", "2024-12-23 21:25:06.701912"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.702550"], ["updated_at", "2024-12-23 21:25:06.702550"]] 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", "2024-12-23 21:25:06.704586"], ["updated_at", "2024-12-23 21:25:06.704586"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.705204"], ["updated_at", "2024-12-23 21:25:06.705204"]] 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", "2024-12-23 21:25:06.706299"], ["updated_at", "2024-12-23 21:25:06.706299"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.706926"], ["updated_at", "2024-12-23 21:25:06.706926"]] 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", "2024-12-23 21:25:06.708072"], ["updated_at", "2024-12-23 21:25:06.708072"]] 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", "2024-12-23 21:25:06.722861"], ["updated_at", "2024-12-23 21:25:06.722861"]] 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", "2024-12-23 21:25:06.724744"], ["updated_at", "2024-12-23 21:25:06.724744"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.725759"], ["updated_at", "2024-12-23 21:25:06.725759"]] 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 15"], ["created_at", "2024-12-23 21:25:06.727432"], ["updated_at", "2024-12-23 21:25:06.727432"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.728512"], ["updated_at", "2024-12-23 21:25:06.728512"]] 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", "2024-12-23 21:25:06.729785"], ["updated_at", "2024-12-23 21:25:06.729785"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:25:06.730670"], ["updated_at", "2024-12-23 21:25:06.730670"]] 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", "2024-12-23 21:25:06.732888"], ["updated_at", "2024-12-23 21:25:06.732888"]] TRANSACTION (0.0ms) 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", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.735014"], ["updated_at", "2024-12-23 21:25:06.735014"]] 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 (0.7ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 18"], ["created_at", "2024-12-23 21:25:06.738885"], ["updated_at", "2024-12-23 21:25:06.738885"]] 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", "kyc"], ["status", "pending"], ["metadata", "{\"key\":\"value\"}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.741895"], ["updated_at", "2024-12-23 21:25:06.741895"]] 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.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 19"], ["created_at", "2024-12-23 21:25:06.747279"], ["updated_at", "2024-12-23 21:25:06.747279"]] 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.750634"], ["updated_at", "2024-12-23 21:25:06.750634"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:25:06.753014"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:25:06.754627"], ["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.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 20"], ["created_at", "2024-12-23 21:25:06.759209"], ["updated_at", "2024-12-23 21:25:06.759209"]] 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", "onboarding"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.761524"], ["updated_at", "2024-12-23 21:25:06.761524"]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:25:06.763161"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 User Update (0.4ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 21:25:06.764670"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "pending"], ["updated_at", "2024-12-23 21:25:06.766733"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 21"], ["created_at", "2024-12-23 21:25:06.773180"], ["updated_at", "2024-12-23 21:25:06.773180"]] 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.777138"], ["updated_at", "2024-12-23 21:25:06.777138"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:25:06.780113"], ["id", 1]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:25:06.782046"], ["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.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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.786703"], ["updated_at", "2024-12-23 21:25:06.786703"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.4ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:25:06.789457"], ["id", 2]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:25:06.791220"], ["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 User Update (0.4ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 21:25:06.793836"], ["id", 1]] 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.796519"], ["updated_at", "2024-12-23 21:25:06.796519"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:25:06.798800"], ["id", 3]] 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) 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 22"], ["created_at", "2024-12-23 21:25:06.803575"], ["updated_at", "2024-12-23 21:25:06.803575"]] 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", "2024-12-23 21:25:06.806208"], ["updated_at", "2024-12-23 21:25:06.806208"]] 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", "2024-12-23 21:25:06.807634"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:25:06.808383"], ["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", "2024-12-23 21:25:06.809591"], ["updated_at", "2024-12-23 21:25:06.809591"]] 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", "2024-12-23 21:25:06.810207"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:25:06.810645"], ["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", "2024-12-23 21:25:06.811948"], ["updated_at", "2024-12-23 21:25:06.811948"]] 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", "2024-12-23 21:25:06.813446"], ["id", 3]] User Update (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 21:25:06.815021"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 23"], ["created_at", "2024-12-23 21:25:06.820800"], ["updated_at", "2024-12-23 21:25:06.820800"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:25:06.824674"], ["updated_at", "2024-12-23 21:25:06.824674"]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) SAVEPOINT active_record_1 HasStates::State Update (0.5ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:25:06.827888"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 21:25:06.829970"], ["id", 1]] TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.1ms) 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.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.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", "2024-12-23 21:31:40.594531"], ["updated_at", "2024-12-23 21:31:40.594531"]] 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", "2024-12-23 21:31:40.598154"], ["updated_at", "2024-12-23 21:31:40.598154"]] 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 2"], ["created_at", "2024-12-23 21:31:40.607269"], ["updated_at", "2024-12-23 21:31:40.607269"]] 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", "2024-12-23 21:31:40.608969"], ["updated_at", "2024-12-23 21:31:40.608969"]] 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 9"], ["created_at", "2024-12-23 21:31:40.621159"], ["updated_at", "2024-12-23 21:31:40.621159"]] 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", "2024-12-23 21:31:40.622539"], ["updated_at", "2024-12-23 21:31:40.622539"]] 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", "2024-12-23 21:31:40.625230"], ["updated_at", "2024-12-23 21:31:40.625230"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.626000"], ["updated_at", "2024-12-23 21:31:40.626000"]] 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", "2024-12-23 21:31:40.628402"], ["updated_at", "2024-12-23 21:31:40.628402"]] 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", "2024-12-23 21:31:40.629373"], ["updated_at", "2024-12-23 21:31:40.629373"]] 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", "2024-12-23 21:31:40.631073"], ["updated_at", "2024-12-23 21:31:40.631073"]] 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", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:31:40.631771"], ["updated_at", "2024-12-23 21:31:40.631771"]] 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 13"], ["created_at", "2024-12-23 21:31:40.642488"], ["updated_at", "2024-12-23 21:31:40.642488"]] 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", "2024-12-23 21:31:40.648235"], ["updated_at", "2024-12-23 21:31:40.648235"]] 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", "2024-12-23 21:31:40.650014"], ["updated_at", "2024-12-23 21:31:40.650014"]] 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", "2024-12-23 21:31:40.651271"], ["updated_at", "2024-12-23 21:31:40.651271"]] 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", "2024-12-23 21:31:40.653345"], ["updated_at", "2024-12-23 21:31:40.653345"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.654366"], ["updated_at", "2024-12-23 21:31:40.654366"]] 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", "2024-12-23 21:31:40.655625"], ["updated_at", "2024-12-23 21:31:40.655625"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.656513"], ["updated_at", "2024-12-23 21:31:40.656513"]] TRANSACTION (0.1ms) 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", "2024-12-23 21:31:40.657896"], ["updated_at", "2024-12-23 21:31:40.657896"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.658713"], ["updated_at", "2024-12-23 21:31:40.658713"]] 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", "2024-12-23 21:31:40.659772"], ["updated_at", "2024-12-23 21:31:40.659772"]] 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", "2024-12-23 21:31:40.660650"], ["updated_at", "2024-12-23 21:31:40.660650"]] 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", "2024-12-23 21:31:40.662868"], ["updated_at", "2024-12-23 21:31:40.662868"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.663861"], ["updated_at", "2024-12-23 21:31:40.663861"]] 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", "2024-12-23 21:31:40.664493"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:31:40.665069"], ["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", "2024-12-23 21:31:40.667113"], ["updated_at", "2024-12-23 21:31:40.667113"]] 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", "2024-12-23 21:31:40.668547"], ["updated_at", "2024-12-23 21:31:40.668547"]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:31:40.669262"], ["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", "2024-12-23 21:31:40.669776"], ["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", "2024-12-23 21:31:40.670242"], ["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", "2024-12-23 21:31:40.672048"], ["updated_at", "2024-12-23 21:31:40.672048"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.672958"], ["updated_at", "2024-12-23 21:31:40.672958"]] 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", "2024-12-23 21:31:40.673542"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:31:40.673952"], ["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", "2024-12-23 21:31:40.674941"], ["updated_at", "2024-12-23 21:31:40.674941"]] 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", "2024-12-23 21:31:40.675495"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:31:40.676076"], ["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", "2024-12-23 21:31:40.676815"], ["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", "2024-12-23 21:31:40.677686"], ["updated_at", "2024-12-23 21:31:40.677686"]] 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", "2024-12-23 21:31:40.678281"], ["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", "2024-12-23 21:31:40.679728"], ["updated_at", "2024-12-23 21:31:40.679728"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.680668"], ["updated_at", "2024-12-23 21:31:40.680668"]] 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", "2024-12-23 21:31:40.681502"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:31:40.681989"], ["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.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", "2024-12-23 21:31:40.683169"], ["updated_at", "2024-12-23 21:31:40.683169"]] 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", "2024-12-23 21:31:40.684192"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:31:40.684694"], ["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", "2024-12-23 21:31:40.685814"], ["updated_at", "2024-12-23 21:31:40.685814"]] 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", "2024-12-23 21:31:40.686407"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 21:31:40.686820"], ["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", "2024-12-23 21:31:40.688368"], ["updated_at", "2024-12-23 21:31:40.688368"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:31:40.689287"], ["updated_at", "2024-12-23 21:31:40.689287"]] 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", "2024-12-23 21:31:40.689906"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 21:31:40.690304"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) ROLLBACK TRANSACTION SQL (2.8ms) PRAGMA foreign_keys SQL (0.1ms) 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.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 21:33:06.365680"], ["updated_at", "2024-12-23 21:33:06.365680"]] 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", "2024-12-23 21:33:06.372764"], ["updated_at", "2024-12-23 21:33:06.372764"]] 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", "2024-12-23 21:33:06.379301"], ["updated_at", "2024-12-23 21:33:06.379301"]] 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", "2024-12-23 21:33:06.380349"], ["updated_at", "2024-12-23 21:33:06.380349"]] 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", "2024-12-23 21:33:06.390082"], ["updated_at", "2024-12-23 21:33:06.390082"]] 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", "2024-12-23 21:33:06.391107"], ["updated_at", "2024-12-23 21:33:06.391107"]] 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", "2024-12-23 21:33:06.393645"], ["updated_at", "2024-12-23 21:33:06.393645"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.394416"], ["updated_at", "2024-12-23 21:33:06.394416"]] 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", "2024-12-23 21:33:06.396557"], ["updated_at", "2024-12-23 21:33:06.396557"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.397163"], ["updated_at", "2024-12-23 21:33:06.397163"]] 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", "2024-12-23 21:33:06.398562"], ["updated_at", "2024-12-23 21:33:06.398562"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.399303"], ["updated_at", "2024-12-23 21:33:06.399303"]] 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 13"], ["created_at", "2024-12-23 21:33:06.400589"], ["updated_at", "2024-12-23 21:33:06.400589"]] 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", "2024-12-23 21:33:06.405613"], ["updated_at", "2024-12-23 21:33:06.405613"]] 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", "2024-12-23 21:33:06.407516"], ["updated_at", "2024-12-23 21:33:06.407516"]] 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", "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", "2024-12-23 21:33:06.420085"], ["updated_at", "2024-12-23 21:33:06.420085"]] 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", "2024-12-23 21:33:06.421993"], ["updated_at", "2024-12-23 21:33:06.421993"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.423005"], ["updated_at", "2024-12-23 21:33:06.423005"]] 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", "2024-12-23 21:33:06.424955"], ["updated_at", "2024-12-23 21:33:06.424955"]] 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", "2024-12-23 21:33:06.425975"], ["updated_at", "2024-12-23 21:33:06.425975"]] 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", "2024-12-23 21:33:06.427592"], ["updated_at", "2024-12-23 21:33:06.427592"]] 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", "kyc"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:33:06.428787"], ["updated_at", "2024-12-23 21:33:06.428787"]] 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", "2024-12-23 21:33:06.430586"], ["updated_at", "2024-12-23 21:33:06.430586"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.431597"], ["updated_at", "2024-12-23 21:33:06.431597"]] 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", "2024-12-23 21:33:06.433390"], ["updated_at", "2024-12-23 21:33:06.433390"]] 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", "onboarding"], ["status", "pending"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:33:06.434634"], ["updated_at", "2024-12-23 21:33:06.434634"]] 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", "2024-12-23 21:33:06.435430"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:33:06.436126"], ["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", "2024-12-23 21:33:06.437875"], ["updated_at", "2024-12-23 21:33:06.437875"]] 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", "2024-12-23 21:33:06.439193"], ["updated_at", "2024-12-23 21:33:06.439193"]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:33:06.439858"], ["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", "2024-12-23 21:33:06.440366"], ["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", "2024-12-23 21:33:06.440824"], ["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", "2024-12-23 21:33:06.442416"], ["updated_at", "2024-12-23 21:33:06.442416"]] 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", "2024-12-23 21:33:06.443493"], ["updated_at", "2024-12-23 21:33:06.443493"]] 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", "2024-12-23 21:33:06.444180"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:33:06.444625"], ["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", "2024-12-23 21:33:06.445721"], ["updated_at", "2024-12-23 21:33:06.445721"]] 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", "2024-12-23 21:33:06.446335"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:33:06.446795"], ["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) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Final Name"], ["updated_at", "2024-12-23 21:33:06.447639"], ["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", "2024-12-23 21:33:06.448763"], ["updated_at", "2024-12-23 21:33:06.448763"]] 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", "2024-12-23 21:33:06.449381"], ["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", "2024-12-23 21:33:06.450930"], ["updated_at", "2024-12-23 21:33:06.450930"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.451755"], ["updated_at", "2024-12-23 21:33:06.451755"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:33:06.452332"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:33:06.453047"], ["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", "2024-12-23 21:33:06.454034"], ["updated_at", "2024-12-23 21:33:06.454034"]] 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", "2024-12-23 21:33:06.454659"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:33:06.455350"], ["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", "2024-12-23 21:33:06.456314"], ["updated_at", "2024-12-23 21:33:06.456314"]] 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", "2024-12-23 21:33:06.456963"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 21:33:06.457375"], ["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", "2024-12-23 21:33:06.458810"], ["updated_at", "2024-12-23 21:33:06.458810"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.459655"], ["updated_at", "2024-12-23 21:33:06.459655"]] 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", "2024-12-23 21:33:06.460238"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 21:33:06.460629"], ["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", "2024-12-23 21:33:06.461752"], ["updated_at", "2024-12-23 21:33:06.461752"]] 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", "2024-12-23 21:33:06.464934"], ["updated_at", "2024-12-23 21:33:06.464934"]] 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", "2024-12-23 21:33:06.467187"], ["updated_at", "2024-12-23 21:33:06.467187"]] 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", "2024-12-23 21:33:06.471177"], ["updated_at", "2024-12-23 21:33:06.471177"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:33:06.472145"], ["updated_at", "2024-12-23 21:33:06.472145"]] 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", "2024-12-23 21:33:06.473398"], ["updated_at", "2024-12-23 21:33:06.473398"]] 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", "2024-12-23 21:33:06.474302"], ["updated_at", "2024-12-23 21:33:06.474302"]] 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.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.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", "2024-12-23 21:34:33.471256"], ["updated_at", "2024-12-23 21:34:33.471256"]] 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", "2024-12-23 21:34:33.475047"], ["updated_at", "2024-12-23 21:34:33.475047"]] 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", "2024-12-23 21:34:33.480600"], ["updated_at", "2024-12-23 21:34:33.480600"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.481392"], ["updated_at", "2024-12-23 21:34:33.481392"]] 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 9"], ["created_at", "2024-12-23 21:34:33.489952"], ["updated_at", "2024-12-23 21:34:33.489952"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.491085"], ["updated_at", "2024-12-23 21:34:33.491085"]] 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", "2024-12-23 21:34:33.493265"], ["updated_at", "2024-12-23 21:34:33.493265"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.493868"], ["updated_at", "2024-12-23 21:34:33.493868"]] 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", "2024-12-23 21:34:33.495804"], ["updated_at", "2024-12-23 21:34:33.495804"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.496381"], ["updated_at", "2024-12-23 21:34:33.496381"]] 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", "2024-12-23 21:34:33.497603"], ["updated_at", "2024-12-23 21:34:33.497603"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.498280"], ["updated_at", "2024-12-23 21:34:33.498280"]] 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", "2024-12-23 21:34:33.499517"], ["updated_at", "2024-12-23 21:34:33.499517"]] 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", "2024-12-23 21:34:33.504054"], ["updated_at", "2024-12-23 21:34:33.504054"]] 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", "2024-12-23 21:34:33.505806"], ["updated_at", "2024-12-23 21:34:33.505806"]] 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", "2024-12-23 21:34:33.507076"], ["updated_at", "2024-12-23 21:34:33.507076"]] 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", "2024-12-23 21:34:33.508627"], ["updated_at", "2024-12-23 21:34:33.508627"]] 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", "{\"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", "2024-12-23 21:34:33.520029"], ["updated_at", "2024-12-23 21:34:33.520029"]] 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", "2024-12-23 21:34:33.522037"], ["updated_at", "2024-12-23 21:34:33.522037"]] 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", "2024-12-23 21:34:33.523291"], ["updated_at", "2024-12-23 21:34:33.523291"]] 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", "2024-12-23 21:34:33.525541"], ["updated_at", "2024-12-23 21:34:33.525541"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.526712"], ["updated_at", "2024-12-23 21:34:33.526712"]] 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", "2024-12-23 21:34:33.528061"], ["updated_at", "2024-12-23 21:34:33.528061"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.528949"], ["updated_at", "2024-12-23 21:34:33.528949"]] 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", "2024-12-23 21:34:33.531311"], ["updated_at", "2024-12-23 21:34:33.531311"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.532152"], ["updated_at", "2024-12-23 21:34:33.532152"]] 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", "2024-12-23 21:34:33.532852"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:34:33.533561"], ["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", "2024-12-23 21:34:33.535262"], ["updated_at", "2024-12-23 21:34:33.535262"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.536192"], ["updated_at", "2024-12-23 21:34:33.536192"]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:34:33.536703"], ["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", "2024-12-23 21:34:33.537164"], ["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", "2024-12-23 21:34:33.537598"], ["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 21"], ["created_at", "2024-12-23 21:34:33.539708"], ["updated_at", "2024-12-23 21:34:33.539708"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.541121"], ["updated_at", "2024-12-23 21:34:33.541121"]] 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", "2024-12-23 21:34:33.541848"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:34:33.542328"], ["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", "2024-12-23 21:34:33.543371"], ["updated_at", "2024-12-23 21:34:33.543371"]] 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", "2024-12-23 21:34:33.543962"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:34:33.544399"], ["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", "2024-12-23 21:34:33.545364"], ["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", "2024-12-23 21:34:33.546103"], ["updated_at", "2024-12-23 21:34:33.546103"]] 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", "2024-12-23 21:34:33.546670"], ["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", "2024-12-23 21:34:33.548065"], ["updated_at", "2024-12-23 21:34:33.548065"]] 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", "2024-12-23 21:34:33.549011"], ["updated_at", "2024-12-23 21:34:33.549011"]] 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", "2024-12-23 21:34:33.549690"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:34:33.550121"], ["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", "2024-12-23 21:34:33.551030"], ["updated_at", "2024-12-23 21:34:33.551030"]] 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", "2024-12-23 21:34:33.551579"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:34:33.551985"], ["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", "2024-12-23 21:34:33.552979"], ["updated_at", "2024-12-23 21:34:33.552979"]] 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", "2024-12-23 21:34:33.553576"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 21:34:33.554219"], ["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", "2024-12-23 21:34:33.555762"], ["updated_at", "2024-12-23 21:34:33.555762"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.557033"], ["updated_at", "2024-12-23 21:34:33.557033"]] 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", "2024-12-23 21:34:33.557730"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 21:34:33.558223"], ["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", "2024-12-23 21:34:33.559478"], ["updated_at", "2024-12-23 21:34:33.559478"]] 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", "2024-12-23 21:34:33.562167"], ["updated_at", "2024-12-23 21:34:33.562167"]] 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", "2024-12-23 21:34:33.564101"], ["updated_at", "2024-12-23 21:34:33.564101"]] 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", "2024-12-23 21:34:33.567738"], ["updated_at", "2024-12-23 21:34:33.567738"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:33.568670"], ["updated_at", "2024-12-23 21:34:33.568670"]] 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", "2024-12-23 21:34:33.569881"], ["updated_at", "2024-12-23 21:34:33.569881"]] 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", "2024-12-23 21:34:33.570778"], ["updated_at", "2024-12-23 21:34:33.570778"]] 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.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.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.1ms) SAVEPOINT active_record_1 User Create (0.5ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 21:34:52.399711"], ["updated_at", "2024-12-23 21:34:52.399711"]] 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", "kyc"], ["status", "completed"], ["metadata", "{}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:34:52.407562"], ["updated_at", "2024-12-23 21:34:52.407562"]] 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", "2024-12-23 21:34:52.414508"], ["updated_at", "2024-12-23 21:34:52.414508"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.415480"], ["updated_at", "2024-12-23 21:34:52.415480"]] 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", "2024-12-23 21:34:52.424633"], ["updated_at", "2024-12-23 21:34:52.424633"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.425779"], ["updated_at", "2024-12-23 21:34:52.425779"]] 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", "2024-12-23 21:34:52.427638"], ["updated_at", "2024-12-23 21:34:52.427638"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.428222"], ["updated_at", "2024-12-23 21:34:52.428222"]] 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", "2024-12-23 21:34:52.430002"], ["updated_at", "2024-12-23 21:34:52.430002"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.430584"], ["updated_at", "2024-12-23 21:34:52.430584"]] 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", "2024-12-23 21:34:52.431714"], ["updated_at", "2024-12-23 21:34:52.431714"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.432354"], ["updated_at", "2024-12-23 21:34:52.432354"]] 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", "2024-12-23 21:34:52.433682"], ["updated_at", "2024-12-23 21:34:52.433682"]] 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", "2024-12-23 21:34:52.438309"], ["updated_at", "2024-12-23 21:34:52.438309"]] 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", "2024-12-23 21:34:52.439911"], ["updated_at", "2024-12-23 21:34:52.439911"]] 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", "2024-12-23 21:34:52.440993"], ["updated_at", "2024-12-23 21:34:52.440993"]] 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", "2024-12-23 21:34:52.442775"], ["updated_at", "2024-12-23 21:34:52.442775"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.444113"], ["updated_at", "2024-12-23 21:34:52.444113"]] 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", "2024-12-23 21:34:52.445510"], ["updated_at", "2024-12-23 21:34:52.445510"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.446413"], ["updated_at", "2024-12-23 21:34:52.446413"]] 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", "2024-12-23 21:34:52.447597"], ["updated_at", "2024-12-23 21:34:52.447597"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.448391"], ["updated_at", "2024-12-23 21:34:52.448391"]] 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", "2024-12-23 21:34:52.449464"], ["updated_at", "2024-12-23 21:34:52.449464"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.450305"], ["updated_at", "2024-12-23 21:34:52.450305"]] 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", "2024-12-23 21:34:52.452070"], ["updated_at", "2024-12-23 21:34:52.452070"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.452940"], ["updated_at", "2024-12-23 21:34:52.452940"]] 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", "2024-12-23 21:34:52.453574"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:34:52.454136"], ["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", "2024-12-23 21:34:52.455613"], ["updated_at", "2024-12-23 21:34:52.455613"]] 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", "2024-12-23 21:34:52.456613"], ["updated_at", "2024-12-23 21:34:52.456613"]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:34:52.457219"], ["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", "2024-12-23 21:34:52.457757"], ["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", "2024-12-23 21:34:52.458287"], ["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", "2024-12-23 21:34:52.460022"], ["updated_at", "2024-12-23 21:34:52.460022"]] 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", "2024-12-23 21:34:52.461075"], ["updated_at", "2024-12-23 21:34:52.461075"]] 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", "2024-12-23 21:34:52.461772"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:34:52.462198"], ["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", "2024-12-23 21:34:52.463156"], ["updated_at", "2024-12-23 21:34:52.463156"]] 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", "2024-12-23 21:34:52.463694"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:34:52.464108"], ["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", "2024-12-23 21:34:52.465064"], ["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", "2024-12-23 21:34:52.465975"], ["updated_at", "2024-12-23 21:34:52.465975"]] 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", "2024-12-23 21:34:52.466706"], ["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", "2024-12-23 21:34:52.468440"], ["updated_at", "2024-12-23 21:34:52.468440"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.469573"], ["updated_at", "2024-12-23 21:34:52.469573"]] 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", "2024-12-23 21:34:52.470266"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:34:52.470742"], ["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", "2024-12-23 21:34:52.471829"], ["updated_at", "2024-12-23 21:34:52.471829"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Update (0.3ms) UPDATE "has_states_states" SET "status" = ?, "updated_at" = ? WHERE "has_states_states"."id" = ? [["status", "completed"], ["updated_at", "2024-12-23 21:34:52.472400"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:34:52.482051"], ["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", "2024-12-23 21:34:52.483557"], ["updated_at", "2024-12-23 21:34:52.483557"]] 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", "2024-12-23 21:34:52.484314"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 21:34:52.484785"], ["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.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 23"], ["created_at", "2024-12-23 21:34:52.487923"], ["updated_at", "2024-12-23 21:34:52.487923"]] 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", "2024-12-23 21:34:52.491023"], ["updated_at", "2024-12-23 21:34:52.491023"]] 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", "2024-12-23 21:34:52.492358"], ["id", 1]] User Update (0.1ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 21:34:52.493346"], ["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.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 24"], ["created_at", "2024-12-23 21:34:52.495620"], ["updated_at", "2024-12-23 21:34:52.495620"]] 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", "2024-12-23 21:34:52.503393"], ["updated_at", "2024-12-23 21:34:52.503393"]] 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 25"], ["created_at", "2024-12-23 21:34:52.507703"], ["updated_at", "2024-12-23 21:34:52.507703"]] 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 26"], ["created_at", "2024-12-23 21:34:52.512820"], ["updated_at", "2024-12-23 21:34:52.512820"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:34:52.514109"], ["updated_at", "2024-12-23 21:34:52.514109"]] 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", "2024-12-23 21:34:52.515367"], ["updated_at", "2024-12-23 21:34:52.515367"]] 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", "2024-12-23 21:34:52.516364"], ["updated_at", "2024-12-23 21:34:52.516364"]] 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.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.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 1"], ["created_at", "2024-12-23 21:38:45.677433"], ["updated_at", "2024-12-23 21:38:45.677433"]] 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", "2024-12-23 21:38:45.685201"], ["updated_at", "2024-12-23 21:38:45.685201"]] 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", "2024-12-23 21:38:45.690764"], ["updated_at", "2024-12-23 21:38:45.690764"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.691560"], ["updated_at", "2024-12-23 21:38:45.691560"]] 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", "2024-12-23 21:38:45.699890"], ["updated_at", "2024-12-23 21:38:45.699890"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.700875"], ["updated_at", "2024-12-23 21:38:45.700875"]] 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", "2024-12-23 21:38:45.702802"], ["updated_at", "2024-12-23 21:38:45.702802"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.703379"], ["updated_at", "2024-12-23 21:38:45.703379"]] 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", "2024-12-23 21:38:45.705238"], ["updated_at", "2024-12-23 21:38:45.705238"]] 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", "2024-12-23 21:38:45.705835"], ["updated_at", "2024-12-23 21:38:45.705835"]] 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 12"], ["created_at", "2024-12-23 21:38:45.707153"], ["updated_at", "2024-12-23 21:38:45.707153"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.707757"], ["updated_at", "2024-12-23 21:38:45.707757"]] 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", "2024-12-23 21:38:45.708999"], ["updated_at", "2024-12-23 21:38:45.708999"]] 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", "2024-12-23 21:38:45.724479"], ["updated_at", "2024-12-23 21:38:45.724479"]] 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", "2024-12-23 21:38:45.726485"], ["updated_at", "2024-12-23 21:38:45.726485"]] 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", "{\"documents\":{\"passport\":{\"status\":\"rejected\",\"reason\":\"expired\"},\"utility_bill\":{\"status\":\"pending\"}}}"], ["stateable_type", "User"], ["stateable_id", 1], ["completed_at", nil], ["created_at", "2024-12-23 21:38:45.728146"], ["updated_at", "2024-12-23 21:38:45.728146"]] 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", "2024-12-23 21:38:45.729599"], ["updated_at", "2024-12-23 21:38:45.729599"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.730572"], ["updated_at", "2024-12-23 21:38:45.730572"]] 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 16"], ["created_at", "2024-12-23 21:38:45.731778"], ["updated_at", "2024-12-23 21:38:45.731778"]] 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", "2024-12-23 21:38:45.733150"], ["updated_at", "2024-12-23 21:38:45.733150"]] 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", "2024-12-23 21:38:45.734406"], ["updated_at", "2024-12-23 21:38:45.734406"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.735225"], ["updated_at", "2024-12-23 21:38:45.735225"]] 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", "2024-12-23 21:38:45.736265"], ["updated_at", "2024-12-23 21:38:45.736265"]] 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", "2024-12-23 21:38:45.737221"], ["updated_at", "2024-12-23 21:38:45.737221"]] 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", "2024-12-23 21:38:45.739165"], ["updated_at", "2024-12-23 21:38:45.739165"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.740251"], ["updated_at", "2024-12-23 21:38:45.740251"]] 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", "2024-12-23 21:38:45.740941"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:38:45.741512"], ["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.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) RETURNING "id" [["name", "User 20"], ["created_at", "2024-12-23 21:38:45.743337"], ["updated_at", "2024-12-23 21:38:45.743337"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.744177"], ["updated_at", "2024-12-23 21:38:45.744177"]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Onboarded User"], ["updated_at", "2024-12-23 21:38:45.744674"], ["id", 1]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 User Update (0.3ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Original Name"], ["updated_at", "2024-12-23 21:38:45.745098"], ["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", "2024-12-23 21:38:45.745714"], ["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", "2024-12-23 21:38:45.747194"], ["updated_at", "2024-12-23 21:38:45.747194"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.748165"], ["updated_at", "2024-12-23 21:38:45.748165"]] 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", "2024-12-23 21:38:45.748782"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:38:45.749209"], ["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", "2024-12-23 21:38:45.750250"], ["updated_at", "2024-12-23 21:38:45.750250"]] 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", "2024-12-23 21:38:45.751051"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:38:45.751464"], ["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", "2024-12-23 21:38:45.752168"], ["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", "2024-12-23 21:38:45.752841"], ["updated_at", "2024-12-23 21:38:45.752841"]] 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", "2024-12-23 21:38:45.753367"], ["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", "2024-12-23 21:38:45.754754"], ["updated_at", "2024-12-23 21:38:45.754754"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.755793"], ["updated_at", "2024-12-23 21:38:45.755793"]] 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", "2024-12-23 21:38:45.756492"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 1"], ["updated_at", "2024-12-23 21:38:45.757101"], ["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", "2024-12-23 21:38:45.758177"], ["updated_at", "2024-12-23 21:38:45.758177"]] 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", "2024-12-23 21:38:45.758922"], ["id", 2]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 2"], ["updated_at", "2024-12-23 21:38:45.759335"], ["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) 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", "2024-12-23 21:38:45.760452"], ["updated_at", "2024-12-23 21:38:45.760452"]] 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", "2024-12-23 21:38:45.761133"], ["id", 3]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Execution 3"], ["updated_at", "2024-12-23 21:38:45.761544"], ["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", "2024-12-23 21:38:45.763018"], ["updated_at", "2024-12-23 21:38:45.763018"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.763870"], ["updated_at", "2024-12-23 21:38:45.763870"]] 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", "2024-12-23 21:38:45.764486"], ["id", 1]] User Update (0.0ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "Executed"], ["updated_at", "2024-12-23 21:38:45.764913"], ["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", "2024-12-23 21:38:45.766269"], ["updated_at", "2024-12-23 21:38:45.766269"]] 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", "2024-12-23 21:38:45.769251"], ["updated_at", "2024-12-23 21:38:45.769251"]] 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", "2024-12-23 21:38:45.771261"], ["updated_at", "2024-12-23 21:38:45.771261"]] 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", "2024-12-23 21:38:45.774787"], ["updated_at", "2024-12-23 21:38:45.774787"]] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1 TRANSACTION (0.0ms) SAVEPOINT active_record_1 HasStates::State Create (0.1ms) INSERT INTO "has_states_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", "2024-12-23 21:38:45.775660"], ["updated_at", "2024-12-23 21:38:45.775660"]] 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", "2024-12-23 21:38:45.777023"], ["updated_at", "2024-12-23 21:38:45.777023"]] 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", "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