traka 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -22
- data/lib/traka.rb +0 -5
- data/lib/traka/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +414 -0
- metadata +1 -2
- data/lib/templates/active_record/model/model.rb +0 -5
data/README.md
CHANGED
@@ -17,6 +17,7 @@ that has been created/updated/destroyed instead of sending out everything every
|
|
17
17
|
```
|
18
18
|
gem install traka
|
19
19
|
rails g traka:install
|
20
|
+
rake db:migrate
|
20
21
|
```
|
21
22
|
|
22
23
|
## Setup
|
@@ -38,47 +39,47 @@ Each model should have a string "uuid" column. If you want to use a different co
|
|
38
39
|
To access the current set of staged changes:
|
39
40
|
|
40
41
|
```ruby
|
41
|
-
|
42
|
+
Traka::Change.staged_changes #=> [traka_change_record, ...]
|
42
43
|
```
|
43
44
|
|
44
|
-
Each
|
45
|
+
Each Traka::Change record can be resolved to the original record (except "destroy"):
|
45
46
|
|
46
47
|
```ruby
|
47
|
-
|
48
|
+
Traka::Change.staged_changes.first.get_record #=> record
|
48
49
|
```
|
49
50
|
|
50
51
|
To fetch a changeset across multiple versions. Assuming current version is 5, to get changes from v2 onwards:
|
51
52
|
|
52
53
|
```ruby
|
53
|
-
|
54
|
+
Traka::Change.changes_from(2) #=> [traka_change_record, ...]
|
54
55
|
```
|
55
56
|
|
56
57
|
Or just get changes from v2 to v4:
|
57
58
|
|
58
59
|
```ruby
|
59
|
-
|
60
|
+
Traka::Change.changes_in_range(2, 4) #=> [traka_change_record, ...]
|
60
61
|
```
|
61
62
|
|
62
63
|
The above methods will automatically cleanse obsolete changes. To see everything:
|
63
64
|
|
64
65
|
```ruby
|
65
|
-
|
66
|
-
|
67
|
-
|
66
|
+
Traka::Change.staged_changes(false) #=> [traka_change_record, ...]
|
67
|
+
Traka::Change.changes_from(2, false) #=> [traka_change_record, ...]
|
68
|
+
Traka::Change.changes_in_range(2, 4, false) #=> [traka_change_record, ...]
|
68
69
|
```
|
69
70
|
|
70
71
|
To see the current version:
|
71
72
|
|
72
73
|
```ruby
|
73
|
-
|
74
|
+
Traka::Change.latest_version
|
74
75
|
```
|
75
76
|
|
76
77
|
To publish a new version:
|
77
78
|
|
78
79
|
```ruby
|
79
|
-
|
80
|
-
|
81
|
-
|
80
|
+
Traka::Change.latest_version #=> 1
|
81
|
+
Traka::Change.publish_new_version!
|
82
|
+
Traka::Change.latest_version #=> 2
|
82
83
|
```
|
83
84
|
|
84
85
|
## Example
|
@@ -90,35 +91,35 @@ Assuming models called Product and Car exist.
|
|
90
91
|
b = Product.create(:name => "Product 2")
|
91
92
|
c = Car.create(:name => "Car 1")
|
92
93
|
|
93
|
-
|
94
|
-
|
94
|
+
Traka::Change.latest_version #=> 1
|
95
|
+
Traka::Change.staged_changes #=> [Traka::Change<create>, Traka::Change<create>, Traka::Change<create>]
|
95
96
|
|
96
97
|
b.name = "New name"
|
97
98
|
b.save
|
98
99
|
|
99
100
|
# The "update" above is filtered out because we already know to fetch "b" because it's just been created.
|
100
|
-
|
101
|
+
Traka::Change.staged_changes #=> [Traka::Change<create>, Traka::Change<create>, Traka::Change<create>]
|
101
102
|
|
102
|
-
|
103
|
+
Traka::Change.publish_new_version!
|
103
104
|
|
104
|
-
|
105
|
+
Traka::Change.latest_version #=> 2
|
105
106
|
|
106
107
|
b.destroy
|
107
108
|
a.name = "New name"
|
108
109
|
a.save
|
109
110
|
|
110
|
-
|
111
|
-
|
111
|
+
Traka::Change.staged_changes #=> [Traka::Change<destroy>, Traka::Change<update>]
|
112
|
+
Traka::Change.staged_changes.last.get_record #=> a
|
112
113
|
|
113
114
|
a.name = "Another name"
|
114
115
|
a.save
|
115
116
|
|
116
117
|
# The second update above is filtered because we already know "a" has been updated in this changeset.
|
117
|
-
|
118
|
-
|
118
|
+
Traka::Change.staged_changes #=> [Traka::Change<destroy>, Traka::Change<update>]
|
119
|
+
Traka::Change.staged_changes.last.get_record #=> a
|
119
120
|
|
120
121
|
# All interactions with "b" are filtered out because we've created and destroyed it in the same changeset: v1+v2.
|
121
|
-
|
122
|
+
Traka::Change.changes_from(1) #=> [Traka::Change<create>, Traka::Change<create>, Traka::Change<update>]
|
122
123
|
```
|
123
124
|
|
124
125
|
See the unit tests for a bunch more examples.
|
data/lib/traka.rb
CHANGED
data/lib/traka/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -282123,3 +282123,417 @@ Binary data inserted for `string` type on column `code`
|
|
282123
282123
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282124
282124
|
[1m[35m (0.1ms)[0m begin transaction
|
282125
282125
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
282126
|
+
Connecting to database specified by database.yml
|
282127
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282128
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282129
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 24]]
|
282130
|
+
[1m[35m (24.0ms)[0m commit transaction
|
282131
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
282132
|
+
Binary data inserted for `string` type on column `uuid`
|
282133
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "60451203b011700efda4926d016ad510bf74bda4"], ["version", 2]]
|
282134
|
+
Binary data inserted for `string` type on column `code`
|
282135
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "60451203b011700efda4926d016ad510bf74bda4"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282136
|
+
[1m[35m (50.6ms)[0m commit transaction
|
282137
|
+
[1m[36mTraka::Change Load (0.5ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1[0m
|
282138
|
+
[1m[35mTraka::Change Load (0.3ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282139
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282140
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 25]]
|
282141
|
+
[1m[36m (20.2ms)[0m [1mcommit transaction[0m
|
282142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282143
|
+
Binary data inserted for `string` type on column `uuid`
|
282144
|
+
[1m[36mSQL (22.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "698368149053ab6324407ae7d3129f8cfd872349"], ["version", 2]]
|
282145
|
+
Binary data inserted for `string` type on column `code`
|
282146
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "698368149053ab6324407ae7d3129f8cfd872349"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282147
|
+
[1m[36m (19.5ms)[0m [1mcommit transaction[0m
|
282148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282149
|
+
Binary data inserted for `string` type on column `uuid`
|
282150
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "698368149053ab6324407ae7d3129f8cfd872349"], ["version", 2]]
|
282151
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "cheeses" WHERE "cheeses"."id" = ? [["id", 10]]
|
282152
|
+
[1m[36m (8.5ms)[0m [1mcommit transaction[0m
|
282153
|
+
[1m[35mTraka::Change Load (0.4ms)[0m SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
|
282154
|
+
[1m[36mTraka::Change Load (0.3ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282155
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282156
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 26]]
|
282157
|
+
[1m[35m (28.7ms)[0m commit transaction
|
282158
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282159
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 27]]
|
282160
|
+
[1m[36m (7.6ms)[0m [1mcommit transaction[0m
|
282161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282162
|
+
Binary data inserted for `string` type on column `uuid`
|
282163
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "aa36be3709c192b68ff3011e2db61630ed097e80"], ["version", 2]]
|
282164
|
+
Binary data inserted for `string` type on column `code`
|
282165
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "aa36be3709c192b68ff3011e2db61630ed097e80"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282166
|
+
[1m[36m (8.1ms)[0m [1mcommit transaction[0m
|
282167
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282168
|
+
Binary data inserted for `string` type on column `uuid`
|
282169
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "aa36be3709c192b68ff3011e2db61630ed097e80"], ["version", 2]]
|
282170
|
+
[1m[35m (0.1ms)[0m UPDATE "cheeses" SET "name" = 'New Name', "updated_at" = '2014-01-02 05:59:06.304841' WHERE "cheeses"."id" = 11
|
282171
|
+
[1m[36m (8.4ms)[0m [1mcommit transaction[0m
|
282172
|
+
[1m[35mTraka::Change Load (0.3ms)[0m SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
|
282173
|
+
[1m[36mTraka::Change Load (0.2ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282175
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 28]]
|
282176
|
+
[1m[35m (20.8ms)[0m commit transaction
|
282177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282178
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 29]]
|
282179
|
+
[1m[36m (31.6ms)[0m [1mcommit transaction[0m
|
282180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282181
|
+
Binary data inserted for `string` type on column `uuid`
|
282182
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "65623525880abdd37e8470e82ff2e868d8f684fe"], ["version", 2]]
|
282183
|
+
Binary data inserted for `string` type on column `code`
|
282184
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "65623525880abdd37e8470e82ff2e868d8f684fe"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282185
|
+
[1m[36m (14.6ms)[0m [1mcommit transaction[0m
|
282186
|
+
[1m[35mTraka::Change Load (0.2ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282187
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282188
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 30]]
|
282189
|
+
[1m[36m (29.1ms)[0m [1mcommit transaction[0m
|
282190
|
+
[1m[35mTraka::Change Load (0.3ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282192
|
+
Binary data inserted for `string` type on column `uuid`
|
282193
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9a8f97fb7c2e3dae10ff2c8fccb63991c0d0725c"], ["version", 2]]
|
282194
|
+
Binary data inserted for `string` type on column `uuid`
|
282195
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9a8f97fb7c2e3dae10ff2c8fccb63991c0d0725c"]]
|
282196
|
+
[1m[35m (32.7ms)[0m commit transaction
|
282197
|
+
[1m[36mTraka::Change Load (0.5ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1[0m
|
282198
|
+
[1m[35mTraka::Change Load (0.3ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282199
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
282200
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 31]]
|
282201
|
+
[1m[36m (20.1ms)[0m [1mcommit transaction[0m
|
282202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282203
|
+
Binary data inserted for `string` type on column `uuid`
|
282204
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "6b7737f117fb60cb54c0fc1b80d995063236373e"], ["version", 2]]
|
282205
|
+
Binary data inserted for `string` type on column `uuid`
|
282206
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "6b7737f117fb60cb54c0fc1b80d995063236373e"]]
|
282207
|
+
[1m[36m (20.4ms)[0m [1mcommit transaction[0m
|
282208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282209
|
+
Binary data inserted for `string` type on column `uuid`
|
282210
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "6b7737f117fb60cb54c0fc1b80d995063236373e"], ["version", 2]]
|
282211
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "products" WHERE "products"."id" = ? [["id", 10]]
|
282212
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
282213
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
|
282214
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282215
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282216
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 32]]
|
282217
|
+
[1m[35m (8.0ms)[0m commit transaction
|
282218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282219
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 33]]
|
282220
|
+
[1m[36m (14.9ms)[0m [1mcommit transaction[0m
|
282221
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282222
|
+
Binary data inserted for `string` type on column `uuid`
|
282223
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "a4c5ae55b36cc90bb1f1e53d1f70ada6ade633ba"], ["version", 2]]
|
282224
|
+
Binary data inserted for `string` type on column `uuid`
|
282225
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "a4c5ae55b36cc90bb1f1e53d1f70ada6ade633ba"]]
|
282226
|
+
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
282227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282228
|
+
Binary data inserted for `string` type on column `uuid`
|
282229
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "a4c5ae55b36cc90bb1f1e53d1f70ada6ade633ba"], ["version", 2]]
|
282230
|
+
[1m[35m (0.3ms)[0m UPDATE "products" SET "name" = 'New Name', "updated_at" = '2014-01-02 05:59:06.590766' WHERE "products"."id" = 11
|
282231
|
+
[1m[36m (30.8ms)[0m [1mcommit transaction[0m
|
282232
|
+
[1m[35mTraka::Change Load (0.4ms)[0m SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
|
282233
|
+
[1m[36mTraka::Change Load (0.3ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282234
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282235
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 34]]
|
282236
|
+
[1m[35m (11.7ms)[0m commit transaction
|
282237
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282238
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 35]]
|
282239
|
+
[1m[36m (22.5ms)[0m [1mcommit transaction[0m
|
282240
|
+
[1m[35mTraka::Change Load (0.3ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282241
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
282242
|
+
Binary data inserted for `string` type on column `uuid`
|
282243
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "c8a6a7b52973a354b04509ee5bb120f0f0ac96d3"], ["version", 2]]
|
282244
|
+
Binary data inserted for `string` type on column `uuid`
|
282245
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "c8a6a7b52973a354b04509ee5bb120f0f0ac96d3"]]
|
282246
|
+
[1m[35m (26.6ms)[0m commit transaction
|
282247
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
282248
|
+
[1m[35mTraka::Change Load (0.4ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282249
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
282250
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
|
282251
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282252
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
282253
|
+
Binary data inserted for `string` type on column `uuid`
|
282254
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "79ef0c3175672ce84d0484497c8b7533fb7e03f2"], ["version", 2]]
|
282255
|
+
Binary data inserted for `string` type on column `uuid`
|
282256
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "79ef0c3175672ce84d0484497c8b7533fb7e03f2"]]
|
282257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282259
|
+
Binary data inserted for `string` type on column `uuid`
|
282260
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "1bf5758eb86106baca4b9b2130cafb46666bade4"], ["version", 2]]
|
282261
|
+
Binary data inserted for `string` type on column `code`
|
282262
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "1bf5758eb86106baca4b9b2130cafb46666bade4"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282265
|
+
Binary data inserted for `string` type on column `uuid`
|
282266
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "79ef0c3175672ce84d0484497c8b7533fb7e03f2"], ["version", 2]]
|
282267
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "products" WHERE "products"."id" = ? [["id", 13]]
|
282268
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282269
|
+
[1m[35mTraka::Change Load (0.2ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282270
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282271
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282272
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282273
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282274
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282275
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282276
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282277
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282278
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282279
|
+
Binary data inserted for `string` type on column `uuid`
|
282280
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "77808c71bee69906c106aafa6e27eed3d61b79a6"], ["version", 2]]
|
282281
|
+
Binary data inserted for `string` type on column `uuid`
|
282282
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "77808c71bee69906c106aafa6e27eed3d61b79a6"]]
|
282283
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282285
|
+
Binary data inserted for `string` type on column `uuid`
|
282286
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "431c3ad5d7e932cf786ffcea9ddf7d4b3e481f81"], ["version", 2]]
|
282287
|
+
Binary data inserted for `string` type on column `code`
|
282288
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "431c3ad5d7e932cf786ffcea9ddf7d4b3e481f81"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282289
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282290
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282291
|
+
Binary data inserted for `string` type on column `uuid`
|
282292
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "77808c71bee69906c106aafa6e27eed3d61b79a6"], ["version", 2]]
|
282293
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.727910' WHERE "products"."id" = 13[0m
|
282294
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282295
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282296
|
+
Binary data inserted for `string` type on column `uuid`
|
282297
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "77808c71bee69906c106aafa6e27eed3d61b79a6"], ["version", 2]]
|
282298
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "products" SET "name" = 'Another name', "updated_at" = '2014-01-02 05:59:06.729642' WHERE "products"."id" = 13[0m
|
282299
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282300
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282301
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282302
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282303
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
282304
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282305
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282306
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282307
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
|
282308
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282309
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282310
|
+
Binary data inserted for `string` type on column `uuid`
|
282311
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"], ["version", 2]]
|
282312
|
+
Binary data inserted for `string` type on column `uuid`
|
282313
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"]]
|
282314
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282316
|
+
Binary data inserted for `string` type on column `uuid`
|
282317
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "8fb2dbeb769e707ad27f81d064f838d7c36c4bfa"], ["version", 2]]
|
282318
|
+
Binary data inserted for `string` type on column `code`
|
282319
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "8fb2dbeb769e707ad27f81d064f838d7c36c4bfa"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282320
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282321
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282322
|
+
Binary data inserted for `string` type on column `uuid`
|
282323
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"], ["version", 3]]
|
282324
|
+
[1m[35m (0.1ms)[0m UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.738374' WHERE "products"."id" = 13
|
282325
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282326
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282327
|
+
Binary data inserted for `string` type on column `uuid`
|
282328
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "8fb2dbeb769e707ad27f81d064f838d7c36c4bfa"], ["version", 3]]
|
282329
|
+
[1m[35m (0.1ms)[0m UPDATE "cheeses" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.739920' WHERE "cheeses"."id" = 13
|
282330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282331
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282332
|
+
Binary data inserted for `string` type on column `uuid`
|
282333
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"], ["version", 3]]
|
282334
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "products" WHERE "products"."id" = ? [["id", 13]]
|
282335
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282336
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
|
282337
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)[0m
|
282338
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
|
282339
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282340
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282341
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282342
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282343
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282344
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282345
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282346
|
+
Binary data inserted for `string` type on column `uuid`
|
282347
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9f3eea955afaacfd13586360a0eb5885878484a1"], ["version", 2]]
|
282348
|
+
Binary data inserted for `string` type on column `uuid`
|
282349
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9f3eea955afaacfd13586360a0eb5885878484a1"]]
|
282350
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282351
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282352
|
+
Binary data inserted for `string` type on column `uuid`
|
282353
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "6b2a1996262bc4e8e52e798d9953ebbcbfe3d181"], ["version", 2]]
|
282354
|
+
Binary data inserted for `string` type on column `code`
|
282355
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "6b2a1996262bc4e8e52e798d9953ebbcbfe3d181"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282356
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282357
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282358
|
+
Binary data inserted for `string` type on column `uuid`
|
282359
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9f3eea955afaacfd13586360a0eb5885878484a1"], ["version", 3]]
|
282360
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.750309' WHERE "products"."id" = 13[0m
|
282361
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282362
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282363
|
+
Binary data inserted for `string` type on column `uuid`
|
282364
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9f3eea955afaacfd13586360a0eb5885878484a1"], ["version", 3]]
|
282365
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "products" SET "name" = 'Another name', "updated_at" = '2014-01-02 05:59:06.751797' WHERE "products"."id" = 13[0m
|
282366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282367
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282368
|
+
Binary data inserted for `string` type on column `uuid`
|
282369
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "9f3eea955afaacfd13586360a0eb5885878484a1"], ["version", 3]]
|
282370
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "products" SET "name" = 'And another name', "updated_at" = '2014-01-02 05:59:06.753206' WHERE "products"."id" = 13[0m
|
282371
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282372
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282373
|
+
Binary data inserted for `string` type on column `uuid`
|
282374
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "6b2a1996262bc4e8e52e798d9953ebbcbfe3d181"], ["version", 3]]
|
282375
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "cheeses" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.754649' WHERE "cheeses"."id" = 13[0m
|
282376
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282377
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)[0m
|
282378
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
|
282379
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)[0m
|
282380
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
282381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282382
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282383
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282384
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
|
282385
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282386
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282387
|
+
Binary data inserted for `string` type on column `uuid`
|
282388
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
|
282389
|
+
Binary data inserted for `string` type on column `uuid`
|
282390
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "5a98e237ebd7f072c72611fd667e2de3112f2934"]]
|
282391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282393
|
+
Binary data inserted for `string` type on column `uuid`
|
282394
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "961f5d14d99e469a7dace5b005104b06f983536d"], ["version", 2]]
|
282395
|
+
Binary data inserted for `string` type on column `code`
|
282396
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "961f5d14d99e469a7dace5b005104b06f983536d"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282397
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282398
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282399
|
+
Binary data inserted for `string` type on column `uuid`
|
282400
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
|
282401
|
+
[1m[35m (0.1ms)[0m UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.763509' WHERE "products"."id" = 13
|
282402
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282404
|
+
Binary data inserted for `string` type on column `uuid`
|
282405
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
|
282406
|
+
[1m[35m (0.1ms)[0m UPDATE "products" SET "name" = 'Another name', "updated_at" = '2014-01-02 05:59:06.764999' WHERE "products"."id" = 13
|
282407
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282408
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282409
|
+
Binary data inserted for `string` type on column `uuid`
|
282410
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
|
282411
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "products" WHERE "products"."id" = ? [["id", 13]]
|
282412
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282414
|
+
Binary data inserted for `string` type on column `uuid`
|
282415
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "961f5d14d99e469a7dace5b005104b06f983536d"], ["version", 2]]
|
282416
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "cheeses" WHERE "cheeses"."id" = ? [["id", 13]]
|
282417
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282418
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282419
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282420
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282421
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282423
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282424
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282425
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282426
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282427
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282428
|
+
Binary data inserted for `string` type on column `uuid`
|
282429
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "aa113f54157e0c04dd1b53336622c78bbe045c85"], ["version", 2]]
|
282430
|
+
Binary data inserted for `string` type on column `uuid`
|
282431
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "aa113f54157e0c04dd1b53336622c78bbe045c85"]]
|
282432
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282434
|
+
Binary data inserted for `string` type on column `uuid`
|
282435
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "660b2bcd37fe43107946274ffd8de8f04a82fef0"], ["version", 2]]
|
282436
|
+
Binary data inserted for `string` type on column `code`
|
282437
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "660b2bcd37fe43107946274ffd8de8f04a82fef0"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282438
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282439
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282441
|
+
Binary data inserted for `string` type on column `uuid`
|
282442
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "25cd00460d3c450edcd1e5f491e067fa8ea3b3f3"], ["version", 3]]
|
282443
|
+
Binary data inserted for `string` type on column `uuid`
|
282444
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product B"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "25cd00460d3c450edcd1e5f491e067fa8ea3b3f3"]]
|
282445
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282446
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
|
282447
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)[0m
|
282448
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 1 AND version <= 3)
|
282449
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 1 AND version <= 3)[0m
|
282450
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 1 AND version <= 3)
|
282451
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282452
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282453
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282454
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282455
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282456
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282457
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282458
|
+
Binary data inserted for `string` type on column `uuid`
|
282459
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "4bdcd841e8e85e550b316e9d10fe27798d16dd97"], ["version", 2]]
|
282460
|
+
Binary data inserted for `string` type on column `uuid`
|
282461
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "4bdcd841e8e85e550b316e9d10fe27798d16dd97"]]
|
282462
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282463
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282464
|
+
Binary data inserted for `string` type on column `uuid`
|
282465
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "29654b9bfa108148f3de4b15a602d94a724f0b08"], ["version", 2]]
|
282466
|
+
Binary data inserted for `string` type on column `code`
|
282467
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "29654b9bfa108148f3de4b15a602d94a724f0b08"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282468
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282470
|
+
Binary data inserted for `string` type on column `uuid`
|
282471
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "update"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "4bdcd841e8e85e550b316e9d10fe27798d16dd97"], ["version", 3]]
|
282472
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.786794' WHERE "products"."id" = 13[0m
|
282473
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282475
|
+
Binary data inserted for `string` type on column `uuid`
|
282476
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "destroy"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "29654b9bfa108148f3de4b15a602d94a724f0b08"], ["version", 3]]
|
282477
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "cheeses" WHERE "cheeses"."id" = ?[0m [["id", 13]]
|
282478
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282479
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)[0m
|
282480
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
|
282481
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)[0m
|
282482
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
282483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282484
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes"
|
282485
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
282486
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
|
282487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282488
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282489
|
+
Binary data inserted for `string` type on column `uuid`
|
282490
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "a3a34cba03a8d2963973125429a31ae52fffe04c"], ["version", 2]]
|
282491
|
+
Binary data inserted for `string` type on column `uuid`
|
282492
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "a3a34cba03a8d2963973125429a31ae52fffe04c"]]
|
282493
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282494
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282495
|
+
Binary data inserted for `string` type on column `uuid`
|
282496
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?)[0m [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "f89193af9150a2d5f73abbececc886c0c0440960"], ["version", 2]]
|
282497
|
+
Binary data inserted for `string` type on column `code`
|
282498
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["code", "f89193af9150a2d5f73abbececc886c0c0440960"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282500
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282501
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282502
|
+
[1m[35mTraka::Change Load (0.1ms)[0m SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
|
282503
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282504
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282505
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282506
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282507
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282508
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282509
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
282510
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282511
|
+
[1m[36mTraka::Change Load (0.3ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282512
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
282513
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282514
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
282515
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
282516
|
+
Binary data inserted for `string` type on column `uuid`
|
282517
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "816f18789950cacead3746af7dc20f03fd769358"], ["version", 2]]
|
282518
|
+
Binary data inserted for `string` type on column `uuid`
|
282519
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "products" ("created_at", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Product A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "816f18789950cacead3746af7dc20f03fd769358"]]
|
282520
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
282521
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
282522
|
+
Binary data inserted for `string` type on column `uuid`
|
282523
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "traka_changes" ("action_type", "created_at", "klass", "updated_at", "uuid", "version") VALUES (?, ?, ?, ?, ?, ?) [["action_type", "create"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["klass", "Cheese"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "d5439106814b7417ab9e2771c411cef0ad2fe01d"], ["version", 2]]
|
282524
|
+
Binary data inserted for `string` type on column `code`
|
282525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "d5439106814b7417ab9e2771c411cef0ad2fe01d"], ["created_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["name", "Cheese A"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00]]
|
282526
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282527
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282528
|
+
[1m[35mProduct Load (0.2ms)[0m SELECT "products".* FROM "products" WHERE "products"."uuid" = '816f18789950cacead3746af7dc20f03fd769358' LIMIT 1
|
282529
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)[0m
|
282530
|
+
[1m[35mCheese Load (0.1ms)[0m SELECT "cheeses".* FROM "cheeses" WHERE "cheeses"."code" = 'd5439106814b7417ab9e2771c411cef0ad2fe01d' LIMIT 1
|
282531
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282532
|
+
[1m[35m (0.0ms)[0m begin transaction
|
282533
|
+
[1m[36mTraka::Change Load (0.1ms)[0m [1mSELECT "traka_changes".* FROM "traka_changes" [0m
|
282534
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
282535
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "traka_changes" WHERE "traka_changes"."id" = ?[0m [["id", 36]]
|
282536
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
282537
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
282538
|
+
[1m[35m (0.1ms)[0m begin transaction
|
282539
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -58,7 +58,6 @@ files:
|
|
58
58
|
- lib/generators/traka/templates/migration.rb
|
59
59
|
- lib/tasks/traka_tasks.rake
|
60
60
|
- lib/traka.rb
|
61
|
-
- lib/templates/active_record/model/model.rb
|
62
61
|
- MIT-LICENSE
|
63
62
|
- Rakefile
|
64
63
|
- README.md
|