test/dummy/log/test.log in paper_trail-audit-0.0.6 vs test/dummy/log/test.log in paper_trail-audit-0.0.7
- old
+ new
@@ -10249,5 +10249,334 @@
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2017-04-08 19:49:35.497549"], ["updated_at", "2017-04-08 19:49:35.497549"]]
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 19:49:35.497549"], ["item_id", 8], ["item_type", "User"]]
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 8], ["item_type", "User"]]
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 8], ["item_type", "User"]]
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36m (2.6ms)[0m [1mCREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.6ms)[0m [1mCREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime) [0m
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
+ [1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2017-04-08 20:21:31.007190"], ["updated_at", "2017-04-08 20:21:31.007190"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:31.007190"], ["item_id", 1], ["item_type", "Bank"]]
+ [1m[35m (2.7ms)[0m commit transaction
+ [1m[36mBank Load (0.3ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.027994"], ["updated_at", "2017-04-08 20:21:31.027994"]]
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.027994"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:31.032241"], ["id", 2]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 2\nvalue: \nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.027994000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.032241"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:31.039495"], ["updated_at", "2017-04-08 20:21:31.039495"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.039495"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:31.042832"], ["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.039495000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.042832"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:31.046116"], ["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 10\nuser_id: \ncreated_at: 2017-04-08 20:21:31.039495000 Z\nupdated_at: 2017-04-08 20:21:31.042832000 Z\n"], ["created_at", "2017-04-08 20:21:31.046116"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2017-04-08 20:21:31.049284"], ["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: \nuser_id: \ncreated_at: 2017-04-08 20:21:31.039495000 Z\nupdated_at: 2017-04-08 20:21:31.046116000 Z\n"], ["created_at", "2017-04-08 20:21:31.049284"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:31.052992"], ["updated_at", "2017-04-08 20:21:31.052992"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.052992"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.060594"], ["updated_at", "2017-04-08 20:21:31.060594"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.060594"], ["item_id", 1], ["item_type", "User"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 1], ["updated_at", "2017-04-08 20:21:31.066029"], ["id", 4]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.052992000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.066029"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:31.069390"], ["id", 4]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: 1\ncreated_at: 2017-04-08 20:21:31.052992000 Z\nupdated_at: 2017-04-08 20:21:31.066029000 Z\n"], ["created_at", "2017-04-08 20:21:31.069390"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[36m (0.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.072695"], ["updated_at", "2017-04-08 20:21:31.072695"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.072695"], ["item_id", 2], ["item_type", "User"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.075283"], ["updated_at", "2017-04-08 20:21:31.075283"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.075283"], ["item_id", 3], ["item_type", "User"]]
+ [1m[36m (0.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:31.077694"], ["updated_at", "2017-04-08 20:21:31.077694"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.077694"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[36m (0.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 2], ["updated_at", "2017-04-08 20:21:31.080386"], ["id", 5]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.077694000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.080386"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2017-04-08 20:21:31.084542"], ["id", 5]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 2\ncreated_at: 2017-04-08 20:21:31.077694000 Z\nupdated_at: 2017-04-08 20:21:31.080386000 Z\n"], ["created_at", "2017-04-08 20:21:31.084542"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2017-04-08 20:21:31.088264"], ["id", 5]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 3\ncreated_at: 2017-04-08 20:21:31.077694000 Z\nupdated_at: 2017-04-08 20:21:31.084542000 Z\n"], ["created_at", "2017-04-08 20:21:31.088264"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35mPaperTrail::Version Load (0.2ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 5], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 5], ["item_type", "Bank"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 15) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 16) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 17) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:31.101084"], ["updated_at", "2017-04-08 20:21:31.101084"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:31.101084"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:31.103967"], ["id", 6]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.101084000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2017-04-08 20:21:31.103967"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.107061"], ["updated_at", "2017-04-08 20:21:31.107061"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.107061"], ["item_id", 4], ["item_type", "User"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2017-04-08 20:21:31.110091"], ["id", 6]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 10\nuser_id: \ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.103967000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.110091"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.112897"], ["updated_at", "2017-04-08 20:21:31.112897"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.112897"], ["item_id", 5], ["item_type", "User"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2017-04-08 20:21:31.115606"], ["id", 6]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 10\nuser_id: 4\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.110091000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.115606"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.6ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2017-04-08 20:21:31.119045"], ["id", 6]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 10\nuser_id: 5\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.115606000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.119045"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.122929"], ["updated_at", "2017-04-08 20:21:31.122929"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.122929"], ["item_id", 6], ["item_type", "User"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2017-04-08 20:21:31.126167"], ["id", 6]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 123\nuser_id: 5\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.119045000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.126167"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:31.129357"], ["id", 6]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 123\nuser_id: 6\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.126167000 Z\n"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:31.129357"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 20:21:31.132709"], ["updated_at", "2017-04-08 20:21:31.132709"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:31.132709"], ["item_id", 7], ["item_type", "User"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", 2], ["updated_at", "2017-04-08 20:21:31.135639"], ["id", 7]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2017-04-08 20:21:31.132709000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.135639"], ["item_id", 7], ["item_type", "User"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", nil], ["updated_at", "2017-04-08 20:21:31.138670"], ["id", 7]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2017-04-08 20:21:31.132709000 Z\nupdated_at: 2017-04-08 20:21:31.135639000 Z\n"], ["created_at", "2017-04-08 20:21:31.138670"], ["item_id", 7], ["item_type", "User"]]
+ [1m[35m (0.6ms)[0m commit transaction
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1[0m [["item_id", 7], ["item_type", "User"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 7], ["item_type", "User"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 29) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "User"], ["item_id", 7]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 30) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "User"], ["item_id", 7]]
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 20:21:31.150406"], ["updated_at", "2017-04-08 20:21:31.150406"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:31.150406"], ["item_id", 8], ["item_type", "User"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1[0m [["item_id", 8], ["item_type", "User"]]
+ [1m[35mPaperTrail::Version Load (0.0ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 8], ["item_type", "User"]]
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36m (2.8ms)[0m [1mCREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime) [0m
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (1.0ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
+ [1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2017-04-08 20:21:54.517638"], ["updated_at", "2017-04-08 20:21:54.517638"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.517638"], ["item_id", 1], ["item_type", "Bank"]]
+ [1m[35m (2.5ms)[0m commit transaction
+ [1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
+ [1m[35mPaperTrail::Version Load (0.2ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 1], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 1], ["item_type", "Bank"]]
+ [1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.538838"], ["updated_at", "2017-04-08 20:21:54.538838"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.538838"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[35m (0.6ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:54.541873"], ["id", 2]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 2\nvalue: \nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.538838000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.541873"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[35m (0.6ms)[0m commit transaction
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1[0m [["item_id", 2], ["item_type", "Bank"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 2], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 3) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 2]]
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:54.550456"], ["updated_at", "2017-04-08 20:21:54.550456"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.550456"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.6ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:54.553217"], ["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.550456000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.553217"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:54.555945"], ["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 10\nuser_id: \ncreated_at: 2017-04-08 20:21:54.550456000 Z\nupdated_at: 2017-04-08 20:21:54.553217000 Z\n"], ["created_at", "2017-04-08 20:21:54.555945"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2017-04-08 20:21:54.558668"], ["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: \nuser_id: \ncreated_at: 2017-04-08 20:21:54.550456000 Z\nupdated_at: 2017-04-08 20:21:54.555945000 Z\n"], ["created_at", "2017-04-08 20:21:54.558668"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 3], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 3], ["item_type", "Bank"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 5) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 3]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 6) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 3]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 7) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 3]]
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:54.566067"], ["updated_at", "2017-04-08 20:21:54.566067"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.566067"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.572760"], ["updated_at", "2017-04-08 20:21:54.572760"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.572760"], ["item_id", 1], ["item_type", "User"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2017-04-08 20:21:54.577817"], ["id", 4]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.566067000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.577817"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:54.581561"], ["id", 4]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: 1\ncreated_at: 2017-04-08 20:21:54.566067000 Z\nupdated_at: 2017-04-08 20:21:54.577817000 Z\n"], ["created_at", "2017-04-08 20:21:54.581561"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1[0m [["item_id", 4], ["item_type", "Bank"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 4], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 10) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 4]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 11) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.588287"], ["updated_at", "2017-04-08 20:21:54.588287"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.588287"], ["item_id", 2], ["item_type", "User"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.591432"], ["updated_at", "2017-04-08 20:21:54.591432"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.591432"], ["item_id", 3], ["item_type", "User"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:54.594109"], ["updated_at", "2017-04-08 20:21:54.594109"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.594109"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[35m (0.3ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2017-04-08 20:21:54.596802"], ["id", 5]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.594109000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.596802"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2017-04-08 20:21:54.599789"], ["id", 5]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 2\ncreated_at: 2017-04-08 20:21:54.594109000 Z\nupdated_at: 2017-04-08 20:21:54.596802000 Z\n"], ["created_at", "2017-04-08 20:21:54.599789"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2017-04-08 20:21:54.602771"], ["id", 5]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 3\ncreated_at: 2017-04-08 20:21:54.594109000 Z\nupdated_at: 2017-04-08 20:21:54.599789000 Z\n"], ["created_at", "2017-04-08 20:21:54.602771"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1[0m [["item_id", 5], ["item_type", "Bank"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 5], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 15) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 16) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 17) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
+ [1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:54.611708"], ["updated_at", "2017-04-08 20:21:54.611708"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:54.611708"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:54.615073"], ["id", 6]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.611708000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2017-04-08 20:21:54.615073"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:54.618247"], ["updated_at", "2017-04-08 20:21:54.618247"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.618247"], ["item_id", 4], ["item_type", "User"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2017-04-08 20:21:54.620936"], ["id", 6]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\nuser_id: \ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.615073000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.620936"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:54.623702"], ["updated_at", "2017-04-08 20:21:54.623702"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.623702"], ["item_id", 5], ["item_type", "User"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2017-04-08 20:21:54.626369"], ["id", 6]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\nuser_id: 4\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.620936000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.626369"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.6ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2017-04-08 20:21:54.629569"], ["id", 6]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\nuser_id: 5\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.626369000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.629569"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:54.632759"], ["updated_at", "2017-04-08 20:21:54.632759"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.632759"], ["item_id", 6], ["item_type", "User"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2017-04-08 20:21:54.635813"], ["id", 6]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 123\nuser_id: 5\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.629569000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.635813"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:54.644163"], ["id", 6]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 123\nuser_id: 6\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.635813000 Z\n"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:54.644163"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 6], ["item_type", "Bank"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 6], ["item_type", "Bank"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 19) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 21) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 23) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 24) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 26) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 27) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2017-04-08 20:21:54.655248"], ["updated_at", "2017-04-08 20:21:54.655248"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.655248"], ["item_id", 7], ["item_type", "User"]]
+ [1m[36m (0.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2017-04-08 20:21:54.658492"], ["id", 7]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2017-04-08 20:21:54.655248000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.658492"], ["item_id", 7], ["item_type", "User"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2017-04-08 20:21:54.662548"], ["id", 7]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2017-04-08 20:21:54.655248000 Z\nupdated_at: 2017-04-08 20:21:54.658492000 Z\n"], ["created_at", "2017-04-08 20:21:54.662548"], ["item_id", 7], ["item_type", "User"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 7], ["item_type", "User"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 7], ["item_type", "User"]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 29) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "User"], ["item_id", 7]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 30) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "User"], ["item_id", 7]]
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2017-04-08 20:21:54.669870"], ["updated_at", "2017-04-08 20:21:54.669870"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.669870"], ["item_id", 8], ["item_type", "User"]]
+ [1m[36m (0.4ms)[0m [1mcommit transaction[0m
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" DESC, "versions"."id" DESC LIMIT 1 [["item_id", 8], ["item_type", "User"]]
+ [1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC[0m [["item_id", 8], ["item_type", "User"]]