paper_trail-audit 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paper_trail-audit.rb +1 -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 +329 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c2e4745b2f6c6064f6bdeeb7127bc746ed0857a
|
4
|
+
data.tar.gz: 0b45d80ba8e614c240e67719f4f2b8b24f11839e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 777a2accc92466791a9c3a74994e3feb7e2cc9e3ffd356ba05c4d384ca4b98985cad5d6bb7a7b3e14ac2b51726340a4b798fd9f82fcac567c04ceffb8619adb0
|
7
|
+
data.tar.gz: bfe2d86315890af6c5a35f4110437d2b43e8ce7b6f377a16ab27d4edd1c572a7b51ee80ca4676253fdf49f472785011c17e1a397f52bc1c120dc4e0ad9688e36
|
data/lib/paper_trail-audit.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -10251,3 +10251,332 @@
|
|
10251
10251
|
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10252
10252
|
[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", 8], ["item_type", "User"]]
|
10253
10253
|
[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", 8], ["item_type", "User"]]
|
10254
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10255
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
10256
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
10257
|
+
[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
|
10258
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
10259
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
10260
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
10261
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
10262
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
10263
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
10264
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
10265
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
10266
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10268
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2017-04-08 20:21:31.007190"], ["updated_at", "2017-04-08 20:21:31.007190"]]
|
10269
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:31.007190"], ["item_id", 1], ["item_type", "Bank"]]
|
10270
|
+
[1m[35m (2.7ms)[0m commit transaction
|
10271
|
+
[1m[36mBank Load (0.3ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
10272
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10273
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.027994"], ["updated_at", "2017-04-08 20:21:31.027994"]]
|
10274
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.027994"], ["item_id", 2], ["item_type", "Bank"]]
|
10275
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10277
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:31.032241"], ["id", 2]]
|
10278
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 2\nvalue: \nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.027994000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.032241"], ["item_id", 2], ["item_type", "Bank"]]
|
10279
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10280
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10281
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:31.039495"], ["updated_at", "2017-04-08 20:21:31.039495"]]
|
10282
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.039495"], ["item_id", 3], ["item_type", "Bank"]]
|
10283
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10284
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10285
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:31.042832"], ["id", 3]]
|
10286
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.039495000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.042832"], ["item_id", 3], ["item_type", "Bank"]]
|
10287
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10288
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10289
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:31.046116"], ["id", 3]]
|
10290
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 10\nuser_id: \ncreated_at: 2017-04-08 20:21:31.039495000 Z\nupdated_at: 2017-04-08 20:21:31.042832000 Z\n"], ["created_at", "2017-04-08 20:21:31.046116"], ["item_id", 3], ["item_type", "Bank"]]
|
10291
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10293
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2017-04-08 20:21:31.049284"], ["id", 3]]
|
10294
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: \nuser_id: \ncreated_at: 2017-04-08 20:21:31.039495000 Z\nupdated_at: 2017-04-08 20:21:31.046116000 Z\n"], ["created_at", "2017-04-08 20:21:31.049284"], ["item_id", 3], ["item_type", "Bank"]]
|
10295
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10296
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10297
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:31.052992"], ["updated_at", "2017-04-08 20:21:31.052992"]]
|
10298
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.052992"], ["item_id", 4], ["item_type", "Bank"]]
|
10299
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10300
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10301
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.060594"], ["updated_at", "2017-04-08 20:21:31.060594"]]
|
10302
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.060594"], ["item_id", 1], ["item_type", "User"]]
|
10303
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10304
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10305
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 1], ["updated_at", "2017-04-08 20:21:31.066029"], ["id", 4]]
|
10306
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.052992000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.066029"], ["item_id", 4], ["item_type", "Bank"]]
|
10307
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10309
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:31.069390"], ["id", 4]]
|
10310
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: 1\ncreated_at: 2017-04-08 20:21:31.052992000 Z\nupdated_at: 2017-04-08 20:21:31.066029000 Z\n"], ["created_at", "2017-04-08 20:21:31.069390"], ["item_id", 4], ["item_type", "Bank"]]
|
10311
|
+
[1m[36m (0.3ms)[0m [1mcommit transaction[0m
|
10312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10313
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.072695"], ["updated_at", "2017-04-08 20:21:31.072695"]]
|
10314
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.072695"], ["item_id", 2], ["item_type", "User"]]
|
10315
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:31.075283"], ["updated_at", "2017-04-08 20:21:31.075283"]]
|
10318
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.075283"], ["item_id", 3], ["item_type", "User"]]
|
10319
|
+
[1m[36m (0.3ms)[0m [1mcommit transaction[0m
|
10320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10321
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:31.077694"], ["updated_at", "2017-04-08 20:21:31.077694"]]
|
10322
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:31.077694"], ["item_id", 5], ["item_type", "Bank"]]
|
10323
|
+
[1m[36m (0.3ms)[0m [1mcommit transaction[0m
|
10324
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10325
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 2], ["updated_at", "2017-04-08 20:21:31.080386"], ["id", 5]]
|
10326
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.077694000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.080386"], ["item_id", 5], ["item_type", "Bank"]]
|
10327
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10329
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2017-04-08 20:21:31.084542"], ["id", 5]]
|
10330
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 2\ncreated_at: 2017-04-08 20:21:31.077694000 Z\nupdated_at: 2017-04-08 20:21:31.080386000 Z\n"], ["created_at", "2017-04-08 20:21:31.084542"], ["item_id", 5], ["item_type", "Bank"]]
|
10331
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10332
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10333
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2017-04-08 20:21:31.088264"], ["id", 5]]
|
10334
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 3\ncreated_at: 2017-04-08 20:21:31.077694000 Z\nupdated_at: 2017-04-08 20:21:31.084542000 Z\n"], ["created_at", "2017-04-08 20:21:31.088264"], ["item_id", 5], ["item_type", "Bank"]]
|
10335
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10336
|
+
[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", 5], ["item_type", "Bank"]]
|
10337
|
+
[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"]]
|
10338
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 15) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
|
10339
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 16) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
10340
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 17) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
|
10341
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
10342
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
10343
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
10344
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
10345
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10346
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:31.101084"], ["updated_at", "2017-04-08 20:21:31.101084"]]
|
10347
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:31.101084"], ["item_id", 6], ["item_type", "Bank"]]
|
10348
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10349
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10350
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:31.103967"], ["id", 6]]
|
10351
|
+
[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\nuser_id: \ncreated_at: &1 2017-04-08 20:21:31.101084000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2017-04-08 20:21:31.103967"], ["item_id", 6], ["item_type", "Bank"]]
|
10352
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10353
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10354
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.107061"], ["updated_at", "2017-04-08 20:21:31.107061"]]
|
10355
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.107061"], ["item_id", 4], ["item_type", "User"]]
|
10356
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10357
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10358
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2017-04-08 20:21:31.110091"], ["id", 6]]
|
10359
|
+
[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\nuser_id: \ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.103967000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.110091"], ["item_id", 6], ["item_type", "Bank"]]
|
10360
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10362
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.112897"], ["updated_at", "2017-04-08 20:21:31.112897"]]
|
10363
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.112897"], ["item_id", 5], ["item_type", "User"]]
|
10364
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10365
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10366
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2017-04-08 20:21:31.115606"], ["id", 6]]
|
10367
|
+
[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\nuser_id: 4\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.110091000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.115606"], ["item_id", 6], ["item_type", "Bank"]]
|
10368
|
+
[1m[35m (0.6ms)[0m commit transaction
|
10369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10370
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2017-04-08 20:21:31.119045"], ["id", 6]]
|
10371
|
+
[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\nuser_id: 5\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.115606000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.119045"], ["item_id", 6], ["item_type", "Bank"]]
|
10372
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10373
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10374
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:31.122929"], ["updated_at", "2017-04-08 20:21:31.122929"]]
|
10375
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.122929"], ["item_id", 6], ["item_type", "User"]]
|
10376
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10377
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10378
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2017-04-08 20:21:31.126167"], ["id", 6]]
|
10379
|
+
[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: 123\nuser_id: 5\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.119045000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:31.126167"], ["item_id", 6], ["item_type", "Bank"]]
|
10380
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10382
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:31.129357"], ["id", 6]]
|
10383
|
+
[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: 123\nuser_id: 6\ncreated_at: 2017-04-08 20:21:31.101084000 Z\nupdated_at: 2017-04-08 20:21:31.126167000 Z\n"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:31.129357"], ["item_id", 6], ["item_type", "Bank"]]
|
10384
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10385
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10386
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 20:21:31.132709"], ["updated_at", "2017-04-08 20:21:31.132709"]]
|
10387
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:31.132709"], ["item_id", 7], ["item_type", "User"]]
|
10388
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10389
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10390
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", 2], ["updated_at", "2017-04-08 20:21:31.135639"], ["id", 7]]
|
10391
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2017-04-08 20:21:31.132709000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:31.135639"], ["item_id", 7], ["item_type", "User"]]
|
10392
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10393
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10394
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ? [["state", nil], ["updated_at", "2017-04-08 20:21:31.138670"], ["id", 7]]
|
10395
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2017-04-08 20:21:31.132709000 Z\nupdated_at: 2017-04-08 20:21:31.135639000 Z\n"], ["created_at", "2017-04-08 20:21:31.138670"], ["item_id", 7], ["item_type", "User"]]
|
10396
|
+
[1m[35m (0.6ms)[0m commit transaction
|
10397
|
+
[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", 7], ["item_type", "User"]]
|
10398
|
+
[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", 7], ["item_type", "User"]]
|
10399
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 29) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "User"], ["item_id", 7]]
|
10400
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 30) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "User"], ["item_id", 7]]
|
10401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10402
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2017-04-08 20:21:31.150406"], ["updated_at", "2017-04-08 20:21:31.150406"]]
|
10403
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:31.150406"], ["item_id", 8], ["item_type", "User"]]
|
10404
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10405
|
+
[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", 8], ["item_type", "User"]]
|
10406
|
+
[1m[35mPaperTrail::Version Load (0.0ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 8], ["item_type", "User"]]
|
10407
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10408
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
10409
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
10410
|
+
[1m[36m (0.9ms)[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
|
10411
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
10412
|
+
[1m[36m (1.0ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
10413
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
10414
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
10415
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
10416
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
10417
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
10418
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
10419
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10420
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10421
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2017-04-08 20:21:54.517638"], ["updated_at", "2017-04-08 20:21:54.517638"]]
|
10422
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.517638"], ["item_id", 1], ["item_type", "Bank"]]
|
10423
|
+
[1m[35m (2.5ms)[0m commit transaction
|
10424
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
10425
|
+
[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"]]
|
10426
|
+
[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"]]
|
10427
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
10428
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10429
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.538838"], ["updated_at", "2017-04-08 20:21:54.538838"]]
|
10430
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.538838"], ["item_id", 2], ["item_type", "Bank"]]
|
10431
|
+
[1m[35m (0.6ms)[0m commit transaction
|
10432
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10433
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2017-04-08 20:21:54.541873"], ["id", 2]]
|
10434
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 2\nvalue: \nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.538838000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.541873"], ["item_id", 2], ["item_type", "Bank"]]
|
10435
|
+
[1m[35m (0.6ms)[0m commit transaction
|
10436
|
+
[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"]]
|
10437
|
+
[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"]]
|
10438
|
+
[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]]
|
10439
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10440
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:54.550456"], ["updated_at", "2017-04-08 20:21:54.550456"]]
|
10441
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.550456"], ["item_id", 3], ["item_type", "Bank"]]
|
10442
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
10443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10444
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:54.553217"], ["id", 3]]
|
10445
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.550456000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.553217"], ["item_id", 3], ["item_type", "Bank"]]
|
10446
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10447
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10448
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:54.555945"], ["id", 3]]
|
10449
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: 10\nuser_id: \ncreated_at: 2017-04-08 20:21:54.550456000 Z\nupdated_at: 2017-04-08 20:21:54.553217000 Z\n"], ["created_at", "2017-04-08 20:21:54.555945"], ["item_id", 3], ["item_type", "Bank"]]
|
10450
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10451
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10452
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2017-04-08 20:21:54.558668"], ["id", 3]]
|
10453
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 3\nvalue: \nuser_id: \ncreated_at: 2017-04-08 20:21:54.550456000 Z\nupdated_at: 2017-04-08 20:21:54.555945000 Z\n"], ["created_at", "2017-04-08 20:21:54.558668"], ["item_id", 3], ["item_type", "Bank"]]
|
10454
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10455
|
+
[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"]]
|
10456
|
+
[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"]]
|
10457
|
+
[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]]
|
10458
|
+
[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]]
|
10459
|
+
[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]]
|
10460
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10461
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:54.566067"], ["updated_at", "2017-04-08 20:21:54.566067"]]
|
10462
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.566067"], ["item_id", 4], ["item_type", "Bank"]]
|
10463
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10464
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10465
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.572760"], ["updated_at", "2017-04-08 20:21:54.572760"]]
|
10466
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.572760"], ["item_id", 1], ["item_type", "User"]]
|
10467
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10468
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10469
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2017-04-08 20:21:54.577817"], ["id", 4]]
|
10470
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.566067000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.577817"], ["item_id", 4], ["item_type", "Bank"]]
|
10471
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10473
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2017-04-08 20:21:54.581561"], ["id", 4]]
|
10474
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 4\nvalue: 100\nuser_id: 1\ncreated_at: 2017-04-08 20:21:54.566067000 Z\nupdated_at: 2017-04-08 20:21:54.577817000 Z\n"], ["created_at", "2017-04-08 20:21:54.581561"], ["item_id", 4], ["item_type", "Bank"]]
|
10475
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10476
|
+
[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", 4], ["item_type", "Bank"]]
|
10477
|
+
[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", 4], ["item_type", "Bank"]]
|
10478
|
+
[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]]
|
10479
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 11) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
|
10480
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10481
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.588287"], ["updated_at", "2017-04-08 20:21:54.588287"]]
|
10482
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.588287"], ["item_id", 2], ["item_type", "User"]]
|
10483
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10485
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2017-04-08 20:21:54.591432"], ["updated_at", "2017-04-08 20:21:54.591432"]]
|
10486
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.591432"], ["item_id", 3], ["item_type", "User"]]
|
10487
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10488
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10489
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2017-04-08 20:21:54.594109"], ["updated_at", "2017-04-08 20:21:54.594109"]]
|
10490
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2017-04-08 20:21:54.594109"], ["item_id", 5], ["item_type", "Bank"]]
|
10491
|
+
[1m[35m (0.3ms)[0m commit transaction
|
10492
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10493
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2017-04-08 20:21:54.596802"], ["id", 5]]
|
10494
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.594109000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.596802"], ["item_id", 5], ["item_type", "Bank"]]
|
10495
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10497
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2017-04-08 20:21:54.599789"], ["id", 5]]
|
10498
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 2\ncreated_at: 2017-04-08 20:21:54.594109000 Z\nupdated_at: 2017-04-08 20:21:54.596802000 Z\n"], ["created_at", "2017-04-08 20:21:54.599789"], ["item_id", 5], ["item_type", "Bank"]]
|
10499
|
+
[1m[35m (0.4ms)[0m commit transaction
|
10500
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10501
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2017-04-08 20:21:54.602771"], ["id", 5]]
|
10502
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 5\nvalue: 100\nuser_id: 3\ncreated_at: 2017-04-08 20:21:54.594109000 Z\nupdated_at: 2017-04-08 20:21:54.599789000 Z\n"], ["created_at", "2017-04-08 20:21:54.602771"], ["item_id", 5], ["item_type", "Bank"]]
|
10503
|
+
[1m[35m (0.5ms)[0m commit transaction
|
10504
|
+
[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", 5], ["item_type", "Bank"]]
|
10505
|
+
[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", 5], ["item_type", "Bank"]]
|
10506
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 15) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
10507
|
+
[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", 5]]
|
10508
|
+
[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", 5]]
|
10509
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
10510
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
10511
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
10512
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
10513
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10514
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2017-04-08 20:21:54.611708"], ["updated_at", "2017-04-08 20:21:54.611708"]]
|
10515
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:54.611708"], ["item_id", 6], ["item_type", "Bank"]]
|
10516
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
10517
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10518
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2017-04-08 20:21:54.615073"], ["id", 6]]
|
10519
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 6\nvalue: 100\nuser_id: \ncreated_at: &1 2017-04-08 20:21:54.611708000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2017-04-08 20:21:54.615073"], ["item_id", 6], ["item_type", "Bank"]]
|
10520
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10522
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:54.618247"], ["updated_at", "2017-04-08 20:21:54.618247"]]
|
10523
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.618247"], ["item_id", 4], ["item_type", "User"]]
|
10524
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10526
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2017-04-08 20:21:54.620936"], ["id", 6]]
|
10527
|
+
[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\nuser_id: \ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.615073000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.620936"], ["item_id", 6], ["item_type", "Bank"]]
|
10528
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10529
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10530
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:54.623702"], ["updated_at", "2017-04-08 20:21:54.623702"]]
|
10531
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.623702"], ["item_id", 5], ["item_type", "User"]]
|
10532
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10533
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10534
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2017-04-08 20:21:54.626369"], ["id", 6]]
|
10535
|
+
[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\nuser_id: 4\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.620936000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.626369"], ["item_id", 6], ["item_type", "Bank"]]
|
10536
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
10537
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10538
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2017-04-08 20:21:54.629569"], ["id", 6]]
|
10539
|
+
[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\nuser_id: 5\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.626369000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.629569"], ["item_id", 6], ["item_type", "Bank"]]
|
10540
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10542
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2017-04-08 20:21:54.632759"], ["updated_at", "2017-04-08 20:21:54.632759"]]
|
10543
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.632759"], ["item_id", 6], ["item_type", "User"]]
|
10544
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10545
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10546
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2017-04-08 20:21:54.635813"], ["id", 6]]
|
10547
|
+
[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\nuser_id: 5\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.629569000 Z\n"], ["whodunnit", "user3"], ["created_at", "2017-04-08 20:21:54.635813"], ["item_id", 6], ["item_type", "Bank"]]
|
10548
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
10549
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10550
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2017-04-08 20:21:54.644163"], ["id", 6]]
|
10551
|
+
[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\nuser_id: 6\ncreated_at: 2017-04-08 20:21:54.611708000 Z\nupdated_at: 2017-04-08 20:21:54.635813000 Z\n"], ["whodunnit", "user1"], ["created_at", "2017-04-08 20:21:54.644163"], ["item_id", 6], ["item_type", "Bank"]]
|
10552
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10553
|
+
[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"]]
|
10554
|
+
[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"]]
|
10555
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 19) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
10556
|
+
[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]]
|
10557
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 23) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
10558
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 24) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
|
10559
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 26) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
10560
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 27) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
|
10561
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10562
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2017-04-08 20:21:54.655248"], ["updated_at", "2017-04-08 20:21:54.655248"]]
|
10563
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.655248"], ["item_id", 7], ["item_type", "User"]]
|
10564
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
10565
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10566
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2017-04-08 20:21:54.658492"], ["id", 7]]
|
10567
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2017-04-08 20:21:54.655248000 Z\nupdated_at: *1\n"], ["created_at", "2017-04-08 20:21:54.658492"], ["item_id", 7], ["item_type", "User"]]
|
10568
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
10569
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10570
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2017-04-08 20:21:54.662548"], ["id", 7]]
|
10571
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2017-04-08 20:21:54.655248000 Z\nupdated_at: 2017-04-08 20:21:54.658492000 Z\n"], ["created_at", "2017-04-08 20:21:54.662548"], ["item_id", 7], ["item_type", "User"]]
|
10572
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10573
|
+
[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", 7], ["item_type", "User"]]
|
10574
|
+
[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", 7], ["item_type", "User"]]
|
10575
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 29) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "User"], ["item_id", 7]]
|
10576
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 30) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "User"], ["item_id", 7]]
|
10577
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10578
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2017-04-08 20:21:54.669870"], ["updated_at", "2017-04-08 20:21:54.669870"]]
|
10579
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2017-04-08 20:21:54.669870"], ["item_id", 8], ["item_type", "User"]]
|
10580
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
10581
|
+
[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", 8], ["item_type", "User"]]
|
10582
|
+
[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", 8], ["item_type", "User"]]
|