paper_trail-audit 0.0.1 → 0.0.2

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: 5ba4c44d98fada47061e337176306bca19468dd2
4
- data.tar.gz: 79b5aa1a20cea048e89d69f9ebc8d7552feaea07
3
+ metadata.gz: aa0a10b80a3e633b38b968af55fc07b5913d1c3e
4
+ data.tar.gz: b4ebf69c3419186b36b4654948097f3b342fefb0
5
5
  SHA512:
6
- metadata.gz: b7d8339a69ca7c868a630018223a3d10c3d6615acfbe5d9af8095efefcc4389887fc67f3e5a3dc7281ab8d3f7f161f4ff181c1a3741f30a02a9e66ee8712f15b
7
- data.tar.gz: 7a2808d482a2ea12a0465d2d55588003706f1bbf1a5fa2acb8d7f35565dd35296807b27a2fa9e76cf4a741c074cd6c5d8312ff69529e3865bdcbaddf3c625472
6
+ metadata.gz: d2c57ddb06e5e4baf2068b40318cfc71b36bc49ce4dcf1917fcf92375be267f30c8c1fc922214b11d4bcc5c8ec80d9028e6fb70527dd60c6bbcbdd96b4ed0c21
7
+ data.tar.gz: b6e877d7fd02d5b949aedc22365e24f2c9ca65bae5a389ca55df218384288b5f7bca9ceba636d78dbdd28effe786e029bf550ae8704404e3c9eb899c5d7702b5
@@ -37,7 +37,8 @@ module PaperTrailAudit
37
37
  end
38
38
 
39
39
  module ClassMethods
40
- def paper_trail_audit_for(params)
40
+ def paper_trail_audit_for(*params)
41
+ params = params.flatten
41
42
  params.each do |param|
42
43
  if(self.column_names.include?(param.to_s))
43
44
  #Define a method which returns a list of audit change events
@@ -1,3 +1,3 @@
1
1
  module PaperTrailAudit
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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 :value,:user
8
8
  end
Binary file
@@ -3580,3 +3580,315 @@
3580
3580
  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]]
3581
3581
  PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 20) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
3582
3582
  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]]
