paper_trail-audit 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d6c36be054e51c51b2963a15727e13b2adfa19a
4
- data.tar.gz: 2214106f19a4b449d7b51ca1650a5c14cfa2e524
3
+ metadata.gz: 1c2e4745b2f6c6064f6bdeeb7127bc746ed0857a
4
+ data.tar.gz: 0b45d80ba8e614c240e67719f4f2b8b24f11839e
5
5
  SHA512:
6
- metadata.gz: 7549173a6ed3a1bfeafedc2b0b4d6801e4ef2c4624cb3e7314624944f6a7d1fffa00b90aac3888d13fab16166b1b0c9bff3c4265bc7dcd526ff56f6d89c8c6b6
7
- data.tar.gz: 9e7887aeed2e4d57b6e2aaa3bb3c87515dea803a876fddd311a120adc3f50ed9b11689cd7fba4d70dfeead68ed1a298940fedd242c48933554bfa2d10319fab4
6
+ metadata.gz: 777a2accc92466791a9c3a74994e3feb7e2cc9e3ffd356ba05c4d384ca4b98985cad5d6bb7a7b3e14ac2b51726340a4b798fd9f82fcac567c04ceffb8619adb0
7
+ data.tar.gz: bfe2d86315890af6c5a35f4110437d2b43e8ce7b6f377a16ab27d4edd1c572a7b51ee80ca4676253fdf49f472785011c17e1a397f52bc1c120dc4e0ad9688e36
@@ -62,7 +62,7 @@ module PaperTrailAudit
62
62
  o.new_value = reflection.klass.find(o.new_value) if o.new_value
63
63
  end
64
64
  end
65
- return
65
+ next
66
66
  end
67
67
 
68
68
  if self.defined_enums.include?(param.to_s)
@@ -1,3 +1,3 @@
1
1
  module PaperTrailAudit
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -4,5 +4,5 @@ class Bank < ActiveRecord::Base
4
4
  belongs_to :user
5
5
 
6
6
  has_paper_trail
7
- paper_trail_audit_for :value,:user
7
+ paper_trail_audit_for :user,:value
8
8
  end
Binary file
@@ -10251,3 +10251,332 @@
10251
10251
   (0.5ms) commit transaction
10252
10252
  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"]]
10253
10253
  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"]]
