test/dummy/log/test.log in paper_trail-audit-0.0.1 vs test/dummy/log/test.log in paper_trail-audit-0.0.2
- old
+ new
@@ -3578,5 +3578,317 @@
[1m[36mPaperTrail::Version Load (0.2ms)[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", 6]]
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 18) 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" < 19) 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" < 20) 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[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36m (0.7ms)[0m [1mCREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "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 (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
+ [1m[36m (0.7ms)[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 ('20160802235657')[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [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, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) [0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "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.8ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
+ [1m[35m (0.8ms)[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 ('20160802235657')[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 18:21:32.543192"], ["updated_at", "2016-08-03 18:21:32.543192"]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 18:21:32.543192"], ["item_id", 1], ["item_type", "Bank"]]
+ [1m[35m (0.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.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.576930"], ["updated_at", "2016-08-03 18:21:32.576930"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 18:21:32.576930"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:21:32.580434"], ["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: \ncreated_at: &1 2016-08-03 18:21:32.576930000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.580434"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[35m (0.7ms)[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.3ms)[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.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 18:21:32.591464"], ["updated_at", "2016-08-03 18:21:32.591464"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.591464"], ["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", 10], ["updated_at", "2016-08-03 18:21:32.594780"], ["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\ncreated_at: &1 2016-08-03 18:21:32.591464000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.594780"], ["item_id", 3], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 18:21:32.599279"], ["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\ncreated_at: 2016-08-03 18:21:32.591464000 Z\nupdated_at: 2016-08-03 18:21:32.594780000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.599279"], ["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", "2016-08-03 18:21:32.603312"], ["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: \ncreated_at: 2016-08-03 18:21:32.591464000 Z\nupdated_at: 2016-08-03 18:21:32.599279000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.603312"], ["item_id", 3], ["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", 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", "2016-08-03 18:21:32.610742"], ["updated_at", "2016-08-03 18:21:32.610742"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 18:21:32.610742"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.617959"], ["updated_at", "2016-08-03 18:21:32.617959"]]
+ [1m[36m (0.5ms)[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", "2016-08-03 18:21:32.622311"], ["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\ncreated_at: &1 2016-08-03 18:21:32.610742000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.622311"], ["item_id", 4], ["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", nil], ["updated_at", "2016-08-03 18:21:32.626380"], ["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\ncreated_at: 2016-08-03 18:21:32.610742000 Z\nupdated_at: 2016-08-03 18:21:32.622311000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 18:21:32.626380"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[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", 4], ["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", 4], ["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" < 9) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
+ [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[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 18:21:32.633977"], ["updated_at", "2016-08-03 18:21:32.633977"]]
+ [1m[35m (0.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.635220"], ["updated_at", "2016-08-03 18:21:32.635220"]]
+ [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", "2016-08-03 18:21:32.636546"], ["updated_at", "2016-08-03 18:21:32.636546"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.636546"], ["item_id", 5], ["item_type", "Bank"]]
+ [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", 2], ["updated_at", "2016-08-03 18:21:32.640122"], ["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\ncreated_at: &1 2016-08-03 18:21:32.636546000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.640122"], ["item_id", 5], ["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 "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 18:21:32.644741"], ["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\ncreated_at: 2016-08-03 18:21:32.636546000 Z\nupdated_at: 2016-08-03 18:21:32.640122000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 18:21:32.644741"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[36m (0.6ms)[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", nil], ["updated_at", "2016-08-03 18:21:32.648554"], ["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\ncreated_at: 2016-08-03 18:21:32.636546000 Z\nupdated_at: 2016-08-03 18:21:32.644741000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 18:21:32.648554"], ["item_id", 5], ["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", 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" < 12) 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" < 13) 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" < 14) 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.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mUser Load (0.1ms)[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", "2016-08-03 18:21:32.659090"], ["updated_at", "2016-08-03 18:21:32.659090"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:21:32.659090"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.7ms)[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", "2016-08-03 18:21:32.662889"], ["id", 6]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 6\nvalue: 100\ncreated_at: &1 2016-08-03 18:21:32.659090000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 18:21:32.662889"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.668224"], ["updated_at", "2016-08-03 18:21:32.668224"]]
+ [1m[36m (0.3ms)[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", "2016-08-03 18:21:32.669555"], ["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\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.662889000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.669555"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[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", "2016-08-03 18:21:32.672945"], ["updated_at", "2016-08-03 18:21:32.672945"]]
+ [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", "2016-08-03 18:21:32.674422"], ["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\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.669555000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.674422"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.6ms)[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", 123], ["updated_at", "2016-08-03 18:21:32.677881"], ["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\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.674422000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.677881"], ["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", "2016-08-03 18:21:32.680943"], ["updated_at", "2016-08-03 18:21:32.680943"]]
+ [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", 6], ["updated_at", "2016-08-03 18:21:32.682417"], ["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\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.677881000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.682417"], ["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 [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 18:21:32.687109"], ["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\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.682417000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:21:32.687109"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.6ms)[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.2ms)[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", 6]]
+ [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", 6]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 18) 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" < 19) 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" < 20) 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[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[36m (2.5ms)[0m [1mCREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) [0m
+ [1m[35m (0.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.7ms)[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.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
+ [1m[36m (0.7ms)[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 ('20160802235657')[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
+ [1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
+ [1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 18:22:04.945589"], ["updated_at", "2016-08-03 18:22:04.945589"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 18:22:04.945589"], ["item_id", 1], ["item_type", "Bank"]]
+ [1m[35m (2.4ms)[0m commit transaction
+ [1m[36mBank Load (0.2ms)[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.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:04.977554"], ["updated_at", "2016-08-03 18:22:04.977554"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 18:22:04.977554"], ["item_id", 2], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[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", "2016-08-03 18:22:04.980627"], ["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: \ncreated_at: &1 2016-08-03 18:22:04.977554000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:04.980627"], ["item_id", 2], ["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", 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.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 18:22:04.989768"], ["updated_at", "2016-08-03 18:22:04.989768"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:04.989768"], ["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", 10], ["updated_at", "2016-08-03 18:22:04.993020"], ["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\ncreated_at: &1 2016-08-03 18:22:04.989768000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:04.993020"], ["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", nil], ["updated_at", "2016-08-03 18:22:04.996884"], ["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\ncreated_at: 2016-08-03 18:22:04.989768000 Z\nupdated_at: 2016-08-03 18:22:04.993020000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:22:04.996884"], ["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", "2016-08-03 18:22:05.000396"], ["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: \ncreated_at: 2016-08-03 18:22:04.989768000 Z\nupdated_at: 2016-08-03 18:22:04.996884000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:22:05.000396"], ["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", "2016-08-03 18:22:05.009432"], ["updated_at", "2016-08-03 18:22:05.009432"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 18:22:05.009432"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[35m (0.6ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.016643"], ["updated_at", "2016-08-03 18:22:05.016643"]]
+ [1m[36m (0.5ms)[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", "2016-08-03 18:22:05.020484"], ["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\ncreated_at: &1 2016-08-03 18:22:05.009432000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:05.020484"], ["item_id", 4], ["item_type", "Bank"]]
+ [1m[36m (0.4ms)[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", nil], ["updated_at", "2016-08-03 18:22:05.024227"], ["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\ncreated_at: 2016-08-03 18:22:05.009432000 Z\nupdated_at: 2016-08-03 18:22:05.020484000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 18:22:05.024227"], ["item_id", 4], ["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", 4], ["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", 4], ["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" < 9) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
+ [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[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 18:22:05.031239"], ["updated_at", "2016-08-03 18:22:05.031239"]]
+ [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", "2016-08-03 18:22:05.032753"], ["updated_at", "2016-08-03 18:22:05.032753"]]
+ [1m[36m (0.6ms)[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", "2016-08-03 18:22:05.034421"], ["updated_at", "2016-08-03 18:22:05.034421"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:05.034421"], ["item_id", 5], ["item_type", "Bank"]]
+ [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", 2], ["updated_at", "2016-08-03 18:22:05.037929"], ["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\ncreated_at: &1 2016-08-03 18:22:05.034421000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:05.037929"], ["item_id", 5], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 18:22:05.041790"], ["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\ncreated_at: 2016-08-03 18:22:05.034421000 Z\nupdated_at: 2016-08-03 18:22:05.037929000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 18:22:05.041790"], ["item_id", 5], ["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 "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2016-08-03 18:22:05.045842"], ["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\ncreated_at: 2016-08-03 18:22:05.034421000 Z\nupdated_at: 2016-08-03 18:22:05.041790000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 18:22:05.045842"], ["item_id", 5], ["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", 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" < 12) 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" < 13) 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" < 14) 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", "2016-08-03 18:22:05.055824"], ["updated_at", "2016-08-03 18:22:05.055824"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:22:05.055824"], ["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", "2016-08-03 18:22:05.059266"], ["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\ncreated_at: &1 2016-08-03 18:22:05.055824000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 18:22:05.059266"], ["item_id", 6], ["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", "2016-08-03 18:22:05.062618"], ["updated_at", "2016-08-03 18:22:05.062618"]]
+ [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", "2016-08-03 18:22:05.064300"], ["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\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.059266000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.064300"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 18:22:05.068004"], ["updated_at", "2016-08-03 18:22:05.068004"]]
+ [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", 5], ["updated_at", "2016-08-03 18:22:05.069625"], ["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\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.064300000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.069625"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.5ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2016-08-03 18:22:05.073711"], ["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\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.069625000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.073711"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[35m (0.7ms)[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", "2016-08-03 18:22:05.078584"], ["updated_at", "2016-08-03 18:22:05.078584"]]
+ [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", "2016-08-03 18:22:05.080085"], ["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\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.073711000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.080085"], ["item_id", 6], ["item_type", "Bank"]]
+ [1m[36m (0.6ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 18:22:05.084007"], ["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\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.080085000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:22:05.084007"], ["item_id", 6], ["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", 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" < 16) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
+ [1m[36mPaperTrail::Version Load (0.2ms)[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", 6]]
+ [1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 18) 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" < 19) 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" < 20) 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]]