3583
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3584
+  (0.7ms) CREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) 
3585
+  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3586
+  (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) 
3587
+  (0.1ms) select sqlite_version(*)
3588
+  (0.7ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
3589
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3590
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3591
+  (0.1ms) SELECT version FROM "schema_migrations"
3592
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235657')
3593
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
3594
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941')
3595
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
3596
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3597
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3598
+  (2.6ms) CREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) 
3599
+  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3600
+  (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) 
3601
+  (0.1ms) select sqlite_version(*)
3602
+  (0.8ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
3603
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3604
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3605
+  (0.1ms) SELECT version FROM "schema_migrations"
3606
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235657')
3607
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
3608
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941')
3609
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
3610
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3611
+  (0.1ms) begin transaction
3612
+ SQL (0.4ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 18:21:32.543192"], ["updated_at", "2016-08-03 18:21:32.543192"]]
3613
+ SQL (0.2ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.543192"], ["item_id", 1], ["item_type", "Bank"]]
3614
+  (0.5ms) commit transaction
3615
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
3616
+ 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"]]
3617
+ 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"]]
3618
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
3619
+  (0.0ms) begin transaction
3620
+ SQL (0.2ms) INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.576930"], ["updated_at", "2016-08-03 18:21:32.576930"]]
3621
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.576930"], ["item_id", 2], ["item_type", "Bank"]]
3622
+  (0.5ms) commit transaction
3623
+  (0.0ms) begin transaction
3624
+ SQL (0.3ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:21:32.580434"], ["id", 2]]
3625
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 2\nvalue: \ncreated_at: &1 2016-08-03 18:21:32.576930000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.580434"], ["item_id", 2], ["item_type", "Bank"]]
3626
+  (0.7ms) commit transaction
3627
+ 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"]]
3628
+ PaperTrail::Version Load (0.3ms) 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"]]
3629
+ 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]]
3630
+  (0.0ms) begin transaction
3631
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:21:32.591464"], ["updated_at", "2016-08-03 18:21:32.591464"]]
3632
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.591464"], ["item_id", 3], ["item_type", "Bank"]]
3633
+  (0.5ms) commit transaction
3634
+  (0.0ms) begin transaction
3635
+ SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:21:32.594780"], ["id", 3]]
3636
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 100\ncreated_at: &1 2016-08-03 18:21:32.591464000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.594780"], ["item_id", 3], ["item_type", "Bank"]]
3637
+  (0.5ms) commit transaction
3638
+  (0.1ms) begin transaction
3639
+ SQL (0.3ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 18:21:32.599279"], ["id", 3]]
3640
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 10\ncreated_at: 2016-08-03 18:21:32.591464000 Z\nupdated_at: 2016-08-03 18:21:32.594780000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.599279"], ["item_id", 3], ["item_type", "Bank"]]
3641
+  (0.5ms) commit transaction
3642
+  (0.0ms) begin transaction
3643
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2016-08-03 18:21:32.603312"], ["id", 3]]
3644
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: \ncreated_at: 2016-08-03 18:21:32.591464000 Z\nupdated_at: 2016-08-03 18:21:32.599279000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.603312"], ["item_id", 3], ["item_type", "Bank"]]
3645
+  (0.5ms) commit transaction
3646
+ 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"]]
3647
+ 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"]]
3648
+ 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]]
3649
+ 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]]
3650
+ 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]]
3651
+  (0.0ms) begin transaction
3652
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:21:32.610742"], ["updated_at", "2016-08-03 18:21:32.610742"]]
3653
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.610742"], ["item_id", 4], ["item_type", "Bank"]]
3654
+  (0.5ms) commit transaction
3655
+  (0.1ms) begin transaction
3656
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.617959"], ["updated_at", "2016-08-03 18:21:32.617959"]]
3657
+  (0.5ms) commit transaction
3658
+  (0.0ms) begin transaction
3659
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 18:21:32.622311"], ["id", 4]]
3660
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\ncreated_at: &1 2016-08-03 18:21:32.610742000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.622311"], ["item_id", 4], ["item_type", "Bank"]]
3661
+  (0.6ms) commit transaction
3662
+  (0.0ms) begin transaction
3663
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 18:21:32.626380"], ["id", 4]]
3664
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\ncreated_at: 2016-08-03 18:21:32.610742000 Z\nupdated_at: 2016-08-03 18:21:32.622311000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 18:21:32.626380"], ["item_id", 4], ["item_type", "Bank"]]
3665
+  (0.5ms) commit transaction
3666
+ 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", 4], ["item_type", "Bank"]]
3667
+ 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"]]
3668
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 9) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
3669
+ 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]]
3670
+  (0.0ms) begin transaction
3671
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.633977"], ["updated_at", "2016-08-03 18:21:32.633977"]]
3672
+  (0.4ms) commit transaction
3673
+  (0.1ms) begin transaction
3674
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.635220"], ["updated_at", "2016-08-03 18:21:32.635220"]]
3675
+  (0.4ms) commit transaction
3676
+  (0.0ms) begin transaction
3677
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:21:32.636546"], ["updated_at", "2016-08-03 18:21:32.636546"]]
3678
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:21:32.636546"], ["item_id", 5], ["item_type", "Bank"]]
3679
+  (0.4ms) commit transaction
3680
+  (0.0ms) begin transaction
3681
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 18:21:32.640122"], ["id", 5]]
3682
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\ncreated_at: &1 2016-08-03 18:21:32.636546000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:21:32.640122"], ["item_id", 5], ["item_type", "Bank"]]
3683
+  (0.5ms) commit transaction
3684
+  (0.0ms) begin transaction
3685
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 18:21:32.644741"], ["id", 5]]
3686
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\ncreated_at: 2016-08-03 18:21:32.636546000 Z\nupdated_at: 2016-08-03 18:21:32.640122000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 18:21:32.644741"], ["item_id", 5], ["item_type", "Bank"]]
3687
+  (0.6ms) commit transaction
3688
+  (0.0ms) begin transaction
3689
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 18:21:32.648554"], ["id", 5]]
3690
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\ncreated_at: 2016-08-03 18:21:32.636546000 Z\nupdated_at: 2016-08-03 18:21:32.644741000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 18:21:32.648554"], ["item_id", 5], ["item_type", "Bank"]]
3691
+  (0.5ms) commit transaction
3692
+ 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"]]
3693
+ 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"]]
3694
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 12) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
3695
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 13) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
3696
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 14) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
3697
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
3698
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
3699
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
3700
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
3701
+  (0.0ms) begin transaction
3702
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:21:32.659090"], ["updated_at", "2016-08-03 18:21:32.659090"]]
3703
+ SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:21:32.659090"], ["item_id", 6], ["item_type", "Bank"]]
3704
+  (0.7ms) commit transaction
3705
+  (0.0ms) begin transaction
3706
+ SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:21:32.662889"], ["id", 6]]
3707
+ SQL (0.2ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 100\ncreated_at: &1 2016-08-03 18:21:32.659090000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 18:21:32.662889"], ["item_id", 6], ["item_type", "Bank"]]
3708
+  (0.5ms) commit transaction
3709
+  (0.1ms) begin transaction
3710
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.668224"], ["updated_at", "2016-08-03 18:21:32.668224"]]
3711
+  (0.3ms) commit transaction
3712
+  (0.0ms) begin transaction
3713
+ SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2016-08-03 18:21:32.669555"], ["id", 6]]
3714
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.662889000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.669555"], ["item_id", 6], ["item_type", "Bank"]]
3715
+  (0.4ms) commit transaction
3716
+  (0.0ms) begin transaction
3717
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.672945"], ["updated_at", "2016-08-03 18:21:32.672945"]]
3718
+  (0.4ms) commit transaction
3719
+  (0.0ms) begin transaction
3720
+ SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2016-08-03 18:21:32.674422"], ["id", 6]]
3721
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.669555000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.674422"], ["item_id", 6], ["item_type", "Bank"]]
3722
+  (0.6ms) commit transaction
3723
+  (0.0ms) begin transaction
3724
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2016-08-03 18:21:32.677881"], ["id", 6]]
3725
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.674422000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.677881"], ["item_id", 6], ["item_type", "Bank"]]
3726
+  (0.4ms) commit transaction
3727
+  (0.0ms) begin transaction
3728
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:21:32.680943"], ["updated_at", "2016-08-03 18:21:32.680943"]]
3729
+  (0.3ms) commit transaction
3730
+  (0.0ms) begin transaction
3731
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2016-08-03 18:21:32.682417"], ["id", 6]]
3732
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 123\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.677881000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:21:32.682417"], ["item_id", 6], ["item_type", "Bank"]]
3733
+  (0.5ms) commit transaction
3734
+  (0.0ms) begin transaction
3735
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 18:21:32.687109"], ["id", 6]]
3736
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 123\ncreated_at: 2016-08-03 18:21:32.659090000 Z\nupdated_at: 2016-08-03 18:21:32.682417000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:21:32.687109"], ["item_id", 6], ["item_type", "Bank"]]
3737
+  (0.6ms) commit transaction
3738
+ 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"]]
3739
+ 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"]]
3740
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 16) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
3741
+ 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", 6]]
3742
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 18) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
3743
+ 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]]
3744
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 20) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
3745
+ 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]]
3746
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3747
+  (2.5ms) CREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "user_id" integer) 
3748
+  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3749
+  (0.7ms) 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) 
3750
+  (0.1ms) select sqlite_version(*)
3751
+  (0.7ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
3752
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3753
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3754
+  (0.1ms) SELECT version FROM "schema_migrations"
3755
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235657')
3756
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
3757
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802222941')
3758
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
3759
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3760
+  (0.1ms) begin transaction
3761
+ SQL (0.4ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 18:22:04.945589"], ["updated_at", "2016-08-03 18:22:04.945589"]]
3762
+ SQL (0.3ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:04.945589"], ["item_id", 1], ["item_type", "Bank"]]
3763
+  (2.4ms) commit transaction
3764
+ Bank Load (0.2ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
3765
+ 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"]]
3766
+ 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"]]
3767
+ Bank Load (0.1ms) SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
3768
+  (0.0ms) begin transaction
3769
+ SQL (0.2ms) INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:04.977554"], ["updated_at", "2016-08-03 18:22:04.977554"]]
3770
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:04.977554"], ["item_id", 2], ["item_type", "Bank"]]
3771
+  (0.5ms) commit transaction
3772
+  (0.0ms) begin transaction
3773
+ SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:22:04.980627"], ["id", 2]]
3774
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 2\nvalue: \ncreated_at: &1 2016-08-03 18:22:04.977554000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:04.980627"], ["item_id", 2], ["item_type", "Bank"]]
3775
+  (0.5ms) commit transaction
3776
+ 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"]]
3777
+ 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"]]
3778
+ 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]]
3779
+  (0.0ms) begin transaction
3780
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:22:04.989768"], ["updated_at", "2016-08-03 18:22:04.989768"]]
3781
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:04.989768"], ["item_id", 3], ["item_type", "Bank"]]
3782
+  (0.5ms) commit transaction
3783
+  (0.0ms) begin transaction
3784
+ SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:22:04.993020"], ["id", 3]]
3785
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 100\ncreated_at: &1 2016-08-03 18:22:04.989768000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:04.993020"], ["item_id", 3], ["item_type", "Bank"]]
3786
+  (0.6ms) commit transaction
3787
+  (0.0ms) begin transaction
3788
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 18:22:04.996884"], ["id", 3]]
3789
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 10\ncreated_at: 2016-08-03 18:22:04.989768000 Z\nupdated_at: 2016-08-03 18:22:04.993020000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:22:04.996884"], ["item_id", 3], ["item_type", "Bank"]]
3790
+  (0.5ms) commit transaction
3791
+  (0.0ms) begin transaction
3792
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2016-08-03 18:22:05.000396"], ["id", 3]]
3793
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: \ncreated_at: 2016-08-03 18:22:04.989768000 Z\nupdated_at: 2016-08-03 18:22:04.996884000 Z\nuser_id: \n"], ["created_at", "2016-08-03 18:22:05.000396"], ["item_id", 3], ["item_type", "Bank"]]
3794
+  (0.4ms) commit transaction
3795
+ 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"]]
3796
+ 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"]]
3797
+ 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]]
3798
+ 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]]
3799
+ 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]]
3800
+  (0.0ms) begin transaction
3801
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:22:05.009432"], ["updated_at", "2016-08-03 18:22:05.009432"]]
3802
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:05.009432"], ["item_id", 4], ["item_type", "Bank"]]
3803
+  (0.6ms) commit transaction
3804
+  (0.0ms) begin transaction
3805
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.016643"], ["updated_at", "2016-08-03 18:22:05.016643"]]
3806
+  (0.5ms) commit transaction
3807
+  (0.0ms) begin transaction
3808
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 18:22:05.020484"], ["id", 4]]
3809
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\ncreated_at: &1 2016-08-03 18:22:05.009432000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:05.020484"], ["item_id", 4], ["item_type", "Bank"]]
3810
+  (0.4ms) commit transaction
3811
+  (0.0ms) begin transaction
3812
+ SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 18:22:05.024227"], ["id", 4]]
3813
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\ncreated_at: 2016-08-03 18:22:05.009432000 Z\nupdated_at: 2016-08-03 18:22:05.020484000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 18:22:05.024227"], ["item_id", 4], ["item_type", "Bank"]]
3814
+  (0.5ms) commit transaction
3815
+ 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"]]
3816
+ 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"]]
3817
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 9) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
3818
+ 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]]
3819
+  (0.1ms) begin transaction
3820
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.031239"], ["updated_at", "2016-08-03 18:22:05.031239"]]
3821
+  (0.5ms) commit transaction
3822
+  (0.0ms) begin transaction
3823
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.032753"], ["updated_at", "2016-08-03 18:22:05.032753"]]
3824
+  (0.6ms) commit transaction
3825
+  (0.0ms) begin transaction
3826
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:22:05.034421"], ["updated_at", "2016-08-03 18:22:05.034421"]]
3827
+ SQL (0.1ms) INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 18:22:05.034421"], ["item_id", 5], ["item_type", "Bank"]]
3828
+  (0.4ms) commit transaction
3829
+  (0.0ms) begin transaction
3830
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 18:22:05.037929"], ["id", 5]]
3831
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\ncreated_at: &1 2016-08-03 18:22:05.034421000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 18:22:05.037929"], ["item_id", 5], ["item_type", "Bank"]]
3832
+  (0.5ms) commit transaction
3833
+  (0.0ms) begin transaction
3834
+ SQL (0.4ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 18:22:05.041790"], ["id", 5]]
3835
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\ncreated_at: 2016-08-03 18:22:05.034421000 Z\nupdated_at: 2016-08-03 18:22:05.037929000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 18:22:05.041790"], ["item_id", 5], ["item_type", "Bank"]]
3836
+  (0.5ms) commit transaction
3837
+  (0.0ms) begin transaction
3838
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 18:22:05.045842"], ["id", 5]]
3839
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\ncreated_at: 2016-08-03 18:22:05.034421000 Z\nupdated_at: 2016-08-03 18:22:05.041790000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 18:22:05.045842"], ["item_id", 5], ["item_type", "Bank"]]
3840
+  (0.5ms) commit transaction
3841
+ 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"]]
3842
+ 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"]]
3843
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 12) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
3844
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 13) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
3845
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 14) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
3846
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
3847
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
3848
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
3849
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
3850
+  (0.0ms) begin transaction
3851
+ SQL (0.2ms) INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 18:22:05.055824"], ["updated_at", "2016-08-03 18:22:05.055824"]]
3852
+ SQL (0.1ms) INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:22:05.055824"], ["item_id", 6], ["item_type", "Bank"]]
3853
+  (0.4ms) commit transaction
3854
+  (0.0ms) begin transaction
3855
+ SQL (0.1ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 18:22:05.059266"], ["id", 6]]
3856
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 100\ncreated_at: &1 2016-08-03 18:22:05.055824000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 18:22:05.059266"], ["item_id", 6], ["item_type", "Bank"]]
3857
+  (0.4ms) commit transaction
3858
+  (0.0ms) begin transaction
3859
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.062618"], ["updated_at", "2016-08-03 18:22:05.062618"]]
3860
+  (0.5ms) commit transaction
3861
+  (0.0ms) begin transaction
3862
+ SQL (0.1ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2016-08-03 18:22:05.064300"], ["id", 6]]
3863
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.059266000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.064300"], ["item_id", 6], ["item_type", "Bank"]]
3864
+  (0.5ms) commit transaction
3865
+  (0.1ms) begin transaction
3866
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.068004"], ["updated_at", "2016-08-03 18:22:05.068004"]]
3867
+  (0.4ms) commit transaction
3868
+  (0.0ms) begin transaction
3869
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2016-08-03 18:22:05.069625"], ["id", 6]]
3870
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.064300000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.069625"], ["item_id", 6], ["item_type", "Bank"]]
3871
+  (0.5ms) commit transaction
3872
+  (0.0ms) begin transaction
3873
+ SQL (0.4ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2016-08-03 18:22:05.073711"], ["id", 6]]
3874
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 10\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.069625000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.073711"], ["item_id", 6], ["item_type", "Bank"]]
3875
+  (0.7ms) commit transaction
3876
+  (0.0ms) begin transaction
3877
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 18:22:05.078584"], ["updated_at", "2016-08-03 18:22:05.078584"]]
3878
+  (0.4ms) commit transaction
3879
+  (0.0ms) begin transaction
3880
+ SQL (0.2ms) UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2016-08-03 18:22:05.080085"], ["id", 6]]
3881
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 123\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.073711000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 18:22:05.080085"], ["item_id", 6], ["item_type", "Bank"]]
3882
+  (0.6ms) commit transaction
3883
+  (0.1ms) begin transaction
3884
+ SQL (0.2ms) UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 18:22:05.084007"], ["id", 6]]
3885
+ SQL (0.1ms) INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 123\ncreated_at: 2016-08-03 18:22:05.055824000 Z\nupdated_at: 2016-08-03 18:22:05.080085000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 18:22:05.084007"], ["item_id", 6], ["item_type", "Bank"]]
3886
+  (0.4ms) commit transaction
3887
+ 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"]]
3888
+ 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"]]
3889
+ 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", 6]]
3890
+ PaperTrail::Version Load (0.2ms) 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", 6]]
3891
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 18) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
3892
+ 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]]
3893
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 20) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
3894
+ 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]]
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Chang
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 4.2.6
19
+ version: '4'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '4.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 4.2.6
26
+ version: '4'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: paper_trail
35
29
  requirement: !ruby/object:Gem::Requirement