views 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/lib/generators/views/templates/view.sql +0 -0
  5. data/lib/generators/views/view_generator.rb +15 -0
  6. data/lib/tasks/views.rake +7 -0
  7. data/lib/views/version.rb +3 -0
  8. data/lib/views.rb +52 -0
  9. data/test/dummy/Rakefile +5 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  12. data/test/dummy/app/controllers/application_controller.rb +5 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/product.rb +2 -0
  15. data/test/dummy/app/views/layouts/application.html.erb +12 -0
  16. data/test/dummy/bin/bundle +3 -0
  17. data/test/dummy/bin/rails +4 -0
  18. data/test/dummy/bin/rake +4 -0
  19. data/test/dummy/bin/setup +29 -0
  20. data/test/dummy/config/application.rb +25 -0
  21. data/test/dummy/config/boot.rb +5 -0
  22. data/test/dummy/config/database.yml +10 -0
  23. data/test/dummy/config/database.yml.travis +12 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +41 -0
  26. data/test/dummy/config/environments/production.rb +79 -0
  27. data/test/dummy/config/environments/test.rb +42 -0
  28. data/test/dummy/config/initializers/assets.rb +11 -0
  29. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  31. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  32. data/test/dummy/config/initializers/inflections.rb +16 -0
  33. data/test/dummy/config/initializers/mime_types.rb +4 -0
  34. data/test/dummy/config/initializers/session_store.rb +3 -0
  35. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  36. data/test/dummy/config/locales/en.yml +23 -0
  37. data/test/dummy/config/routes.rb +56 -0
  38. data/test/dummy/config/secrets.yml +22 -0
  39. data/test/dummy/config.ru +4 -0
  40. data/test/dummy/db/migrate/20161017172847_create_products.rb +10 -0
  41. data/test/dummy/db/schema.rb +26 -0
  42. data/test/dummy/db/views/guitars.sql +7 -0
  43. data/test/dummy/log/development.log +68 -0
  44. data/test/dummy/log/test.log +1138 -0
  45. data/test/dummy/public/404.html +67 -0
  46. data/test/dummy/public/422.html +67 -0
  47. data/test/dummy/public/500.html +66 -0
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/generators_test.rb +19 -0
  50. data/test/tasks_test.rb +28 -0
  51. data/test/test_helper.rb +14 -0
  52. metadata +185 -0
