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