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 @@ SQL (0.2ms) INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 19:49:35.497549"], ["updated_at", "2017-04-08 19:49:35.497549"]] SQL (0.1ms) 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"]]  (0.5ms) commit transaction PaperTrail::Version Load (0.1ms) 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"]] PaperTrail::Version Load (0.1ms) 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"]] + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.6ms) CREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.6ms) CREATE 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)  +  (0.1ms) select sqlite_version(*) +  (0.7ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id") +  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) +  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.0ms) begin transaction + SQL (0.3ms) 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"]] + SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.007190"], ["item_id", 1], ["item_type", "Bank"]] +  (2.7ms) commit transaction + Bank Load (0.3ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1 +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.027994"], ["updated_at", "2017-04-08 20:21:31.027994"]] + SQL (0.2ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.3ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:31.032241"], ["id", 2]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:31.039495"], ["updated_at", "2017-04-08 20:21:31.039495"]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:31.042832"], ["id", 3]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:31.046116"], ["id", 3]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2017-04-08 20:21:31.049284"], ["id", 3]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:31.052992"], ["updated_at", "2017-04-08 20:21:31.052992"]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.060594"], ["updated_at", "2017-04-08 20:21:31.060594"]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2017-04-08 20:21:31.066029"], ["id", 4]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:31.069390"], ["id", 4]] + SQL (0.1ms) 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"]] +  (0.3ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.072695"], ["updated_at", "2017-04-08 20:21:31.072695"]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.075283"], ["updated_at", "2017-04-08 20:21:31.075283"]] + SQL (0.1ms) 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"]] +  (0.3ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:31.077694"], ["updated_at", "2017-04-08 20:21:31.077694"]] + SQL (0.1ms) 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"]] +  (0.3ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2017-04-08 20:21:31.080386"], ["id", 5]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2017-04-08 20:21:31.084542"], ["id", 5]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2017-04-08 20:21:31.088264"], ["id", 5]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction + PaperTrail::Version Load (0.2ms) 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"]] + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) 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]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] +  (0.0ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:31.101084"], ["item_id", 6], ["item_type", "Bank"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:31.103967"], ["id", 6]] + SQL (0.1ms) 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:31.101084000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2017-04-08 20:21:31.103967"], ["item_id", 6], ["item_type", "Bank"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.107061"], ["item_id", 4], ["item_type", "User"]] +  (0.5ms) commit transaction +  (0.1ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2017-04-08 20:21:31.110091"], ["id", 6]] + SQL (0.1ms) 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: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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.112897"], ["item_id", 5], ["item_type", "User"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2017-04-08 20:21:31.115606"], ["id", 6]] + SQL (0.1ms) 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: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"]] +  (0.6ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2017-04-08 20:21:31.119045"], ["id", 6]] + SQL (0.1ms) 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: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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.122929"], ["item_id", 6], ["item_type", "User"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2017-04-08 20:21:31.126167"], ["id", 6]] + SQL (0.1ms) 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: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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:31.129357"], ["id", 6]] + SQL (0.1ms) 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: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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.132709"], ["item_id", 7], ["item_type", "User"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", 2], ["updated_at", "2017-04-08 20:21:31.135639"], ["id", 7]] + SQL (0.1ms) 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:31.132709000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.135639"], ["item_id", 7], ["item_type", "User"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", nil], ["updated_at", "2017-04-08 20:21:31.138670"], ["id", 7]] + SQL (0.1ms) 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: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"]] +  (0.6ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) 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]] +  (0.0ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.150406"], ["item_id", 8], ["item_type", "User"]] +  (0.5ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.0ms) 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"]] + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (2.8ms) CREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.9ms) CREATE 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)  +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id") +  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) +  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941') + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.0ms) begin transaction + SQL (0.3ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.517638"], ["item_id", 1], ["item_type", "Bank"]] +  (2.5ms) commit transaction + Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1 + PaperTrail::Version Load (0.2ms) 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"]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 1], ["item_type", "Bank"]] + Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1 +  (0.1ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.538838"], ["item_id", 2], ["item_type", "Bank"]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:54.541873"], ["id", 2]] + SQL (0.1ms) 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:54.538838000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.541873"], ["item_id", 2], ["item_type", "Bank"]] +  (0.6ms) commit transaction + PaperTrail::Version Load (0.1ms) 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", 2], ["item_type", "Bank"]] + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 3) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 2]] +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:54.550456"], ["updated_at", "2017-04-08 20:21:54.550456"]] + SQL (0.1ms) 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"]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:54.553217"], ["id", 3]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:54.555945"], ["id", 3]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2017-04-08 20:21:54.558668"], ["id", 3]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 3], ["item_type", "Bank"]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 6) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 3]] + PaperTrail::Version Load (0.1ms) 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]] +  (0.0ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.566067"], ["item_id", 4], ["item_type", "Bank"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.572760"], ["item_id", 1], ["item_type", "User"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2017-04-08 20:21:54.577817"], ["id", 4]] + SQL (0.1ms) 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:54.566067000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.577817"], ["item_id", 4], ["item_type", "Bank"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:54.581561"], ["id", 4]] + SQL (0.1ms) 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: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"]] +  (0.4ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 10) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]] + PaperTrail::Version Load (0.1ms) 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]] +  (0.0ms) begin transaction + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.588287"], ["item_id", 2], ["item_type", "User"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.591432"], ["item_id", 3], ["item_type", "User"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.594109"], ["item_id", 5], ["item_type", "Bank"]] +  (0.3ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2017-04-08 20:21:54.596802"], ["id", 5]] + SQL (0.1ms) 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:54.594109000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.596802"], ["item_id", 5], ["item_type", "Bank"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2017-04-08 20:21:54.599789"], ["id", 5]] + SQL (0.1ms) 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: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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2017-04-08 20:21:54.602771"], ["id", 5]] + SQL (0.1ms) 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: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"]] +  (0.5ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) 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]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:54.611708"], ["updated_at", "2017-04-08 20:21:54.611708"]] + SQL (0.1ms) 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"]] +  (0.7ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:54.615073"], ["id", 6]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.618247"], ["updated_at", "2017-04-08 20:21:54.618247"]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2017-04-08 20:21:54.620936"], ["id", 6]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.623702"], ["updated_at", "2017-04-08 20:21:54.623702"]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2017-04-08 20:21:54.626369"], ["id", 6]] + SQL (0.1ms) 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"]] +  (0.6ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2017-04-08 20:21:54.629569"], ["id", 6]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.632759"], ["updated_at", "2017-04-08 20:21:54.632759"]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction +  (0.0ms) begin transaction + SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2017-04-08 20:21:54.635813"], ["id", 6]] + SQL (0.1ms) 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"]] +  (0.7ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:54.644163"], ["id", 6]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 6], ["item_type", "Bank"]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 21) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 24) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 27) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]] +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 20:21:54.655248"], ["updated_at", "2017-04-08 20:21:54.655248"]] + SQL (0.1ms) 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"]] +  (0.7ms) commit transaction +  (0.1ms) begin transaction + SQL (0.2ms) UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", 2], ["updated_at", "2017-04-08 20:21:54.658492"], ["id", 7]] + SQL (0.1ms) 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"]] +  (0.5ms) commit transaction +  (0.0ms) begin transaction + SQL (0.1ms) UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", nil], ["updated_at", "2017-04-08 20:21:54.662548"], ["id", 7]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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]] + PaperTrail::Version Load (0.1ms) 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]] +  (0.0ms) begin transaction + SQL (0.2ms) INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 20:21:54.669870"], ["updated_at", "2017-04-08 20:21:54.669870"]] + SQL (0.1ms) 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"]] +  (0.4ms) commit transaction + PaperTrail::Version Load (0.1ms) 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"]] + PaperTrail::Version Load (0.1ms) 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"]]