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 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
- TrakaChange.staged_changes #=> [traka_change_record, ...]
42
+ Traka::Change.staged_changes #=> [traka_change_record, ...]
42
43
  ```
43
44
 
44
- Each TrakaChange record can be resolved to the original record (except "destroy"):
45
+ Each Traka::Change record can be resolved to the original record (except "destroy"):
45
46
 
46
47
  ```ruby
47
- TrakaChange.staged_changes.first.get_record #=> record
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
- TrakaChange.changes_from(2) #=> [traka_change_record, ...]
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
- TrakaChange.changes_in_range(2, 4) #=> [traka_change_record, ...]
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
- TrakaChange.staged_changes(false) #=> [traka_change_record, ...]
66
- TrakaChange.changes_from(2, false) #=> [traka_change_record, ...]
67
- TrakaChange.changes_in_range(2, 4, false) #=> [traka_change_record, ...]
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
- TrakaChange.latest_version
74
+ Traka::Change.latest_version
74
75
  ```
75
76
 
76
77
  To publish a new version:
77
78
 
78
79
  ```ruby
79
- TrakaChange.latest_version #=> 1
80
- TrakaChange.publish_new_version!
81
- TrakaChange.latest_version #=> 2
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
- TrakaChange.latest_version #=> 1
94
- TrakaChange.staged_changes #=> [TrakaChange<create>, TrakaChange<create>, TrakaChange<create>]
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
- TrakaChange.staged_changes #=> [TrakaChange<create>, TrakaChange<create>, TrakaChange<create>]
101
+ Traka::Change.staged_changes #=> [Traka::Change<create>, Traka::Change<create>, Traka::Change<create>]
101
102
 
102
- TrakaChange.publish_new_version!
103
+ Traka::Change.publish_new_version!
103
104
 
104
- TrakaChange.latest_version #=> 2
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
- TrakaChange.staged_changes #=> [TrakaChange<destroy>, TrakaChange<update>]
111
- TrakaChange.staged_changes.last.get_record #=> a
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
- TrakaChange.staged_changes #=> [TrakaChange<destroy>, TrakaChange<update>]
118
- TrakaChange.staged_changes.last.get_record #=> a
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
- TrakaChange.changes_from(1) #=> [TrakaChange<create>, TrakaChange<create>, TrakaChange<update>]
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.
@@ -2,9 +2,4 @@ require 'traka/is_trakable'
2
2
  require 'traka/change'
3
3
 
4
4
  module Traka
5
- class Railtie < Rails::Railtie
6
- config.app_generators do |g|
7
- g.templates.unshift File::expand_path('../templates', __FILE__)
8
- end
9
- end
10
5
  end
@@ -1,3 +1,3 @@
1
1
  module Traka
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -282123,3 +282123,417 @@ Binary data inserted for `string` type on column `code`
282123
282123
   (0.1ms) rollback transaction
282124
282124
   (0.1ms) begin transaction
282125
282125
   (0.0ms) rollback transaction
