paper_trail-audit 0.0.3 → 0.0.4
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/version.rb +1 -1
- data/lib/paper_trail-audit.rb +28 -5
- data/test/dummy/app/models/user.rb +8 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160802221911_create_banks.rb +1 -0
- data/test/dummy/db/migrate/20160802235555_create_users.rb +1 -1
- data/test/dummy/db/schema.rb +3 -2
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +49 -0
- data/test/dummy/log/test.log +2341 -0
- metadata +1 -3
- data/test/dummy/db/migrate/20160802235657_add_user_id_to_banks.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c0975883d30b8e5dbe4089cad22f56cd84b1a9
|
4
|
+
data.tar.gz: 6b1597f81b525e93ffab32ce612f237ffaba025f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c61ddca862990892d09a2d7dd5d1e52de9250f672687343dcea9568428bc6e4ba79e847687763c44e71a455ae25a6466403869ed876dfc311ef0dcde1c676f8
|
7
|
+
data.tar.gz: 030372b9bd7cb166a5e43862f3e98b5d7cb3700d2d69deda794ecb294293d8a26f1e919c6802f896a65656a7c52bcb5c1afd08c25fcabcbf6b9e4cce191263a1
|
data/lib/paper_trail-audit.rb
CHANGED
@@ -7,6 +7,10 @@ module PaperTrailAudit
|
|
7
7
|
base.send :extend, ClassMethods
|
8
8
|
end
|
9
9
|
|
10
|
+
# Returns the audit list for the specified column
|
11
|
+
#
|
12
|
+
# @param [symbol] param: symbol to query
|
13
|
+
# @return [array of Change objects]
|
10
14
|
def calculate_audit_for(param)
|
11
15
|
#Gets all flattened attribute lists
|
12
16
|
#objects are a hash of
|
@@ -37,13 +41,32 @@ module PaperTrailAudit
|
|
37
41
|
end
|
38
42
|
|
39
43
|
module ClassMethods
|
44
|
+
# Defines the functions which perform the audit generation
|
45
|
+
#
|
46
|
+
# Note: instead of looking at the type and performing a transformation
|
47
|
+
# we could simply reify the versions and make the function calls, however
|
48
|
+
# this causes a pretty significant performance hit, on an object with 100 versions
|
49
|
+
# the reify version was about 4x slower, although with low version counts the
|
50
|
+
# slowdown was much smaller, something like 1.06
|
51
|
+
#
|
52
|
+
# @param [array of params to audit] *params describe *params
|
40
53
|
def paper_trail_audit_for(*params)
|
41
54
|
params = params.flatten
|
42
55
|
params.each do |param|
|
43
|
-
if
|
44
|
-
|
45
|
-
|
46
|
-
|
56
|
+
if self.column_names.include?(param.to_s)
|
57
|
+
if self.defined_enums&.include?(param.to_s)
|
58
|
+
#if it's an enum, wrap the values to the enum keys
|
59
|
+
define_method param.to_s+"_changes" do
|
60
|
+
self.calculate_audit_for(param).each do |o|
|
61
|
+
o.old_value = self.defined_enums[param.to_s].key(o.old_value)
|
62
|
+
o.new_value = self.defined_enums[param.to_s].key(o.new_value)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
else
|
66
|
+
#Define a method which returns a list of audit change events
|
67
|
+
define_method param.to_s+"_changes" do
|
68
|
+
self.calculate_audit_for(param)
|
69
|
+
end
|
47
70
|
end
|
48
71
|
else
|
49
72
|
reflection = self.reflect_on_all_associations(:belongs_to).select{|e| e.name == param}.first
|
@@ -55,7 +78,7 @@ module PaperTrailAudit
|
|
55
78
|
end
|
56
79
|
end
|
57
80
|
else
|
58
|
-
|
81
|
+
warn "PaperTrailAudit WARNING: Property \"#{param}\" does not exist on object #{self} - Audit cannot be made"
|
59
82
|
end
|
60
83
|
end
|
61
84
|
end
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,17 +11,18 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160802235555) do
|
15
15
|
|
16
16
|
create_table "banks", force: :cascade do |t|
|
17
17
|
t.integer "value"
|
18
|
+
t.integer "user_id"
|
18
19
|
t.datetime "created_at", null: false
|
19
20
|
t.datetime "updated_at", null: false
|
20
|
-
t.integer "user_id"
|
21
21
|
end
|
22
22
|
|
23
23
|
create_table "users", force: :cascade do |t|
|
24
24
|
t.string "name"
|
25
|
+
t.integer "state"
|
25
26
|
t.datetime "created_at", null: false
|
26
27
|
t.datetime "updated_at", null: false
|
27
28
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -113,4 +113,53 @@ Migrating to AddUserIdToBanks (20160802235657)
|
|
113
113
|
SELECT sql
|
114
114
|
FROM sqlite_temp_master
|
115
115
|
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
116
|
+
[0m
|
117
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
118
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
119
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
120
|
+
FROM sqlite_master
|
121
|
+
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
122
|
+
UNION ALL
|
123
|
+
SELECT sql
|
124
|
+
FROM sqlite_temp_master
|
125
|
+
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
126
|
+
[0m
|
127
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
128
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
129
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
130
|
+
FROM sqlite_master
|
131
|
+
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
132
|
+
UNION ALL
|
133
|
+
SELECT sql
|
134
|
+
FROM sqlite_temp_master
|
135
|
+
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
136
|
+
[0m
|
137
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
138
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
139
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
140
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
141
|
+
Migrating to CreateBanks (20160802221911)
|
142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
143
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "banks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
144
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160802221911"]]
|
145
|
+
[1m[35m (0.5ms)[0m commit transaction
|
146
|
+
Migrating to CreateVersions (20160802222941)
|
147
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
148
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "versions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "item_type" varchar NOT NULL, "item_id" integer NOT NULL, "event" varchar NOT NULL, "whodunnit" varchar, "object" text(1073741823), "created_at" datetime)
|
149
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
150
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160802222941"]]
|
151
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
152
|
+
Migrating to CreateUsers (20160802235555)
|
153
|
+
[1m[35m (0.0ms)[0m begin transaction
|
154
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
155
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160802235555"]]
|
156
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
157
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
158
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
159
|
+
FROM sqlite_master
|
160
|
+
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
161
|
+
UNION ALL
|
162
|
+
SELECT sql
|
163
|
+
FROM sqlite_temp_master
|
164
|
+
WHERE name='index_versions_on_item_type_and_item_id' AND type='index'
|
116
165
|
[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -4488,3 +4488,2344 @@
|
|
4488
4488
|
[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]]
|
4489
4489
|
[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]]
|
4490
4490
|
[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]]
|
4491
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4492
|
+
[1m[36m (2.3ms)[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
|
4493
|
+
[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)
|
4494
|
+
[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
|
4495
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4496
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
4497
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
4498
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4499
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4500
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235657')[0m
|
4501
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
4502
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
4503
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
|
4504
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4505
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4506
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:10:50.181705"], ["updated_at", "2016-08-03 19:10:50.181705"]]
|
4507
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:10:50.181705"], ["item_id", 1], ["item_type", "Bank"]]
|
4508
|
+
[1m[35m (2.5ms)[0m commit transaction
|
4509
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
4510
|
+
[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", 1], ["item_type", "Bank"]]
|
4511
|
+
[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"]]
|
4512
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
4513
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4514
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:10:50.211002"], ["updated_at", "2016-08-03 19:10:50.211002"]]
|
4515
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:10:50.211002"], ["item_id", 2], ["item_type", "Bank"]]
|
4516
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4517
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4518
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:10:50.214173"], ["id", 2]]
|
4519
|
+
[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 19:10:50.211002000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:10:50.214173"], ["item_id", 2], ["item_type", "Bank"]]
|
4520
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4521
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
4522
|
+
[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"]]
|
4523
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 2]]
|
4524
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 3) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 2]]
|
4525
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4526
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:10:50.227640"], ["updated_at", "2016-08-03 19:10:50.227640"]]
|
4527
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:10:50.227640"], ["item_id", 3], ["item_type", "Bank"]]
|
4528
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4529
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4530
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:10:50.231362"], ["id", 3]]
|
4531
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: 100\ncreated_at: &1 2016-08-03 19:10:50.227640000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:10:50.231362"], ["item_id", 3], ["item_type", "Bank"]]
|
4532
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4533
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4534
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:10:50.234983"], ["id", 3]]
|
4535
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: 10\ncreated_at: 2016-08-03 19:10:50.227640000 Z\nupdated_at: 2016-08-03 19:10:50.231362000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:10:50.234983"], ["item_id", 3], ["item_type", "Bank"]]
|
4536
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4537
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4538
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2016-08-03 19:10:50.238178"], ["id", 3]]
|
4539
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: \ncreated_at: 2016-08-03 19:10:50.227640000 Z\nupdated_at: 2016-08-03 19:10:50.234983000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:10:50.238178"], ["item_id", 3], ["item_type", "Bank"]]
|
4540
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4541
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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", 3], ["item_type", "Bank"]]
|
4542
|
+
[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", 3], ["item_type", "Bank"]]
|
4543
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 3]]
|
4544
|
+
[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]]
|
4545
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 3]]
|
4546
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 6) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 3]]
|
4547
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 3]]
|
4548
|
+
[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]]
|
4549
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:10:50.248670"], ["updated_at", "2016-08-03 19:10:50.248670"]]
|
4551
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:10:50.248670"], ["item_id", 4], ["item_type", "Bank"]]
|
4552
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4553
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4554
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:10:50.255314"], ["updated_at", "2016-08-03 19:10:50.255314"]]
|
4555
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4556
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4557
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 1], ["updated_at", "2016-08-03 19:10:50.257561"], ["id", 4]]
|
4558
|
+
[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 19:10:50.248670000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:10:50.257561"], ["item_id", 4], ["item_type", "Bank"]]
|
4559
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4560
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4561
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:10:50.261563"], ["id", 4]]
|
4562
|
+
[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 19:10:50.248670000 Z\nupdated_at: 2016-08-03 19:10:50.257561000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 19:10:50.261563"], ["item_id", 4], ["item_type", "Bank"]]
|
4563
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4564
|
+
[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"]]
|
4565
|
+
[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"]]
|
4566
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 4]]
|
4567
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 9) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 4]]
|
4568
|
+
[1m[35mBank Load (0.0ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 4]]
|
4569
|
+
[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]]
|
4570
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4571
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:10:50.271201"], ["updated_at", "2016-08-03 19:10:50.271201"]]
|
4572
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4573
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4574
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:10:50.273198"], ["updated_at", "2016-08-03 19:10:50.273198"]]
|
4575
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4576
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4577
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:10:50.274716"], ["updated_at", "2016-08-03 19:10:50.274716"]]
|
4578
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:10:50.274716"], ["item_id", 5], ["item_type", "Bank"]]
|
4579
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4580
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4581
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 2], ["updated_at", "2016-08-03 19:10:50.278077"], ["id", 5]]
|
4582
|
+
[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 19:10:50.274716000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:10:50.278077"], ["item_id", 5], ["item_type", "Bank"]]
|
4583
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4584
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4585
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 19:10:50.282072"], ["id", 5]]
|
4586
|
+
[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 19:10:50.274716000 Z\nupdated_at: 2016-08-03 19:10:50.278077000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 19:10:50.282072"], ["item_id", 5], ["item_type", "Bank"]]
|
4587
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4588
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4589
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2016-08-03 19:10:50.285429"], ["id", 5]]
|
4590
|
+
[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 19:10:50.274716000 Z\nupdated_at: 2016-08-03 19:10:50.282072000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 19:10:50.285429"], ["item_id", 5], ["item_type", "Bank"]]
|
4591
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4592
|
+
[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"]]
|
4593
|
+
[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"]]
|
4594
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 5]]
|
4595
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 12) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
4596
|
+
[1m[35mBank Load (0.0ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 5]]
|
4597
|
+
[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]]
|
4598
|
+
[1m[35mBank Load (0.0ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 5]]
|
4599
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 14) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
4600
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
4601
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
4602
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
4603
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
4604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4605
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:10:50.296486"], ["updated_at", "2016-08-03 19:10:50.296486"]]
|
4606
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:10:50.296486"], ["item_id", 6], ["item_type", "Bank"]]
|
4607
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
4608
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4609
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:10:50.300425"], ["id", 6]]
|
4610
|
+
[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\ncreated_at: &1 2016-08-03 19:10:50.296486000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:10:50.300425"], ["item_id", 6], ["item_type", "Bank"]]
|
4611
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4612
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4613
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:10:50.304247"], ["updated_at", "2016-08-03 19:10:50.304247"]]
|
4614
|
+
[1m[35m (0.4ms)[0m commit transaction
|
4615
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4616
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2016-08-03 19:10:50.305850"], ["id", 6]]
|
4617
|
+
[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 19:10:50.296486000 Z\nupdated_at: 2016-08-03 19:10:50.300425000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:10:50.305850"], ["item_id", 6], ["item_type", "Bank"]]
|
4618
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4620
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:10:50.309434"], ["updated_at", "2016-08-03 19:10:50.309434"]]
|
4621
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4623
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 19:10:50.311103"], ["id", 6]]
|
4624
|
+
[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 19:10:50.296486000 Z\nupdated_at: 2016-08-03 19:10:50.305850000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:10:50.311103"], ["item_id", 6], ["item_type", "Bank"]]
|
4625
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4627
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 19:10:50.315150"], ["id", 6]]
|
4628
|
+
[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 19:10:50.296486000 Z\nupdated_at: 2016-08-03 19:10:50.311103000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:10:50.315150"], ["item_id", 6], ["item_type", "Bank"]]
|
4629
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4630
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4631
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:10:50.319446"], ["updated_at", "2016-08-03 19:10:50.319446"]]
|
4632
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4634
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2016-08-03 19:10:50.321330"], ["id", 6]]
|
4635
|
+
[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\ncreated_at: 2016-08-03 19:10:50.296486000 Z\nupdated_at: 2016-08-03 19:10:50.315150000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:10:50.321330"], ["item_id", 6], ["item_type", "Bank"]]
|
4636
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4637
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4638
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:10:50.324766"], ["id", 6]]
|
4639
|
+
[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\ncreated_at: 2016-08-03 19:10:50.296486000 Z\nupdated_at: 2016-08-03 19:10:50.321330000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:10:50.324766"], ["item_id", 6], ["item_type", "Bank"]]
|
4640
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4641
|
+
[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", 6], ["item_type", "Bank"]]
|
4642
|
+
[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", 6], ["item_type", "Bank"]]
|
4643
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4644
|
+
[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]]
|
4645
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4646
|
+
[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", 6]]
|
4647
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4648
|
+
[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]]
|
4649
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4650
|
+
[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]]
|
4651
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4652
|
+
[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]]
|
4653
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4654
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 21) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
4655
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4656
|
+
[1m[36m (2.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
|
4657
|
+
[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)
|
4658
|
+
[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
|
4659
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4660
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
4661
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
4662
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4663
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4664
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235657')[0m
|
4665
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
4666
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
4667
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
|
4668
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4669
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4670
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:11:19.375170"], ["updated_at", "2016-08-03 19:11:19.375170"]]
|
4671
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:11:19.375170"], ["item_id", 1], ["item_type", "Bank"]]
|
4672
|
+
[1m[35m (2.4ms)[0m commit transaction
|
4673
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
4674
|
+
[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", 1], ["item_type", "Bank"]]
|
4675
|
+
[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"]]
|
4676
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
4677
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4678
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:11:19.400362"], ["updated_at", "2016-08-03 19:11:19.400362"]]
|
4679
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:11:19.400362"], ["item_id", 2], ["item_type", "Bank"]]
|
4680
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4682
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:11:19.404133"], ["id", 2]]
|
4683
|
+
[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 19:11:19.400362000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:11:19.404133"], ["item_id", 2], ["item_type", "Bank"]]
|
4684
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4685
|
+
[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"]]
|
4686
|
+
[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"]]
|
4687
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 2]]
|
4688
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 3) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 2]]
|
4689
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4690
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:11:19.418744"], ["updated_at", "2016-08-03 19:11:19.418744"]]
|
4691
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:11:19.418744"], ["item_id", 3], ["item_type", "Bank"]]
|
4692
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4693
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4694
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:11:19.422384"], ["id", 3]]
|
4695
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: 100\ncreated_at: &1 2016-08-03 19:11:19.418744000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:11:19.422384"], ["item_id", 3], ["item_type", "Bank"]]
|
4696
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4698
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:11:19.426764"], ["id", 3]]
|
4699
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: 10\ncreated_at: 2016-08-03 19:11:19.418744000 Z\nupdated_at: 2016-08-03 19:11:19.422384000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:11:19.426764"], ["item_id", 3], ["item_type", "Bank"]]
|
4700
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4701
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4702
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2016-08-03 19:11:19.430069"], ["id", 3]]
|
4703
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: \ncreated_at: 2016-08-03 19:11:19.418744000 Z\nupdated_at: 2016-08-03 19:11:19.426764000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:11:19.430069"], ["item_id", 3], ["item_type", "Bank"]]
|
4704
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4705
|
+
[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", 3], ["item_type", "Bank"]]
|
4706
|
+
[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", 3], ["item_type", "Bank"]]
|
4707
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 3]]
|
4708
|
+
[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]]
|
4709
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 3]]
|
4710
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 6) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 3]]
|
4711
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 3]]
|
4712
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
4713
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4714
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:11:19.446097"], ["updated_at", "2016-08-03 19:11:19.446097"]]
|
4715
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:11:19.446097"], ["item_id", 4], ["item_type", "Bank"]]
|
4716
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4717
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4718
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:11:19.453231"], ["updated_at", "2016-08-03 19:11:19.453231"]]
|
4719
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4721
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 1], ["updated_at", "2016-08-03 19:11:19.455799"], ["id", 4]]
|
4722
|
+
[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 19:11:19.446097000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:11:19.455799"], ["item_id", 4], ["item_type", "Bank"]]
|
4723
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4724
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4725
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:11:19.459619"], ["id", 4]]
|
4726
|
+
[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 19:11:19.446097000 Z\nupdated_at: 2016-08-03 19:11:19.455799000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 19:11:19.459619"], ["item_id", 4], ["item_type", "Bank"]]
|
4727
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4728
|
+
[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"]]
|
4729
|
+
[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"]]
|
4730
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 4]]
|
4731
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 9) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 4]]
|
4732
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 4]]
|
4733
|
+
[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]]
|
4734
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4735
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:11:19.468306"], ["updated_at", "2016-08-03 19:11:19.468306"]]
|
4736
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4737
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4738
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:11:19.469809"], ["updated_at", "2016-08-03 19:11:19.469809"]]
|
4739
|
+
[1m[36m (0.3ms)[0m [1mcommit transaction[0m
|
4740
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4741
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:11:19.471310"], ["updated_at", "2016-08-03 19:11:19.471310"]]
|
4742
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:11:19.471310"], ["item_id", 5], ["item_type", "Bank"]]
|
4743
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4744
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4745
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 2], ["updated_at", "2016-08-03 19:11:19.474546"], ["id", 5]]
|
4746
|
+
[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 19:11:19.471310000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:11:19.474546"], ["item_id", 5], ["item_type", "Bank"]]
|
4747
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4748
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4749
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 19:11:19.478001"], ["id", 5]]
|
4750
|
+
[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 19:11:19.471310000 Z\nupdated_at: 2016-08-03 19:11:19.474546000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 19:11:19.478001"], ["item_id", 5], ["item_type", "Bank"]]
|
4751
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4753
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2016-08-03 19:11:19.481431"], ["id", 5]]
|
4754
|
+
[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 19:11:19.471310000 Z\nupdated_at: 2016-08-03 19:11:19.478001000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 19:11:19.481431"], ["item_id", 5], ["item_type", "Bank"]]
|
4755
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4756
|
+
[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"]]
|
4757
|
+
[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"]]
|
4758
|
+
[1m[35mBank Load (0.0ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 5]]
|
4759
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 12) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
4760
|
+
[1m[35mBank Load (0.0ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 5]]
|
4761
|
+
[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]]
|
4762
|
+
[1m[35mBank Load (0.0ms)[0m SELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1 [["id", 5]]
|
4763
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 14) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
4764
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
4765
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
4766
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4767
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:11:19.493304"], ["updated_at", "2016-08-03 19:11:19.493304"]]
|
4768
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:11:19.493304"], ["item_id", 6], ["item_type", "Bank"]]
|
4769
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4770
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4771
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:11:19.496440"], ["id", 6]]
|
4772
|
+
[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\ncreated_at: &1 2016-08-03 19:11:19.493304000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:11:19.496440"], ["item_id", 6], ["item_type", "Bank"]]
|
4773
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4774
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4775
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:11:19.499701"], ["updated_at", "2016-08-03 19:11:19.499701"]]
|
4776
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4777
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4778
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2016-08-03 19:11:19.501534"], ["id", 6]]
|
4779
|
+
[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 19:11:19.493304000 Z\nupdated_at: 2016-08-03 19:11:19.496440000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:11:19.501534"], ["item_id", 6], ["item_type", "Bank"]]
|
4780
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4781
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4782
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:11:19.504975"], ["updated_at", "2016-08-03 19:11:19.504975"]]
|
4783
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4784
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4785
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 19:11:19.506459"], ["id", 6]]
|
4786
|
+
[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 19:11:19.493304000 Z\nupdated_at: 2016-08-03 19:11:19.501534000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:11:19.506459"], ["item_id", 6], ["item_type", "Bank"]]
|
4787
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4788
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4789
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 19:11:19.509880"], ["id", 6]]
|
4790
|
+
[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 19:11:19.493304000 Z\nupdated_at: 2016-08-03 19:11:19.506459000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:11:19.509880"], ["item_id", 6], ["item_type", "Bank"]]
|
4791
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4792
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4793
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:11:19.513524"], ["updated_at", "2016-08-03 19:11:19.513524"]]
|
4794
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4796
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2016-08-03 19:11:19.515225"], ["id", 6]]
|
4797
|
+
[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\ncreated_at: 2016-08-03 19:11:19.493304000 Z\nupdated_at: 2016-08-03 19:11:19.509880000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:11:19.515225"], ["item_id", 6], ["item_type", "Bank"]]
|
4798
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4799
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4800
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:11:19.518995"], ["id", 6]]
|
4801
|
+
[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\ncreated_at: 2016-08-03 19:11:19.493304000 Z\nupdated_at: 2016-08-03 19:11:19.515225000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:11:19.518995"], ["item_id", 6], ["item_type", "Bank"]]
|
4802
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4803
|
+
[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", 6], ["item_type", "Bank"]]
|
4804
|
+
[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", 6], ["item_type", "Bank"]]
|
4805
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4806
|
+
[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]]
|
4807
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4808
|
+
[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", 6]]
|
4809
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4810
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
4811
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4812
|
+
[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]]
|
4813
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4814
|
+
[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]]
|
4815
|
+
[1m[36mBank Load (0.0ms)[0m [1mSELECT "banks".* FROM "banks" WHERE "banks"."id" = ? LIMIT 1[0m [["id", 6]]
|
4816
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 21) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
4817
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4818
|
+
[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
|
4819
|
+
[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)
|
4820
|
+
[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
|
4821
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4822
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
4823
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
4824
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4825
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4826
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235657')[0m
|
4827
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
4828
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
4829
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
|
4830
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4831
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4832
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:32:51.971284"], ["updated_at", "2016-08-03 19:32:51.971284"]]
|
4833
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:32:51.971284"], ["item_id", 1], ["item_type", "Bank"]]
|
4834
|
+
[1m[35m (2.3ms)[0m commit transaction
|
4835
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
4836
|
+
[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", 1], ["item_type", "Bank"]]
|
4837
|
+
[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"]]
|
4838
|
+
[1m[35mBank Load (0.2ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
4839
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4840
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:32:52.003428"], ["updated_at", "2016-08-03 19:32:52.003428"]]
|
4841
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:32:52.003428"], ["item_id", 2], ["item_type", "Bank"]]
|
4842
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4843
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4844
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:32:52.006493"], ["id", 2]]
|
4845
|
+
[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 19:32:52.003428000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:32:52.006493"], ["item_id", 2], ["item_type", "Bank"]]
|
4846
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4847
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
4848
|
+
[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"]]
|
4849
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
4850
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4851
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:32:52.015713"], ["updated_at", "2016-08-03 19:32:52.015713"]]
|
4852
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:32:52.015713"], ["item_id", 3], ["item_type", "Bank"]]
|
4853
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4854
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4855
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:32:52.019279"], ["id", 3]]
|
4856
|
+
[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 19:32:52.015713000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:32:52.019279"], ["item_id", 3], ["item_type", "Bank"]]
|
4857
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4858
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4859
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:32:52.022726"], ["id", 3]]
|
4860
|
+
[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 19:32:52.015713000 Z\nupdated_at: 2016-08-03 19:32:52.019279000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:32:52.022726"], ["item_id", 3], ["item_type", "Bank"]]
|
4861
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4862
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4863
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 19:32:52.027320"], ["id", 3]]
|
4864
|
+
[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 19:32:52.015713000 Z\nupdated_at: 2016-08-03 19:32:52.022726000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:32:52.027320"], ["item_id", 3], ["item_type", "Bank"]]
|
4865
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4866
|
+
[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", 3], ["item_type", "Bank"]]
|
4867
|
+
[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"]]
|
4868
|
+
[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]]
|
4869
|
+
[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]]
|
4870
|
+
[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]]
|
4871
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4872
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:32:52.035600"], ["updated_at", "2016-08-03 19:32:52.035600"]]
|
4873
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:32:52.035600"], ["item_id", 4], ["item_type", "Bank"]]
|
4874
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4875
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4876
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:32:52.042610"], ["updated_at", "2016-08-03 19:32:52.042610"]]
|
4877
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4878
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4879
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 1], ["updated_at", "2016-08-03 19:32:52.046710"], ["id", 4]]
|
4880
|
+
[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 19:32:52.035600000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:32:52.046710"], ["item_id", 4], ["item_type", "Bank"]]
|
4881
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4882
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4883
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:32:52.051304"], ["id", 4]]
|
4884
|
+
[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 19:32:52.035600000 Z\nupdated_at: 2016-08-03 19:32:52.046710000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 19:32:52.051304"], ["item_id", 4], ["item_type", "Bank"]]
|
4885
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4886
|
+
[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"]]
|
4887
|
+
[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"]]
|
4888
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
4889
|
+
[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]]
|
4890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4891
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:32:52.058776"], ["updated_at", "2016-08-03 19:32:52.058776"]]
|
4892
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4894
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:32:52.060590"], ["updated_at", "2016-08-03 19:32:52.060590"]]
|
4895
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4897
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:32:52.062033"], ["updated_at", "2016-08-03 19:32:52.062033"]]
|
4898
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:32:52.062033"], ["item_id", 5], ["item_type", "Bank"]]
|
4899
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4900
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4901
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 2], ["updated_at", "2016-08-03 19:32:52.065559"], ["id", 5]]
|
4902
|
+
[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 19:32:52.062033000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:32:52.065559"], ["item_id", 5], ["item_type", "Bank"]]
|
4903
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4904
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4905
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 19:32:52.069103"], ["id", 5]]
|
4906
|
+
[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 19:32:52.062033000 Z\nupdated_at: 2016-08-03 19:32:52.065559000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 19:32:52.069103"], ["item_id", 5], ["item_type", "Bank"]]
|
4907
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4908
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4909
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2016-08-03 19:32:52.072651"], ["id", 5]]
|
4910
|
+
[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 19:32:52.062033000 Z\nupdated_at: 2016-08-03 19:32:52.069103000 Z\nuser_id: 3\n"], ["created_at", "2016-08-03 19:32:52.072651"], ["item_id", 5], ["item_type", "Bank"]]
|
4911
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4912
|
+
[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"]]
|
4913
|
+
[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"]]
|
4914
|
+
[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]]
|
4915
|
+
[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]]
|
4916
|
+
[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]]
|
4917
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
4918
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
4919
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
4920
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
4921
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4922
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:32:52.082884"], ["updated_at", "2016-08-03 19:32:52.082884"]]
|
4923
|
+
[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 19:32:52.082884"], ["item_id", 6], ["item_type", "Bank"]]
|
4924
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4925
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4926
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:32:52.086336"], ["id", 6]]
|
4927
|
+
[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 19:32:52.082884000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:32:52.086336"], ["item_id", 6], ["item_type", "Bank"]]
|
4928
|
+
[1m[35m (0.6ms)[0m commit transaction
|
4929
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4930
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:32:52.089872"], ["updated_at", "2016-08-03 19:32:52.089872"]]
|
4931
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4932
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4933
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 19:32:52.091701"], ["id", 6]]
|
4934
|
+
[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 19:32:52.082884000 Z\nupdated_at: 2016-08-03 19:32:52.086336000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:32:52.091701"], ["item_id", 6], ["item_type", "Bank"]]
|
4935
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4936
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4937
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:32:52.095438"], ["updated_at", "2016-08-03 19:32:52.095438"]]
|
4938
|
+
[1m[35m (0.4ms)[0m commit transaction
|
4939
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4940
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2016-08-03 19:32:52.096975"], ["id", 6]]
|
4941
|
+
[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 19:32:52.082884000 Z\nupdated_at: 2016-08-03 19:32:52.091701000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:32:52.096975"], ["item_id", 6], ["item_type", "Bank"]]
|
4942
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4943
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4944
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2016-08-03 19:32:52.100324"], ["id", 6]]
|
4945
|
+
[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 19:32:52.082884000 Z\nupdated_at: 2016-08-03 19:32:52.096975000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:32:52.100324"], ["item_id", 6], ["item_type", "Bank"]]
|
4946
|
+
[1m[35m (0.4ms)[0m commit transaction
|
4947
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4948
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:32:52.103243"], ["updated_at", "2016-08-03 19:32:52.103243"]]
|
4949
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4950
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4951
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 19:32:52.104793"], ["id", 6]]
|
4952
|
+
[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 19:32:52.082884000 Z\nupdated_at: 2016-08-03 19:32:52.100324000 Z\nuser_id: 5\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:32:52.104793"], ["item_id", 6], ["item_type", "Bank"]]
|
4953
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
4954
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4955
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:32:52.108383"], ["id", 6]]
|
4956
|
+
[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 19:32:52.082884000 Z\nupdated_at: 2016-08-03 19:32:52.104793000 Z\nuser_id: 6\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:32:52.108383"], ["item_id", 6], ["item_type", "Bank"]]
|
4957
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
4958
|
+
[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"]]
|
4959
|
+
[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"]]
|
4960
|
+
[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]]
|
4961
|
+
[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]]
|
4962
|
+
[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]]
|
4963
|
+
[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]]
|
4964
|
+
[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]]
|
4965
|
+
[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]]
|
4966
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4967
|
+
[1m[36m (2.9ms)[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
|
4968
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
4969
|
+
[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
|
4970
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4971
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
4972
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
4973
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4974
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
4975
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235657')[0m
|
4976
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
4977
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
4978
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802235555')
|
4979
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4980
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4981
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:35:03.207884"], ["updated_at", "2016-08-03 19:35:03.207884"]]
|
4982
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:35:03.207884"], ["item_id", 1], ["item_type", "Bank"]]
|
4983
|
+
[1m[35m (2.5ms)[0m commit transaction
|
4984
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
4985
|
+
[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"]]
|
4986
|
+
[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"]]
|
4987
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
4988
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4989
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:35:03.238990"], ["updated_at", "2016-08-03 19:35:03.238990"]]
|
4990
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:35:03.238990"], ["item_id", 2], ["item_type", "Bank"]]
|
4991
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4992
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4993
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:35:03.242431"], ["id", 2]]
|
4994
|
+
[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 19:35:03.238990000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:35:03.242431"], ["item_id", 2], ["item_type", "Bank"]]
|
4995
|
+
[1m[35m (0.5ms)[0m commit transaction
|
4996
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
4997
|
+
[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"]]
|
4998
|
+
[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]]
|
4999
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5000
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:35:03.251178"], ["updated_at", "2016-08-03 19:35:03.251178"]]
|
5001
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:35:03.251178"], ["item_id", 3], ["item_type", "Bank"]]
|
5002
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5003
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5004
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:35:03.254704"], ["id", 3]]
|
5005
|
+
[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 19:35:03.251178000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:35:03.254704"], ["item_id", 3], ["item_type", "Bank"]]
|
5006
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5007
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5008
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:35:03.259025"], ["id", 3]]
|
5009
|
+
[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 19:35:03.251178000 Z\nupdated_at: 2016-08-03 19:35:03.254704000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:35:03.259025"], ["item_id", 3], ["item_type", "Bank"]]
|
5010
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5011
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5012
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 19:35:03.263292"], ["id", 3]]
|
5013
|
+
[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 19:35:03.251178000 Z\nupdated_at: 2016-08-03 19:35:03.259025000 Z\nuser_id: \n"], ["created_at", "2016-08-03 19:35:03.263292"], ["item_id", 3], ["item_type", "Bank"]]
|
5014
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5015
|
+
[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"]]
|
5016
|
+
[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"]]
|
5017
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
5018
|
+
[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]]
|
5019
|
+
[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]]
|
5020
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5021
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:35:03.272877"], ["updated_at", "2016-08-03 19:35:03.272877"]]
|
5022
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:35:03.272877"], ["item_id", 4], ["item_type", "Bank"]]
|
5023
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5024
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5025
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:35:03.281497"], ["updated_at", "2016-08-03 19:35:03.281497"]]
|
5026
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:35:03.281497"], ["item_id", 1], ["item_type", "User"]]
|
5027
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5028
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5029
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:35:03.285313"], ["updated_at", "2016-08-03 19:35:03.285313"]]
|
5030
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:35:03.285313"], ["item_id", 2], ["item_type", "User"]]
|
5031
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5032
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5033
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:35:03.288163"], ["updated_at", "2016-08-03 19:35:03.288163"]]
|
5034
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:35:03.288163"], ["item_id", 5], ["item_type", "Bank"]]
|
5035
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5036
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5037
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 19:35:03.293729"], ["id", 5]]
|
5038
|
+
[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\ncreated_at: &1 2016-08-03 19:35:03.288163000 Z\nupdated_at: *1\nuser_id: \n"], ["created_at", "2016-08-03 19:35:03.293729"], ["item_id", 5], ["item_type", "Bank"]]
|
5039
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5040
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5041
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 19:35:03.297857"], ["id", 5]]
|
5042
|
+
[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\ncreated_at: 2016-08-03 19:35:03.288163000 Z\nupdated_at: 2016-08-03 19:35:03.293729000 Z\nuser_id: 1\n"], ["created_at", "2016-08-03 19:35:03.297857"], ["item_id", 5], ["item_type", "Bank"]]
|
5043
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5045
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 19:35:03.302014"], ["id", 5]]
|
5046
|
+
[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\ncreated_at: 2016-08-03 19:35:03.288163000 Z\nupdated_at: 2016-08-03 19:35:03.297857000 Z\nuser_id: 2\n"], ["created_at", "2016-08-03 19:35:03.302014"], ["item_id", 5], ["item_type", "Bank"]]
|
5047
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5048
|
+
[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"]]
|
5049
|
+
[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"]]
|
5050
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 12) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
5051
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 13) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 5]]
|
5052
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 14) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 5]]
|
5053
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
5054
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
5055
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
5056
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5057
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5058
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:35:03.313451"], ["updated_at", "2016-08-03 19:35:03.313451"]]
|
5059
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:35:03.313451"], ["item_id", 6], ["item_type", "Bank"]]
|
5060
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5061
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5062
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:35:03.316743"], ["id", 6]]
|
5063
|
+
[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\ncreated_at: &1 2016-08-03 19:35:03.313451000 Z\nupdated_at: *1\nuser_id: \n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:35:03.316743"], ["item_id", 6], ["item_type", "Bank"]]
|
5064
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5065
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5066
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:35:03.320371"], ["updated_at", "2016-08-03 19:35:03.320371"]]
|
5067
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.320371"], ["item_id", 3], ["item_type", "User"]]
|
5068
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5069
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5070
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 19:35:03.323347"], ["id", 6]]
|
5071
|
+
[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 19:35:03.313451000 Z\nupdated_at: 2016-08-03 19:35:03.316743000 Z\nuser_id: \n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.323347"], ["item_id", 6], ["item_type", "Bank"]]
|
5072
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5073
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5074
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:35:03.326640"], ["updated_at", "2016-08-03 19:35:03.326640"]]
|
5075
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.326640"], ["item_id", 4], ["item_type", "User"]]
|
5076
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5077
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5078
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 19:35:03.329877"], ["id", 6]]
|
5079
|
+
[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 19:35:03.313451000 Z\nupdated_at: 2016-08-03 19:35:03.323347000 Z\nuser_id: 3\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.329877"], ["item_id", 6], ["item_type", "Bank"]]
|
5080
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5081
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5082
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 19:35:03.333528"], ["id", 6]]
|
5083
|
+
[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 19:35:03.313451000 Z\nupdated_at: 2016-08-03 19:35:03.329877000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.333528"], ["item_id", 6], ["item_type", "Bank"]]
|
5084
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5085
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5086
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:35:03.337078"], ["updated_at", "2016-08-03 19:35:03.337078"]]
|
5087
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.337078"], ["item_id", 5], ["item_type", "User"]]
|
5088
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5089
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5090
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 19:35:03.340592"], ["id", 6]]
|
5091
|
+
[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 19:35:03.313451000 Z\nupdated_at: 2016-08-03 19:35:03.333528000 Z\nuser_id: 4\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:35:03.340592"], ["item_id", 6], ["item_type", "Bank"]]
|
5092
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5093
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5094
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:35:03.344576"], ["id", 6]]
|
5095
|
+
[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 19:35:03.313451000 Z\nupdated_at: 2016-08-03 19:35:03.340592000 Z\nuser_id: 5\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:35:03.344576"], ["item_id", 6], ["item_type", "Bank"]]
|
5096
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5097
|
+
[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"]]
|
5098
|
+
[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"]]
|
5099
|
+
[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]]
|
5100
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 18) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
|
5101
|
+
[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]]
|
5102
|
+
[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]]
|
5103
|
+
[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]]
|
5104
|
+
[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]]
|
5105
|
+
[1m[36m (2.5ms)[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
|
5106
|
+
[1m[35m (0.5ms)[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)
|
5107
|
+
[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
|
5108
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5109
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5110
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5111
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5112
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5113
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5114
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5115
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5116
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5117
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5118
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 20], ["created_at", "2016-08-03 19:37:45.066485"], ["updated_at", "2016-08-03 19:37:45.066485"]]
|
5119
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.066485"], ["item_id", 1], ["item_type", "Bank"]]
|
5120
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
5121
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
5122
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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", 1], ["item_type", "Bank"]]
|
5123
|
+
[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", 1], ["item_type", "Bank"]]
|
5124
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
5125
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5126
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:37:45.096909"], ["updated_at", "2016-08-03 19:37:45.096909"]]
|
5127
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.096909"], ["item_id", 2], ["item_type", "Bank"]]
|
5128
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5129
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5130
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:37:45.101072"], ["id", 2]]
|
5131
|
+
[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 2016-08-03 19:37:45.096909000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:37:45.101072"], ["item_id", 2], ["item_type", "Bank"]]
|
5132
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5133
|
+
[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", 2], ["item_type", "Bank"]]
|
5134
|
+
[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", 2], ["item_type", "Bank"]]
|
5135
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 3) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 2]]
|
5136
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5137
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:37:45.110400"], ["updated_at", "2016-08-03 19:37:45.110400"]]
|
5138
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:37:45.110400"], ["item_id", 3], ["item_type", "Bank"]]
|
5139
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5140
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5141
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:37:45.114022"], ["id", 3]]
|
5142
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: 100\nuser_id: \ncreated_at: &1 2016-08-03 19:37:45.110400000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:37:45.114022"], ["item_id", 3], ["item_type", "Bank"]]
|
5143
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5144
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5145
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:37:45.117623"], ["id", 3]]
|
5146
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: 10\nuser_id: \ncreated_at: 2016-08-03 19:37:45.110400000 Z\nupdated_at: 2016-08-03 19:37:45.114022000 Z\n"], ["created_at", "2016-08-03 19:37:45.117623"], ["item_id", 3], ["item_type", "Bank"]]
|
5147
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5149
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 40], ["updated_at", "2016-08-03 19:37:45.121195"], ["id", 3]]
|
5150
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "object", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "update"], ["object", "---\nid: 3\nvalue: \nuser_id: \ncreated_at: 2016-08-03 19:37:45.110400000 Z\nupdated_at: 2016-08-03 19:37:45.117623000 Z\n"], ["created_at", "2016-08-03 19:37:45.121195"], ["item_id", 3], ["item_type", "Bank"]]
|
5151
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5152
|
+
[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", 3], ["item_type", "Bank"]]
|
5153
|
+
[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", 3], ["item_type", "Bank"]]
|
5154
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 5) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 3]]
|
5155
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 6) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 3]]
|
5156
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 7) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 3]]
|
5157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5158
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:37:45.129509"], ["updated_at", "2016-08-03 19:37:45.129509"]]
|
5159
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.129509"], ["item_id", 4], ["item_type", "Bank"]]
|
5160
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5162
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:37:45.139582"], ["updated_at", "2016-08-03 19:37:45.139582"]]
|
5163
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.139582"], ["item_id", 1], ["item_type", "User"]]
|
5164
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5165
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5166
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 1], ["updated_at", "2016-08-03 19:37:45.145740"], ["id", 4]]
|
5167
|
+
[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 2016-08-03 19:37:45.129509000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:37:45.145740"], ["item_id", 4], ["item_type", "Bank"]]
|
5168
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5169
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5170
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:37:45.149095"], ["id", 4]]
|
5171
|
+
[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: 2016-08-03 19:37:45.129509000 Z\nupdated_at: 2016-08-03 19:37:45.145740000 Z\n"], ["created_at", "2016-08-03 19:37:45.149095"], ["item_id", 4], ["item_type", "Bank"]]
|
5172
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5173
|
+
[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"]]
|
5174
|
+
[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"]]
|
5175
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 10) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 4]]
|
5176
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 11) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 4]]
|
5177
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5178
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:37:45.156372"], ["updated_at", "2016-08-03 19:37:45.156372"]]
|
5179
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.156372"], ["item_id", 2], ["item_type", "User"]]
|
5180
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5181
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5182
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:37:45.159934"], ["updated_at", "2016-08-03 19:37:45.159934"]]
|
5183
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.159934"], ["item_id", 3], ["item_type", "User"]]
|
5184
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5186
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:37:45.163152"], ["updated_at", "2016-08-03 19:37:45.163152"]]
|
5187
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:37:45.163152"], ["item_id", 5], ["item_type", "Bank"]]
|
5188
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5190
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 2], ["updated_at", "2016-08-03 19:37:45.166254"], ["id", 5]]
|
5191
|
+
[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 2016-08-03 19:37:45.163152000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:37:45.166254"], ["item_id", 5], ["item_type", "Bank"]]
|
5192
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5193
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5194
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 3], ["updated_at", "2016-08-03 19:37:45.169904"], ["id", 5]]
|
5195
|
+
[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: 2016-08-03 19:37:45.163152000 Z\nupdated_at: 2016-08-03 19:37:45.166254000 Z\n"], ["created_at", "2016-08-03 19:37:45.169904"], ["item_id", 5], ["item_type", "Bank"]]
|
5196
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5197
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5198
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", nil], ["updated_at", "2016-08-03 19:37:45.173081"], ["id", 5]]
|
5199
|
+
[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: 2016-08-03 19:37:45.163152000 Z\nupdated_at: 2016-08-03 19:37:45.169904000 Z\n"], ["created_at", "2016-08-03 19:37:45.173081"], ["item_id", 5], ["item_type", "Bank"]]
|
5200
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5201
|
+
[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"]]
|
5202
|
+
[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"]]
|
5203
|
+
[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]]
|
5204
|
+
[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]]
|
5205
|
+
[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]]
|
5206
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5207
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
5208
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
5209
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
5210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5211
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:37:45.182906"], ["updated_at", "2016-08-03 19:37:45.182906"]]
|
5212
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:37:45.182906"], ["item_id", 6], ["item_type", "Bank"]]
|
5213
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5214
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5215
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:37:45.186804"], ["id", 6]]
|
5216
|
+
[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 2016-08-03 19:37:45.182906000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:37:45.186804"], ["item_id", 6], ["item_type", "Bank"]]
|
5217
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5219
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:37:45.190339"], ["updated_at", "2016-08-03 19:37:45.190339"]]
|
5220
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.190339"], ["item_id", 4], ["item_type", "User"]]
|
5221
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5223
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 4], ["updated_at", "2016-08-03 19:37:45.193973"], ["id", 6]]
|
5224
|
+
[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: 2016-08-03 19:37:45.182906000 Z\nupdated_at: 2016-08-03 19:37:45.186804000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.193973"], ["item_id", 6], ["item_type", "Bank"]]
|
5225
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5227
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:37:45.197801"], ["updated_at", "2016-08-03 19:37:45.197801"]]
|
5228
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.197801"], ["item_id", 5], ["item_type", "User"]]
|
5229
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5231
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 5], ["updated_at", "2016-08-03 19:37:45.201832"], ["id", 6]]
|
5232
|
+
[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: 2016-08-03 19:37:45.182906000 Z\nupdated_at: 2016-08-03 19:37:45.193973000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.201832"], ["item_id", 6], ["item_type", "Bank"]]
|
5233
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5234
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5235
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 123], ["updated_at", "2016-08-03 19:37:45.205608"], ["id", 6]]
|
5236
|
+
[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: 2016-08-03 19:37:45.182906000 Z\nupdated_at: 2016-08-03 19:37:45.201832000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.205608"], ["item_id", 6], ["item_type", "Bank"]]
|
5237
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5238
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5239
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:37:45.208841"], ["updated_at", "2016-08-03 19:37:45.208841"]]
|
5240
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?)[0m [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.208841"], ["item_id", 6], ["item_type", "User"]]
|
5241
|
+
[1m[35m (0.4ms)[0m commit transaction
|
5242
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5243
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 6], ["updated_at", "2016-08-03 19:37:45.211579"], ["id", 6]]
|
5244
|
+
[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: 2016-08-03 19:37:45.182906000 Z\nupdated_at: 2016-08-03 19:37:45.205608000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:37:45.211579"], ["item_id", 6], ["item_type", "Bank"]]
|
5245
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5247
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:37:45.214873"], ["id", 6]]
|
5248
|
+
[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: 2016-08-03 19:37:45.182906000 Z\nupdated_at: 2016-08-03 19:37:45.211579000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:37:45.214873"], ["item_id", 6], ["item_type", "Bank"]]
|
5249
|
+
[1m[35m (0.4ms)[0m commit transaction
|
5250
|
+
[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", 6], ["item_type", "Bank"]]
|
5251
|
+
[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", 6], ["item_type", "Bank"]]
|
5252
|
+
[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]]
|
5253
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 21) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
5254
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 23) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
|
5255
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 24) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
5256
|
+
[1m[36mPaperTrail::Version Load (0.1ms)[0m [1mSELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 26) ORDER BY "versions"."id" DESC LIMIT 1[0m [["item_type", "Bank"], ["item_id", 6]]
|
5257
|
+
[1m[35mPaperTrail::Version Load (0.1ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_type" = ? AND "versions"."item_id" = ? AND ("versions"."id" < 27) ORDER BY "versions"."id" DESC LIMIT 1 [["item_type", "Bank"], ["item_id", 6]]
|
5258
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5259
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2016-08-03 19:37:45.226476"], ["updated_at", "2016-08-03 19:37:45.226476"]]
|
5260
|
+
[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 19:37:45.226476"], ["item_id", 7], ["item_type", "User"]]
|
5261
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5262
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5263
|
+
[1m[36m (2.7ms)[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
|
5264
|
+
[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)
|
5265
|
+
[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
|
5266
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5267
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5268
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5269
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5270
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5271
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5272
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5273
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5274
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5276
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:38:17.023809"], ["updated_at", "2016-08-03 19:38:17.023809"]]
|
5277
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.023809"], ["item_id", 1], ["item_type", "Bank"]]
|
5278
|
+
[1m[35m (2.6ms)[0m commit transaction
|
5279
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
5280
|
+
[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"]]
|
5281
|
+
[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"]]
|
5282
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
5283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5284
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:17.056087"], ["updated_at", "2016-08-03 19:38:17.056087"]]
|
5285
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.056087"], ["item_id", 2], ["item_type", "Bank"]]
|
5286
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5287
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5288
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:38:17.059445"], ["id", 2]]
|
5289
|
+
[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 2016-08-03 19:38:17.056087000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:17.059445"], ["item_id", 2], ["item_type", "Bank"]]
|
5290
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5291
|
+
[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"]]
|
5292
|
+
[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"]]
|
5293
|
+
[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]]
|
5294
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5295
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:38:17.068959"], ["updated_at", "2016-08-03 19:38:17.068959"]]
|
5296
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:38:17.068959"], ["item_id", 3], ["item_type", "Bank"]]
|
5297
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5298
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5299
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:38:17.072360"], ["id", 3]]
|
5300
|
+
[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 2016-08-03 19:38:17.068959000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:17.072360"], ["item_id", 3], ["item_type", "Bank"]]
|
5301
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5302
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5303
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:38:17.077246"], ["id", 3]]
|
5304
|
+
[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: 2016-08-03 19:38:17.068959000 Z\nupdated_at: 2016-08-03 19:38:17.072360000 Z\n"], ["created_at", "2016-08-03 19:38:17.077246"], ["item_id", 3], ["item_type", "Bank"]]
|
5305
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5306
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5307
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 19:38:17.080755"], ["id", 3]]
|
5308
|
+
[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: 2016-08-03 19:38:17.068959000 Z\nupdated_at: 2016-08-03 19:38:17.077246000 Z\n"], ["created_at", "2016-08-03 19:38:17.080755"], ["item_id", 3], ["item_type", "Bank"]]
|
5309
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5310
|
+
[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"]]
|
5311
|
+
[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"]]
|
5312
|
+
[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]]
|
5313
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5314
|
+
[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]]
|
5315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5316
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:38:17.089105"], ["updated_at", "2016-08-03 19:38:17.089105"]]
|
5317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.089105"], ["item_id", 4], ["item_type", "Bank"]]
|
5318
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5319
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5320
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:17.098382"], ["updated_at", "2016-08-03 19:38:17.098382"]]
|
5321
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.098382"], ["item_id", 1], ["item_type", "User"]]
|
5322
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5324
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 19:38:17.104722"], ["id", 4]]
|
5325
|
+
[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 2016-08-03 19:38:17.089105000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:17.104722"], ["item_id", 4], ["item_type", "Bank"]]
|
5326
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5328
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:38:17.109697"], ["id", 4]]
|
5329
|
+
[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: 2016-08-03 19:38:17.089105000 Z\nupdated_at: 2016-08-03 19:38:17.104722000 Z\n"], ["created_at", "2016-08-03 19:38:17.109697"], ["item_id", 4], ["item_type", "Bank"]]
|
5330
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5331
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
5332
|
+
[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"]]
|
5333
|
+
[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]]
|
5334
|
+
[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]]
|
5335
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5336
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:17.117042"], ["updated_at", "2016-08-03 19:38:17.117042"]]
|
5337
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.117042"], ["item_id", 2], ["item_type", "User"]]
|
5338
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5339
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5340
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:17.120201"], ["updated_at", "2016-08-03 19:38:17.120201"]]
|
5341
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.120201"], ["item_id", 3], ["item_type", "User"]]
|
5342
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5344
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:38:17.123294"], ["updated_at", "2016-08-03 19:38:17.123294"]]
|
5345
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:17.123294"], ["item_id", 5], ["item_type", "Bank"]]
|
5346
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5347
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5348
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 19:38:17.126748"], ["id", 5]]
|
5349
|
+
[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 2016-08-03 19:38:17.123294000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:17.126748"], ["item_id", 5], ["item_type", "Bank"]]
|
5350
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5351
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5352
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 19:38:17.130595"], ["id", 5]]
|
5353
|
+
[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: 2016-08-03 19:38:17.123294000 Z\nupdated_at: 2016-08-03 19:38:17.126748000 Z\n"], ["created_at", "2016-08-03 19:38:17.130595"], ["item_id", 5], ["item_type", "Bank"]]
|
5354
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5355
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5356
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 19:38:17.134283"], ["id", 5]]
|
5357
|
+
[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: 2016-08-03 19:38:17.123294000 Z\nupdated_at: 2016-08-03 19:38:17.130595000 Z\n"], ["created_at", "2016-08-03 19:38:17.134283"], ["item_id", 5], ["item_type", "Bank"]]
|
5358
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5359
|
+
[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"]]
|
5360
|
+
[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"]]
|
5361
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5362
|
+
[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]]
|
5363
|
+
[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]]
|
5364
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
5365
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5366
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
5367
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
5368
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5369
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:38:17.145511"], ["updated_at", "2016-08-03 19:38:17.145511"]]
|
5370
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:17.145511"], ["item_id", 6], ["item_type", "Bank"]]
|
5371
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5372
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5373
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:38:17.149854"], ["id", 6]]
|
5374
|
+
[1m[35mSQL (0.2ms)[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 2016-08-03 19:38:17.145511000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:38:17.149854"], ["item_id", 6], ["item_type", "Bank"]]
|
5375
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5377
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:17.154568"], ["updated_at", "2016-08-03 19:38:17.154568"]]
|
5378
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.154568"], ["item_id", 4], ["item_type", "User"]]
|
5379
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5380
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5381
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 19:38:17.158502"], ["id", 6]]
|
5382
|
+
[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: 2016-08-03 19:38:17.145511000 Z\nupdated_at: 2016-08-03 19:38:17.149854000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.158502"], ["item_id", 6], ["item_type", "Bank"]]
|
5383
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5384
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5385
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:17.161940"], ["updated_at", "2016-08-03 19:38:17.161940"]]
|
5386
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.161940"], ["item_id", 5], ["item_type", "User"]]
|
5387
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5388
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5389
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 19:38:17.165017"], ["id", 6]]
|
5390
|
+
[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: 2016-08-03 19:38:17.145511000 Z\nupdated_at: 2016-08-03 19:38:17.158502000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.165017"], ["item_id", 6], ["item_type", "Bank"]]
|
5391
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5392
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5393
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 19:38:17.168201"], ["id", 6]]
|
5394
|
+
[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: 2016-08-03 19:38:17.145511000 Z\nupdated_at: 2016-08-03 19:38:17.165017000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.168201"], ["item_id", 6], ["item_type", "Bank"]]
|
5395
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5396
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5397
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:17.172888"], ["updated_at", "2016-08-03 19:38:17.172888"]]
|
5398
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.172888"], ["item_id", 6], ["item_type", "User"]]
|
5399
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5400
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5401
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 19:38:17.177021"], ["id", 6]]
|
5402
|
+
[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: 2016-08-03 19:38:17.145511000 Z\nupdated_at: 2016-08-03 19:38:17.168201000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:17.177021"], ["item_id", 6], ["item_type", "Bank"]]
|
5403
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5405
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:38:17.180235"], ["id", 6]]
|
5406
|
+
[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: 2016-08-03 19:38:17.145511000 Z\nupdated_at: 2016-08-03 19:38:17.177021000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:17.180235"], ["item_id", 6], ["item_type", "Bank"]]
|
5407
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5408
|
+
[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"]]
|
5409
|
+
[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"]]
|
5410
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
5411
|
+
[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]]
|
5412
|
+
[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]]
|
5413
|
+
[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]]
|
5414
|
+
[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]]
|
5415
|
+
[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]]
|
5416
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5417
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 19:38:17.191018"], ["updated_at", "2016-08-03 19:38:17.191018"]]
|
5418
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:17.191018"], ["item_id", 7], ["item_type", "User"]]
|
5419
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5420
|
+
[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"]]
|
5421
|
+
[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"]]
|
5422
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5423
|
+
[1m[36m (2.9ms)[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
|
5424
|
+
[1m[35m (0.7ms)[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)
|
5425
|
+
[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
|
5426
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5427
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5428
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5429
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5430
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5431
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5432
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5433
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5434
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5435
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5436
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:38:55.863579"], ["updated_at", "2016-08-03 19:38:55.863579"]]
|
5437
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.863579"], ["item_id", 1], ["item_type", "Bank"]]
|
5438
|
+
[1m[35m (2.5ms)[0m commit transaction
|
5439
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
5440
|
+
[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"]]
|
5441
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
5442
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
5443
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5444
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:55.895193"], ["updated_at", "2016-08-03 19:38:55.895193"]]
|
5445
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.895193"], ["item_id", 2], ["item_type", "Bank"]]
|
5446
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5447
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5448
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:38:55.898654"], ["id", 2]]
|
5449
|
+
[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 2016-08-03 19:38:55.895193000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:55.898654"], ["item_id", 2], ["item_type", "Bank"]]
|
5450
|
+
[1m[35m (0.4ms)[0m commit transaction
|
5451
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
5452
|
+
[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"]]
|
5453
|
+
[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]]
|
5454
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5455
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:38:55.907541"], ["updated_at", "2016-08-03 19:38:55.907541"]]
|
5456
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:38:55.907541"], ["item_id", 3], ["item_type", "Bank"]]
|
5457
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5458
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5459
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:38:55.910429"], ["id", 3]]
|
5460
|
+
[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 2016-08-03 19:38:55.907541000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:55.910429"], ["item_id", 3], ["item_type", "Bank"]]
|
5461
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5462
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5463
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:38:55.914798"], ["id", 3]]
|
5464
|
+
[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: 2016-08-03 19:38:55.907541000 Z\nupdated_at: 2016-08-03 19:38:55.910429000 Z\n"], ["created_at", "2016-08-03 19:38:55.914798"], ["item_id", 3], ["item_type", "Bank"]]
|
5465
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5466
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5467
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 19:38:55.918975"], ["id", 3]]
|
5468
|
+
[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: 2016-08-03 19:38:55.907541000 Z\nupdated_at: 2016-08-03 19:38:55.914798000 Z\n"], ["created_at", "2016-08-03 19:38:55.918975"], ["item_id", 3], ["item_type", "Bank"]]
|
5469
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5470
|
+
[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"]]
|
5471
|
+
[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"]]
|
5472
|
+
[1m[35mPaperTrail::Version Load (0.3ms)[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]]
|
5473
|
+
[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]]
|
5474
|
+
[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]]
|
5475
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5476
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:38:55.927693"], ["updated_at", "2016-08-03 19:38:55.927693"]]
|
5477
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.927693"], ["item_id", 4], ["item_type", "Bank"]]
|
5478
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5479
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5480
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:55.936365"], ["updated_at", "2016-08-03 19:38:55.936365"]]
|
5481
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.936365"], ["item_id", 1], ["item_type", "User"]]
|
5482
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5484
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 19:38:55.942977"], ["id", 4]]
|
5485
|
+
[1m[36mSQL (0.2ms)[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 2016-08-03 19:38:55.927693000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:55.942977"], ["item_id", 4], ["item_type", "Bank"]]
|
5486
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5488
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:38:55.947049"], ["id", 4]]
|
5489
|
+
[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: 2016-08-03 19:38:55.927693000 Z\nupdated_at: 2016-08-03 19:38:55.942977000 Z\n"], ["created_at", "2016-08-03 19:38:55.947049"], ["item_id", 4], ["item_type", "Bank"]]
|
5490
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5491
|
+
[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"]]
|
5492
|
+
[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"]]
|
5493
|
+
[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]]
|
5494
|
+
[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]]
|
5495
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5496
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:55.954822"], ["updated_at", "2016-08-03 19:38:55.954822"]]
|
5497
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.954822"], ["item_id", 2], ["item_type", "User"]]
|
5498
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5499
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5500
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:38:55.958304"], ["updated_at", "2016-08-03 19:38:55.958304"]]
|
5501
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.958304"], ["item_id", 3], ["item_type", "User"]]
|
5502
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5503
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5504
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:38:55.962174"], ["updated_at", "2016-08-03 19:38:55.962174"]]
|
5505
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:38:55.962174"], ["item_id", 5], ["item_type", "Bank"]]
|
5506
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5507
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5508
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 19:38:55.966128"], ["id", 5]]
|
5509
|
+
[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 2016-08-03 19:38:55.962174000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:38:55.966128"], ["item_id", 5], ["item_type", "Bank"]]
|
5510
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5511
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5512
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 19:38:55.969298"], ["id", 5]]
|
5513
|
+
[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: 2016-08-03 19:38:55.962174000 Z\nupdated_at: 2016-08-03 19:38:55.966128000 Z\n"], ["created_at", "2016-08-03 19:38:55.969298"], ["item_id", 5], ["item_type", "Bank"]]
|
5514
|
+
[1m[35m (0.4ms)[0m commit transaction
|
5515
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5516
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 19:38:55.972287"], ["id", 5]]
|
5517
|
+
[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: 2016-08-03 19:38:55.962174000 Z\nupdated_at: 2016-08-03 19:38:55.969298000 Z\n"], ["created_at", "2016-08-03 19:38:55.972287"], ["item_id", 5], ["item_type", "Bank"]]
|
5518
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5519
|
+
[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"]]
|
5520
|
+
[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"]]
|
5521
|
+
[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]]
|
5522
|
+
[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]]
|
5523
|
+
[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]]
|
5524
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
5525
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5526
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
5527
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
5528
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5529
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:38:55.982204"], ["updated_at", "2016-08-03 19:38:55.982204"]]
|
5530
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:55.982204"], ["item_id", 6], ["item_type", "Bank"]]
|
5531
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5532
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5533
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:38:55.985847"], ["id", 6]]
|
5534
|
+
[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 2016-08-03 19:38:55.982204000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:38:55.985847"], ["item_id", 6], ["item_type", "Bank"]]
|
5535
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5536
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5537
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:55.989646"], ["updated_at", "2016-08-03 19:38:55.989646"]]
|
5538
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:55.989646"], ["item_id", 4], ["item_type", "User"]]
|
5539
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5540
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5541
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 19:38:55.993414"], ["id", 6]]
|
5542
|
+
[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: 2016-08-03 19:38:55.982204000 Z\nupdated_at: 2016-08-03 19:38:55.985847000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:55.993414"], ["item_id", 6], ["item_type", "Bank"]]
|
5543
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5545
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:55.997690"], ["updated_at", "2016-08-03 19:38:55.997690"]]
|
5546
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:55.997690"], ["item_id", 5], ["item_type", "User"]]
|
5547
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5548
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5549
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 19:38:56.001388"], ["id", 6]]
|
5550
|
+
[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: 2016-08-03 19:38:55.982204000 Z\nupdated_at: 2016-08-03 19:38:55.993414000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:56.001388"], ["item_id", 6], ["item_type", "Bank"]]
|
5551
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5552
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5553
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 19:38:56.004758"], ["id", 6]]
|
5554
|
+
[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: 2016-08-03 19:38:55.982204000 Z\nupdated_at: 2016-08-03 19:38:56.001388000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:56.004758"], ["item_id", 6], ["item_type", "Bank"]]
|
5555
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5556
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5557
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:56.008023"], ["updated_at", "2016-08-03 19:38:56.008023"]]
|
5558
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:56.008023"], ["item_id", 6], ["item_type", "User"]]
|
5559
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5560
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5561
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 19:38:56.011038"], ["id", 6]]
|
5562
|
+
[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: 2016-08-03 19:38:55.982204000 Z\nupdated_at: 2016-08-03 19:38:56.004758000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:38:56.011038"], ["item_id", 6], ["item_type", "Bank"]]
|
5563
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5564
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5565
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:38:56.014544"], ["id", 6]]
|
5566
|
+
[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: 2016-08-03 19:38:55.982204000 Z\nupdated_at: 2016-08-03 19:38:56.011038000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:56.014544"], ["item_id", 6], ["item_type", "Bank"]]
|
5567
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5568
|
+
[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", 6], ["item_type", "Bank"]]
|
5569
|
+
[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"]]
|
5570
|
+
[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]]
|
5571
|
+
[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]]
|
5572
|
+
[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]]
|
5573
|
+
[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]]
|
5574
|
+
[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]]
|
5575
|
+
[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]]
|
5576
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5577
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 19:38:56.025857"], ["updated_at", "2016-08-03 19:38:56.025857"]]
|
5578
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:56.025857"], ["item_id", 7], ["item_type", "User"]]
|
5579
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5580
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5581
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 2], ["created_at", "2016-08-03 19:38:56.029199"], ["updated_at", "2016-08-03 19:38:56.029199"]]
|
5582
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:56.029199"], ["item_id", 8], ["item_type", "User"]]
|
5583
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5584
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5585
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:38:56.032260"], ["updated_at", "2016-08-03 19:38:56.032260"]]
|
5586
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:38:56.032260"], ["item_id", 9], ["item_type", "User"]]
|
5587
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5588
|
+
[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", 9], ["item_type", "User"]]
|
5589
|
+
[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", 9], ["item_type", "User"]]
|
5590
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5591
|
+
[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
|
5592
|
+
[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)
|
5593
|
+
[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
|
5594
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5595
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5596
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5597
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5598
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5599
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5600
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5601
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5602
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5603
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5604
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 19:39:39.382838"], ["updated_at", "2016-08-03 19:39:39.382838"]]
|
5605
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.382838"], ["item_id", 1], ["item_type", "Bank"]]
|
5606
|
+
[1m[35m (2.6ms)[0m commit transaction
|
5607
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
5608
|
+
[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", 1], ["item_type", "Bank"]]
|
5609
|
+
[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"]]
|
5610
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
5611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5612
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:39:39.408160"], ["updated_at", "2016-08-03 19:39:39.408160"]]
|
5613
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.408160"], ["item_id", 2], ["item_type", "Bank"]]
|
5614
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5615
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5616
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 19:39:39.411511"], ["id", 2]]
|
5617
|
+
[1m[36mSQL (0.2ms)[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 2016-08-03 19:39:39.408160000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:39:39.411511"], ["item_id", 2], ["item_type", "Bank"]]
|
5618
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5619
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
5620
|
+
[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"]]
|
5621
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5623
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:39:39.422262"], ["updated_at", "2016-08-03 19:39:39.422262"]]
|
5624
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 19:39:39.422262"], ["item_id", 3], ["item_type", "Bank"]]
|
5625
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5627
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:39:39.426208"], ["id", 3]]
|
5628
|
+
[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 2016-08-03 19:39:39.422262000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:39:39.426208"], ["item_id", 3], ["item_type", "Bank"]]
|
5629
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5630
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5631
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:39:39.429758"], ["id", 3]]
|
5632
|
+
[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: 2016-08-03 19:39:39.422262000 Z\nupdated_at: 2016-08-03 19:39:39.426208000 Z\n"], ["created_at", "2016-08-03 19:39:39.429758"], ["item_id", 3], ["item_type", "Bank"]]
|
5633
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5634
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5635
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 19:39:39.433386"], ["id", 3]]
|
5636
|
+
[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: 2016-08-03 19:39:39.422262000 Z\nupdated_at: 2016-08-03 19:39:39.429758000 Z\n"], ["created_at", "2016-08-03 19:39:39.433386"], ["item_id", 3], ["item_type", "Bank"]]
|
5637
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5638
|
+
[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"]]
|
5639
|
+
[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"]]
|
5640
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
5641
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5642
|
+
[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]]
|
5643
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5644
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:39:39.442420"], ["updated_at", "2016-08-03 19:39:39.442420"]]
|
5645
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.442420"], ["item_id", 4], ["item_type", "Bank"]]
|
5646
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5647
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5648
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:39:39.457564"], ["updated_at", "2016-08-03 19:39:39.457564"]]
|
5649
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.457564"], ["item_id", 1], ["item_type", "User"]]
|
5650
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5652
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 19:39:39.464167"], ["id", 4]]
|
5653
|
+
[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 2016-08-03 19:39:39.442420000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:39:39.464167"], ["item_id", 4], ["item_type", "Bank"]]
|
5654
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5655
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5656
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 19:39:39.468212"], ["id", 4]]
|
5657
|
+
[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: 2016-08-03 19:39:39.442420000 Z\nupdated_at: 2016-08-03 19:39:39.464167000 Z\n"], ["created_at", "2016-08-03 19:39:39.468212"], ["item_id", 4], ["item_type", "Bank"]]
|
5658
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5659
|
+
[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"]]
|
5660
|
+
[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"]]
|
5661
|
+
[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]]
|
5662
|
+
[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]]
|
5663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5664
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:39:39.476267"], ["updated_at", "2016-08-03 19:39:39.476267"]]
|
5665
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.476267"], ["item_id", 2], ["item_type", "User"]]
|
5666
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5668
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:39:39.479387"], ["updated_at", "2016-08-03 19:39:39.479387"]]
|
5669
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.479387"], ["item_id", 3], ["item_type", "User"]]
|
5670
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5671
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5672
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 19:39:39.482806"], ["updated_at", "2016-08-03 19:39:39.482806"]]
|
5673
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:39:39.482806"], ["item_id", 5], ["item_type", "Bank"]]
|
5674
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5675
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5676
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 19:39:39.486262"], ["id", 5]]
|
5677
|
+
[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 2016-08-03 19:39:39.482806000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 19:39:39.486262"], ["item_id", 5], ["item_type", "Bank"]]
|
5678
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5679
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5680
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 19:39:39.489867"], ["id", 5]]
|
5681
|
+
[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: 2016-08-03 19:39:39.482806000 Z\nupdated_at: 2016-08-03 19:39:39.486262000 Z\n"], ["created_at", "2016-08-03 19:39:39.489867"], ["item_id", 5], ["item_type", "Bank"]]
|
5682
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5684
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 19:39:39.493475"], ["id", 5]]
|
5685
|
+
[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: 2016-08-03 19:39:39.482806000 Z\nupdated_at: 2016-08-03 19:39:39.489867000 Z\n"], ["created_at", "2016-08-03 19:39:39.493475"], ["item_id", 5], ["item_type", "Bank"]]
|
5686
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5687
|
+
[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"]]
|
5688
|
+
[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"]]
|
5689
|
+
[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]]
|
5690
|
+
[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]]
|
5691
|
+
[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]]
|
5692
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
5693
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5694
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
5695
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
5696
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5697
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 19:39:39.503188"], ["updated_at", "2016-08-03 19:39:39.503188"]]
|
5698
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:39:39.503188"], ["item_id", 6], ["item_type", "Bank"]]
|
5699
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5701
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 19:39:39.507101"], ["id", 6]]
|
5702
|
+
[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 2016-08-03 19:39:39.503188000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 19:39:39.507101"], ["item_id", 6], ["item_type", "Bank"]]
|
5703
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5704
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5705
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:39:39.510933"], ["updated_at", "2016-08-03 19:39:39.510933"]]
|
5706
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.510933"], ["item_id", 4], ["item_type", "User"]]
|
5707
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5708
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5709
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 19:39:39.514406"], ["id", 6]]
|
5710
|
+
[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: 2016-08-03 19:39:39.503188000 Z\nupdated_at: 2016-08-03 19:39:39.507101000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.514406"], ["item_id", 6], ["item_type", "Bank"]]
|
5711
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5712
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5713
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:39:39.518499"], ["updated_at", "2016-08-03 19:39:39.518499"]]
|
5714
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.518499"], ["item_id", 5], ["item_type", "User"]]
|
5715
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5716
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5717
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 19:39:39.521882"], ["id", 6]]
|
5718
|
+
[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: 2016-08-03 19:39:39.503188000 Z\nupdated_at: 2016-08-03 19:39:39.514406000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.521882"], ["item_id", 6], ["item_type", "Bank"]]
|
5719
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5721
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 19:39:39.525327"], ["id", 6]]
|
5722
|
+
[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: 2016-08-03 19:39:39.503188000 Z\nupdated_at: 2016-08-03 19:39:39.521882000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.525327"], ["item_id", 6], ["item_type", "Bank"]]
|
5723
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5724
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5725
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:39:39.528517"], ["updated_at", "2016-08-03 19:39:39.528517"]]
|
5726
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.528517"], ["item_id", 6], ["item_type", "User"]]
|
5727
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
5728
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5729
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 19:39:39.531552"], ["id", 6]]
|
5730
|
+
[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: 2016-08-03 19:39:39.503188000 Z\nupdated_at: 2016-08-03 19:39:39.525327000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 19:39:39.531552"], ["item_id", 6], ["item_type", "Bank"]]
|
5731
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5732
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5733
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 19:39:39.535320"], ["id", 6]]
|
5734
|
+
[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: 2016-08-03 19:39:39.503188000 Z\nupdated_at: 2016-08-03 19:39:39.531552000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:39:39.535320"], ["item_id", 6], ["item_type", "Bank"]]
|
5735
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5736
|
+
[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", 6], ["item_type", "Bank"]]
|
5737
|
+
[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"]]
|
5738
|
+
[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]]
|
5739
|
+
[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]]
|
5740
|
+
[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]]
|
5741
|
+
[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]]
|
5742
|
+
[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]]
|
5743
|
+
[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]]
|
5744
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5745
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 19:39:39.546702"], ["updated_at", "2016-08-03 19:39:39.546702"]]
|
5746
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:39:39.546702"], ["item_id", 7], ["item_type", "User"]]
|
5747
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5748
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5749
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 2], ["created_at", "2016-08-03 19:39:39.550265"], ["updated_at", "2016-08-03 19:39:39.550265"]]
|
5750
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:39:39.550265"], ["item_id", 8], ["item_type", "User"]]
|
5751
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5752
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5753
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 19:39:39.554083"], ["updated_at", "2016-08-03 19:39:39.554083"]]
|
5754
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 19:39:39.554083"], ["item_id", 9], ["item_type", "User"]]
|
5755
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5756
|
+
[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", 9], ["item_type", "User"]]
|
5757
|
+
[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", 9], ["item_type", "User"]]
|
5758
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5759
|
+
[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
|
5760
|
+
[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)
|
5761
|
+
[1m[36m (0.5ms)[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
|
5762
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5763
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5764
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5765
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5766
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5767
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5768
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5769
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5770
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5771
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5772
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2016-08-03 19:41:10.065333"], ["updated_at", "2016-08-03 19:41:10.065333"]]
|
5773
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:41:10.065333"], ["item_id", 1], ["item_type", "User"]]
|
5774
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5776
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 2], ["created_at", "2016-08-03 19:41:10.083508"], ["updated_at", "2016-08-03 19:41:10.083508"]]
|
5777
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:41:10.083508"], ["item_id", 2], ["item_type", "User"]]
|
5778
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5779
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5780
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:41:10.086809"], ["updated_at", "2016-08-03 19:41:10.086809"]]
|
5781
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:41:10.086809"], ["item_id", 3], ["item_type", "User"]]
|
5782
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5783
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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", 3], ["item_type", "User"]]
|
5784
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 3], ["item_type", "User"]]
|
5785
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5786
|
+
[1m[36m (0.7ms)[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
|
5787
|
+
[1m[35m (0.5ms)[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)
|
5788
|
+
[1m[36m (0.5ms)[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
|
5789
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5790
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5791
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5792
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5793
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5794
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5795
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5796
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5797
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5798
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5799
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 0], ["created_at", "2016-08-03 19:41:25.530591"], ["updated_at", "2016-08-03 19:41:25.530591"]]
|
5800
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:41:25.530591"], ["item_id", 1], ["item_type", "User"]]
|
5801
|
+
[1m[35m (2.4ms)[0m commit transaction
|
5802
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5803
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?) [["state", 2], ["created_at", "2016-08-03 19:41:25.552234"], ["updated_at", "2016-08-03 19:41:25.552234"]]
|
5804
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:41:25.552234"], ["item_id", 2], ["item_type", "User"]]
|
5805
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5806
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5807
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 19:41:25.556427"], ["updated_at", "2016-08-03 19:41:25.556427"]]
|
5808
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 19:41:25.556427"], ["item_id", 3], ["item_type", "User"]]
|
5809
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5810
|
+
[1m[36mPaperTrail::Version Load (0.3ms)[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", 3], ["item_type", "User"]]
|
5811
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[0m SELECT "versions".* FROM "versions" WHERE "versions"."item_id" = ? AND "versions"."item_type" = ? ORDER BY "versions"."created_at" ASC, "versions"."id" ASC [["item_id", 3], ["item_type", "User"]]
|
5812
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5813
|
+
[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
|
5814
|
+
[1m[35m (0.7ms)[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)
|
5815
|
+
[1m[36m (0.5ms)[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
|
5816
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5817
|
+
[1m[36m (0.6ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5818
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5819
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5820
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5821
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5822
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5823
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5824
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5825
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5826
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 20:52:49.688138"], ["updated_at", "2016-08-03 20:52:49.688138"]]
|
5827
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.688138"], ["item_id", 1], ["item_type", "Bank"]]
|
5828
|
+
[1m[35m (2.3ms)[0m commit transaction
|
5829
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
5830
|
+
[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"]]
|
5831
|
+
[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"]]
|
5832
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
5833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5834
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:52:49.713220"], ["updated_at", "2016-08-03 20:52:49.713220"]]
|
5835
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.713220"], ["item_id", 2], ["item_type", "Bank"]]
|
5836
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5838
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 20:52:49.717385"], ["id", 2]]
|
5839
|
+
[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 2016-08-03 20:52:49.713220000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:52:49.717385"], ["item_id", 2], ["item_type", "Bank"]]
|
5840
|
+
[1m[35m (0.4ms)[0m commit transaction
|
5841
|
+
[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"]]
|
5842
|
+
[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"]]
|
5843
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5844
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5845
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:52:49.732549"], ["updated_at", "2016-08-03 20:52:49.732549"]]
|
5846
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:52:49.732549"], ["item_id", 3], ["item_type", "Bank"]]
|
5847
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5848
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5849
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:52:49.735765"], ["id", 3]]
|
5850
|
+
[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 2016-08-03 20:52:49.732549000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:52:49.735765"], ["item_id", 3], ["item_type", "Bank"]]
|
5851
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5852
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5853
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:52:49.739408"], ["id", 3]]
|
5854
|
+
[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: 2016-08-03 20:52:49.732549000 Z\nupdated_at: 2016-08-03 20:52:49.735765000 Z\n"], ["created_at", "2016-08-03 20:52:49.739408"], ["item_id", 3], ["item_type", "Bank"]]
|
5855
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5856
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5857
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 20:52:49.743469"], ["id", 3]]
|
5858
|
+
[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: 2016-08-03 20:52:49.732549000 Z\nupdated_at: 2016-08-03 20:52:49.739408000 Z\n"], ["created_at", "2016-08-03 20:52:49.743469"], ["item_id", 3], ["item_type", "Bank"]]
|
5859
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5860
|
+
[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"]]
|
5861
|
+
[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"]]
|
5862
|
+
[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]]
|
5863
|
+
[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]]
|
5864
|
+
[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]]
|
5865
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5866
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:52:49.752439"], ["updated_at", "2016-08-03 20:52:49.752439"]]
|
5867
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.752439"], ["item_id", 4], ["item_type", "Bank"]]
|
5868
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5869
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5870
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:52:49.762137"], ["updated_at", "2016-08-03 20:52:49.762137"]]
|
5871
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.762137"], ["item_id", 1], ["item_type", "User"]]
|
5872
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5873
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5874
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 20:52:49.768248"], ["id", 4]]
|
5875
|
+
[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 2016-08-03 20:52:49.752439000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:52:49.768248"], ["item_id", 4], ["item_type", "Bank"]]
|
5876
|
+
[1m[35m (0.7ms)[0m commit transaction
|
5877
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5878
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 20:52:49.772838"], ["id", 4]]
|
5879
|
+
[1m[36mSQL (0.2ms)[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: 2016-08-03 20:52:49.752439000 Z\nupdated_at: 2016-08-03 20:52:49.768248000 Z\n"], ["created_at", "2016-08-03 20:52:49.772838"], ["item_id", 4], ["item_type", "Bank"]]
|
5880
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5881
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
5882
|
+
[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"]]
|
5883
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5884
|
+
[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]]
|
5885
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5886
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:52:49.780927"], ["updated_at", "2016-08-03 20:52:49.780927"]]
|
5887
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.780927"], ["item_id", 2], ["item_type", "User"]]
|
5888
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5889
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5890
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:52:49.784883"], ["updated_at", "2016-08-03 20:52:49.784883"]]
|
5891
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.784883"], ["item_id", 3], ["item_type", "User"]]
|
5892
|
+
[1m[35m (0.5ms)[0m commit transaction
|
5893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5894
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:52:49.788187"], ["updated_at", "2016-08-03 20:52:49.788187"]]
|
5895
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:52:49.788187"], ["item_id", 5], ["item_type", "Bank"]]
|
5896
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5897
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5898
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 20:52:49.791903"], ["id", 5]]
|
5899
|
+
[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 2016-08-03 20:52:49.788187000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:52:49.791903"], ["item_id", 5], ["item_type", "Bank"]]
|
5900
|
+
[1m[35m (0.4ms)[0m commit transaction
|
5901
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5902
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 20:52:49.795141"], ["id", 5]]
|
5903
|
+
[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: 2016-08-03 20:52:49.788187000 Z\nupdated_at: 2016-08-03 20:52:49.791903000 Z\n"], ["created_at", "2016-08-03 20:52:49.795141"], ["item_id", 5], ["item_type", "Bank"]]
|
5904
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5905
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5906
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 20:52:49.798494"], ["id", 5]]
|
5907
|
+
[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: 2016-08-03 20:52:49.788187000 Z\nupdated_at: 2016-08-03 20:52:49.795141000 Z\n"], ["created_at", "2016-08-03 20:52:49.798494"], ["item_id", 5], ["item_type", "Bank"]]
|
5908
|
+
[1m[35m (0.6ms)[0m commit transaction
|
5909
|
+
[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"]]
|
5910
|
+
[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"]]
|
5911
|
+
[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]]
|
5912
|
+
[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]]
|
5913
|
+
[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]]
|
5914
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
5915
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
5916
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
5917
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
5918
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5919
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:52:49.808128"], ["updated_at", "2016-08-03 20:52:49.808128"]]
|
5920
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:52:49.808128"], ["item_id", 6], ["item_type", "Bank"]]
|
5921
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5922
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5923
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:52:49.812015"], ["id", 6]]
|
5924
|
+
[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 2016-08-03 20:52:49.808128000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 20:52:49.812015"], ["item_id", 6], ["item_type", "Bank"]]
|
5925
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5926
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5927
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:52:49.815824"], ["updated_at", "2016-08-03 20:52:49.815824"]]
|
5928
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.815824"], ["item_id", 4], ["item_type", "User"]]
|
5929
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5930
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5931
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 20:52:49.819351"], ["id", 6]]
|
5932
|
+
[1m[35mSQL (0.2ms)[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: 2016-08-03 20:52:49.808128000 Z\nupdated_at: 2016-08-03 20:52:49.812015000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.819351"], ["item_id", 6], ["item_type", "Bank"]]
|
5933
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5934
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5935
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:52:49.823455"], ["updated_at", "2016-08-03 20:52:49.823455"]]
|
5936
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.823455"], ["item_id", 5], ["item_type", "User"]]
|
5937
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5938
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5939
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 20:52:49.827139"], ["id", 6]]
|
5940
|
+
[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: 2016-08-03 20:52:49.808128000 Z\nupdated_at: 2016-08-03 20:52:49.819351000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.827139"], ["item_id", 6], ["item_type", "Bank"]]
|
5941
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5942
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5943
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 20:52:49.830772"], ["id", 6]]
|
5944
|
+
[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: 2016-08-03 20:52:49.808128000 Z\nupdated_at: 2016-08-03 20:52:49.827139000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.830772"], ["item_id", 6], ["item_type", "Bank"]]
|
5945
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5946
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5947
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:52:49.834264"], ["updated_at", "2016-08-03 20:52:49.834264"]]
|
5948
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.834264"], ["item_id", 6], ["item_type", "User"]]
|
5949
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5950
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5951
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 20:52:49.837653"], ["id", 6]]
|
5952
|
+
[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: 2016-08-03 20:52:49.808128000 Z\nupdated_at: 2016-08-03 20:52:49.830772000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:52:49.837653"], ["item_id", 6], ["item_type", "Bank"]]
|
5953
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5954
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5955
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:52:49.840947"], ["id", 6]]
|
5956
|
+
[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: 2016-08-03 20:52:49.808128000 Z\nupdated_at: 2016-08-03 20:52:49.837653000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:52:49.840947"], ["item_id", 6], ["item_type", "Bank"]]
|
5957
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
5958
|
+
[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"]]
|
5959
|
+
[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"]]
|
5960
|
+
[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]]
|
5961
|
+
[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]]
|
5962
|
+
[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]]
|
5963
|
+
[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]]
|
5964
|
+
[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]]
|
5965
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
5966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5967
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 20:52:49.852446"], ["updated_at", "2016-08-03 20:52:49.852446"]]
|
5968
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:52:49.852446"], ["item_id", 7], ["item_type", "User"]]
|
5969
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
5970
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5971
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2016-08-03 20:52:49.855815"], ["id", 7]]
|
5972
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2016-08-03 20:52:49.852446000 Z\nupdated_at: *1\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:52:49.855815"], ["item_id", 7], ["item_type", "User"]]
|
5973
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5974
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5975
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2016-08-03 20:52:49.858934"], ["id", 7]]
|
5976
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2016-08-03 20:52:49.852446000 Z\nupdated_at: 2016-08-03 20:52:49.855815000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:52:49.858934"], ["item_id", 7], ["item_type", "User"]]
|
5977
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
5978
|
+
[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", 7], ["item_type", "User"]]
|
5979
|
+
[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"]]
|
5980
|
+
[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]]
|
5981
|
+
[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]]
|
5982
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5983
|
+
[1m[36m (3.0ms)[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
|
5984
|
+
[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)
|
5985
|
+
[1m[36m (0.5ms)[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
|
5986
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
5987
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
5988
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
5989
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
5990
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5991
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
5992
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
5993
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
5994
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5995
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5996
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 20:56:20.773671"], ["updated_at", "2016-08-03 20:56:20.773671"]]
|
5997
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.773671"], ["item_id", 1], ["item_type", "Bank"]]
|
5998
|
+
[1m[35m (2.3ms)[0m commit transaction
|
5999
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
6000
|
+
[1m[35mPaperTrail::Version Load (5.3ms)[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"]]
|
6001
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
6002
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
6003
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6004
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:56:20.805212"], ["updated_at", "2016-08-03 20:56:20.805212"]]
|
6005
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.805212"], ["item_id", 2], ["item_type", "Bank"]]
|
6006
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6007
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6008
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 20:56:20.809062"], ["id", 2]]
|
6009
|
+
[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 2016-08-03 20:56:20.805212000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:56:20.809062"], ["item_id", 2], ["item_type", "Bank"]]
|
6010
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6011
|
+
[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"]]
|
6012
|
+
[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"]]
|
6013
|
+
[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]]
|
6014
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6015
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:56:20.818149"], ["updated_at", "2016-08-03 20:56:20.818149"]]
|
6016
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:56:20.818149"], ["item_id", 3], ["item_type", "Bank"]]
|
6017
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6018
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6019
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:56:20.821447"], ["id", 3]]
|
6020
|
+
[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 2016-08-03 20:56:20.818149000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:56:20.821447"], ["item_id", 3], ["item_type", "Bank"]]
|
6021
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6022
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6023
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:56:20.825523"], ["id", 3]]
|
6024
|
+
[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: 2016-08-03 20:56:20.818149000 Z\nupdated_at: 2016-08-03 20:56:20.821447000 Z\n"], ["created_at", "2016-08-03 20:56:20.825523"], ["item_id", 3], ["item_type", "Bank"]]
|
6025
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
6026
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6027
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 20:56:20.829582"], ["id", 3]]
|
6028
|
+
[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: 2016-08-03 20:56:20.818149000 Z\nupdated_at: 2016-08-03 20:56:20.825523000 Z\n"], ["created_at", "2016-08-03 20:56:20.829582"], ["item_id", 3], ["item_type", "Bank"]]
|
6029
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6030
|
+
[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"]]
|
6031
|
+
[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"]]
|
6032
|
+
[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]]
|
6033
|
+
[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]]
|
6034
|
+
[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]]
|
6035
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6036
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:56:20.838131"], ["updated_at", "2016-08-03 20:56:20.838131"]]
|
6037
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.838131"], ["item_id", 4], ["item_type", "Bank"]]
|
6038
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6039
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6040
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:56:20.846971"], ["updated_at", "2016-08-03 20:56:20.846971"]]
|
6041
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.846971"], ["item_id", 1], ["item_type", "User"]]
|
6042
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6043
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6044
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 20:56:20.853165"], ["id", 4]]
|
6045
|
+
[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 2016-08-03 20:56:20.838131000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:56:20.853165"], ["item_id", 4], ["item_type", "Bank"]]
|
6046
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6047
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6048
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 20:56:20.857410"], ["id", 4]]
|
6049
|
+
[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: 2016-08-03 20:56:20.838131000 Z\nupdated_at: 2016-08-03 20:56:20.853165000 Z\n"], ["created_at", "2016-08-03 20:56:20.857410"], ["item_id", 4], ["item_type", "Bank"]]
|
6050
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6051
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
6052
|
+
[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"]]
|
6053
|
+
[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]]
|
6054
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
6055
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6056
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:56:20.865977"], ["updated_at", "2016-08-03 20:56:20.865977"]]
|
6057
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.865977"], ["item_id", 2], ["item_type", "User"]]
|
6058
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6059
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6060
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:56:20.869113"], ["updated_at", "2016-08-03 20:56:20.869113"]]
|
6061
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.869113"], ["item_id", 3], ["item_type", "User"]]
|
6062
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6063
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6064
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:56:20.872533"], ["updated_at", "2016-08-03 20:56:20.872533"]]
|
6065
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:56:20.872533"], ["item_id", 5], ["item_type", "Bank"]]
|
6066
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6068
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 20:56:20.876127"], ["id", 5]]
|
6069
|
+
[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 2016-08-03 20:56:20.872533000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:56:20.876127"], ["item_id", 5], ["item_type", "Bank"]]
|
6070
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6071
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6072
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 20:56:20.880131"], ["id", 5]]
|
6073
|
+
[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: 2016-08-03 20:56:20.872533000 Z\nupdated_at: 2016-08-03 20:56:20.876127000 Z\n"], ["created_at", "2016-08-03 20:56:20.880131"], ["item_id", 5], ["item_type", "Bank"]]
|
6074
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6075
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6076
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 20:56:20.884030"], ["id", 5]]
|
6077
|
+
[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: 2016-08-03 20:56:20.872533000 Z\nupdated_at: 2016-08-03 20:56:20.880131000 Z\n"], ["created_at", "2016-08-03 20:56:20.884030"], ["item_id", 5], ["item_type", "Bank"]]
|
6078
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6079
|
+
[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"]]
|
6080
|
+
[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"]]
|
6081
|
+
[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]]
|
6082
|
+
[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]]
|
6083
|
+
[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]]
|
6084
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
6085
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
6086
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6087
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6088
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6089
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:56:20.893745"], ["updated_at", "2016-08-03 20:56:20.893745"]]
|
6090
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:56:20.893745"], ["item_id", 6], ["item_type", "Bank"]]
|
6091
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6092
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6093
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:56:20.897262"], ["id", 6]]
|
6094
|
+
[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 2016-08-03 20:56:20.893745000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 20:56:20.897262"], ["item_id", 6], ["item_type", "Bank"]]
|
6095
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6096
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6097
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:56:20.901352"], ["updated_at", "2016-08-03 20:56:20.901352"]]
|
6098
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.901352"], ["item_id", 4], ["item_type", "User"]]
|
6099
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6100
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6101
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 20:56:20.904674"], ["id", 6]]
|
6102
|
+
[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: 2016-08-03 20:56:20.893745000 Z\nupdated_at: 2016-08-03 20:56:20.897262000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.904674"], ["item_id", 6], ["item_type", "Bank"]]
|
6103
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6105
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:56:20.908482"], ["updated_at", "2016-08-03 20:56:20.908482"]]
|
6106
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.908482"], ["item_id", 5], ["item_type", "User"]]
|
6107
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6108
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6109
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 20:56:20.911714"], ["id", 6]]
|
6110
|
+
[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: 2016-08-03 20:56:20.893745000 Z\nupdated_at: 2016-08-03 20:56:20.904674000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.911714"], ["item_id", 6], ["item_type", "Bank"]]
|
6111
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6112
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6113
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 20:56:20.915210"], ["id", 6]]
|
6114
|
+
[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: 2016-08-03 20:56:20.893745000 Z\nupdated_at: 2016-08-03 20:56:20.911714000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.915210"], ["item_id", 6], ["item_type", "Bank"]]
|
6115
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6116
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6117
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:56:20.918922"], ["updated_at", "2016-08-03 20:56:20.918922"]]
|
6118
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.918922"], ["item_id", 6], ["item_type", "User"]]
|
6119
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6120
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6121
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 20:56:20.922345"], ["id", 6]]
|
6122
|
+
[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: 2016-08-03 20:56:20.893745000 Z\nupdated_at: 2016-08-03 20:56:20.915210000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:56:20.922345"], ["item_id", 6], ["item_type", "Bank"]]
|
6123
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6124
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6125
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:56:20.926410"], ["id", 6]]
|
6126
|
+
[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: 2016-08-03 20:56:20.893745000 Z\nupdated_at: 2016-08-03 20:56:20.922345000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:56:20.926410"], ["item_id", 6], ["item_type", "Bank"]]
|
6127
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6128
|
+
[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"]]
|
6129
|
+
[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"]]
|
6130
|
+
[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]]
|
6131
|
+
[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]]
|
6132
|
+
[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]]
|
6133
|
+
[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]]
|
6134
|
+
[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]]
|
6135
|
+
[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]]
|
6136
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6137
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 20:56:20.937583"], ["updated_at", "2016-08-03 20:56:20.937583"]]
|
6138
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:56:20.937583"], ["item_id", 7], ["item_type", "User"]]
|
6139
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6140
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6141
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2016-08-03 20:56:20.940614"], ["id", 7]]
|
6142
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2016-08-03 20:56:20.937583000 Z\nupdated_at: *1\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:56:20.940614"], ["item_id", 7], ["item_type", "User"]]
|
6143
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6144
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6145
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2016-08-03 20:56:20.943925"], ["id", 7]]
|
6146
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2016-08-03 20:56:20.937583000 Z\nupdated_at: 2016-08-03 20:56:20.940614000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:56:20.943925"], ["item_id", 7], ["item_type", "User"]]
|
6147
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6148
|
+
[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"]]
|
6149
|
+
[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"]]
|
6150
|
+
[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]]
|
6151
|
+
[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]]
|
6152
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6153
|
+
[1m[36m (2.7ms)[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
|
6154
|
+
[1m[35m (0.8ms)[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)
|
6155
|
+
[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
|
6156
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6157
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
6158
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
6159
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6160
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6161
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
6162
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
6163
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
6164
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6166
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 20:57:53.117389"], ["updated_at", "2016-08-03 20:57:53.117389"]]
|
6167
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.117389"], ["item_id", 1], ["item_type", "Bank"]]
|
6168
|
+
[1m[35m (2.4ms)[0m commit transaction
|
6169
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
6170
|
+
[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"]]
|
6171
|
+
[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"]]
|
6172
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
6173
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6174
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:57:53.143591"], ["updated_at", "2016-08-03 20:57:53.143591"]]
|
6175
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.143591"], ["item_id", 2], ["item_type", "Bank"]]
|
6176
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6178
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 20:57:53.147136"], ["id", 2]]
|
6179
|
+
[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 2016-08-03 20:57:53.143591000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:57:53.147136"], ["item_id", 2], ["item_type", "Bank"]]
|
6180
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6181
|
+
[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"]]
|
6182
|
+
[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"]]
|
6183
|
+
[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]]
|
6184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6185
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:57:53.162224"], ["updated_at", "2016-08-03 20:57:53.162224"]]
|
6186
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:57:53.162224"], ["item_id", 3], ["item_type", "Bank"]]
|
6187
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6188
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6189
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:57:53.165187"], ["id", 3]]
|
6190
|
+
[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 2016-08-03 20:57:53.162224000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:57:53.165187"], ["item_id", 3], ["item_type", "Bank"]]
|
6191
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6192
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6193
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:57:53.168862"], ["id", 3]]
|
6194
|
+
[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: 2016-08-03 20:57:53.162224000 Z\nupdated_at: 2016-08-03 20:57:53.165187000 Z\n"], ["created_at", "2016-08-03 20:57:53.168862"], ["item_id", 3], ["item_type", "Bank"]]
|
6195
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6196
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6197
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 20:57:53.173093"], ["id", 3]]
|
6198
|
+
[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: 2016-08-03 20:57:53.162224000 Z\nupdated_at: 2016-08-03 20:57:53.168862000 Z\n"], ["created_at", "2016-08-03 20:57:53.173093"], ["item_id", 3], ["item_type", "Bank"]]
|
6199
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6200
|
+
[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"]]
|
6201
|
+
[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"]]
|
6202
|
+
[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]]
|
6203
|
+
[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]]
|
6204
|
+
[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]]
|
6205
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6206
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:57:53.181086"], ["updated_at", "2016-08-03 20:57:53.181086"]]
|
6207
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.181086"], ["item_id", 4], ["item_type", "Bank"]]
|
6208
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6210
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:57:53.189866"], ["updated_at", "2016-08-03 20:57:53.189866"]]
|
6211
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.189866"], ["item_id", 1], ["item_type", "User"]]
|
6212
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6213
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6214
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 20:57:53.196252"], ["id", 4]]
|
6215
|
+
[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 2016-08-03 20:57:53.181086000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:57:53.196252"], ["item_id", 4], ["item_type", "Bank"]]
|
6216
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6217
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6218
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 20:57:53.200330"], ["id", 4]]
|
6219
|
+
[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: 2016-08-03 20:57:53.181086000 Z\nupdated_at: 2016-08-03 20:57:53.196252000 Z\n"], ["created_at", "2016-08-03 20:57:53.200330"], ["item_id", 4], ["item_type", "Bank"]]
|
6220
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6221
|
+
[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"]]
|
6222
|
+
[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"]]
|
6223
|
+
[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]]
|
6224
|
+
[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]]
|
6225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6226
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:57:53.208864"], ["updated_at", "2016-08-03 20:57:53.208864"]]
|
6227
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.208864"], ["item_id", 2], ["item_type", "User"]]
|
6228
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6229
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6230
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:57:53.212216"], ["updated_at", "2016-08-03 20:57:53.212216"]]
|
6231
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.212216"], ["item_id", 3], ["item_type", "User"]]
|
6232
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6233
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6234
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:57:53.215258"], ["updated_at", "2016-08-03 20:57:53.215258"]]
|
6235
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:57:53.215258"], ["item_id", 5], ["item_type", "Bank"]]
|
6236
|
+
[1m[35m (0.4ms)[0m commit transaction
|
6237
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6238
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 20:57:53.218382"], ["id", 5]]
|
6239
|
+
[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 2016-08-03 20:57:53.215258000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:57:53.218382"], ["item_id", 5], ["item_type", "Bank"]]
|
6240
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6242
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 20:57:53.221709"], ["id", 5]]
|
6243
|
+
[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: 2016-08-03 20:57:53.215258000 Z\nupdated_at: 2016-08-03 20:57:53.218382000 Z\n"], ["created_at", "2016-08-03 20:57:53.221709"], ["item_id", 5], ["item_type", "Bank"]]
|
6244
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6245
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6246
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 20:57:53.225228"], ["id", 5]]
|
6247
|
+
[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: 2016-08-03 20:57:53.215258000 Z\nupdated_at: 2016-08-03 20:57:53.221709000 Z\n"], ["created_at", "2016-08-03 20:57:53.225228"], ["item_id", 5], ["item_type", "Bank"]]
|
6248
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6249
|
+
[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"]]
|
6250
|
+
[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"]]
|
6251
|
+
[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]]
|
6252
|
+
[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]]
|
6253
|
+
[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]]
|
6254
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
6255
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
6256
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6257
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6258
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6259
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:57:53.235433"], ["updated_at", "2016-08-03 20:57:53.235433"]]
|
6260
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:57:53.235433"], ["item_id", 6], ["item_type", "Bank"]]
|
6261
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6262
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6263
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:57:53.239421"], ["id", 6]]
|
6264
|
+
[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 2016-08-03 20:57:53.235433000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 20:57:53.239421"], ["item_id", 6], ["item_type", "Bank"]]
|
6265
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6266
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6267
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:57:53.243646"], ["updated_at", "2016-08-03 20:57:53.243646"]]
|
6268
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.243646"], ["item_id", 4], ["item_type", "User"]]
|
6269
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6270
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6271
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 20:57:53.246756"], ["id", 6]]
|
6272
|
+
[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: 2016-08-03 20:57:53.235433000 Z\nupdated_at: 2016-08-03 20:57:53.239421000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.246756"], ["item_id", 6], ["item_type", "Bank"]]
|
6273
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6274
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6275
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:57:53.250200"], ["updated_at", "2016-08-03 20:57:53.250200"]]
|
6276
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.250200"], ["item_id", 5], ["item_type", "User"]]
|
6277
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6278
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6279
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 20:57:53.253472"], ["id", 6]]
|
6280
|
+
[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: 2016-08-03 20:57:53.235433000 Z\nupdated_at: 2016-08-03 20:57:53.246756000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.253472"], ["item_id", 6], ["item_type", "Bank"]]
|
6281
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6282
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6283
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 20:57:53.256418"], ["id", 6]]
|
6284
|
+
[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: 2016-08-03 20:57:53.235433000 Z\nupdated_at: 2016-08-03 20:57:53.253472000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.256418"], ["item_id", 6], ["item_type", "Bank"]]
|
6285
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6286
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6287
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:57:53.259722"], ["updated_at", "2016-08-03 20:57:53.259722"]]
|
6288
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.259722"], ["item_id", 6], ["item_type", "User"]]
|
6289
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6290
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6291
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 20:57:53.263567"], ["id", 6]]
|
6292
|
+
[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: 2016-08-03 20:57:53.235433000 Z\nupdated_at: 2016-08-03 20:57:53.256418000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:57:53.263567"], ["item_id", 6], ["item_type", "Bank"]]
|
6293
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6294
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6295
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:57:53.267511"], ["id", 6]]
|
6296
|
+
[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: 2016-08-03 20:57:53.235433000 Z\nupdated_at: 2016-08-03 20:57:53.263567000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:57:53.267511"], ["item_id", 6], ["item_type", "Bank"]]
|
6297
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6298
|
+
[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"]]
|
6299
|
+
[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"]]
|
6300
|
+
[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]]
|
6301
|
+
[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]]
|
6302
|
+
[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]]
|
6303
|
+
[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]]
|
6304
|
+
[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]]
|
6305
|
+
[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]]
|
6306
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6307
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 20:57:53.279191"], ["updated_at", "2016-08-03 20:57:53.279191"]]
|
6308
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:57:53.279191"], ["item_id", 7], ["item_type", "User"]]
|
6309
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6310
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6311
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2016-08-03 20:57:53.282653"], ["id", 7]]
|
6312
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2016-08-03 20:57:53.279191000 Z\nupdated_at: *1\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:57:53.282653"], ["item_id", 7], ["item_type", "User"]]
|
6313
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6314
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6315
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2016-08-03 20:57:53.286233"], ["id", 7]]
|
6316
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2016-08-03 20:57:53.279191000 Z\nupdated_at: 2016-08-03 20:57:53.282653000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:57:53.286233"], ["item_id", 7], ["item_type", "User"]]
|
6317
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6318
|
+
[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"]]
|
6319
|
+
[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"]]
|
6320
|
+
[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]]
|
6321
|
+
[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]]
|
6322
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6323
|
+
[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
|
6324
|
+
[1m[35m (0.5ms)[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)
|
6325
|
+
[1m[36m (0.5ms)[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
|
6326
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6327
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
6328
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
6329
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6330
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6331
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
6332
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
6333
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
6334
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6335
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6336
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 20:58:31.888969"], ["updated_at", "2016-08-03 20:58:31.888969"]]
|
6337
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.888969"], ["item_id", 1], ["item_type", "Bank"]]
|
6338
|
+
[1m[35m (2.4ms)[0m commit transaction
|
6339
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
6340
|
+
[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"]]
|
6341
|
+
[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"]]
|
6342
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
6343
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6344
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:31.916846"], ["updated_at", "2016-08-03 20:58:31.916846"]]
|
6345
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.916846"], ["item_id", 2], ["item_type", "Bank"]]
|
6346
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6347
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6348
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 20:58:31.921022"], ["id", 2]]
|
6349
|
+
[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 2016-08-03 20:58:31.916846000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:31.921022"], ["item_id", 2], ["item_type", "Bank"]]
|
6350
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6351
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
6352
|
+
[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"]]
|
6353
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
6354
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6355
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:58:31.935332"], ["updated_at", "2016-08-03 20:58:31.935332"]]
|
6356
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:58:31.935332"], ["item_id", 3], ["item_type", "Bank"]]
|
6357
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6358
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6359
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:58:31.938472"], ["id", 3]]
|
6360
|
+
[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 2016-08-03 20:58:31.935332000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:31.938472"], ["item_id", 3], ["item_type", "Bank"]]
|
6361
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
6362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6363
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:58:31.942646"], ["id", 3]]
|
6364
|
+
[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: 2016-08-03 20:58:31.935332000 Z\nupdated_at: 2016-08-03 20:58:31.938472000 Z\n"], ["created_at", "2016-08-03 20:58:31.942646"], ["item_id", 3], ["item_type", "Bank"]]
|
6365
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6366
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6367
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 20:58:31.946622"], ["id", 3]]
|
6368
|
+
[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: 2016-08-03 20:58:31.935332000 Z\nupdated_at: 2016-08-03 20:58:31.942646000 Z\n"], ["created_at", "2016-08-03 20:58:31.946622"], ["item_id", 3], ["item_type", "Bank"]]
|
6369
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6370
|
+
[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", 3], ["item_type", "Bank"]]
|
6371
|
+
[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"]]
|
6372
|
+
[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]]
|
6373
|
+
[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]]
|
6374
|
+
[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]]
|
6375
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6376
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:58:31.955447"], ["updated_at", "2016-08-03 20:58:31.955447"]]
|
6377
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.955447"], ["item_id", 4], ["item_type", "Bank"]]
|
6378
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6379
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6380
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:31.964175"], ["updated_at", "2016-08-03 20:58:31.964175"]]
|
6381
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.964175"], ["item_id", 1], ["item_type", "User"]]
|
6382
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6383
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6384
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 20:58:31.970698"], ["id", 4]]
|
6385
|
+
[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 2016-08-03 20:58:31.955447000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:31.970698"], ["item_id", 4], ["item_type", "Bank"]]
|
6386
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6387
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6388
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 20:58:31.975331"], ["id", 4]]
|
6389
|
+
[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: 2016-08-03 20:58:31.955447000 Z\nupdated_at: 2016-08-03 20:58:31.970698000 Z\n"], ["created_at", "2016-08-03 20:58:31.975331"], ["item_id", 4], ["item_type", "Bank"]]
|
6390
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6391
|
+
[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"]]
|
6392
|
+
[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"]]
|
6393
|
+
[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]]
|
6394
|
+
[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]]
|
6395
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6396
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:31.983262"], ["updated_at", "2016-08-03 20:58:31.983262"]]
|
6397
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.983262"], ["item_id", 2], ["item_type", "User"]]
|
6398
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6399
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6400
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:31.986116"], ["updated_at", "2016-08-03 20:58:31.986116"]]
|
6401
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.986116"], ["item_id", 3], ["item_type", "User"]]
|
6402
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6403
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6404
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:58:31.989096"], ["updated_at", "2016-08-03 20:58:31.989096"]]
|
6405
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:31.989096"], ["item_id", 5], ["item_type", "Bank"]]
|
6406
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6407
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6408
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 20:58:31.992235"], ["id", 5]]
|
6409
|
+
[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 2016-08-03 20:58:31.989096000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:31.992235"], ["item_id", 5], ["item_type", "Bank"]]
|
6410
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6412
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 20:58:31.996064"], ["id", 5]]
|
6413
|
+
[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: 2016-08-03 20:58:31.989096000 Z\nupdated_at: 2016-08-03 20:58:31.992235000 Z\n"], ["created_at", "2016-08-03 20:58:31.996064"], ["item_id", 5], ["item_type", "Bank"]]
|
6414
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6415
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6416
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 20:58:32.000256"], ["id", 5]]
|
6417
|
+
[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: 2016-08-03 20:58:31.989096000 Z\nupdated_at: 2016-08-03 20:58:31.996064000 Z\n"], ["created_at", "2016-08-03 20:58:32.000256"], ["item_id", 5], ["item_type", "Bank"]]
|
6418
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6419
|
+
[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"]]
|
6420
|
+
[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"]]
|
6421
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
6422
|
+
[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]]
|
6423
|
+
[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]]
|
6424
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
6425
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
6426
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6427
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6429
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:58:32.010806"], ["updated_at", "2016-08-03 20:58:32.010806"]]
|
6430
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:58:32.010806"], ["item_id", 6], ["item_type", "Bank"]]
|
6431
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6432
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6433
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:58:32.014199"], ["id", 6]]
|
6434
|
+
[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 2016-08-03 20:58:32.010806000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 20:58:32.014199"], ["item_id", 6], ["item_type", "Bank"]]
|
6435
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
6436
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6437
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:58:32.018104"], ["updated_at", "2016-08-03 20:58:32.018104"]]
|
6438
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.018104"], ["item_id", 4], ["item_type", "User"]]
|
6439
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6440
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6441
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 20:58:32.021812"], ["id", 6]]
|
6442
|
+
[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: 2016-08-03 20:58:32.010806000 Z\nupdated_at: 2016-08-03 20:58:32.014199000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.021812"], ["item_id", 6], ["item_type", "Bank"]]
|
6443
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6444
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6445
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:58:32.025333"], ["updated_at", "2016-08-03 20:58:32.025333"]]
|
6446
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.025333"], ["item_id", 5], ["item_type", "User"]]
|
6447
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6448
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6449
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 20:58:32.028240"], ["id", 6]]
|
6450
|
+
[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: 2016-08-03 20:58:32.010806000 Z\nupdated_at: 2016-08-03 20:58:32.021812000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.028240"], ["item_id", 6], ["item_type", "Bank"]]
|
6451
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6452
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6453
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 20:58:32.031722"], ["id", 6]]
|
6454
|
+
[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: 2016-08-03 20:58:32.010806000 Z\nupdated_at: 2016-08-03 20:58:32.028240000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.031722"], ["item_id", 6], ["item_type", "Bank"]]
|
6455
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6456
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6457
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:58:32.034961"], ["updated_at", "2016-08-03 20:58:32.034961"]]
|
6458
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.034961"], ["item_id", 6], ["item_type", "User"]]
|
6459
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6460
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6461
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 20:58:32.038162"], ["id", 6]]
|
6462
|
+
[1m[35mSQL (0.2ms)[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: 2016-08-03 20:58:32.010806000 Z\nupdated_at: 2016-08-03 20:58:32.031722000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:32.038162"], ["item_id", 6], ["item_type", "Bank"]]
|
6463
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6464
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6465
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:58:32.042250"], ["id", 6]]
|
6466
|
+
[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: 2016-08-03 20:58:32.010806000 Z\nupdated_at: 2016-08-03 20:58:32.038162000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:58:32.042250"], ["item_id", 6], ["item_type", "Bank"]]
|
6467
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6468
|
+
[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"]]
|
6469
|
+
[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"]]
|
6470
|
+
[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]]
|
6471
|
+
[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]]
|
6472
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
6473
|
+
[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]]
|
6474
|
+
[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]]
|
6475
|
+
[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]]
|
6476
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6477
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 20:58:32.053632"], ["updated_at", "2016-08-03 20:58:32.053632"]]
|
6478
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", ""], ["created_at", "2016-08-03 20:58:32.053632"], ["item_id", 7], ["item_type", "User"]]
|
6479
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6480
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6481
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2016-08-03 20:58:32.057003"], ["id", 7]]
|
6482
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 0\ncreated_at: &1 2016-08-03 20:58:32.053632000 Z\nupdated_at: *1\n"], ["whodunnit", ""], ["created_at", "2016-08-03 20:58:32.057003"], ["item_id", 7], ["item_type", "User"]]
|
6483
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6485
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2016-08-03 20:58:32.060996"], ["id", 7]]
|
6486
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "object", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?, ?) [["event", "update"], ["object", "---\nid: 7\nname: \nstate: 2\ncreated_at: 2016-08-03 20:58:32.053632000 Z\nupdated_at: 2016-08-03 20:58:32.057003000 Z\n"], ["whodunnit", ""], ["created_at", "2016-08-03 20:58:32.060996"], ["item_id", 7], ["item_type", "User"]]
|
6487
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6488
|
+
[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"]]
|
6489
|
+
[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"]]
|
6490
|
+
[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]]
|
6491
|
+
[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]]
|
6492
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6493
|
+
[1m[36m (2.4ms)[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
|
6494
|
+
[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)
|
6495
|
+
[1m[36m (0.5ms)[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
|
6496
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6497
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
6498
|
+
[1m[35m (0.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
6499
|
+
[1m[36m (0.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6500
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6501
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
6502
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
6503
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
6504
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6505
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6506
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 20:58:40.902721"], ["updated_at", "2016-08-03 20:58:40.902721"]]
|
6507
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:40.902721"], ["item_id", 1], ["item_type", "Bank"]]
|
6508
|
+
[1m[35m (2.3ms)[0m commit transaction
|
6509
|
+
[1m[36mBank Load (0.1ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
6510
|
+
[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"]]
|
6511
|
+
[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"]]
|
6512
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
6513
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6514
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:40.928843"], ["updated_at", "2016-08-03 20:58:40.928843"]]
|
6515
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:40.928843"], ["item_id", 2], ["item_type", "Bank"]]
|
6516
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6517
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6518
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 20:58:40.932847"], ["id", 2]]
|
6519
|
+
[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 2016-08-03 20:58:40.928843000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:40.932847"], ["item_id", 2], ["item_type", "Bank"]]
|
6520
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6521
|
+
[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"]]
|
6522
|
+
[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"]]
|
6523
|
+
[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]]
|
6524
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:58:40.948763"], ["updated_at", "2016-08-03 20:58:40.948763"]]
|
6526
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:58:40.948763"], ["item_id", 3], ["item_type", "Bank"]]
|
6527
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6528
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6529
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:58:40.952892"], ["id", 3]]
|
6530
|
+
[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 2016-08-03 20:58:40.948763000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:40.952892"], ["item_id", 3], ["item_type", "Bank"]]
|
6531
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6532
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6533
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:58:40.956987"], ["id", 3]]
|
6534
|
+
[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: 2016-08-03 20:58:40.948763000 Z\nupdated_at: 2016-08-03 20:58:40.952892000 Z\n"], ["created_at", "2016-08-03 20:58:40.956987"], ["item_id", 3], ["item_type", "Bank"]]
|
6535
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6536
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6537
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 20:58:40.960550"], ["id", 3]]
|
6538
|
+
[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: 2016-08-03 20:58:40.948763000 Z\nupdated_at: 2016-08-03 20:58:40.956987000 Z\n"], ["created_at", "2016-08-03 20:58:40.960550"], ["item_id", 3], ["item_type", "Bank"]]
|
6539
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6540
|
+
[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"]]
|
6541
|
+
[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"]]
|
6542
|
+
[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]]
|
6543
|
+
[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]]
|
6544
|
+
[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]]
|
6545
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6546
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:58:40.969299"], ["updated_at", "2016-08-03 20:58:40.969299"]]
|
6547
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:40.969299"], ["item_id", 4], ["item_type", "Bank"]]
|
6548
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6549
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:40.977948"], ["updated_at", "2016-08-03 20:58:40.977948"]]
|
6551
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:40.977948"], ["item_id", 1], ["item_type", "User"]]
|
6552
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6553
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6554
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 20:58:40.984486"], ["id", 4]]
|
6555
|
+
[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 2016-08-03 20:58:40.969299000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:40.984486"], ["item_id", 4], ["item_type", "Bank"]]
|
6556
|
+
[1m[35m (0.7ms)[0m commit transaction
|
6557
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6558
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 20:58:40.989025"], ["id", 4]]
|
6559
|
+
[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: 2016-08-03 20:58:40.969299000 Z\nupdated_at: 2016-08-03 20:58:40.984486000 Z\n"], ["created_at", "2016-08-03 20:58:40.989025"], ["item_id", 4], ["item_type", "Bank"]]
|
6560
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6561
|
+
[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"]]
|
6562
|
+
[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"]]
|
6563
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
6564
|
+
[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]]
|
6565
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6566
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:40.997991"], ["updated_at", "2016-08-03 20:58:40.997991"]]
|
6567
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:40.997991"], ["item_id", 2], ["item_type", "User"]]
|
6568
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6570
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:58:41.001493"], ["updated_at", "2016-08-03 20:58:41.001493"]]
|
6571
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:41.001493"], ["item_id", 3], ["item_type", "User"]]
|
6572
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6574
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:58:41.004720"], ["updated_at", "2016-08-03 20:58:41.004720"]]
|
6575
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:58:41.004720"], ["item_id", 5], ["item_type", "Bank"]]
|
6576
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6577
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6578
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 20:58:41.007965"], ["id", 5]]
|
6579
|
+
[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 2016-08-03 20:58:41.004720000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:41.007965"], ["item_id", 5], ["item_type", "Bank"]]
|
6580
|
+
[1m[35m (0.4ms)[0m commit transaction
|
6581
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6582
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 20:58:41.011381"], ["id", 5]]
|
6583
|
+
[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: 2016-08-03 20:58:41.004720000 Z\nupdated_at: 2016-08-03 20:58:41.007965000 Z\n"], ["created_at", "2016-08-03 20:58:41.011381"], ["item_id", 5], ["item_type", "Bank"]]
|
6584
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6585
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6586
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 20:58:41.014735"], ["id", 5]]
|
6587
|
+
[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: 2016-08-03 20:58:41.004720000 Z\nupdated_at: 2016-08-03 20:58:41.011381000 Z\n"], ["created_at", "2016-08-03 20:58:41.014735"], ["item_id", 5], ["item_type", "Bank"]]
|
6588
|
+
[1m[35m (0.6ms)[0m commit transaction
|
6589
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
6590
|
+
[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"]]
|
6591
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
6592
|
+
[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]]
|
6593
|
+
[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]]
|
6594
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
6595
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
6596
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6597
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6598
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6599
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:58:41.027132"], ["updated_at", "2016-08-03 20:58:41.027132"]]
|
6600
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:58:41.027132"], ["item_id", 6], ["item_type", "Bank"]]
|
6601
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6603
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:58:41.030844"], ["id", 6]]
|
6604
|
+
[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 2016-08-03 20:58:41.027132000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 20:58:41.030844"], ["item_id", 6], ["item_type", "Bank"]]
|
6605
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6606
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6607
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:58:41.034397"], ["updated_at", "2016-08-03 20:58:41.034397"]]
|
6608
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.034397"], ["item_id", 4], ["item_type", "User"]]
|
6609
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6611
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 20:58:41.037384"], ["id", 6]]
|
6612
|
+
[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: 2016-08-03 20:58:41.027132000 Z\nupdated_at: 2016-08-03 20:58:41.030844000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.037384"], ["item_id", 6], ["item_type", "Bank"]]
|
6613
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6614
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6615
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:58:41.041388"], ["updated_at", "2016-08-03 20:58:41.041388"]]
|
6616
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.041388"], ["item_id", 5], ["item_type", "User"]]
|
6617
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6618
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6619
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 20:58:41.044800"], ["id", 6]]
|
6620
|
+
[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: 2016-08-03 20:58:41.027132000 Z\nupdated_at: 2016-08-03 20:58:41.037384000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.044800"], ["item_id", 6], ["item_type", "Bank"]]
|
6621
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6623
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 20:58:41.048321"], ["id", 6]]
|
6624
|
+
[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: 2016-08-03 20:58:41.027132000 Z\nupdated_at: 2016-08-03 20:58:41.044800000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.048321"], ["item_id", 6], ["item_type", "Bank"]]
|
6625
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
6626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6627
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:58:41.052739"], ["updated_at", "2016-08-03 20:58:41.052739"]]
|
6628
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.052739"], ["item_id", 6], ["item_type", "User"]]
|
6629
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6630
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6631
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 20:58:41.056725"], ["id", 6]]
|
6632
|
+
[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: 2016-08-03 20:58:41.027132000 Z\nupdated_at: 2016-08-03 20:58:41.048321000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:58:41.056725"], ["item_id", 6], ["item_type", "Bank"]]
|
6633
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6634
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6635
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:58:41.060849"], ["id", 6]]
|
6636
|
+
[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: 2016-08-03 20:58:41.027132000 Z\nupdated_at: 2016-08-03 20:58:41.056725000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:58:41.060849"], ["item_id", 6], ["item_type", "Bank"]]
|
6637
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6638
|
+
[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"]]
|
6639
|
+
[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"]]
|
6640
|
+
[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]]
|
6641
|
+
[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]]
|
6642
|
+
[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]]
|
6643
|
+
[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]]
|
6644
|
+
[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]]
|
6645
|
+
[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]]
|
6646
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6647
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 20:58:41.072826"], ["updated_at", "2016-08-03 20:58:41.072826"]]
|
6648
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:58:41.072826"], ["item_id", 7], ["item_type", "User"]]
|
6649
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6650
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6651
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2016-08-03 20:58:41.075996"], ["id", 7]]
|
6652
|
+
[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 2016-08-03 20:58:41.072826000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:58:41.075996"], ["item_id", 7], ["item_type", "User"]]
|
6653
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6655
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2016-08-03 20:58:41.079303"], ["id", 7]]
|
6656
|
+
[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: 2016-08-03 20:58:41.072826000 Z\nupdated_at: 2016-08-03 20:58:41.075996000 Z\n"], ["created_at", "2016-08-03 20:58:41.079303"], ["item_id", 7], ["item_type", "User"]]
|
6657
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6658
|
+
[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"]]
|
6659
|
+
[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"]]
|
6660
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
6661
|
+
[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]]
|
6662
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6663
|
+
[1m[36m (2.3ms)[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
|
6664
|
+
[1m[35m (0.7ms)[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)
|
6665
|
+
[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
|
6666
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
6667
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")[0m
|
6668
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
6669
|
+
[1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6670
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
6671
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802235555')[0m
|
6672
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160802221911')
|
6673
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160802222941')[0m
|
6674
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
6675
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6676
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 20], ["created_at", "2016-08-03 20:59:07.908500"], ["updated_at", "2016-08-03 20:59:07.908500"]]
|
6677
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:07.908500"], ["item_id", 1], ["item_type", "Bank"]]
|
6678
|
+
[1m[35m (2.2ms)[0m commit transaction
|
6679
|
+
[1m[36mBank Load (0.2ms)[0m [1mSELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1[0m
|
6680
|
+
[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"]]
|
6681
|
+
[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"]]
|
6682
|
+
[1m[35mBank Load (0.1ms)[0m SELECT "banks".* FROM "banks" ORDER BY "banks"."id" DESC LIMIT 1
|
6683
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6684
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:59:07.935321"], ["updated_at", "2016-08-03 20:59:07.935321"]]
|
6685
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:07.935321"], ["item_id", 2], ["item_type", "Bank"]]
|
6686
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6687
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6688
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", 10], ["updated_at", "2016-08-03 20:59:07.939308"], ["id", 2]]
|
6689
|
+
[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 2016-08-03 20:59:07.935321000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:59:07.939308"], ["item_id", 2], ["item_type", "Bank"]]
|
6690
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6691
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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"]]
|
6692
|
+
[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"]]
|
6693
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
6694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6695
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:59:07.953981"], ["updated_at", "2016-08-03 20:59:07.953981"]]
|
6696
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:59:07.953981"], ["item_id", 3], ["item_type", "Bank"]]
|
6697
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
6698
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6699
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:59:07.957362"], ["id", 3]]
|
6700
|
+
[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 2016-08-03 20:59:07.953981000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:59:07.957362"], ["item_id", 3], ["item_type", "Bank"]]
|
6701
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6703
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:59:07.961461"], ["id", 3]]
|
6704
|
+
[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: 2016-08-03 20:59:07.953981000 Z\nupdated_at: 2016-08-03 20:59:07.957362000 Z\n"], ["created_at", "2016-08-03 20:59:07.961461"], ["item_id", 3], ["item_type", "Bank"]]
|
6705
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6706
|
+
[1m[35m (0.2ms)[0m begin transaction
|
6707
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 40], ["updated_at", "2016-08-03 20:59:07.965133"], ["id", 3]]
|
6708
|
+
[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: 2016-08-03 20:59:07.953981000 Z\nupdated_at: 2016-08-03 20:59:07.961461000 Z\n"], ["created_at", "2016-08-03 20:59:07.965133"], ["item_id", 3], ["item_type", "Bank"]]
|
6709
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
6710
|
+
[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", 3], ["item_type", "Bank"]]
|
6711
|
+
[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"]]
|
6712
|
+
[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]]
|
6713
|
+
[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]]
|
6714
|
+
[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]]
|
6715
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6716
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:59:07.973671"], ["updated_at", "2016-08-03 20:59:07.973671"]]
|
6717
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:07.973671"], ["item_id", 4], ["item_type", "Bank"]]
|
6718
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6719
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6720
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:59:07.982673"], ["updated_at", "2016-08-03 20:59:07.982673"]]
|
6721
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:07.982673"], ["item_id", 1], ["item_type", "User"]]
|
6722
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6723
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6724
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 1], ["updated_at", "2016-08-03 20:59:07.988238"], ["id", 4]]
|
6725
|
+
[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 2016-08-03 20:59:07.973671000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:59:07.988238"], ["item_id", 4], ["item_type", "Bank"]]
|
6726
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6727
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6728
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["value", nil], ["updated_at", "2016-08-03 20:59:07.992213"], ["id", 4]]
|
6729
|
+
[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: 2016-08-03 20:59:07.973671000 Z\nupdated_at: 2016-08-03 20:59:07.988238000 Z\n"], ["created_at", "2016-08-03 20:59:07.992213"], ["item_id", 4], ["item_type", "Bank"]]
|
6730
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6731
|
+
[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"]]
|
6732
|
+
[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"]]
|
6733
|
+
[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]]
|
6734
|
+
[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]]
|
6735
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6736
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:59:07.999483"], ["updated_at", "2016-08-03 20:59:07.999483"]]
|
6737
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:07.999483"], ["item_id", 2], ["item_type", "User"]]
|
6738
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6739
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6740
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-08-03 20:59:08.003312"], ["updated_at", "2016-08-03 20:59:08.003312"]]
|
6741
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:08.003312"], ["item_id", 3], ["item_type", "User"]]
|
6742
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6743
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6744
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?) [["value", 100], ["created_at", "2016-08-03 20:59:08.006688"], ["updated_at", "2016-08-03 20:59:08.006688"]]
|
6745
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?)[0m [["event", "create"], ["created_at", "2016-08-03 20:59:08.006688"], ["item_id", 5], ["item_type", "Bank"]]
|
6746
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6747
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6748
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 2], ["updated_at", "2016-08-03 20:59:08.010643"], ["id", 5]]
|
6749
|
+
[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 2016-08-03 20:59:08.006688000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:59:08.010643"], ["item_id", 5], ["item_type", "Bank"]]
|
6750
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6752
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", 3], ["updated_at", "2016-08-03 20:59:08.014126"], ["id", 5]]
|
6753
|
+
[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: 2016-08-03 20:59:08.006688000 Z\nupdated_at: 2016-08-03 20:59:08.010643000 Z\n"], ["created_at", "2016-08-03 20:59:08.014126"], ["item_id", 5], ["item_type", "Bank"]]
|
6754
|
+
[1m[35m (0.4ms)[0m commit transaction
|
6755
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6756
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ? [["user_id", nil], ["updated_at", "2016-08-03 20:59:08.017373"], ["id", 5]]
|
6757
|
+
[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: 2016-08-03 20:59:08.006688000 Z\nupdated_at: 2016-08-03 20:59:08.014126000 Z\n"], ["created_at", "2016-08-03 20:59:08.017373"], ["item_id", 5], ["item_type", "Bank"]]
|
6758
|
+
[1m[35m (0.5ms)[0m commit transaction
|
6759
|
+
[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"]]
|
6760
|
+
[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"]]
|
6761
|
+
[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]]
|
6762
|
+
[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]]
|
6763
|
+
[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]]
|
6764
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
6765
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 2]]
|
6766
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
|
6767
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 3]]
|
6768
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6769
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "banks" ("value", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["value", 100], ["created_at", "2016-08-03 20:59:08.027724"], ["updated_at", "2016-08-03 20:59:08.027724"]]
|
6770
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:59:08.027724"], ["item_id", 6], ["item_type", "Bank"]]
|
6771
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6772
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6773
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 10], ["updated_at", "2016-08-03 20:59:08.031088"], ["id", 6]]
|
6774
|
+
[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 2016-08-03 20:59:08.027724000 Z\nupdated_at: *1\n"], ["whodunnit", "user2"], ["created_at", "2016-08-03 20:59:08.031088"], ["item_id", 6], ["item_type", "Bank"]]
|
6775
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6776
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6777
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:59:08.034807"], ["updated_at", "2016-08-03 20:59:08.034807"]]
|
6778
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.034807"], ["item_id", 4], ["item_type", "User"]]
|
6779
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6781
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 4], ["updated_at", "2016-08-03 20:59:08.039647"], ["id", 6]]
|
6782
|
+
[1m[35mSQL (0.2ms)[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: 2016-08-03 20:59:08.027724000 Z\nupdated_at: 2016-08-03 20:59:08.031088000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.039647"], ["item_id", 6], ["item_type", "Bank"]]
|
6783
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6784
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6785
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:59:08.043718"], ["updated_at", "2016-08-03 20:59:08.043718"]]
|
6786
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.043718"], ["item_id", 5], ["item_type", "User"]]
|
6787
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6788
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6789
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 5], ["updated_at", "2016-08-03 20:59:08.047485"], ["id", 6]]
|
6790
|
+
[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: 2016-08-03 20:59:08.027724000 Z\nupdated_at: 2016-08-03 20:59:08.039647000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.047485"], ["item_id", 6], ["item_type", "Bank"]]
|
6791
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
6792
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6793
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", 123], ["updated_at", "2016-08-03 20:59:08.052630"], ["id", 6]]
|
6794
|
+
[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: 2016-08-03 20:59:08.027724000 Z\nupdated_at: 2016-08-03 20:59:08.047485000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.052630"], ["item_id", 6], ["item_type", "Bank"]]
|
6795
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6796
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6797
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2016-08-03 20:59:08.057806"], ["updated_at", "2016-08-03 20:59:08.057806"]]
|
6798
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "whodunnit", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?, ?) [["event", "create"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.057806"], ["item_id", 6], ["item_type", "User"]]
|
6799
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6801
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "user_id" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["user_id", 6], ["updated_at", "2016-08-03 20:59:08.062749"], ["id", 6]]
|
6802
|
+
[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: 2016-08-03 20:59:08.027724000 Z\nupdated_at: 2016-08-03 20:59:08.052630000 Z\n"], ["whodunnit", "user3"], ["created_at", "2016-08-03 20:59:08.062749"], ["item_id", 6], ["item_type", "Bank"]]
|
6803
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6804
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6805
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "banks" SET "value" = ?, "updated_at" = ? WHERE "banks"."id" = ?[0m [["value", nil], ["updated_at", "2016-08-03 20:59:08.067060"], ["id", 6]]
|
6806
|
+
[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: 2016-08-03 20:59:08.027724000 Z\nupdated_at: 2016-08-03 20:59:08.062749000 Z\n"], ["whodunnit", "user1"], ["created_at", "2016-08-03 20:59:08.067060"], ["item_id", 6], ["item_type", "Bank"]]
|
6807
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6808
|
+
[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"]]
|
6809
|
+
[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"]]
|
6810
|
+
[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]]
|
6811
|
+
[1m[36mPaperTrail::Version Load (0.2ms)[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]]
|
6812
|
+
[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]]
|
6813
|
+
[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]]
|
6814
|
+
[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]]
|
6815
|
+
[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]]
|
6816
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("state", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["state", 0], ["created_at", "2016-08-03 20:59:08.079744"], ["updated_at", "2016-08-03 20:59:08.079744"]]
|
6818
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "versions" ("event", "created_at", "item_id", "item_type") VALUES (?, ?, ?, ?) [["event", "create"], ["created_at", "2016-08-03 20:59:08.079744"], ["item_id", 7], ["item_type", "User"]]
|
6819
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6820
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6821
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", 2], ["updated_at", "2016-08-03 20:59:08.083474"], ["id", 7]]
|
6822
|
+
[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 2016-08-03 20:59:08.079744000 Z\nupdated_at: *1\n"], ["created_at", "2016-08-03 20:59:08.083474"], ["item_id", 7], ["item_type", "User"]]
|
6823
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6824
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6825
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "state" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["state", nil], ["updated_at", "2016-08-03 20:59:08.087308"], ["id", 7]]
|
6826
|
+
[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: 2016-08-03 20:59:08.079744000 Z\nupdated_at: 2016-08-03 20:59:08.083474000 Z\n"], ["created_at", "2016-08-03 20:59:08.087308"], ["item_id", 7], ["item_type", "User"]]
|
6827
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
6828
|
+
[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"]]
|
6829
|
+
[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"]]
|
6830
|
+
[1m[35mPaperTrail::Version Load (0.2ms)[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]]
|
6831
|
+
[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]]
|