@@ -0,0 +1,1138 @@
1
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (177.5ms) DROP DATABASE IF EXISTS "slugs_test"
3
+  (414.3ms) CREATE DATABASE "slugs_test" ENCODING = 'utf8'
4
+  (181.4ms) DROP DATABASE IF EXISTS "sql_views_test"
5
+  (402.8ms) CREATE DATABASE "sql_views_test" ENCODING = 'utf8'
6
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
7
+  (3.7ms) CREATE TABLE "users" ("id" serial primary key, "name" character varying, "enabled" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
9
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+  (0.2ms) SELECT version FROM "schema_migrations"
11
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
12
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+  (0.3ms) BEGIN
14
+ ----------------------
15
+ ViewsTest: test_update
16
+ ----------------------
17
+  (0.1ms) SAVEPOINT active_record_1
18
+ SQL (0.5ms) INSERT INTO "users" ("name", "enabled", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "John"], ["enabled", "t"], ["created_at", "2016-10-17 17:41:06.569048"], ["updated_at", "2016-10-17 17:41:06.569048"]]
19
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20
+  (0.1ms) SAVEPOINT active_record_1
21
+ SQL (0.2ms) INSERT INTO "users" ("name", "enabled", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Mike"], ["enabled", "f"], ["created_at", "2016-10-17 17:41:06.573626"], ["updated_at", "2016-10-17 17:41:06.573626"]]
22
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23
+  (18.2ms) DROP VIEW IF EXISTS enabled_users
24
+  (6.7ms) CREATE VIEW enabled_users AS
25
+
26
+ SELECT
27
+ users.name
28
+ FROM
29
+ users
30
+ WHERE
31
+ users.enabled = 1
32
+
33
+  (0.1ms) ROLLBACK
34
+  (180.0ms) DROP DATABASE IF EXISTS "sql_views_test"
35
+  (361.0ms) CREATE DATABASE "sql_views_test" ENCODING = 'utf8'
36
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
37
+  (3.9ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
38
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
39
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40
+  (0.3ms) SELECT version FROM "schema_migrations"
41
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
42
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+  (0.2ms) BEGIN
44
+ ----------------------
45
+ ViewsTest: test_update
46
+ ----------------------
47
+  (0.1ms) SAVEPOINT active_record_1
48
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:45:43.742379"], ["updated_at", "2016-10-17 17:45:43.742379"]]
49
+  (0.2ms) RELEASE SAVEPOINT active_record_1
50
+  (0.2ms) SAVEPOINT active_record_1
51
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:45:43.747000"], ["updated_at", "2016-10-17 17:45:43.747000"]]
52
+  (0.2ms) RELEASE SAVEPOINT active_record_1
53
+  (0.3ms) DROP VIEW IF EXISTS guitars
54
+  (1.3ms) CREATE VIEW guitars AS
55
+
56
+ SELECT
57
+ products.*
58
+ FROM
59
+ products
60
+ WHERE
61
+ products.category = 'Guitar'
62
+
63
+  (6.3ms) SLECT COUNT(*) FROM guitars
64
+  (0.1ms) ROLLBACK
65
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+  (0.2ms) BEGIN
67
+ ----------------------
68
+ ViewsTest: test_update
69
+ ----------------------
70
+  (0.2ms) SAVEPOINT active_record_1
71
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:45:53.861858"], ["updated_at", "2016-10-17 17:45:53.861858"]]
72
+  (0.1ms) RELEASE SAVEPOINT active_record_1
73
+  (0.1ms) SAVEPOINT active_record_1
74
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:45:53.865026"], ["updated_at", "2016-10-17 17:45:53.865026"]]
75
+  (0.1ms) RELEASE SAVEPOINT active_record_1
76
+  (0.3ms) SELECT COUNT(*) FROM guitars
77
+  (0.1ms) ROLLBACK
78
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
79
+  (0.2ms) BEGIN
80
+ ----------------------
81
+ ViewsTest: test_update
82
+ ----------------------
83
+  (0.1ms) SAVEPOINT active_record_1
84
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:46:37.264949"], ["updated_at", "2016-10-17 17:46:37.264949"]]
85
+  (0.1ms) RELEASE SAVEPOINT active_record_1
86
+  (0.1ms) SAVEPOINT active_record_1
87
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:46:37.268535"], ["updated_at", "2016-10-17 17:46:37.268535"]]
88
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89
+  (0.2ms) DROP VIEW IF EXISTS guitars
90
+  (1.3ms) CREATE VIEW guitars AS
91
+
92
+ SELECT
93
+ products.*
94
+ FROM
95
+ products
96
+ WHERE
97
+ products.category = 'Guitar'
98
+
99
+  (0.4ms) SELECT COUNT(*) FROM guitars
100
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
+  (0.2ms) BEGIN
102
+ ----------------------
103
+ ViewsTest: test_update
104
+ ----------------------
105
+  (0.1ms) SAVEPOINT active_record_1
106
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:47:39.252052"], ["updated_at", "2016-10-17 17:47:39.252052"]]
107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108
+  (0.1ms) SAVEPOINT active_record_1
109
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:47:39.255116"], ["updated_at", "2016-10-17 17:47:39.255116"]]
110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
111
+  (0.3ms) SELECT COUNT(*) FROM guitars
112
+  (0.1ms) ROLLBACK
113
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
+  (0.2ms) BEGIN
115
+ ----------------------
116
+ ViewsTest: test_update
117
+ ----------------------
118
+  (0.1ms) SAVEPOINT active_record_1
119
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:47:49.005223"], ["updated_at", "2016-10-17 17:47:49.005223"]]
120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
121
+  (0.1ms) SAVEPOINT active_record_1
122
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:47:49.009281"], ["updated_at", "2016-10-17 17:47:49.009281"]]
123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
124
+  (0.3ms) SELECT COUNT(*) FROM guitars
125
+  (0.1ms) ROLLBACK
126
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
127
+  (0.2ms) BEGIN
128
+ ----------------------
129
+ ViewsTest: test_update
130
+ ----------------------
131
+  (0.1ms) SAVEPOINT active_record_1
132
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:48:15.525408"], ["updated_at", "2016-10-17 17:48:15.525408"]]
133
+  (0.1ms) RELEASE SAVEPOINT active_record_1
134
+  (0.1ms) SAVEPOINT active_record_1
135
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:48:15.528578"], ["updated_at", "2016-10-17 17:48:15.528578"]]
136
+  (0.2ms) RELEASE SAVEPOINT active_record_1
137
+  (0.2ms) DROP VIEW IF EXISTS guitars
138
+  (1.3ms) CREATE VIEW guitars AS
139
+
140
+ SELECT
141
+ products.*
142
+ FROM
143
+ products
144
+ WHERE
145
+ products.category = 'Guitar'
146
+
147
+  (0.2ms) SELECT COUNT(*) FROM guitars
148
+  (0.2ms) ROLLBACK
149
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
150
+  (0.2ms) BEGIN
151
+ ----------------------
152
+ TasksTest: test_update
153
+ ----------------------
154
+  (0.2ms) ROLLBACK
155
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
156
+  (0.2ms) BEGIN
157
+ ----------------------
158
+ TasksTest: test_update
159
+ ----------------------
160
+  (0.3ms) DROP VIEW IF EXISTS guitars
161
+  (1.4ms) CREATE VIEW guitars AS
162
+
163
+ SELECT
164
+ products.*
165
+ FROM
166
+ products
167
+ WHERE
168
+ products.category = 'Guitar'
169
+
170
+  (0.1ms) SAVEPOINT active_record_1
171
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:53:00.487088"], ["updated_at", "2016-10-17 17:53:00.487088"]]
172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
173
+  (0.1ms) SAVEPOINT active_record_1
174
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:53:00.491383"], ["updated_at", "2016-10-17 17:53:00.491383"]]
175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
176
+  (0.3ms) SELECT COUNT(*) FROM guitars
177
+  (0.2ms) ROLLBACK
178
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
179
+  (0.4ms) BEGIN
180
+ ----------------------
181
+ TasksTest: test_update
182
+ ----------------------
183
+  (0.3ms) DROP VIEW IF EXISTS guitars
184
+  (1.6ms) CREATE VIEW guitars AS
185
+
186
+ SELECT
187
+ products.*
188
+ FROM
189
+ products
190
+ WHERE
191
+ products.category = 'Guitar'
192
+
193
+  (0.2ms) SAVEPOINT active_record_1
194
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 17:53:15.653556"], ["updated_at", "2016-10-17 17:53:15.653556"]]
195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
196
+  (0.2ms) SAVEPOINT active_record_1
197
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:53:15.657449"], ["updated_at", "2016-10-17 17:53:15.657449"]]
198
+  (0.2ms) RELEASE SAVEPOINT active_record_1
199
+  (0.3ms) SELECT COUNT(*) FROM guitars
200
+  (0.2ms) ROLLBACK
201
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
202
+  (0.2ms) BEGIN
203
+ ----------------------
204
+ TasksTest: test_update
205
+ ----------------------
206
+  (0.3ms) SAVEPOINT active_record_1
207
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:10:18.627497"], ["updated_at", "2016-10-17 18:10:18.627497"]]
208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209
+  (0.1ms) SAVEPOINT active_record_1
210
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:10:18.631851"], ["updated_at", "2016-10-17 18:10:18.631851"]]
211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
212
+  (6.8ms) SELECT COUNT(*) FROM guitars
213
+  (0.1ms) ROLLBACK
214
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
215
+  (0.2ms) BEGIN
216
+ ----------------------
217
+ TasksTest: test_update
218
+ ----------------------
219
+  (0.1ms) SAVEPOINT active_record_1
220
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:11:02.587072"], ["updated_at", "2016-10-17 18:11:02.587072"]]
221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
222
+  (0.1ms) SAVEPOINT active_record_1
223
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:11:02.591133"], ["updated_at", "2016-10-17 18:11:02.591133"]]
224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
225
+  (6.5ms) SELECT COUNT(*) FROM guitars
226
+  (0.2ms) ROLLBACK
227
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
228
+  (0.2ms) BEGIN
229
+ ----------------------
230
+ TasksTest: test_update
231
+ ----------------------
232
+  (0.2ms) SAVEPOINT active_record_1
233
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:29:35.368846"], ["updated_at", "2016-10-17 18:29:35.368846"]]
234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
235
+  (0.1ms) SAVEPOINT active_record_1
236
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:29:35.373130"], ["updated_at", "2016-10-17 18:29:35.373130"]]
237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
238
+  (6.3ms) SELECT COUNT(*) FROM guitars
239
+  (0.2ms) ROLLBACK
240
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
241
+  (0.2ms) BEGIN
242
+ ----------------------
243
+ TasksTest: test_update
244
+ ----------------------
245
+  (0.1ms) SAVEPOINT active_record_1
246
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:29:57.654568"], ["updated_at", "2016-10-17 18:29:57.654568"]]
247
+  (0.2ms) RELEASE SAVEPOINT active_record_1
248
+  (0.2ms) SAVEPOINT active_record_1
249
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:29:57.659021"], ["updated_at", "2016-10-17 18:29:57.659021"]]
250
+  (0.2ms) RELEASE SAVEPOINT active_record_1
251
+  (6.4ms) SELECT COUNT(*) FROM guitars
252
+  (0.2ms) ROLLBACK
253
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
254
+  (0.2ms) BEGIN
255
+ ----------------------
256
+ TasksTest: test_update
257
+ ----------------------
258
+  (0.1ms) SAVEPOINT active_record_1
259
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:30:52.968188"], ["updated_at", "2016-10-17 18:30:52.968188"]]
260
+  (0.2ms) RELEASE SAVEPOINT active_record_1
261
+  (0.1ms) SAVEPOINT active_record_1
262
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:30:52.972337"], ["updated_at", "2016-10-17 18:30:52.972337"]]
263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
264
+  (6.6ms) SELECT COUNT(*) FROM guitars
265
+  (0.1ms) ROLLBACK
266
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
267
+  (0.2ms) BEGIN
268
+ ----------------------
269
+ TasksTest: test_update
270
+ ----------------------
271
+  (0.1ms) SAVEPOINT active_record_1
272
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:31:06.457128"], ["updated_at", "2016-10-17 18:31:06.457128"]]
273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
274
+  (0.2ms) SAVEPOINT active_record_1
275
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:31:06.461286"], ["updated_at", "2016-10-17 18:31:06.461286"]]
276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
277
+  (6.6ms) SELECT COUNT(*) FROM guitars
278
+  (0.3ms) DROP VIEW IF EXISTS guitars
279
+  (0.2ms) ROLLBACK
280
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
+  (0.2ms) BEGIN
282
+ ----------------------
283
+ TasksTest: test_update
284
+ ----------------------
285
+  (0.1ms) SAVEPOINT active_record_1
286
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:32:11.889772"], ["updated_at", "2016-10-17 18:32:11.889772"]]
287
+  (0.1ms) RELEASE SAVEPOINT active_record_1
288
+  (0.1ms) SAVEPOINT active_record_1
289
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:32:11.893827"], ["updated_at", "2016-10-17 18:32:11.893827"]]
290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
291
+  (6.6ms) SELECT COUNT(*) FROM guitars
292
+  (0.3ms) DROP VIEW guitars IF EXISTS
293
+  (0.2ms) ROLLBACK
294
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
295
+  (0.2ms) BEGIN
296
+ ----------------------
297
+ TasksTest: test_update
298
+ ----------------------
299
+  (0.2ms) SAVEPOINT active_record_1
300
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:32:41.704051"], ["updated_at", "2016-10-17 18:32:41.704051"]]
301
+  (0.2ms) RELEASE SAVEPOINT active_record_1
302
+  (0.2ms) SAVEPOINT active_record_1
303
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:32:41.708326"], ["updated_at", "2016-10-17 18:32:41.708326"]]
304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
305
+  (6.5ms) SELECT COUNT(*) FROM guitars
306
+  (0.3ms) DROP VIEW IF EXISTS guitars
307
+  (0.2ms) ROLLBACK
308
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
309
+  (0.2ms) BEGIN
310
+ ----------------------
311
+ TasksTest: test_update
312
+ ----------------------
313
+  (0.1ms) SAVEPOINT active_record_1
314
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:34:43.126856"], ["updated_at", "2016-10-17 18:34:43.126856"]]
315
+  (0.2ms) RELEASE SAVEPOINT active_record_1
316
+  (0.1ms) SAVEPOINT active_record_1
317
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:34:43.131098"], ["updated_at", "2016-10-17 18:34:43.131098"]]
318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
319
+  (6.4ms) SELECT COUNT(*) FROM guitars
320
+  (0.3ms) DROP VIEW IF EXISTS guitars
321
+  (0.1ms) ROLLBACK
322
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
323
+  (0.2ms) BEGIN
324
+ ----------------------
325
+ TasksTest: test_update
326
+ ----------------------
327
+  (0.1ms) SAVEPOINT active_record_1
328
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:34:55.609565"], ["updated_at", "2016-10-17 18:34:55.609565"]]
329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
330
+  (0.1ms) SAVEPOINT active_record_1
331
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:34:55.612768"], ["updated_at", "2016-10-17 18:34:55.612768"]]
332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
333
+  (0.3ms) SELECT COUNT(*) FROM guitars
334
+  (0.1ms) ROLLBACK
335
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
336
+  (0.3ms) BEGIN
337
+ ----------------------
338
+ TasksTest: test_update
339
+ ----------------------
340
+  (0.1ms) SAVEPOINT active_record_1
341
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:35:06.067217"], ["updated_at", "2016-10-17 18:35:06.067217"]]
342
+  (0.2ms) RELEASE SAVEPOINT active_record_1
343
+  (0.1ms) SAVEPOINT active_record_1
344
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:35:06.070640"], ["updated_at", "2016-10-17 18:35:06.070640"]]
345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
346
+  (0.3ms) SELECT COUNT(*) FROM guitars
347
+  (0.3ms) DROP VIEW IF EXISTS guitars
348
+  (0.2ms) ROLLBACK
349
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
350
+  (0.4ms) BEGIN
351
+ ----------------------
352
+ TasksTest: test_update
353
+ ----------------------
354
+  (0.2ms) SAVEPOINT active_record_1
355
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:37:51.655249"], ["updated_at", "2016-10-17 18:37:51.655249"]]
356
+  (0.2ms) RELEASE SAVEPOINT active_record_1
357
+  (0.1ms) SAVEPOINT active_record_1
358
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:37:51.659542"], ["updated_at", "2016-10-17 18:37:51.659542"]]
359
+  (0.2ms) RELEASE SAVEPOINT active_record_1
360
+  (8.7ms) SELECT COUNT(*) FROM guitars
361
+  (0.3ms) DROP VIEW IF EXISTS guitars
362
+  (0.1ms) ROLLBACK
363
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
364
+  (0.2ms) BEGIN
365
+ ----------------------
366
+ TasksTest: test_update
367
+ ----------------------
368
+  (0.2ms) SAVEPOINT active_record_1
369
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:38:21.925906"], ["updated_at", "2016-10-17 18:38:21.925906"]]
370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
371
+  (0.1ms) SAVEPOINT active_record_1
372
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:38:21.929877"], ["updated_at", "2016-10-17 18:38:21.929877"]]
373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
374
+  (6.5ms) SELECT COUNT(*) FROM guitars
375
+  (0.2ms) DROP VIEW IF EXISTS guitars
376
+  (0.1ms) ROLLBACK
377
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
378
+  (0.2ms) BEGIN
379
+ ----------------------
380
+ TasksTest: test_update
381
+ ----------------------
382
+  (0.1ms) SAVEPOINT active_record_1
383
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:38:30.982831"], ["updated_at", "2016-10-17 18:38:30.982831"]]
384
+  (0.1ms) RELEASE SAVEPOINT active_record_1
385
+  (0.1ms) SAVEPOINT active_record_1
386
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:38:30.987091"], ["updated_at", "2016-10-17 18:38:30.987091"]]
387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
388
+  (6.6ms) SELECT COUNT(*) FROM guitars
389
+  (4.6ms) DROP VIEW IF EXISTS guitars
390
+ ActiveRecord::SchemaMigration Load (28.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
391
+  (0.2ms) BEGIN
392
+ ----------------------
393
+ TasksTest: test_update
394
+ ----------------------
395
+  (0.2ms) SAVEPOINT active_record_1
396
+ SQL (20.0ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:43:15.466944"], ["updated_at", "2016-10-17 18:43:15.466944"]]
397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
398
+  (0.1ms) SAVEPOINT active_record_1
399
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:43:15.490666"], ["updated_at", "2016-10-17 18:43:15.490666"]]
400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
401
+  (0.4ms) SELECT COUNT(*) FROM guitars
402
+  (0.3ms) SELECT COUNT(*) FROM guitars
403
+  (0.1ms) ROLLBACK
404
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
405
+  (0.2ms) BEGIN
406
+ ----------------------
407
+ TasksTest: test_update
408
+ ----------------------
409
+  (0.1ms) SAVEPOINT active_record_1
410
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:43:46.281907"], ["updated_at", "2016-10-17 18:43:46.281907"]]
411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
412
+  (0.2ms) SAVEPOINT active_record_1
413
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:43:46.285332"], ["updated_at", "2016-10-17 18:43:46.285332"]]
414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
415
+  (0.4ms) SELECT COUNT(*) FROM guitars
416
+  (0.3ms) DROP VIEW IF EXISTS guitars
417
+  (0.2ms) ROLLBACK
418
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
419
+  (0.2ms) BEGIN
420
+ ----------------------
421
+ TasksTest: test_update
422
+ ----------------------
423
+  (0.1ms) SAVEPOINT active_record_1
424
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:44:12.050055"], ["updated_at", "2016-10-17 18:44:12.050055"]]
425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
426
+  (0.1ms) SAVEPOINT active_record_1
427
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:12.053579"], ["updated_at", "2016-10-17 18:44:12.053579"]]
428
+  (0.3ms) RELEASE SAVEPOINT active_record_1
429
+  (6.5ms) DROP VIEW IF EXISTS guitars
430
+  (37.3ms) CREATE VIEW guitars AS
431
+
432
+ SELECT
433
+ products.*
434
+ FROM
435
+ products
436
+ WHERE
437
+ products.category = 'Guitar'
438
+
439
+  (1.1ms) SELECT COUNT(*) FROM guitars
440
+  (0.2ms) ROLLBACK
441
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
442
+  (0.3ms) BEGIN
443
+ ----------------------
444
+ TasksTest: test_update
445
+ ----------------------
446
+  (0.2ms) SAVEPOINT active_record_1
447
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:44:26.063973"], ["updated_at", "2016-10-17 18:44:26.063973"]]
448
+  (0.2ms) RELEASE SAVEPOINT active_record_1
449
+  (0.3ms) SAVEPOINT active_record_1
450
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:26.067650"], ["updated_at", "2016-10-17 18:44:26.067650"]]
451
+  (0.2ms) RELEASE SAVEPOINT active_record_1
452
+  (0.4ms) SELECT COUNT(*) FROM guitars
453
+  (0.1ms) ROLLBACK
454
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
455
+  (0.2ms) BEGIN
456
+ ----------------------
457
+ TasksTest: test_update
458
+ ----------------------
459
+  (0.2ms) SAVEPOINT active_record_1
460
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:44:33.946308"], ["updated_at", "2016-10-17 18:44:33.946308"]]
461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
462
+  (0.1ms) SAVEPOINT active_record_1
463
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:33.949592"], ["updated_at", "2016-10-17 18:44:33.949592"]]
464
+  (0.2ms) RELEASE SAVEPOINT active_record_1
465
+  (0.3ms) SELECT COUNT(*) FROM guitars
466
+  (0.1ms) ROLLBACK
467
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
468
+  (0.3ms) BEGIN
469
+ ----------------------
470
+ TasksTest: test_update
471
+ ----------------------
472
+  (0.1ms) SAVEPOINT active_record_1
473
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:44:39.741873"], ["updated_at", "2016-10-17 18:44:39.741873"]]
474
+  (0.2ms) RELEASE SAVEPOINT active_record_1
475
+  (0.1ms) SAVEPOINT active_record_1
476
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:39.745171"], ["updated_at", "2016-10-17 18:44:39.745171"]]
477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
478
+  (0.3ms) SELECT COUNT(*) FROM guitars
479
+  (0.4ms) ROLLBACK
480
+  (0.3ms) DROP VIEW IF EXISTS guitars
481
+  (11.1ms) CREATE VIEW guitars AS
482
+
483
+ SELECT
484
+ products.*
485
+ FROM
486
+ products
487
+ WHERE
488
+ products.category = 'Guitar'
489
+
490
+  (0.4ms) SELECT COUNT(*) FROM guitars
491
+  (0.2ms) ROLLBACK
492
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
493
+  (0.2ms) BEGIN
494
+ ----------------------
495
+ TasksTest: test_update
496
+ ----------------------
497
+  (0.1ms) SAVEPOINT active_record_1
498
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:09.650503"], ["updated_at", "2016-10-17 18:46:09.650503"]]
499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
500
+  (0.1ms) SAVEPOINT active_record_1
501
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:46:09.653828"], ["updated_at", "2016-10-17 18:46:09.653828"]]
502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
503
+  (0.3ms) SELECT COUNT(*) FROM guitars
504
+  (0.2ms) ROLLBACK
505
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
506
+  (0.2ms) BEGIN
507
+ ----------------------
508
+ TasksTest: test_update
509
+ ----------------------
510
+  (0.1ms) SAVEPOINT active_record_1
511
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:47.399246"], ["updated_at", "2016-10-17 18:46:47.399246"]]
512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
513
+  (0.1ms) SAVEPOINT active_record_1
514
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:46:47.402398"], ["updated_at", "2016-10-17 18:46:47.402398"]]
515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
516
+  (0.3ms) SELECT COUNT(*) FROM guitars
517
+  (8.3ms) DROP VIEW IF EXISTS guitars
518
+  (0.2ms) ROLLBACK
519
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
520
+  (0.3ms) BEGIN
521
+ ----------------------
522
+ TasksTest: test_update
523
+ ----------------------
524
+  (0.1ms) SAVEPOINT active_record_1
525
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:49.802296"], ["updated_at", "2016-10-17 18:46:49.802296"]]
526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
527
+  (0.1ms) SAVEPOINT active_record_1
528
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:46:49.805594"], ["updated_at", "2016-10-17 18:46:49.805594"]]
529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
530
+  (0.4ms) SELECT COUNT(*) FROM guitars
531
+  (0.6ms) DROP VIEW IF EXISTS guitars
532
+  (0.2ms) ROLLBACK
533
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
534
+  (0.2ms) BEGIN
535
+ ----------------------
536
+ TasksTest: test_update
537
+ ----------------------
538
+  (0.1ms) SAVEPOINT active_record_1
539
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:54.821916"], ["updated_at", "2016-10-17 18:46:54.821916"]]
540
+  (0.2ms) RELEASE SAVEPOINT active_record_1
541
+  (0.1ms) SAVEPOINT active_record_1
542
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:46:54.825418"], ["updated_at", "2016-10-17 18:46:54.825418"]]
543
+  (0.2ms) RELEASE SAVEPOINT active_record_1
544
+  (0.3ms) SELECT COUNT(*) FROM guitars
545
+  (0.5ms) DROP VIEW IF EXISTS guitars
546
+  (0.1ms) ROLLBACK
547
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
548
+  (0.2ms) BEGIN
549
+ ----------------------
550
+ TasksTest: test_update
551
+ ----------------------
552
+  (0.1ms) SAVEPOINT active_record_1
553
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:47:07.440374"], ["updated_at", "2016-10-17 18:47:07.440374"]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+  (0.1ms) SAVEPOINT active_record_1
556
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:47:07.443561"], ["updated_at", "2016-10-17 18:47:07.443561"]]
557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
558
+  (0.4ms) SELECT COUNT(*) FROM guitars
559
+  (0.1ms) ROLLBACK
560
+  (4.8ms) DROP VIEW IF EXISTS guitars
561
+  (0.2ms) ROLLBACK
562
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
563
+  (0.3ms) BEGIN
564
+ ----------------------
565
+ TasksTest: test_update
566
+ ----------------------
567
+  (0.1ms) SAVEPOINT active_record_1
568
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:47:26.698502"], ["updated_at", "2016-10-17 18:47:26.698502"]]
569
+  (0.2ms) RELEASE SAVEPOINT active_record_1
570
+  (0.1ms) SAVEPOINT active_record_1
571
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:47:26.701795"], ["updated_at", "2016-10-17 18:47:26.701795"]]
572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
573
+  (0.6ms) DROP VIEW guitars
574
+  (0.5ms) SELECT COUNT(*) FROM guitars
575
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
576
+  (0.2ms) BEGIN
577
+ ----------------------
578
+ TasksTest: test_update
579
+ ----------------------
580
+  (0.2ms) SAVEPOINT active_record_1
581
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:48:27.140736"], ["updated_at", "2016-10-17 18:48:27.140736"]]
582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
583
+  (0.1ms) SAVEPOINT active_record_1
584
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:48:27.143939"], ["updated_at", "2016-10-17 18:48:27.143939"]]
585
+  (0.2ms) RELEASE SAVEPOINT active_record_1
586
+  (0.3ms) DROP VIEW guitars
587
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
588
+  (0.3ms) BEGIN
589
+ ----------------------
590
+ TasksTest: test_update
591
+ ----------------------
592
+  (0.1ms) SAVEPOINT active_record_1
593
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:48:47.573425"], ["updated_at", "2016-10-17 18:48:47.573425"]]
594
+  (0.2ms) RELEASE SAVEPOINT active_record_1
595
+  (0.1ms) SAVEPOINT active_record_1
596
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:48:47.576814"], ["updated_at", "2016-10-17 18:48:47.576814"]]
597
+  (0.2ms) RELEASE SAVEPOINT active_record_1
598
+  (0.3ms) DROP VIEW guitars
599
+  (0.1ms) ROLLBACK
600
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
601
+  (0.2ms) BEGIN
602
+ ----------------------
603
+ TasksTest: test_update
604
+ ----------------------
605
+  (0.1ms) SAVEPOINT active_record_1
606
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:49:08.997442"], ["updated_at", "2016-10-17 18:49:08.997442"]]
607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
608
+  (0.1ms) SAVEPOINT active_record_1
609
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:49:09.000651"], ["updated_at", "2016-10-17 18:49:09.000651"]]
610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
611
+  (0.4ms) DROP VIEW guitars
612
+  (0.2ms) ROLLBACK
613
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
614
+  (0.2ms) BEGIN
615
+ ----------------------
616
+ TasksTest: test_update
617
+ ----------------------
618
+  (0.2ms) SAVEPOINT active_record_1
619
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:49:42.845540"], ["updated_at", "2016-10-17 18:49:42.845540"]]
620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
621
+  (0.1ms) SAVEPOINT active_record_1
622
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:49:42.848770"], ["updated_at", "2016-10-17 18:49:42.848770"]]
623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
624
+  (0.3ms) DROP VIEW guitars
625
+  (0.1ms) ROLLBACK
626
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
627
+  (0.2ms) BEGIN
628
+ ----------------------
629
+ TasksTest: test_update
630
+ ----------------------
631
+  (0.2ms) SAVEPOINT active_record_1
632
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:49:58.048008"], ["updated_at", "2016-10-17 18:49:58.048008"]]
633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
634
+  (0.1ms) SAVEPOINT active_record_1
635
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:49:58.051280"], ["updated_at", "2016-10-17 18:49:58.051280"]]
636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
637
+  (0.4ms) DROP VIEW guitars
638
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
639
+  (0.2ms) BEGIN
640
+ ----------------------
641
+ TasksTest: test_update
642
+ ----------------------
643
+  (0.1ms) SAVEPOINT active_record_1
644
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:50:53.628433"], ["updated_at", "2016-10-17 18:50:53.628433"]]
645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
646
+  (0.2ms) SAVEPOINT active_record_1
647
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:50:53.631564"], ["updated_at", "2016-10-17 18:50:53.631564"]]
648
+  (0.1ms) RELEASE SAVEPOINT active_record_1
649
+  (0.4ms) DROP VIEW guitars
650
+  (0.2ms) ROLLBACK
651
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
652
+  (0.3ms) BEGIN
653
+ ----------------------
654
+ TasksTest: test_update
655
+ ----------------------
656
+  (0.1ms) SAVEPOINT active_record_1
657
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:50:58.375081"], ["updated_at", "2016-10-17 18:50:58.375081"]]
658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
659
+  (0.1ms) SAVEPOINT active_record_1
660
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:50:58.378427"], ["updated_at", "2016-10-17 18:50:58.378427"]]
661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
662
+  (0.3ms) DROP VIEW guitars
663
+  (0.2ms) ROLLBACK
664
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
665
+  (0.2ms) BEGIN
666
+ ----------------------
667
+ TasksTest: test_update
668
+ ----------------------
669
+  (0.1ms) SAVEPOINT active_record_1
670
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:51:26.619707"], ["updated_at", "2016-10-17 18:51:26.619707"]]
671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
672
+  (0.1ms) SAVEPOINT active_record_1
673
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:51:26.622938"], ["updated_at", "2016-10-17 18:51:26.622938"]]
674
+  (0.2ms) RELEASE SAVEPOINT active_record_1
675
+  (0.4ms) DROP VIEW guitars
676
+  (0.4ms) SELECT COUNT(*) FROM "products"
677
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
678
+  (0.2ms) BEGIN
679
+ ----------------------
680
+ TasksTest: test_update
681
+ ----------------------
682
+  (0.1ms) SAVEPOINT active_record_1
683
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:52:16.020181"], ["updated_at", "2016-10-17 18:52:16.020181"]]
684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
685
+  (0.1ms) SAVEPOINT active_record_1
686
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:52:16.023473"], ["updated_at", "2016-10-17 18:52:16.023473"]]
687
+  (0.2ms) RELEASE SAVEPOINT active_record_1
688
+  (0.4ms) DROP VIEW guitars
689
+  (0.1ms) ROLLBACK
690
+  (0.2ms) ROLLBACK
691
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
692
+  (0.3ms) BEGIN
693
+ ----------------------
694
+ TasksTest: test_update
695
+ ----------------------
696
+  (0.1ms) SAVEPOINT active_record_1
697
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:52:25.378397"], ["updated_at", "2016-10-17 18:52:25.378397"]]
698
+  (0.2ms) RELEASE SAVEPOINT active_record_1
699
+  (0.2ms) SAVEPOINT active_record_1
700
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:52:25.381747"], ["updated_at", "2016-10-17 18:52:25.381747"]]
701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
702
+  (0.3ms) DROP VIEW guitars
703
+  (0.1ms) ROLLBACK
704
+  (0.2ms) ROLLBACK
705
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
706
+  (0.2ms) BEGIN
707
+ ----------------------
708
+ TasksTest: test_update
709
+ ----------------------
710
+  (0.1ms) SAVEPOINT active_record_1
711
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:52:34.396206"], ["updated_at", "2016-10-17 18:52:34.396206"]]
712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
713
+  (0.1ms) SAVEPOINT active_record_1
714
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:52:34.400014"], ["updated_at", "2016-10-17 18:52:34.400014"]]
715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
716
+  (0.4ms) DROP VIEW guitars
717
+  (0.1ms) ROLLBACK
718
+  (0.1ms) ROLLBACK
719
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
720
+  (0.2ms) BEGIN
721
+ ----------------------
722
+ TasksTest: test_update
723
+ ----------------------
724
+  (0.1ms) SAVEPOINT active_record_1
725
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:54:06.207860"], ["updated_at", "2016-10-17 18:54:06.207860"]]
726
+  (0.2ms) RELEASE SAVEPOINT active_record_1
727
+  (0.1ms) SAVEPOINT active_record_1
728
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:54:06.212767"], ["updated_at", "2016-10-17 18:54:06.212767"]]
729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
730
+  (0.2ms) ROLLBACK
731
+ ActiveRecord::SchemaMigration Load (27.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
732
+  (0.3ms) BEGIN
733
+ ----------------------
734
+ TasksTest: test_update
735
+ ----------------------
736
+  (0.2ms) SAVEPOINT active_record_1
737
+ SQL (20.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:54:40.149586"], ["updated_at", "2016-10-17 18:54:40.149586"]]
738
+  (0.3ms) RELEASE SAVEPOINT active_record_1
739
+  (0.2ms) SAVEPOINT active_record_1
740
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:54:40.175449"], ["updated_at", "2016-10-17 18:54:40.175449"]]
741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
742
+  (0.2ms) ROLLBACK
743
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
744
+  (0.3ms) BEGIN
745
+ ----------------------
746
+ TasksTest: test_update
747
+ ----------------------
748
+  (0.2ms) SAVEPOINT active_record_1
749
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:54:51.683967"], ["updated_at", "2016-10-17 18:54:51.683967"]]
750
+  (0.1ms) RELEASE SAVEPOINT active_record_1
751
+  (0.1ms) SAVEPOINT active_record_1
752
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:54:51.688306"], ["updated_at", "2016-10-17 18:54:51.688306"]]
753
+  (0.2ms) RELEASE SAVEPOINT active_record_1
754
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
755
+  (0.3ms) BEGIN
756
+ ----------------------
757
+ TasksTest: test_update
758
+ ----------------------
759
+  (0.1ms) SAVEPOINT active_record_1
760
+ SQL (0.6ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:55:30.709837"], ["updated_at", "2016-10-17 18:55:30.709837"]]
761
+  (0.2ms) RELEASE SAVEPOINT active_record_1
762
+  (0.2ms) SAVEPOINT active_record_1
763
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:55:30.714589"], ["updated_at", "2016-10-17 18:55:30.714589"]]
764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
765
+  (0.3ms) SELECT COUNT(*) FROM guitars
766
+  (0.2ms) ROLLBACK
767
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
768
+  (0.2ms) BEGIN
769
+ ----------------------
770
+ TasksTest: test_update
771
+ ----------------------
772
+  (0.1ms) SAVEPOINT active_record_1
773
+ SQL (0.6ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:55:36.846494"], ["updated_at", "2016-10-17 18:55:36.846494"]]
774
+  (0.2ms) RELEASE SAVEPOINT active_record_1
775
+  (0.2ms) SAVEPOINT active_record_1
776
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:55:36.851551"], ["updated_at", "2016-10-17 18:55:36.851551"]]
777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
778
+  (2.0ms) DROP VIEW IF EXISTS guitars
779
+  (39.9ms) CREATE VIEW guitars AS
780
+
781
+ SELECT
782
+ products.*
783
+ FROM
784
+ products
785
+ WHERE
786
+ products.category = 'Guitar'
787
+
788
+  (0.9ms) SELECT COUNT(*) FROM guitars
789
+  (0.2ms) ROLLBACK
790
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
791
+  (0.2ms) BEGIN
792
+ ----------------------
793
+ TasksTest: test_update
794
+ ----------------------
795
+  (0.4ms) SAVEPOINT active_record_1
796
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:56:27.445312"], ["updated_at", "2016-10-17 18:56:27.445312"]]
797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
798
+  (0.1ms) SAVEPOINT active_record_1
799
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:56:27.449562"], ["updated_at", "2016-10-17 18:56:27.449562"]]
800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
801
+  (0.2ms) DROP VIEW IF EXISTS guitars
802
+  (1.2ms) CREATE VIEW guitars AS
803
+
804
+ SELECT
805
+ products.*
806
+ FROM
807
+ products
808
+ WHERE
809
+ products.category = 'Guitar'
810
+
811
+  (0.3ms) SELECT COUNT(*) FROM guitars
812
+  (0.2ms) ROLLBACK
813
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
814
+  (0.3ms) BEGIN
815
+ ----------------------
816
+ TasksTest: test_update
817
+ ----------------------
818
+  (0.2ms) SAVEPOINT active_record_1
819
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:56:36.909002"], ["updated_at", "2016-10-17 18:56:36.909002"]]
820
+  (0.2ms) RELEASE SAVEPOINT active_record_1
821
+  (0.1ms) SAVEPOINT active_record_1
822
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:56:36.912595"], ["updated_at", "2016-10-17 18:56:36.912595"]]
823
+  (0.2ms) RELEASE SAVEPOINT active_record_1
824
+  (0.4ms) DROP VIEW IF EXISTS guitars
825
+  (1.2ms) CREATE VIEW guitars AS
826
+
827
+ SELECT
828
+ products.*
829
+ FROM
830
+ products
831
+ WHERE
832
+ products.category = 'Guitar'
833
+
834
+  (0.2ms) SELECT COUNT(*) FROM guitars
835
+  (0.2ms) ROLLBACK
836
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
837
+  (0.2ms) BEGIN
838
+ ----------------------
839
+ TasksTest: test_update
840
+ ----------------------
841
+  (0.2ms) SAVEPOINT active_record_1
842
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:56:41.159087"], ["updated_at", "2016-10-17 18:56:41.159087"]]
843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
844
+  (0.1ms) SAVEPOINT active_record_1
845
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:56:41.162571"], ["updated_at", "2016-10-17 18:56:41.162571"]]
846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
847
+  (0.5ms) DROP VIEW IF EXISTS guitars
848
+  (1.4ms) CREATE VIEW guitars AS
849
+
850
+ SELECT
851
+ products.*
852
+ FROM
853
+ products
854
+ WHERE
855
+ products.category = 'Guitar'
856
+
857
+  (0.5ms) SELECT COUNT(*) FROM guitars
858
+  (0.3ms) ROLLBACK
859
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
860
+  (0.2ms) BEGIN
861
+ ----------------------
862
+ TasksTest: test_update
863
+ ----------------------
864
+  (0.2ms) SAVEPOINT active_record_1
865
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 20:02:07.717407"], ["updated_at", "2016-10-17 20:02:07.717407"]]
866
+  (0.2ms) RELEASE SAVEPOINT active_record_1
867
+  (0.1ms) SAVEPOINT active_record_1
868
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 20:02:07.722542"], ["updated_at", "2016-10-17 20:02:07.722542"]]
869
+  (0.2ms) RELEASE SAVEPOINT active_record_1
870
+  (0.3ms) DROP VIEW IF EXISTS guitars
871
+  (2.2ms) CREATE VIEW guitars AS
872
+
873
+ SELECT
874
+ products.*
875
+ FROM
876
+ products
877
+ WHERE
878
+ products.category = 'Guitar'
879
+
880
+  (0.3ms) SELECT 1 FROM guitars
881
+  (0.2ms) ROLLBACK
882
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
883
+  (0.2ms) BEGIN
884
+ ----------------------
885
+ TasksTest: test_update
886
+ ----------------------
887
+  (0.2ms) SAVEPOINT active_record_1
888
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 20:02:15.526046"], ["updated_at", "2016-10-17 20:02:15.526046"]]
889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
890
+  (0.1ms) SAVEPOINT active_record_1
891
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 20:02:15.530310"], ["updated_at", "2016-10-17 20:02:15.530310"]]
892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
893
+  (6.7ms) SELECT 1 FROM guitars
894
+  (0.1ms) ROLLBACK
895
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
896
+  (0.3ms) BEGIN
897
+ ----------------------
898
+ TasksTest: test_update
899
+ ----------------------
900
+  (0.3ms) DROP VIEW IF EXISTS guitars
901
+  (1.3ms) CREATE VIEW guitars AS
902
+
903
+ SELECT
904
+ products.*
905
+ FROM
906
+ products
907
+ WHERE
908
+ products.category = 'Guitar'
909
+
910
+  (0.3ms) SELECT 1 FROM guitars
911
+  (0.2ms) ROLLBACK
912
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
913
+  (0.2ms) BEGIN
914
+ ----------------------
915
+ TasksTest: test_update
916
+ ----------------------
917
+  (0.3ms) DROP VIEW IF EXISTS guitars
918
+  (7.7ms) CREATE VIEW guitars AS
919
+
920
+ SELECT
921
+ products.*
922
+ FROM
923
+ products
924
+ WHERE
925
+ products.category = 'Guitar'
926
+
927
+  (0.4ms) SELECT 1 FROM guitars
928
+  (0.2ms) ROLLBACK
929
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
930
+  (0.2ms) BEGIN
931
+ ----------------------
932
+ TasksTest: test_update
933
+ ----------------------
934
+  (0.3ms) DROP VIEW IF EXISTS guitars
935
+  (1.3ms) CREATE VIEW guitars AS
936
+
937
+ SELECT
938
+ products.*
939
+ FROM
940
+ products
941
+ WHERE
942
+ products.category = 'Guitar'
943
+
944
+  (0.2ms) ROLLBACK
945
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
946
+  (0.3ms) BEGIN
947
+ ----------------------
948
+ TasksTest: test_update
949
+ ----------------------
950
+  (0.4ms) DROP VIEW IF EXISTS guitars
951
+  (1.2ms) CREATE VIEW guitars AS
952
+
953
+ SELECT
954
+ products.*
955
+ FROM
956
+ products
957
+ WHERE
958
+ products.category = 'Guitar'
959
+
960
+  (0.4ms) SELECT 1 FROM guitars
961
+  (0.3ms) SELECT 1 FROM guitars
962
+  (0.7ms) SELECT 1 FROM guitars
963
+  (0.5ms) SELECT 1 FROM guitars
964
+  (0.6ms) SELECT 1 FROM guitars
965
+  (0.5ms) SELECT 1 FROM guitars
966
+  (0.3ms) SELECT 1 FROM guitars
967
+  (0.2ms) ROLLBACK
968
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
969
+  (0.3ms) BEGIN
970
+ ----------------------
971
+ TasksTest: test_update
972
+ ----------------------
973
+  (0.3ms) DROP VIEW IF EXISTS guitars
974
+  (1.2ms) CREATE VIEW guitars AS
975
+
976
+ SELECT
977
+ products.*
978
+ FROM
979
+ products
980
+ WHERE
981
+ products.category = 'Guitar'
982
+
983
+  (0.3ms) SELECT * FROM guitars
984
+  (0.2ms) ROLLBACK
985
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
986
+  (0.2ms) BEGIN
987
+ ----------------------
988
+ TasksTest: test_update
989
+ ----------------------
990
+  (0.1ms) SAVEPOINT active_record_1
991
+ SQL (0.5ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 20:04:25.644481"], ["updated_at", "2016-10-17 20:04:25.644481"]]
992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
993
+  (0.1ms) SAVEPOINT active_record_1
994
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 20:04:25.648742"], ["updated_at", "2016-10-17 20:04:25.648742"]]
995
+  (0.2ms) RELEASE SAVEPOINT active_record_1
996
+  (0.3ms) DROP VIEW IF EXISTS guitars
997
+  (1.1ms) CREATE VIEW guitars AS
998
+
999
+ SELECT
1000
+ products.*
1001
+ FROM
1002
+ products
1003
+ WHERE
1004
+ products.category = 'Guitar'
1005
+
1006
+  (0.2ms) SELECT * FROM guitars
1007
+  (0.2ms) ROLLBACK
1008
+  (184.8ms) DROP DATABASE IF EXISTS "views_test"
1009
+  (354.8ms) CREATE DATABASE "views_test" ENCODING = 'utf8'
1010
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1011
+  (3.8ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1012
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1013
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1014
+  (0.3ms) SELECT version FROM "schema_migrations"
1015
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
1016
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1017
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1018
+  (0.2ms) BEGIN
1019
+ ------------------------------------
1020
+ GeneratorsTest: test_file_generation
1021
+ ------------------------------------
1022
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1023
+  (0.2ms) BEGIN
1024
+ ----------------------
1025
+ TasksTest: test_update
1026
+ ----------------------
1027
+  (0.2ms) SAVEPOINT active_record_1
1028
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-18 00:58:47.739724"], ["updated_at", "2016-10-18 00:58:47.739724"]]
1029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1030
+  (0.1ms) SAVEPOINT active_record_1
1031
+ SQL (0.1ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-18 00:58:47.743798"], ["updated_at", "2016-10-18 00:58:47.743798"]]
1032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1033
+  (0.2ms) DROP VIEW IF EXISTS guitars
1034
+  (1.4ms) CREATE VIEW guitars AS
1035
+
1036
+ SELECT
1037
+ products.*
1038
+ FROM
1039
+ products
1040
+ WHERE
1041
+ products.category = 'Guitar'
1042
+
1043
+  (0.3ms) SELECT * FROM guitars
1044
+  (0.2ms) ROLLBACK
1045
+  (0.1ms) BEGIN
1046
+ ------------------------------------
1047
+ GeneratorsTest: test_file_generation
1048
+ ------------------------------------
1049
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1050
+  (0.3ms) BEGIN
1051
+ ----------------------
1052
+ TasksTest: test_update
1053
+ ----------------------
1054
+  (0.2ms) SAVEPOINT active_record_1
1055
+ SQL (0.9ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-18 00:58:53.320941"], ["updated_at", "2016-10-18 00:58:53.320941"]]
1056
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1057
+  (0.1ms) SAVEPOINT active_record_1
1058
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-18 00:58:53.326151"], ["updated_at", "2016-10-18 00:58:53.326151"]]
1059
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1060
+  (0.2ms) DROP VIEW IF EXISTS guitars
1061
+  (1.7ms) CREATE VIEW guitars AS
1062
+
1063
+ SELECT
1064
+ products.*
1065
+ FROM
1066
+ products
1067
+ WHERE
1068
+ products.category = 'Guitar'
1069
+
1070
+  (0.3ms) SELECT * FROM guitars
1071
+  (0.2ms) ROLLBACK
1072
+  (0.1ms) BEGIN
1073
+ ------------------------------------
1074
+ GeneratorsTest: test_file_generation
1075
+ ------------------------------------
1076
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1077
+  (0.2ms) BEGIN
1078
+ ------------------------------------
1079
+ GeneratorsTest: test_file_generation
1080
+ ------------------------------------
1081
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1082
+  (0.3ms) BEGIN
1083
+ ------------------------------------
1084
+ GeneratorsTest: test_file_generation
1085
+ ------------------------------------
1086
+  (0.3ms) ROLLBACK
1087
+  (0.2ms) BEGIN
1088
+ ----------------------
1089
+ TasksTest: test_update
1090
+ ----------------------
1091
+  (0.2ms) SAVEPOINT active_record_1
1092
+ SQL (0.3ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-18 00:59:44.742494"], ["updated_at", "2016-10-18 00:59:44.742494"]]
1093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1094
+  (0.1ms) SAVEPOINT active_record_1
1095
+ SQL (0.1ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-18 00:59:44.745453"], ["updated_at", "2016-10-18 00:59:44.745453"]]
1096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.2ms) DROP VIEW IF EXISTS guitars
1098
+  (1.5ms) CREATE VIEW guitars AS
1099
+
1100
+ SELECT
1101
+ products.*
1102
+ FROM
1103
+ products
1104
+ WHERE
1105
+ products.category = 'Guitar'
1106
+
1107
+  (0.3ms) DROP VIEW IF EXISTS tests
1108
+  (6.0ms) CREATE VIEW tests AS
1109
+
1110
+  (0.1ms) ROLLBACK
1111
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1112
+  (0.2ms) BEGIN
1113
+ ----------------------
1114
+ TasksTest: test_update
1115
+ ----------------------
1116
+  (0.1ms) SAVEPOINT active_record_1
1117
+ SQL (0.4ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-18 01:01:02.810985"], ["updated_at", "2016-10-18 01:01:02.810985"]]
1118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.1ms) SAVEPOINT active_record_1
1120
+ SQL (0.2ms) INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-18 01:01:02.816600"], ["updated_at", "2016-10-18 01:01:02.816600"]]
1121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1122
+  (0.2ms) DROP VIEW IF EXISTS guitars
1123
+  (1.1ms) CREATE VIEW guitars AS
1124
+
1125
+ SELECT
1126
+ products.*
1127
+ FROM
1128
+ products
1129
+ WHERE
1130
+ products.category = 'Guitar'
1131
+
1132
+  (0.3ms) SELECT * FROM guitars
1133
+  (0.2ms) ROLLBACK
1134
+  (0.1ms) BEGIN
1135
+ ------------------------------------
1136
+ GeneratorsTest: test_file_generation
1137
+ ------------------------------------
1138
+  (0.2ms) ROLLBACK