10254
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10255
+  (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) 
10256
+  (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)
10257
+  (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) 
10258
+  (0.1ms) select sqlite_version(*)
10259
+  (0.7ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
10260
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
10261
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10262
+  (0.1ms) SELECT version FROM "schema_migrations"
10263
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
10264
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
10265
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941')
10266
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10267
+  (0.0ms) begin transaction
10268
+ 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"]]
10269
+ 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"]]
10270
+  (2.7ms) commit transaction
10271
+ Bank Load (0.3ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
10272
+  (0.0ms) begin transaction
10273
+ 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"]]
10274
+ 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"]]
10275
+  (0.5ms) commit transaction
10276
+  (0.0ms) begin transaction
10277
+ 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]]
10278
+ 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"]]
10279
+  (0.4ms) commit transaction
10280
+  (0.0ms) begin transaction
10281
+ 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"]]
10282
+ 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"]]
10283
+  (0.5ms) commit transaction
10284
+  (0.0ms) begin transaction
10285
+ 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]]
10286
+ 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"]]
10287
+  (0.5ms) commit transaction
10288
+  (0.0ms) begin transaction
10289
+ 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]]
10290
+ 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"]]
10291
+  (0.5ms) commit transaction
10292
+  (0.0ms) begin transaction
10293
+ 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]]
10294
+ 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"]]
10295
+  (0.5ms) commit transaction
10296
+  (0.0ms) begin transaction
10297
+ 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"]]
10298
+ 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"]]
10299
+  (0.5ms) commit transaction
10300
+  (0.0ms) begin transaction
10301
+ 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"]]
10302
+ 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"]]
10303
+  (0.4ms) commit transaction
10304
+  (0.0ms) begin transaction
10305
+ 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]]
10306
+ 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"]]
10307
+  (0.4ms) commit transaction
10308
+  (0.0ms) begin transaction
10309
+ 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]]
10310
+ 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"]]
10311
+  (0.3ms) commit transaction
10312
+  (0.0ms) begin transaction
10313
+ 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"]]
10314
+ 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"]]
10315
+  (0.4ms) commit transaction
10316
+  (0.1ms) begin transaction
10317
+ 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"]]
10318
+ 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"]]
10319
+  (0.3ms) commit transaction
10320
+  (0.0ms) begin transaction
10321
+ 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"]]
10322
+ 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"]]
10323
+  (0.3ms) commit transaction
10324
+  (0.0ms) begin transaction
10325
+ 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]]
10326
+ 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"]]
10327
+  (0.4ms) commit transaction
10328
+  (0.0ms) begin transaction
10329
+ 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]]
10330
+ 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"]]
10331
+  (0.4ms) commit transaction
10332
+  (0.0ms) begin transaction
10333
+ 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]]
10334
+ 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"]]
10335
+  (0.4ms) commit transaction
10336
+ 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"]]
10337
+ 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"]]
10338
+ 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]]
10339
+ 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]]
10340
+ 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]]
10341
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
10342
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
10343
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10344
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10345
+  (0.0ms) begin transaction
10346
+ 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"]]
10347
+ 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"]]
10348
+  (0.4ms) commit transaction
10349
+  (0.0ms) begin transaction
10350
+ 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]]
10351
+ 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"]]
10352
+  (0.4ms) commit transaction
10353
+  (0.0ms) begin transaction
10354
+ 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"]]
10355
+ 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"]]
10356
+  (0.5ms) commit transaction
10357
+  (0.1ms) begin transaction
10358
+ 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]]
10359
+ 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"]]
10360
+  (0.4ms) commit transaction
10361
+  (0.0ms) begin transaction
10362
+ 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"]]
10363
+ 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"]]
10364
+  (0.4ms) commit transaction
10365
+  (0.0ms) begin transaction
10366
+ 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]]
10367
+ 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"]]
10368
+  (0.6ms) commit transaction
10369
+  (0.1ms) begin transaction
10370
+ 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]]
10371
+ 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"]]
10372
+  (0.5ms) commit transaction
10373
+  (0.0ms) begin transaction
10374
+ 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"]]
10375
+ 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"]]
10376
+  (0.5ms) commit transaction
10377
+  (0.0ms) begin transaction
10378
+ 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]]
10379
+ 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"]]
10380
+  (0.5ms) commit transaction
10381
+  (0.0ms) begin transaction
10382
+ 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]]
10383
+ 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"]]
10384
+  (0.5ms) commit transaction
10385
+  (0.0ms) begin transaction
10386
+ 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"]]
10387
+ 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"]]
10388
+  (0.5ms) commit transaction
10389
+  (0.0ms) begin transaction
10390
+ 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]]
10391
+ 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"]]
10392
+  (0.5ms) commit transaction
10393
+  (0.0ms) begin transaction
10394
+ 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]]
10395
+ 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"]]
10396
+  (0.6ms) commit transaction
10397
+ 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"]]
10398
+ 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"]]
10399
+ 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]]
10400
+ 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]]
10401
+  (0.0ms) begin transaction
10402
+ 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"]]
10403
+ 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"]]
10404
+  (0.5ms) commit transaction
10405
+ 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"]]
10406
+ 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"]]
10407
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10408
+  (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) 
10409
+  (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)
10410
+  (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) 
10411
+  (0.1ms) select sqlite_version(*)
10412
+  (1.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
10413
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
10414
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10415
+  (0.1ms) SELECT version FROM "schema_migrations"
10416
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
10417
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
10418
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941')
10419
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10420
+  (0.0ms) begin transaction
10421
+ 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"]]
10422
+ 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"]]
10423
+  (2.5ms) commit transaction
10424
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
10425
+ 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"]]
10426
+ 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"]]
10427
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
10428
+  (0.1ms) begin transaction
10429
+ 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"]]
10430
+ 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"]]
10431
+  (0.6ms) commit transaction
10432
+  (0.0ms) begin transaction
10433
+ 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]]
10434
+ 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"]]
10435
+  (0.6ms) commit transaction
10436
+ 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"]]
10437
+ 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"]]
10438
+ 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]]
10439
+  (0.0ms) begin transaction
10440
+ 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"]]
10441
+ 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"]]
10442
+  (0.6ms) commit transaction
10443
+  (0.0ms) begin transaction
10444
+ 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]]
10445
+ 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"]]
10446
+  (0.5ms) commit transaction
10447
+  (0.0ms) begin transaction
10448
+ 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]]
10449
+ 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"]]
10450
+  (0.5ms) commit transaction
10451
+  (0.0ms) begin transaction
10452
+ 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]]
10453
+ 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"]]
10454
+  (0.4ms) commit transaction
10455
+ 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"]]
10456
+ 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"]]
10457
+ 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]]
10458
+ 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]]
10459
+ 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]]
10460
+  (0.0ms) begin transaction
10461
+ 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"]]
10462
+ 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"]]
10463
+  (0.4ms) commit transaction
10464
+  (0.0ms) begin transaction
10465
+ 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"]]
10466
+ 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"]]
10467
+  (0.4ms) commit transaction
10468
+  (0.0ms) begin transaction
10469
+ 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]]
10470
+ 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"]]
10471
+  (0.4ms) commit transaction
10472
+  (0.0ms) begin transaction
10473
+ 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]]
10474
+ 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"]]
10475
+  (0.4ms) commit transaction
10476
+ 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"]]
10477
+ 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"]]
10478
+ 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]]
10479
+ 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]]
10480
+  (0.0ms) begin transaction
10481
+ 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"]]
10482
+ 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"]]
10483
+  (0.4ms) commit transaction
10484
+  (0.0ms) begin transaction
10485
+ 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"]]
10486
+ 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"]]
10487
+  (0.4ms) commit transaction
10488
+  (0.0ms) begin transaction
10489
+ 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"]]
10490
+ 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"]]
10491
+  (0.3ms) commit transaction
10492
+  (0.0ms) begin transaction
10493
+ 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]]
10494
+ 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"]]
10495
+  (0.4ms) commit transaction
10496
+  (0.0ms) begin transaction
10497
+ 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]]
10498
+ 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"]]
10499
+  (0.4ms) commit transaction
10500
+  (0.0ms) begin transaction
10501
+ 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]]
10502
+ 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"]]
10503
+  (0.5ms) commit transaction
10504
+ 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"]]
10505
+ 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"]]
10506
+ 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]]
10507
+ 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]]
10508
+ 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]]
10509
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
10510
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
10511
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10512
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
10513
+  (0.0ms) begin transaction
10514
+ 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"]]
10515
+ 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"]]
10516
+  (0.7ms) commit transaction
10517
+  (0.0ms) begin transaction
10518
+ 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]]
10519
+ 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"]]
10520
+  (0.5ms) commit transaction
10521
+  (0.0ms) begin transaction
10522
+ 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"]]
10523
+ 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"]]
10524
+  (0.5ms) commit transaction
10525
+  (0.0ms) begin transaction
10526
+ 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]]
10527
+ 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"]]
10528
+  (0.5ms) commit transaction
10529
+  (0.0ms) begin transaction
10530
+ 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"]]
10531
+ 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"]]
10532
+  (0.5ms) commit transaction
10533
+  (0.0ms) begin transaction
10534
+ 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]]
10535
+ 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"]]
10536
+  (0.6ms) commit transaction
10537
+  (0.0ms) begin transaction
10538
+ 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]]
10539
+ 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"]]
10540
+  (0.5ms) commit transaction
10541
+  (0.0ms) begin transaction
10542
+ 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"]]
10543
+ 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"]]
10544
+  (0.4ms) commit transaction
10545
+  (0.0ms) begin transaction
10546
+ 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]]
10547
+ 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"]]
10548
+  (0.7ms) commit transaction
10549
+  (0.0ms) begin transaction
10550
+ 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]]
10551
+ 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"]]
10552
+  (0.5ms) commit transaction
10553
+ 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"]]
10554
+ 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"]]
10555
+ 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]]
10556
+ 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]]
10557
+ 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]]
10558
+ 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]]
10559
+ 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]]
10560
+ 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]]
10561
+  (0.0ms) begin transaction
10562
+ 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"]]
10563
+ 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"]]
10564
+  (0.7ms) commit transaction
10565
+  (0.1ms) begin transaction
10566
+ 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]]
10567
+ 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"]]
10568
+  (0.5ms) commit transaction
10569
+  (0.0ms) begin transaction
10570
+ 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]]
10571
+ 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"]]
10572
+  (0.4ms) commit transaction
10573
+ 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"]]
10574
+ 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"]]
10575
+ 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]]
10576
+ 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]]
10577
+  (0.0ms) begin transaction
10578
+ 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"]]
10579
+ 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"]]
10580
+  (0.4ms) commit transaction
10581
+ 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"]]
10582
+ 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"]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Chang