282126
+ Connecting to database specified by database.yml
282127
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282128
+  (0.0ms) begin transaction
282129
+ SQL (2.7ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 24]]
282130
+  (24.0ms) commit transaction
282131
+  (0.2ms) begin transaction
282132
+ Binary data inserted for `string` type on column `uuid`
282133
+ SQL (1.0ms) 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
+ SQL (0.2ms) INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (50.6ms) commit transaction
282137
+ Traka::Change Load (0.5ms) SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
282138
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes"
282139
+  (0.0ms) begin transaction
282140
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 25]]
282141
+  (20.2ms) commit transaction
282142
+  (0.1ms) begin transaction
282143
+ Binary data inserted for `string` type on column `uuid`
282144
+ SQL (22.2ms) 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", "698368149053ab6324407ae7d3129f8cfd872349"], ["version", 2]]
282145
+ Binary data inserted for `string` type on column `code`
282146
+ SQL (0.2ms) 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
+  (19.5ms) commit transaction
282148
+  (0.1ms) begin transaction
282149
+ Binary data inserted for `string` type on column `uuid`
282150
+ SQL (0.9ms) 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", "698368149053ab6324407ae7d3129f8cfd872349"], ["version", 2]]
282151
+ SQL (0.2ms) DELETE FROM "cheeses" WHERE "cheeses"."id" = ? [["id", 10]]
282152
+  (8.5ms) commit transaction
282153
+ Traka::Change Load (0.4ms) SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
282154
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes" 
282155
+  (0.1ms) begin transaction
282156
+ SQL (0.2ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 26]]
282157
+  (28.7ms) commit transaction
282158
+  (0.1ms) begin transaction
282159
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 27]]
282160
+  (7.6ms) commit transaction
282161
+  (0.1ms) begin transaction
282162
+ Binary data inserted for `string` type on column `uuid`
282163
+ SQL (0.7ms) 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", "aa36be3709c192b68ff3011e2db61630ed097e80"], ["version", 2]]
282164
+ Binary data inserted for `string` type on column `code`
282165
+ SQL (0.1ms) 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
+  (8.1ms) commit transaction
282167
+  (0.0ms) begin transaction
282168
+ Binary data inserted for `string` type on column `uuid`
282169
+ SQL (0.3ms) 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", "aa36be3709c192b68ff3011e2db61630ed097e80"], ["version", 2]]
282170
+  (0.1ms) UPDATE "cheeses" SET "name" = 'New Name', "updated_at" = '2014-01-02 05:59:06.304841' WHERE "cheeses"."id" = 11
282171
+  (8.4ms) commit transaction
282172
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
282173
+ Traka::Change Load (0.2ms) SELECT "traka_changes".* FROM "traka_changes" 
282174
+  (0.1ms) begin transaction
282175
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 28]]
282176
+  (20.8ms) commit transaction
282177
+  (0.1ms) begin transaction
282178
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 29]]
282179
+  (31.6ms) commit transaction
282180
+  (0.1ms) begin transaction
282181
+ Binary data inserted for `string` type on column `uuid`
282182
+ SQL (0.7ms) 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", "65623525880abdd37e8470e82ff2e868d8f684fe"], ["version", 2]]
282183
+ Binary data inserted for `string` type on column `code`
282184
+ SQL (0.1ms) 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
+  (14.6ms) commit transaction
282186
+ Traka::Change Load (0.2ms) SELECT "traka_changes".* FROM "traka_changes"
282187
+  (0.1ms) begin transaction
282188
+ SQL (0.2ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 30]]
282189
+  (29.1ms) commit transaction
282190
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes"
282191
+  (0.1ms) begin transaction
282192
+ Binary data inserted for `string` type on column `uuid`
282193
+ SQL (0.3ms) 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
+ SQL (0.2ms) 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", "9a8f97fb7c2e3dae10ff2c8fccb63991c0d0725c"]]
282196
+  (32.7ms) commit transaction
282197
+ Traka::Change Load (0.5ms) SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
282198
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes"
282199
+  (0.2ms) begin transaction
282200
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 31]]
282201
+  (20.1ms) commit transaction
282202
+  (0.1ms) begin transaction
282203
+ Binary data inserted for `string` type on column `uuid`
282204
+ SQL (0.8ms) 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", "6b7737f117fb60cb54c0fc1b80d995063236373e"], ["version", 2]]
282205
+ Binary data inserted for `string` type on column `uuid`
282206
+ SQL (0.4ms) 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
+  (20.4ms) commit transaction
282208
+  (0.1ms) begin transaction
282209
+ Binary data inserted for `string` type on column `uuid`
282210
+ SQL (0.3ms) 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", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "6b7737f117fb60cb54c0fc1b80d995063236373e"], ["version", 2]]
282211
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 10]]
282212
+  (8.3ms) commit transaction
282213
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
282214
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282215
+  (0.0ms) begin transaction
282216
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 32]]
282217
+  (8.0ms) commit transaction
282218
+  (0.1ms) begin transaction
282219
+ SQL (0.2ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 33]]
282220
+  (14.9ms) commit transaction
282221
+  (0.1ms) begin transaction
282222
+ Binary data inserted for `string` type on column `uuid`
282223
+ SQL (0.8ms) 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", "a4c5ae55b36cc90bb1f1e53d1f70ada6ade633ba"], ["version", 2]]
282224
+ Binary data inserted for `string` type on column `uuid`
282225
+ SQL (0.4ms) 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
+  (8.0ms) commit transaction
282227
+  (0.1ms) begin transaction
282228
+ Binary data inserted for `string` type on column `uuid`
282229
+ SQL (0.9ms) 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", "a4c5ae55b36cc90bb1f1e53d1f70ada6ade633ba"], ["version", 2]]
282230
+  (0.3ms) UPDATE "products" SET "name" = 'New Name', "updated_at" = '2014-01-02 05:59:06.590766' WHERE "products"."id" = 11
282231
+  (30.8ms) commit transaction
282232
+ Traka::Change Load (0.4ms) SELECT "traka_changes".* FROM "traka_changes" ORDER BY "traka_changes"."id" DESC LIMIT 1
282233
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes" 
282234
+  (0.1ms) begin transaction
282235
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 34]]
282236
+  (11.7ms) commit transaction
282237
+  (0.1ms) begin transaction
282238
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 35]]
282239
+  (22.5ms) commit transaction
282240
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes"
282241
+  (0.2ms) begin transaction
282242
+ Binary data inserted for `string` type on column `uuid`
282243
+ SQL (0.7ms) 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
+ SQL (0.4ms) 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", "c8a6a7b52973a354b04509ee5bb120f0f0ac96d3"]]
282246
+  (26.6ms) commit transaction
282247
+  (0.2ms) begin transaction
282248
+ Traka::Change Load (0.4ms) SELECT "traka_changes".* FROM "traka_changes"
282249
+  (0.1ms) SAVEPOINT active_record_1
282250
+ SQL (0.3ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
282252
+  (0.1ms) SAVEPOINT active_record_1
282253
+ Binary data inserted for `string` type on column `uuid`
282254
+ SQL (0.8ms) 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", "79ef0c3175672ce84d0484497c8b7533fb7e03f2"], ["version", 2]]
282255
+ Binary data inserted for `string` type on column `uuid`
282256
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282258
+  (0.0ms) SAVEPOINT active_record_1
282259
+ Binary data inserted for `string` type on column `uuid`
282260
+ SQL (0.2ms) 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", "1bf5758eb86106baca4b9b2130cafb46666bade4"], ["version", 2]]
282261
+ Binary data inserted for `string` type on column `code`
282262
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282264
+  (0.0ms) SAVEPOINT active_record_1
282265
+ Binary data inserted for `string` type on column `uuid`
282266
+ SQL (0.2ms) 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", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "79ef0c3175672ce84d0484497c8b7533fb7e03f2"], ["version", 2]]
282267
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 13]]
282268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282269
+ Traka::Change Load (0.2ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282270
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282271
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282272
+  (0.1ms) rollback transaction
282273
+  (0.0ms) begin transaction
282274
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282275
+  (0.0ms) SAVEPOINT active_record_1
282276
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282278
+  (0.0ms) SAVEPOINT active_record_1
282279
+ Binary data inserted for `string` type on column `uuid`
282280
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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", "77808c71bee69906c106aafa6e27eed3d61b79a6"]]
282283
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282284
+  (0.0ms) SAVEPOINT active_record_1
282285
+ Binary data inserted for `string` type on column `uuid`
282286
+ SQL (0.2ms) 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
+ SQL (0.1ms) INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282290
+  (0.0ms) SAVEPOINT active_record_1
282291
+ Binary data inserted for `string` type on column `uuid`
282292
+ SQL (0.1ms) 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
+  (0.1ms) UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.727910' WHERE "products"."id" = 13
282294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282295
+  (0.0ms) SAVEPOINT active_record_1
282296
+ Binary data inserted for `string` type on column `uuid`
282297
+ SQL (0.2ms) 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
+  (0.1ms) UPDATE "products" SET "name" = 'Another name', "updated_at" = '2014-01-02 05:59:06.729642' WHERE "products"."id" = 13
282299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282300
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282301
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282302
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282303
+  (0.1ms) rollback transaction
282304
+  (0.0ms) begin transaction
282305
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes"
282306
+  (0.0ms) SAVEPOINT active_record_1
282307
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282309
+  (0.0ms) SAVEPOINT active_record_1
282310
+ Binary data inserted for `string` type on column `uuid`
282311
+ SQL (0.2ms) 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", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"], ["version", 2]]
282312
+ Binary data inserted for `string` type on column `uuid`
282313
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282315
+  (0.0ms) SAVEPOINT active_record_1
282316
+ Binary data inserted for `string` type on column `uuid`
282317
+ SQL (0.2ms) 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", "8fb2dbeb769e707ad27f81d064f838d7c36c4bfa"], ["version", 2]]
282318
+ Binary data inserted for `string` type on column `code`
282319
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282321
+  (0.0ms) SAVEPOINT active_record_1
282322
+ Binary data inserted for `string` type on column `uuid`
282323
+ SQL (0.1ms) 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", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"], ["version", 3]]
282324
+  (0.1ms) UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.738374' WHERE "products"."id" = 13
282325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282326
+  (0.0ms) SAVEPOINT active_record_1
282327
+ Binary data inserted for `string` type on column `uuid`
282328
+ SQL (0.1ms) 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", "8fb2dbeb769e707ad27f81d064f838d7c36c4bfa"], ["version", 3]]
282329
+  (0.1ms) UPDATE "cheeses" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.739920' WHERE "cheeses"."id" = 13
282330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282331
+  (0.0ms) SAVEPOINT active_record_1
282332
+ Binary data inserted for `string` type on column `uuid`
282333
+ SQL (0.1ms) 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", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "2cfc58e3e2b468aa380c96118bec45c5abbd031c"], ["version", 3]]
282334
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 13]]
282335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282336
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282337
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282338
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282339
+  (0.1ms) rollback transaction
282340
+  (0.0ms) begin transaction
282341
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282342
+  (0.0ms) SAVEPOINT active_record_1
282343
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282345
+  (0.0ms) SAVEPOINT active_record_1
282346
+ Binary data inserted for `string` type on column `uuid`
282347
+ SQL (0.3ms) 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
+ SQL (0.1ms) 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", "9f3eea955afaacfd13586360a0eb5885878484a1"]]
282350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282351
+  (0.0ms) SAVEPOINT active_record_1
282352
+ Binary data inserted for `string` type on column `uuid`
282353
+ SQL (0.2ms) 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
+ SQL (0.2ms) INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282357
+  (0.0ms) SAVEPOINT active_record_1
282358
+ Binary data inserted for `string` type on column `uuid`
282359
+ SQL (0.2ms) 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
+  (0.1ms) UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.750309' WHERE "products"."id" = 13
282361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282362
+  (0.0ms) SAVEPOINT active_record_1
282363
+ Binary data inserted for `string` type on column `uuid`
282364
+ SQL (0.1ms) 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
+  (0.1ms) UPDATE "products" SET "name" = 'Another name', "updated_at" = '2014-01-02 05:59:06.751797' WHERE "products"."id" = 13
282366
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282367
+  (0.0ms) SAVEPOINT active_record_1
282368
+ Binary data inserted for `string` type on column `uuid`
282369
+ SQL (0.1ms) 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
+  (0.1ms) UPDATE "products" SET "name" = 'And another name', "updated_at" = '2014-01-02 05:59:06.753206' WHERE "products"."id" = 13
282371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282372
+  (0.0ms) SAVEPOINT active_record_1
282373
+ Binary data inserted for `string` type on column `uuid`
282374
+ SQL (0.1ms) 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
+  (0.1ms) UPDATE "cheeses" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.754649' WHERE "cheeses"."id" = 13
282376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282377
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282378
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282379
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282380
+  (0.1ms) rollback transaction
282381
+  (0.0ms) begin transaction
282382
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes"
282383
+  (0.0ms) SAVEPOINT active_record_1
282384
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282386
+  (0.0ms) SAVEPOINT active_record_1
282387
+ Binary data inserted for `string` type on column `uuid`
282388
+ SQL (0.2ms) 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", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
282389
+ Binary data inserted for `string` type on column `uuid`
282390
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282392
+  (0.0ms) SAVEPOINT active_record_1
282393
+ Binary data inserted for `string` type on column `uuid`
282394
+ SQL (0.1ms) 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", "961f5d14d99e469a7dace5b005104b06f983536d"], ["version", 2]]
282395
+ Binary data inserted for `string` type on column `code`
282396
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282398
+  (0.0ms) SAVEPOINT active_record_1
282399
+ Binary data inserted for `string` type on column `uuid`
282400
+ SQL (0.1ms) 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", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
282401
+  (0.1ms) UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.763509' WHERE "products"."id" = 13
282402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282403
+  (0.0ms) SAVEPOINT active_record_1
282404
+ Binary data inserted for `string` type on column `uuid`
282405
+ SQL (0.1ms) 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", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
282406
+  (0.1ms) UPDATE "products" SET "name" = 'Another name', "updated_at" = '2014-01-02 05:59:06.764999' WHERE "products"."id" = 13
282407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282408
+  (0.0ms) SAVEPOINT active_record_1
282409
+ Binary data inserted for `string` type on column `uuid`
282410
+ SQL (0.1ms) 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", "Product"], ["updated_at", Thu, 02 Jan 2014 05:59:06 UTC +00:00], ["uuid", "5a98e237ebd7f072c72611fd667e2de3112f2934"], ["version", 2]]
282411
+ SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 13]]
282412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282413
+  (0.0ms) SAVEPOINT active_record_1
282414
+ Binary data inserted for `string` type on column `uuid`
282415
+ SQL (0.1ms) 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", "961f5d14d99e469a7dace5b005104b06f983536d"], ["version", 2]]
282416
+ SQL (0.1ms) DELETE FROM "cheeses" WHERE "cheeses"."id" = ? [["id", 13]]
282417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282418
+  (0.1ms) SELECT COUNT(*) FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282419
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282420
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282421
+  (0.1ms) rollback transaction
282422
+  (0.0ms) begin transaction
282423
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282424
+  (0.0ms) SAVEPOINT active_record_1
282425
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282427
+  (0.0ms) SAVEPOINT active_record_1
282428
+ Binary data inserted for `string` type on column `uuid`
282429
+ SQL (0.2ms) 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
+ SQL (0.1ms) 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", "aa113f54157e0c04dd1b53336622c78bbe045c85"]]
282432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282433
+  (0.0ms) SAVEPOINT active_record_1
282434
+ Binary data inserted for `string` type on column `uuid`
282435
+ SQL (0.1ms) 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
+ SQL (0.3ms) INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282439
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282440
+  (0.0ms) SAVEPOINT active_record_1
282441
+ Binary data inserted for `string` type on column `uuid`
282442
+ SQL (0.2ms) 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", "25cd00460d3c450edcd1e5f491e067fa8ea3b3f3"], ["version", 3]]
282443
+ Binary data inserted for `string` type on column `uuid`
282444
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282446
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282447
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282448
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 1 AND version <= 3)
282449
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 1 AND version <= 3)
282450
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 1 AND version <= 3)
282451
+  (0.1ms) rollback transaction
282452
+  (0.0ms) begin transaction
282453
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282454
+  (0.0ms) SAVEPOINT active_record_1
282455
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282457
+  (0.0ms) SAVEPOINT active_record_1
282458
+ Binary data inserted for `string` type on column `uuid`
282459
+ SQL (0.2ms) 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
+ SQL (0.2ms) 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", "4bdcd841e8e85e550b316e9d10fe27798d16dd97"]]
282462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282463
+  (0.0ms) SAVEPOINT active_record_1
282464
+ Binary data inserted for `string` type on column `uuid`
282465
+ SQL (0.1ms) 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
+ SQL (0.1ms) INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282469
+  (0.0ms) SAVEPOINT active_record_1
282470
+ Binary data inserted for `string` type on column `uuid`
282471
+ SQL (0.1ms) 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
+  (0.1ms) UPDATE "products" SET "name" = 'New name', "updated_at" = '2014-01-02 05:59:06.786794' WHERE "products"."id" = 13
282473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282474
+  (0.0ms) SAVEPOINT active_record_1
282475
+ Binary data inserted for `string` type on column `uuid`
282476
+ SQL (0.1ms) 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
+ SQL (0.1ms) DELETE FROM "cheeses" WHERE "cheeses"."id" = ? [["id", 13]]
282478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282479
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282480
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282481
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 3 AND version <= 3)
282482
+  (0.1ms) rollback transaction
282483
+  (0.0ms) begin transaction
282484
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes"
282485
+  (0.0ms) SAVEPOINT active_record_1
282486
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282487
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282488
+  (0.0ms) SAVEPOINT active_record_1
282489
+ Binary data inserted for `string` type on column `uuid`
282490
+ SQL (0.2ms) 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", "a3a34cba03a8d2963973125429a31ae52fffe04c"], ["version", 2]]
282491
+ Binary data inserted for `string` type on column `uuid`
282492
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282494
+  (0.0ms) SAVEPOINT active_record_1
282495
+ Binary data inserted for `string` type on column `uuid`
282496
+ SQL (0.1ms) 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", "f89193af9150a2d5f73abbececc886c0c0440960"], ["version", 2]]
282497
+ Binary data inserted for `string` type on column `code`
282498
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282500
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282501
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282502
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282503
+  (0.1ms) rollback transaction
282504
+  (0.0ms) begin transaction
282505
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282506
+  (0.0ms) SAVEPOINT active_record_1
282507
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282509
+  (0.2ms) rollback transaction
282510
+  (0.1ms) begin transaction
282511
+ Traka::Change Load (0.3ms) SELECT "traka_changes".* FROM "traka_changes" 
282512
+  (0.1ms) SAVEPOINT active_record_1
282513
+ SQL (0.2ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
282515
+  (0.1ms) SAVEPOINT active_record_1
282516
+ Binary data inserted for `string` type on column `uuid`
282517
+ SQL (0.4ms) 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
+ SQL (0.5ms) 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", "816f18789950cacead3746af7dc20f03fd769358"]]
282520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
282521
+  (0.1ms) SAVEPOINT active_record_1
282522
+ Binary data inserted for `string` type on column `uuid`
282523
+ SQL (0.2ms) 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
+ SQL (0.2ms) INSERT INTO "cheeses" ("code", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282527
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282528
+ Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."uuid" = '816f18789950cacead3746af7dc20f03fd769358' LIMIT 1
282529
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" WHERE (version >= 2 AND version <= 2)
282530
+ Cheese Load (0.1ms) SELECT "cheeses".* FROM "cheeses" WHERE "cheeses"."code" = 'd5439106814b7417ab9e2771c411cef0ad2fe01d' LIMIT 1
282531
+  (0.1ms) rollback transaction
282532
+  (0.0ms) begin transaction
282533
+ Traka::Change Load (0.1ms) SELECT "traka_changes".* FROM "traka_changes" 
282534
+  (0.0ms) SAVEPOINT active_record_1
282535
+ SQL (0.1ms) DELETE FROM "traka_changes" WHERE "traka_changes"."id" = ? [["id", 36]]
282536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282537
+  (0.1ms) rollback transaction
282538
+  (0.1ms) begin transaction
282539
+  (0.0ms) rollback transaction
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.2
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
@@ -1,5 +0,0 @@
1
- class TrakaChange < ActiveRecord::Base
2
- attr_accessible :klass, :action_type, :uuid, :version
3
-
4
- is_traka
5
- end