espinita 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +46 -1
- data/lib/espinita/auditor_behavior.rb +75 -3
- data/lib/espinita/version.rb +1 -1
- data/spec/dummy/log/test.log +422 -0
- data/spec/models/models/general_model_spec.rb +219 -3
- data/spec/spec_helper.rb +2 -0
- metadata +44 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 234b680ecbdfb3988ce978738780d361d2bffd66
|
4
|
+
data.tar.gz: 97dec308b5d32d4921b1ee23af9dad9c02ad44c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bd2f0db7a08c4934b3c0525334672f2eb8f6d923f1f2338d21ec8276fa3322c79353db33463bc36e732a5d974aa902795712380177a150ab7050da60e46a957
|
7
|
+
data.tar.gz: a65fa34e55cbf5c8dd41cbc5802a4ca8c9aaa33282a5bfad0034d05a5a591acc6981e99cf4eb95d67938816284fcbc0e7d15430aaea1b05661d0acff024be620
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ In your gemfile
|
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
gem "espinita"
|
20
|
-
|
20
|
+
```
|
21
21
|
|
22
22
|
In console
|
23
23
|
```ruby
|
@@ -74,3 +74,48 @@ Espinita will detect the current user when records saved from rails controllers.
|
|
74
74
|
```ruby
|
75
75
|
Espinita.current_user_method = :authenticated_user
|
76
76
|
```
|
77
|
+
|
78
|
+
#### History and Restoration
|
79
|
+
If you just want a summary of changes for a particular attribute or attributes of a model, you can use the `history_from_audits_for` method.
|
80
|
+
```ruby
|
81
|
+
my_model.history_from_audits_for(:name)
|
82
|
+
=> [{changes: {name: "Arglebargle"}, changed_at: 2015-05-13 15:28:22 -0700},
|
83
|
+
{changes: {name: "Baz"}, changed_at: 2014-05-13 15:28:22 -0700},
|
84
|
+
{changes: {name: "Foo"}, changed_at: 2013-05-13 15:28:22 -0700}]
|
85
|
+
|
86
|
+
```
|
87
|
+
|
88
|
+
You can also provide an array of attributes to get a single history for all of them.
|
89
|
+
```ruby
|
90
|
+
my_model.history_from_audits_for([:name, :settings])
|
91
|
+
=> [{changes: {name: "Arglebargle", settings: "Waffles"}, changed_at: 2015-05-13 15:28:22 -0700},
|
92
|
+
{changes: {name: "Baz"}, changed_at: 2014-05-13 15:28:22 -0700}]
|
93
|
+
|
94
|
+
```
|
95
|
+
|
96
|
+
Sometimes it's useful to roll a record back to a particular point in time, such as if it was accidentally modified. For this, the `restore_attributes!` method is provided.
|
97
|
+
|
98
|
+
As with `history_from_audits_for`, this can be used with a single attribute or an array of attributes.
|
99
|
+
```ruby
|
100
|
+
model.name
|
101
|
+
=> "Baz"
|
102
|
+
model.settings
|
103
|
+
=> ""
|
104
|
+
|
105
|
+
model.history_from_audits_for([:name, :settings])
|
106
|
+
=> [{:changes=>{:name=>"Baz", :settings=>""}, :changed_at=>2015-05-03 15:33:58 -0700},
|
107
|
+
{:changes=>{:name=>"Arglebargle", :settings=>"IHOP"}, :changed_at=>2015-03-24 15:33:58 -0700},
|
108
|
+
{:changes=>{:name=>"Walrus"}, :changed_at=>2014-05-13 15:33:58 -0700}]
|
109
|
+
|
110
|
+
model.restore_attributes!([:name, :settings], DateTime.now - 57.days)
|
111
|
+
=> true
|
112
|
+
|
113
|
+
model.name
|
114
|
+
=> "Walrus"
|
115
|
+
model.settings
|
116
|
+
=> "MyText"
|
117
|
+
```
|
118
|
+
|
119
|
+
The `restore_attributes!` method returns `true` if it makes a change to the model, or `false` if there is no resulting change.
|
120
|
+
|
121
|
+
Note: this uses `update_attributes()` to do the rollback, so it will *skip* validations, but will trigger any callbacks that you may have in place.
|
@@ -40,7 +40,7 @@ module Espinita
|
|
40
40
|
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
43
|
+
def permitted_columns
|
44
44
|
self.column_names - self.excluded_cols.to_a
|
45
45
|
end
|
46
46
|
|
@@ -56,9 +56,65 @@ module Espinita
|
|
56
56
|
|
57
57
|
end
|
58
58
|
|
59
|
-
|
59
|
+
def history_from_audits_for(attributes)
|
60
|
+
attributes = arrayify(attributes)
|
61
|
+
attributes = attributes.map(&:to_s) # for consistency, ensure that we're working with strings, not symbols
|
62
|
+
raise ArgumentError, "At least one of the specified columns does not exist or is not audited." if (attributes - self.class.permitted_columns).any?
|
63
|
+
|
64
|
+
audits = relevant_audits(self.audits, attributes)
|
65
|
+
|
66
|
+
property_history = audits.map do |a|
|
67
|
+
{
|
68
|
+
changes: Hash[
|
69
|
+
(a.audited_changes.keys.map(&:to_s) & attributes).map do |key|
|
70
|
+
[key.to_sym, a.audited_changes[key.to_sym].last]
|
71
|
+
end
|
72
|
+
],
|
73
|
+
changed_at: a.created_at.localtime
|
74
|
+
}
|
75
|
+
end
|
76
|
+
return property_history
|
77
|
+
end
|
78
|
+
|
79
|
+
def restore_attributes!(attributes, datetime)
|
80
|
+
attributes = arrayify(attributes)
|
81
|
+
attributes = attributes.map(&:to_s) # for consistency, ensure that we're working with strings, not symbols
|
82
|
+
raise ArgumentError, "At least one of the specified columns does not exist or is not audited." if (attributes - self.class.permitted_columns).any?
|
83
|
+
|
84
|
+
changes = {}
|
85
|
+
|
86
|
+
attributes.each do |attrib|
|
87
|
+
audits = relevant_audits(self.audits, [attrib])
|
88
|
+
audit = audits.select{ |a| a.created_at < datetime }.first
|
89
|
+
|
90
|
+
if audit.present? # restore to the requested point in time
|
91
|
+
restore_val = audit.audited_changes[attrib.to_sym].last
|
92
|
+
else # or fall back to the initial state of the record if the requested time predates the first audit
|
93
|
+
restore_val = audits.last.audited_changes[attrib.to_sym].first
|
94
|
+
end
|
95
|
+
|
96
|
+
unless restore_val == self[attrib]
|
97
|
+
changes[attrib] = restore_val
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
self.update_attributes(changes)
|
102
|
+
return changes.keys.count > 0
|
103
|
+
end
|
104
|
+
|
105
|
+
def restore_to_audit(id_or_record)
|
106
|
+
audit = self.audits.find(id_or_record)
|
107
|
+
|
108
|
+
audit.ancestors.each do |ancestor|
|
109
|
+
self.assign_attributes Hash[ancestor.audited_changes.map{ |k,v| [k,v[0]] }]
|
110
|
+
end
|
111
|
+
|
112
|
+
self.save
|
113
|
+
end
|
114
|
+
|
115
|
+
# audited attributes detected against permitted columns
|
60
116
|
def audited_attributes
|
61
|
-
self.changes.keys & self.class.
|
117
|
+
self.changes.keys & self.class.permitted_columns
|
62
118
|
end
|
63
119
|
|
64
120
|
def audited_hash
|
@@ -91,5 +147,21 @@ module Espinita
|
|
91
147
|
self.audits.create(options) unless options[:audited_changes].blank?
|
92
148
|
end
|
93
149
|
|
150
|
+
private
|
151
|
+
|
152
|
+
def arrayify(item_or_array) # convert single attributes to arrays [:myProp]
|
153
|
+
if item_or_array.is_a?(Array)
|
154
|
+
return item_or_array
|
155
|
+
else
|
156
|
+
return Array(item_or_array)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
def relevant_audits(audits, attributes)
|
161
|
+
audits
|
162
|
+
.order('created_at DESC') # most recent first
|
163
|
+
.select{ |a| attributes.any?{ |p| a.audited_changes.key?(p.to_sym) } }
|
164
|
+
end
|
165
|
+
|
94
166
|
end
|
95
167
|
end
|
data/lib/espinita/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -9130,3 +9130,425 @@ Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
|
9130
9130
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "destroy"], ["auditable_id", 14], ["auditable_type", "GeneralModel"], ["audited_changes", "---\nid: 14\nuser_id: \nname: MyString\nsettings: MyText\nposition: 1\ncreated_at: 2014-08-03 01:19:02.855004000 Z\nupdated_at: 2014-08-03 01:19:02.855004000 Z\n"], ["comment", "deleted model 14: "], ["created_at", "2014-08-03 01:19:02.859009"], ["remote_address", "0.0.0.0"], ["updated_at", "2014-08-03 01:19:02.859009"], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9131
9131
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "general_models" WHERE "general_models"."id" = ?[0m [["id", 14]]
|
9132
9132
|
[1m[35m (0.1ms)[0m commit transaction
|
9133
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
9134
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "general_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar(255), "settings" text, "position" integer, "created_at" datetime, "updated_at" datetime)
|
9135
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_general_models_on_user_id" ON "general_models" ("user_id")[0m
|
9136
|
+
[1m[35m (0.2ms)[0m CREATE TABLE "espinita_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar(255), "user_id" integer, "user_type" varchar(255), "audited_changes" text, "comment" varchar(255), "version" integer, "action" varchar(255), "remote_address" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9137
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_espinita_audits_on_auditable_id_and_auditable_type" ON "espinita_audits" ("auditable_id", "auditable_type")[0m
|
9138
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_espinita_audits_on_user_id_and_user_type" ON "espinita_audits" ("user_id", "user_type")
|
9139
|
+
[1m[36m (15.7ms)[0m [1mDELETE FROM "users";[0m
|
9140
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
9141
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
9142
|
+
[1m[35m (0.1ms)[0m DELETE FROM "general_models";
|
9143
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
9144
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'general_models';
|
9145
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "espinita_audits";[0m
|
9146
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
9147
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'espinita_audits';[0m
|
9148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9149
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9150
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9151
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits"[0m
|
9152
|
+
Processing by AuditsController#audit as HTML
|
9153
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9154
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9155
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 1 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9156
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 1], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 1\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["user_id", 1], ["user_type", "User"], ["version", 1]]
|
9157
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "espinita_audits" SET "updated_at" = ?, "audited_changes" = ? WHERE "espinita_audits"."id" = 1 [["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["audited_changes", "---\n:name:\n- \n- MyString\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 1\n"]]
|
9158
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9159
|
+
Rendered text template (0.0ms)
|
9160
|
+
Completed 200 OK in 74ms (Views: 6.2ms | ActiveRecord: 1.6ms)
|
9161
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits"
|
9162
|
+
[1m[36mEspinita::Audit Load (0.2ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
|
9163
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
9164
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 1], ["auditable_type", "GeneralModel"]]
|
9165
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits"
|
9166
|
+
Processing by AuditsController#audit as HTML
|
9167
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9168
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9169
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 2 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9170
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 2], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 2\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9171
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9172
|
+
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
9173
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits"
|
9174
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 2], ["auditable_type", "GeneralModel"]]
|
9175
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 2], ["auditable_type", "GeneralModel"]]
|
9176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9177
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9178
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9179
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 3], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 3\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9180
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9181
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9182
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 3 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9183
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 3], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 2]]
|
9184
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 3[0m [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9185
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9186
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 3], ["auditable_type", "GeneralModel"]]
|
9187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9188
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9189
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9190
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9191
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9192
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9193
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 4 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9194
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 4], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 2]]
|
9195
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 4 [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9196
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9197
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 4], ["auditable_type", "GeneralModel"]]
|
9198
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9199
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9200
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 5 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9201
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 5], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9202
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9203
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9204
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 5[0m [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9205
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9206
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 5], ["auditable_type", "GeneralModel"]]
|
9207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9208
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9209
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 6 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 6], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 6\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9211
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9212
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9213
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 6 [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9214
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9215
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
|
9216
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1[0m [["auditable_id", 6], ["auditable_type", "GeneralModel"]]
|
9217
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9218
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9219
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 7 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9220
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 7], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 7\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9221
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9223
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 7 [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9224
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9225
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
9226
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
9227
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
9228
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 7], ["auditable_type", "GeneralModel"]]
|
9229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9230
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9231
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9232
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 8], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 8\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9233
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9234
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9235
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 8 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9236
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 8], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 2]]
|
9237
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 8 [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9238
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9239
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
|
9240
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
|
9241
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 8], ["auditable_type", "GeneralModel"]]
|
9242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9243
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9244
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 9 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9245
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 9], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 9\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 1]]
|
9246
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9247
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9248
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 9 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9249
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 9], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["version", 2]]
|
9250
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 9[0m [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9251
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9252
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 9], ["auditable_type", "GeneralModel"]]
|
9253
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 9], ["auditable_type", "GeneralModel"]]
|
9254
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 9], ["auditable_type", "GeneralModel"]]
|
9255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9256
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "last_name", "name", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["email", "john@afferson.com"], ["last_name", "Afferson"], ["name", "John"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9257
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9259
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9260
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 10 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9261
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "create"], ["auditable_id", 10], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 10\n"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9262
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9263
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9264
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 10 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9265
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 10], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9266
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 10[0m [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9267
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9268
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
|
9269
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
9270
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
|
9271
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
9272
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 10], ["auditable_type", "GeneralModel"]]
|
9273
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
|
9274
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9275
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9276
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9277
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9278
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "updated_at" = ? WHERE "general_models"."id" = 11[0m [["updated_at", Mon, 25 May 2015 00:59:38 UTC +00:00]]
|
9279
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9280
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 11], ["auditable_type", "GeneralModel"]]
|
9281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9282
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:38 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:38 UTC +00:00]]
|
9283
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 12 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9284
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "create"], ["auditable_id", 12], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- \n- MyString\n:settings:\n- \n- MyText\n:position:\n- \n- 1\n:id:\n- \n- 12\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9285
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9286
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9287
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 12 [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9288
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9289
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? [["auditable_id", 12], ["auditable_type", "GeneralModel"]]
|
9290
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 12], ["auditable_type", "GeneralModel"]]
|
9291
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 12], ["auditable_type", "GeneralModel"]]
|
9292
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9293
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9294
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9296
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 13 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9297
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 13], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9298
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 13[0m [["name", "Foo"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9299
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9300
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 13], ["auditable_type", "GeneralModel"]]
|
9301
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1 [["auditable_id", 13], ["auditable_type", "GeneralModel"]]
|
9302
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" DESC LIMIT 1[0m [["auditable_id", 13], ["auditable_type", "GeneralModel"]]
|
9303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9304
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9305
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9306
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ?[0m [["auditable_id", 14], ["auditable_type", "GeneralModel"]]
|
9307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9308
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 14 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9309
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "destroy"], ["auditable_id", 14], ["auditable_type", "GeneralModel"], ["audited_changes", "---\nid: 14\nuser_id: \nname: MyString\nsettings: MyText\nposition: 1\ncreated_at: &1 2015-05-24 00:59:39.020516000 Z\nupdated_at: *1\n"], ["comment", "deleted model 14: "], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9310
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "general_models" WHERE "general_models"."id" = ?[0m [["id", 14]]
|
9311
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9312
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9313
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9314
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9315
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9316
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 15 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9317
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 15], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9318
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ? WHERE "general_models"."id" = 15[0m [["name", "Foo"]]
|
9319
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9320
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9321
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9322
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9323
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9324
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 16 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9325
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 16], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9326
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ? WHERE "general_models"."id" = 16[0m [["name", "Foo"]]
|
9327
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9328
|
+
[1m[36mEspinita::Audit Load (0.0ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC[0m [["auditable_id", 16], ["auditable_type", "GeneralModel"]]
|
9329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9330
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9331
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9333
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 17 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9334
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 17], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9335
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ? WHERE "general_models"."id" = 17 [["name", "Foo"]]
|
9336
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9337
|
+
[1m[35mEspinita::Audit Load (0.0ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC [["auditable_id", 17], ["auditable_type", "GeneralModel"]]
|
9338
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9339
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9340
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9342
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 18 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9343
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 18], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9344
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ? WHERE "general_models"."id" = 18[0m [["name", "Foo"]]
|
9345
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9346
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9347
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 18 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9348
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 18], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Foo\n- Baz\n"], ["comment", "Some comment"], ["created_at", Wed, 03 Jun 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Wed, 03 Jun 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9349
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 18 [["name", "Baz"], ["updated_at", Wed, 03 Jun 2015 00:59:39 UTC +00:00]]
|
9350
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9351
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9352
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 18 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9353
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 18], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Baz\n- Arglebargle\n"], ["comment", "Some comment"], ["created_at", Tue, 24 May 2016 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Tue, 24 May 2016 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9354
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 18[0m [["name", "Arglebargle"], ["updated_at", Tue, 24 May 2016 00:59:39 UTC +00:00]]
|
9355
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9356
|
+
[1m[36mEspinita::Audit Load (0.0ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC[0m [["auditable_id", 18], ["auditable_type", "GeneralModel"]]
|
9357
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9358
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9359
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9360
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9361
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 19 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9362
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 19], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9363
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ? WHERE "general_models"."id" = 19 [["name", "Foo"]]
|
9364
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9365
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9366
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 19 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9367
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 19], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Foo\n- Baz\n:position:\n- 1\n- 42\n"], ["comment", "Some comment"], ["created_at", Wed, 03 Jun 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Wed, 03 Jun 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9368
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 19[0m [["name", "Baz"], ["position", 42], ["updated_at", Wed, 03 Jun 2015 00:59:39 UTC +00:00]]
|
9369
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9370
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9371
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 19 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9372
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 19], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Baz\n- Arglebargle\n:settings:\n- MyText\n- Waffles\n"], ["comment", "Some comment"], ["created_at", Tue, 24 May 2016 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Tue, 24 May 2016 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9373
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 19 [["name", "Arglebargle"], ["settings", "Waffles"], ["updated_at", Tue, 24 May 2016 00:59:39 UTC +00:00]]
|
9374
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9375
|
+
[1m[35mEspinita::Audit Load (0.0ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC [["auditable_id", 19], ["auditable_type", "GeneralModel"]]
|
9376
|
+
[1m[36mEspinita::Audit Load (0.0ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC[0m [["auditable_id", 19], ["auditable_type", "GeneralModel"]]
|
9377
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9378
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9379
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9381
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 20 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9382
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 20], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Walrus\n"], ["comment", "Some comment"], ["created_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9383
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 20 [["name", "Walrus"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00]]
|
9384
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9385
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9386
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 20 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9387
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 20], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Walrus\n- Arglebargle\n:settings:\n- MyText\n- IHOP\n:position:\n- 1\n- 2\n"], ["comment", "Some comment"], ["created_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9388
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 20[0m [["name", "Arglebargle"], ["settings", "IHOP"], ["position", 2], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00]]
|
9389
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9390
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9391
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 20 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9392
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 20], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Arglebargle\n- Baz\n:settings:\n- IHOP\n- ''\n:position:\n- 2\n- \n"], ["comment", "Some comment"], ["created_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9393
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 20 [["name", "Baz"], ["settings", ""], ["position", nil], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00]]
|
9394
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9395
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC [["auditable_id", 20], ["auditable_type", "GeneralModel"]]
|
9396
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9397
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 20 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9398
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 20], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Baz\n- Arglebargle\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 4]]
|
9399
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 20 [["name", "Arglebargle"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9400
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9401
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9402
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9403
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9404
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9405
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 21 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9406
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 21], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Walrus\n"], ["comment", "Some comment"], ["created_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9407
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 21 [["name", "Walrus"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00]]
|
9408
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9409
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9410
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 21 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9411
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 21], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Walrus\n- Arglebargle\n:settings:\n- MyText\n- IHOP\n:position:\n- 1\n- 2\n"], ["comment", "Some comment"], ["created_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9412
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 21[0m [["name", "Arglebargle"], ["settings", "IHOP"], ["position", 2], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00]]
|
9413
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9414
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9415
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 21 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9416
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 21], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Arglebargle\n- Baz\n:settings:\n- IHOP\n- ''\n:position:\n- 2\n- \n"], ["comment", "Some comment"], ["created_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9417
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 21 [["name", "Baz"], ["settings", ""], ["position", nil], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00]]
|
9418
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9419
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC [["auditable_id", 21], ["auditable_type", "GeneralModel"]]
|
9420
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC[0m [["auditable_id", 21], ["auditable_type", "GeneralModel"]]
|
9421
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9422
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 21 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9423
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 21], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Baz\n- Walrus\n:settings:\n- ''\n- MyText\n"], ["comment", "Some comment"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 4]]
|
9424
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 21[0m [["name", "Walrus"], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9425
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9426
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9427
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9428
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9429
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9430
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 22 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9431
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 22], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Walrus\n"], ["comment", "Some comment"], ["created_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9432
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 22[0m [["name", "Walrus"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00]]
|
9433
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9434
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9435
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 22 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9436
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 22], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Walrus\n- Arglebargle\n:settings:\n- MyText\n- IHOP\n:position:\n- 1\n- 2\n"], ["comment", "Some comment"], ["created_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9437
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 22 [["name", "Arglebargle"], ["settings", "IHOP"], ["position", 2], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00]]
|
9438
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9439
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9440
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 22 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9441
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 22], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Arglebargle\n- Baz\n:settings:\n- IHOP\n- ''\n:position:\n- 2\n- \n"], ["comment", "Some comment"], ["created_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9442
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 22[0m [["name", "Baz"], ["settings", ""], ["position", nil], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00]]
|
9443
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9444
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY created_at DESC[0m [["auditable_id", 22], ["auditable_type", "GeneralModel"]]
|
9445
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9446
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9448
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9449
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9450
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9451
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 23 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9452
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 23], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Walrus\n"], ["comment", "Some comment"], ["created_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9453
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "updated_at" = ? WHERE "general_models"."id" = 23 [["name", "Walrus"], ["updated_at", Sat, 24 May 2014 00:59:39 UTC +00:00]]
|
9454
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9455
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9456
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 23 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9457
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 23], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Walrus\n- Arglebargle\n:settings:\n- MyText\n- IHOP\n:position:\n- 1\n- 2\n"], ["comment", "Some comment"], ["created_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9458
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 23[0m [["name", "Arglebargle"], ["settings", "IHOP"], ["position", 2], ["updated_at", Sat, 04 Apr 2015 00:59:39 UTC +00:00]]
|
9459
|
+
[1m[35m (0.0ms)[0m commit transaction
|
9460
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9461
|
+
[1m[35m (0.0ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 23 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9462
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "comment", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 23], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Arglebargle\n- Baz\n:settings:\n- IHOP\n- ''\n:position:\n- 2\n- \n"], ["comment", "Some comment"], ["created_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9463
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 23 [["name", "Baz"], ["settings", ""], ["position", nil], ["updated_at", Thu, 14 May 2015 00:59:39 UTC +00:00]]
|
9464
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
9465
|
+
[1m[35m (0.3ms)[0m begin transaction
|
9466
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9467
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9469
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 24 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9470
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 24], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Ringo\n:settings:\n- MyText\n- Walrus\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9471
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 24 [["name", "Ringo"], ["settings", "Walrus"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9472
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9473
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9474
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 24 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9475
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 24], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:position:\n- 1\n- 7\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9476
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 24[0m [["position", 7], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9477
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9478
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9479
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 24 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9480
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 24], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:position:\n- 7\n- 3\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9481
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "general_models" SET "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 24 [["position", 3], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9482
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9483
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1 [["auditable_id", 24], ["auditable_type", "GeneralModel"]]
|
9484
|
+
[1m[36mEspinita::Audit Load (0.2ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? AND "espinita_audits"."id" = ? LIMIT 1[0m [["auditable_id", 24], ["auditable_type", "GeneralModel"], ["id", 42]]
|
9485
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE (auditable_id = 24 and auditable_type = 'GeneralModel' and version <= 1)
|
9486
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9487
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 24 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9488
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 24], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Ringo\n- MyString\n:settings:\n- Walrus\n- MyText\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 4]]
|
9489
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 24 [["name", "MyString"], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9490
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9491
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9492
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9493
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9494
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9495
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 25 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9496
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 25], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Ringo\n:settings:\n- MyText\n- Walrus\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9497
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 25 [["name", "Ringo"], ["settings", "Walrus"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9498
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9499
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9500
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 25 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9501
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 25], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:position:\n- 1\n- 7\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 2]]
|
9502
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "general_models" SET "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 25[0m [["position", 7], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9503
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9504
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9505
|
+
[1m[35m (0.3ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 25 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9506
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 25], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:position:\n- 7\n- 3\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 3]]
|
9507
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "general_models" SET "position" = ?, "updated_at" = ? WHERE "general_models"."id" = 25 [["position", 3], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9508
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9509
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1 [["auditable_id", 25], ["auditable_type", "GeneralModel"]]
|
9510
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? AND "espinita_audits"."id" = ? LIMIT 1[0m [["auditable_id", 25], ["auditable_type", "GeneralModel"], ["id", 46]]
|
9511
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE (auditable_id = 25 and auditable_type = 'GeneralModel' and version <= 1)
|
9512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9513
|
+
[1m[35m (0.2ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 25 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9514
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 25], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- Ringo\n- MyString\n:settings:\n- Walrus\n- MyText\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 4]]
|
9515
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 25 [["name", "MyString"], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9516
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9518
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9519
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9520
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
9521
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9522
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9523
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9524
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 27 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9525
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 27], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n:settings:\n- MyText\n- Bar\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9526
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 27[0m [["name", "Foo"], ["settings", "Bar"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9527
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9528
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1[0m [["auditable_id", 27], ["auditable_type", "GeneralModel"]]
|
9529
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? AND "espinita_audits"."id" = ? LIMIT 1 [["auditable_id", 26], ["auditable_type", "GeneralModel"], ["id", 50]]
|
9530
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9531
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9532
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9533
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9534
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9535
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9536
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9537
|
+
[1m[35m (0.1ms)[0m SELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 29 AND "espinita_audits"."auditable_type" = 'GeneralModel'
|
9538
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["action", "update"], ["auditable_id", 29], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n:settings:\n- MyText\n- Bar\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9539
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 29 [["name", "Foo"], ["settings", "Bar"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9540
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9541
|
+
[1m[35mEspinita::Audit Load (0.1ms)[0m SELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? ORDER BY "espinita_audits"."id" ASC LIMIT 1 [["auditable_id", 29], ["auditable_type", "GeneralModel"]]
|
9542
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? AND "espinita_audits"."id" = ? LIMIT 1[0m [["auditable_id", 28], ["auditable_type", "GeneralModel"], ["id", 51]]
|
9543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9544
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9545
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9547
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "general_models" ("created_at", "name", "position", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["name", "MyString"], ["position", 1], ["settings", "MyText"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9548
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
9549
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9550
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("espinita_audits"."version") AS max_id FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = 31 AND "espinita_audits"."auditable_type" = 'GeneralModel'[0m
|
9551
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "espinita_audits" ("action", "auditable_id", "auditable_type", "audited_changes", "created_at", "remote_address", "updated_at", "user_id", "user_type", "version") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["action", "update"], ["auditable_id", 31], ["auditable_type", "GeneralModel"], ["audited_changes", "---\n:name:\n- MyString\n- Foo\n:settings:\n- MyText\n- Bar\n"], ["created_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["remote_address", "0.0.0.0"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00], ["user_id", 2], ["user_type", "User"], ["version", 1]]
|
9552
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "general_models" SET "name" = ?, "settings" = ?, "updated_at" = ? WHERE "general_models"."id" = 31[0m [["name", "Foo"], ["settings", "Bar"], ["updated_at", Sun, 24 May 2015 00:59:39 UTC +00:00]]
|
9553
|
+
[1m[35m (0.1ms)[0m commit transaction
|
9554
|
+
[1m[36mEspinita::Audit Load (0.1ms)[0m [1mSELECT "espinita_audits".* FROM "espinita_audits" WHERE "espinita_audits"."auditable_id" = ? AND "espinita_audits"."auditable_type" = ? AND "espinita_audits"."id" = ? LIMIT 1[0m [["auditable_id", 30], ["auditable_type", "GeneralModel"], ["id", 999999999]]
|