postgres_tree 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/lib/postgres_tree/concerns/model/active_record.rb +81 -0
  5. data/lib/postgres_tree/engine.rb +4 -0
  6. data/lib/postgres_tree/version.rb +3 -0
  7. data/lib/postgres_tree.rb +2 -0
  8. data/lib/tasks/postgres_tree_tasks.rake +4 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/models/person.rb +3 -0
  16. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  17. data/test/dummy/bin/bundle +3 -0
  18. data/test/dummy/bin/rails +4 -0
  19. data/test/dummy/bin/rake +4 -0
  20. data/test/dummy/config/application.rb +23 -0
  21. data/test/dummy/config/boot.rb +5 -0
  22. data/test/dummy/config/database.yml +87 -0
  23. data/test/dummy/config/database.yml.travis +4 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +37 -0
  26. data/test/dummy/config/environments/production.rb +78 -0
  27. data/test/dummy/config/environments/test.rb +39 -0
  28. data/test/dummy/config/initializers/assets.rb +8 -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/20140918023556_create_people.rb +10 -0
  41. data/test/dummy/db/schema.rb +26 -0
  42. data/test/dummy/log/development.log +64 -0
  43. data/test/dummy/log/test.log +3233 -0
  44. data/test/dummy/public/404.html +67 -0
  45. data/test/dummy/public/422.html +67 -0
  46. data/test/dummy/public/500.html +66 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/test/fixtures/people.yml +15 -0
  49. data/test/dummy/test/models/person_test.rb +86 -0
  50. data/test/integration/navigation_test.rb +10 -0
  51. data/test/postgres_tree_test.rb +7 -0
  52. data/test/test_helper.rb +41 -0
  53. metadata +182 -0
@@ -0,0 +1,3233 @@
1
+  (0.2ms) BEGIN
2
+ ----------------------------
3
+ PostgresTreeTest: test_truth
4
+ ----------------------------
5
+  (0.2ms) ROLLBACK
6
+  (0.1ms) BEGIN
7
+ --------------------------------------------------------------
8
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
9
+ --------------------------------------------------------------
10
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
11
+ PG::UndefinedTable: ERROR: relation "people" does not exist
12
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
13
+ ^
14
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
15
+  (0.1ms) ROLLBACK
16
+  (0.1ms) BEGIN
17
+ -----------------------------------------------------------------
18
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
19
+ -----------------------------------------------------------------
20
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
21
+ PG::UndefinedTable: ERROR: relation "people" does not exist
22
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
23
+ ^
24
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
25
+  (0.1ms) ROLLBACK
26
+  (0.1ms) BEGIN
27
+ ------------------------------------------------------------------------
28
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
29
+ ------------------------------------------------------------------------
30
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
31
+ PG::UndefinedTable: ERROR: relation "people" does not exist
32
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
33
+ ^
34
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
35
+  (0.1ms) ROLLBACK
36
+  (0.1ms) BEGIN
37
+ -------------------------------------------------------------------------
38
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
39
+ -------------------------------------------------------------------------
40
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
41
+ PG::UndefinedTable: ERROR: relation "people" does not exist
42
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
43
+ ^
44
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
45
+  (0.1ms) ROLLBACK
46
+  (0.1ms) BEGIN
47
+ -------------------------------------
48
+ PersonTest: test_tree_fixtures_loaded
49
+ -------------------------------------
50
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
51
+ PG::UndefinedTable: ERROR: relation "people" does not exist
52
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
53
+ ^
54
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
55
+  (0.1ms) ROLLBACK
56
+  (0.1ms) 
57
+  (0.2ms) BEGIN
58
+ PG::UndefinedTable: ERROR: relation "people" does not exist
59
+ LINE 5: WHERE a.attrelid = '"people"'::regclass
60
+ ^
61
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
62
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
63
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
64
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
65
+ WHERE a.attrelid = '"people"'::regclass
66
+ AND a.attnum > 0 AND NOT a.attisdropped
67
+ ORDER BY a.attnum
68
+
69
+  (0.1ms) ROLLBACK
70
+  (0.1ms)
71
+  (0.1ms) 
72
+  (0.1ms) BEGIN
73
+ PG::UndefinedTable: ERROR: relation "people" does not exist
74
+ LINE 5: WHERE a.attrelid = '"people"'::regclass
75
+ ^
76
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
77
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
78
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
79
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
80
+ WHERE a.attrelid = '"people"'::regclass
81
+ AND a.attnum > 0 AND NOT a.attisdropped
82
+ ORDER BY a.attnum
83
+
84
+  (0.1ms) ROLLBACK
85
+  (0.1ms)
86
+  (0.1ms) 
87
+  (0.2ms) BEGIN
88
+ PG::UndefinedTable: ERROR: relation "people" does not exist
89
+ LINE 5: WHERE a.attrelid = '"people"'::regclass
90
+ ^
91
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
92
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
93
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
94
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
95
+ WHERE a.attrelid = '"people"'::regclass
96
+ AND a.attnum > 0 AND NOT a.attisdropped
97
+ ORDER BY a.attnum
98
+
99
+  (0.1ms) ROLLBACK
100
+  (0.2ms)
101
+  (0.1ms) 
102
+  (0.1ms) BEGIN
103
+ PG::UndefinedTable: ERROR: relation "people" does not exist
104
+ LINE 5: WHERE a.attrelid = '"people"'::regclass
105
+ ^
106
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
107
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
108
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
109
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
110
+ WHERE a.attrelid = '"people"'::regclass
111
+ AND a.attnum > 0 AND NOT a.attisdropped
112
+ ORDER BY a.attnum
113
+
114
+  (0.1ms) ROLLBACK
115
+  (0.1ms)
116
+  (0.1ms) 
117
+  (1.7ms) BEGIN
118
+ PG::UndefinedTable: ERROR: relation "people" does not exist
119
+ LINE 5: WHERE a.attrelid = '"people"'::regclass
120
+ ^
121
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
122
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
123
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
124
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
125
+ WHERE a.attrelid = '"people"'::regclass
126
+ AND a.attnum > 0 AND NOT a.attisdropped
127
+ ORDER BY a.attnum
128
+
129
+  (0.1ms) ROLLBACK
130
+  (0.1ms)
131
+  (0.1ms) 
132
+  (0.1ms) BEGIN
133
+ PG::UndefinedTable: ERROR: relation "people" does not exist
134
+ LINE 5: WHERE a.attrelid = '"people"'::regclass
135
+ ^
136
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
137
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
138
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
139
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
140
+ WHERE a.attrelid = '"people"'::regclass
141
+ AND a.attnum > 0 AND NOT a.attisdropped
142
+ ORDER BY a.attnum
143
+
144
+  (0.1ms) ROLLBACK
145
+  (0.1ms)
146
+  (0.2ms) BEGIN
147
+ --------------------------------------------------------------
148
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
149
+ --------------------------------------------------------------
150
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
151
+ PG::UndefinedTable: ERROR: relation "people" does not exist
152
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
153
+ ^
154
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
155
+  (0.1ms) ROLLBACK
156
+  (0.1ms) BEGIN
157
+ -----------------------------------------------------------------
158
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
159
+ -----------------------------------------------------------------
160
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
161
+ PG::UndefinedTable: ERROR: relation "people" does not exist
162
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
163
+ ^
164
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
165
+  (0.1ms) ROLLBACK
166
+  (0.1ms) BEGIN
167
+ ------------------------------------------------------------------------
168
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
169
+ ------------------------------------------------------------------------
170
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
171
+ PG::UndefinedTable: ERROR: relation "people" does not exist
172
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
173
+ ^
174
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
175
+  (0.1ms) ROLLBACK
176
+  (0.1ms) BEGIN
177
+ -------------------------------------------------------------------------
178
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
179
+ -------------------------------------------------------------------------
180
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
181
+ PG::UndefinedTable: ERROR: relation "people" does not exist
182
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
183
+ ^
184
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
185
+  (0.1ms) ROLLBACK
186
+  (0.1ms) BEGIN
187
+ -------------------------------------
188
+ PersonTest: test_tree_fixtures_loaded
189
+ -------------------------------------
190
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
191
+ PG::UndefinedTable: ERROR: relation "people" does not exist
192
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
193
+ ^
194
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
195
+  (0.1ms) ROLLBACK
196
+  (0.1ms) BEGIN
197
+ ----------------------------
198
+ PostgresTreeTest: test_truth
199
+ ----------------------------
200
+  (0.1ms) ROLLBACK
201
+  (0.2ms) BEGIN
202
+ ----------------------------
203
+ PostgresTreeTest: test_truth
204
+ ----------------------------
205
+  (0.1ms) ROLLBACK
206
+  (0.1ms) BEGIN
207
+ ---------------------------------------
208
+ PersonTest: test_person_fixtures_loaded
209
+ ---------------------------------------
210
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
211
+ PG::UndefinedTable: ERROR: relation "people" does not exist
212
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
213
+ ^
214
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
215
+  (0.1ms) ROLLBACK
216
+  (0.3ms) BEGIN
217
+ ----------------------------
218
+ PostgresTreeTest: test_truth
219
+ ----------------------------
220
+  (0.1ms) ROLLBACK
221
+  (0.1ms) BEGIN
222
+ ---------------------------------------
223
+ PersonTest: test_person_fixtures_loaded
224
+ ---------------------------------------
225
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
226
+ PG::UndefinedTable: ERROR: relation "people" does not exist
227
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
228
+ ^
229
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
230
+  (0.1ms) ROLLBACK
231
+  (0.2ms) BEGIN
232
+ ----------------------------
233
+ PostgresTreeTest: test_truth
234
+ ----------------------------
235
+  (0.1ms) ROLLBACK
236
+  (0.1ms) BEGIN
237
+ ---------------------------------------
238
+ PersonTest: test_person_fixtures_loaded
239
+ ---------------------------------------
240
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
241
+ PG::UndefinedTable: ERROR: relation "people" does not exist
242
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
243
+ ^
244
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
245
+  (0.1ms) ROLLBACK
246
+  (47.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
247
+  (55.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
248
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
249
+ Migrating to CreatePeople (20140918023556)
250
+  (0.2ms) BEGIN
251
+  (52.2ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp) 
252
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
253
+  (12.6ms) COMMIT
254
+  (0.3ms) BEGIN
255
+ ---------------------------------------
256
+ PersonTest: test_person_fixtures_loaded
257
+ ---------------------------------------
258
+ Person Load (1.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
259
+  (0.2ms) ROLLBACK
260
+  (0.1ms) BEGIN
261
+ ----------------------------
262
+ PostgresTreeTest: test_truth
263
+ ----------------------------
264
+  (0.1ms) ROLLBACK
265
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
266
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
267
+  (0.2ms) BEGIN
268
+ ---------------------------------------
269
+ PersonTest: test_person_fixtures_loaded
270
+ ---------------------------------------
271
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
272
+  (0.1ms) ROLLBACK
273
+  (0.1ms) BEGIN
274
+ --------------------------------------------------------------
275
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
276
+ --------------------------------------------------------------
277
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
278
+  (0.1ms) ROLLBACK
279
+  (0.1ms) BEGIN
280
+ -----------------------------------------------------------------
281
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
282
+ -----------------------------------------------------------------
283
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
284
+  (0.1ms) ROLLBACK
285
+  (0.1ms) BEGIN
286
+ ------------------------------------------------------------------------
287
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
288
+ ------------------------------------------------------------------------
289
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
290
+  (0.1ms) ROLLBACK
291
+  (0.1ms) BEGIN
292
+ -------------------------------------------------------------------------
293
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
294
+ -------------------------------------------------------------------------
295
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
296
+  (0.1ms) ROLLBACK
297
+  (0.1ms) BEGIN
298
+ ----------------------------
299
+ PostgresTreeTest: test_truth
300
+ ----------------------------
301
+  (0.1ms) ROLLBACK
302
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
303
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
304
+  (0.2ms) BEGIN
305
+ ---------------------------------------
306
+ PersonTest: test_person_fixtures_loaded
307
+ ---------------------------------------
308
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
309
+  (0.2ms) ROLLBACK
310
+  (0.1ms) BEGIN
311
+ --------------------------------------------------------------
312
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
313
+ --------------------------------------------------------------
314
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
315
+  (0.1ms) ROLLBACK
316
+  (0.1ms) BEGIN
317
+ -----------------------------------------------------------------
318
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
319
+ -----------------------------------------------------------------
320
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
321
+  (0.1ms) ROLLBACK
322
+  (0.1ms) BEGIN
323
+ ------------------------------------------------------------------------
324
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
325
+ ------------------------------------------------------------------------
326
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
327
+  (0.5ms) ROLLBACK
328
+  (0.1ms) BEGIN
329
+ -------------------------------------------------------------------------
330
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
331
+ -------------------------------------------------------------------------
332
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
333
+  (0.1ms) ROLLBACK
334
+  (0.1ms) BEGIN
335
+ ----------------------------
336
+ PostgresTreeTest: test_truth
337
+ ----------------------------
338
+  (0.1ms) ROLLBACK
339
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
340
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
341
+  (0.2ms) BEGIN
342
+ ----------------------------
343
+ PostgresTreeTest: test_truth
344
+ ----------------------------
345
+  (0.1ms) ROLLBACK
346
+  (0.1ms) BEGIN
347
+ ---------------------------------------
348
+ PersonTest: test_person_fixtures_loaded
349
+ ---------------------------------------
350
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
351
+  (0.1ms) ROLLBACK
352
+  (0.1ms) BEGIN
353
+ --------------------------------------------------------------
354
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
355
+ --------------------------------------------------------------
356
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
357
+  (0.1ms) ROLLBACK
358
+  (0.1ms) BEGIN
359
+ -----------------------------------------------------------------
360
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
361
+ -----------------------------------------------------------------
362
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
363
+  (0.1ms) ROLLBACK
364
+  (0.2ms) BEGIN
365
+ ------------------------------------------------------------------------
366
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
367
+ ------------------------------------------------------------------------
368
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
369
+  (0.1ms) ROLLBACK
370
+  (0.1ms) BEGIN
371
+ -------------------------------------------------------------------------
372
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
373
+ -------------------------------------------------------------------------
374
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
375
+  (0.1ms) ROLLBACK
376
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
377
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
378
+  (0.2ms) BEGIN
379
+ ---------------------------------------
380
+ PersonTest: test_person_fixtures_loaded
381
+ ---------------------------------------
382
+ Person Load (1.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
383
+  (0.2ms) ROLLBACK
384
+  (0.1ms) BEGIN
385
+ --------------------------------------------------------------
386
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
387
+ --------------------------------------------------------------
388
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
389
+  (0.1ms) ROLLBACK
390
+  (0.1ms) BEGIN
391
+ -----------------------------------------------------------------
392
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
393
+ -----------------------------------------------------------------
394
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
395
+  (0.1ms) ROLLBACK
396
+  (0.1ms) BEGIN
397
+ ------------------------------------------------------------------------
398
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
399
+ ------------------------------------------------------------------------
400
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
401
+  (0.1ms) ROLLBACK
402
+  (0.1ms) BEGIN
403
+ -------------------------------------------------------------------------
404
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
405
+ -------------------------------------------------------------------------
406
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
407
+  (0.1ms) ROLLBACK
408
+  (0.1ms) BEGIN
409
+ ----------------------------
410
+ PostgresTreeTest: test_truth
411
+ ----------------------------
412
+  (0.1ms) ROLLBACK
413
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
414
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
415
+  (0.2ms) BEGIN
416
+ ---------------------------------------
417
+ PersonTest: test_person_fixtures_loaded
418
+ ---------------------------------------
419
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
420
+  (0.1ms) ROLLBACK
421
+  (0.1ms) BEGIN
422
+ --------------------------------------------------------------
423
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
424
+ --------------------------------------------------------------
425
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
426
+  (0.1ms) ROLLBACK
427
+  (0.1ms) BEGIN
428
+ -----------------------------------------------------------------
429
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
430
+ -----------------------------------------------------------------
431
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
432
+  (0.1ms) ROLLBACK
433
+  (0.1ms) BEGIN
434
+ ------------------------------------------------------------------------
435
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
436
+ ------------------------------------------------------------------------
437
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
438
+  (0.1ms) ROLLBACK
439
+  (0.1ms) BEGIN
440
+ -------------------------------------------------------------------------
441
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
442
+ -------------------------------------------------------------------------
443
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
444
+  (0.1ms) ROLLBACK
445
+  (0.1ms) BEGIN
446
+ ----------------------------
447
+ PostgresTreeTest: test_truth
448
+ ----------------------------
449
+  (0.1ms) ROLLBACK
450
+ Person Load (1.8ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
451
+ Person Load (1.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
452
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
453
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
454
+ Something!
455
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
456
+  (0.2ms) BEGIN
457
+ ---------------------------------------
458
+ PersonTest: test_person_fixtures_loaded
459
+ ---------------------------------------
460
+ Person Load (1.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
461
+  (0.4ms) ROLLBACK
462
+  (0.1ms) BEGIN
463
+ --------------------------------------------------------------
464
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
465
+ --------------------------------------------------------------
466
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
467
+  (0.1ms) ROLLBACK
468
+  (0.1ms) BEGIN
469
+ -----------------------------------------------------------------
470
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
471
+ -----------------------------------------------------------------
472
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
473
+  (0.1ms) ROLLBACK
474
+  (0.1ms) BEGIN
475
+ ------------------------------------------------------------------------
476
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
477
+ ------------------------------------------------------------------------
478
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
479
+  (0.1ms) ROLLBACK
480
+  (0.1ms) BEGIN
481
+ -------------------------------------------------------------------------
482
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
483
+ -------------------------------------------------------------------------
484
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
485
+  (0.1ms) ROLLBACK
486
+  (0.1ms) BEGIN
487
+ ----------------------------
488
+ PostgresTreeTest: test_truth
489
+ ----------------------------
490
+  (0.1ms) ROLLBACK
491
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
492
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
493
+  (0.2ms) BEGIN
494
+ ---------------------------------------
495
+ PersonTest: test_person_fixtures_loaded
496
+ ---------------------------------------
497
+ Person Load (1.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
498
+  (0.9ms) ROLLBACK
499
+  (0.2ms) BEGIN
500
+ --------------------------------------------------------------
501
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
502
+ --------------------------------------------------------------
503
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
504
+  (0.1ms) ROLLBACK
505
+  (0.1ms) BEGIN
506
+ -----------------------------------------------------------------
507
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
508
+ -----------------------------------------------------------------
509
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
510
+  (0.1ms) ROLLBACK
511
+  (0.1ms) BEGIN
512
+ ------------------------------------------------------------------------
513
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
514
+ ------------------------------------------------------------------------
515
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
516
+  (0.1ms) ROLLBACK
517
+  (0.1ms) BEGIN
518
+ -------------------------------------------------------------------------
519
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
520
+ -------------------------------------------------------------------------
521
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
522
+  (0.1ms) ROLLBACK
523
+  (0.1ms) BEGIN
524
+ ----------------------------
525
+ PostgresTreeTest: test_truth
526
+ ----------------------------
527
+  (0.1ms) ROLLBACK
528
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
529
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
530
+  (0.2ms) BEGIN
531
+ ---------------------------------------
532
+ PersonTest: test_person_fixtures_loaded
533
+ ---------------------------------------
534
+ Person Load (0.8ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
535
+  (0.1ms) ROLLBACK
536
+  (0.1ms) BEGIN
537
+ --------------------------------------------------------------
538
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
539
+ --------------------------------------------------------------
540
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
541
+  (0.1ms) ROLLBACK
542
+  (0.1ms) BEGIN
543
+ -----------------------------------------------------------------
544
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
545
+ -----------------------------------------------------------------
546
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
547
+  (0.1ms) ROLLBACK
548
+  (0.1ms) BEGIN
549
+ ------------------------------------------------------------------------
550
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
551
+ ------------------------------------------------------------------------
552
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
553
+  (0.1ms) ROLLBACK
554
+  (0.1ms) BEGIN
555
+ -------------------------------------------------------------------------
556
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
557
+ -------------------------------------------------------------------------
558
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
559
+  (0.1ms) ROLLBACK
560
+  (0.1ms) BEGIN
561
+ ----------------------------
562
+ PostgresTreeTest: test_truth
563
+ ----------------------------
564
+  (0.1ms) ROLLBACK
565
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
566
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
567
+  (0.2ms) BEGIN
568
+ ---------------------------------------
569
+ PersonTest: test_person_fixtures_loaded
570
+ ---------------------------------------
571
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
572
+  (0.1ms) ROLLBACK
573
+  (0.1ms) BEGIN
574
+ --------------------------------------------------------------
575
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
576
+ --------------------------------------------------------------
577
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
578
+  (0.2ms) ROLLBACK
579
+  (0.1ms) BEGIN
580
+ -----------------------------------------------------------------
581
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
582
+ -----------------------------------------------------------------
583
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
584
+  (0.1ms) ROLLBACK
585
+  (0.1ms) BEGIN
586
+ ------------------------------------------------------------------------
587
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
588
+ ------------------------------------------------------------------------
589
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
590
+  (0.2ms) ROLLBACK
591
+  (0.1ms) BEGIN
592
+ -------------------------------------------------------------------------
593
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
594
+ -------------------------------------------------------------------------
595
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
596
+  (0.1ms) ROLLBACK
597
+  (0.1ms) BEGIN
598
+ ----------------------------
599
+ PostgresTreeTest: test_truth
600
+ ----------------------------
601
+  (0.1ms) ROLLBACK
602
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
603
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
604
+  (1.1ms) BEGIN
605
+ Fixture Delete (0.2ms) DELETE FROM "people"
606
+ Fixture Insert (1.1ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 03:30:08', '2014-09-18 03:30:08')
607
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 03:30:08', '2014-09-18 03:30:08')
608
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 03:30:08', '2014-09-18 03:30:08')
609
+  (43.5ms) COMMIT
610
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
611
+  (0.2ms) BEGIN
612
+ ----------------------------
613
+ PostgresTreeTest: test_truth
614
+ ----------------------------
615
+  (0.2ms) ROLLBACK
616
+  (0.1ms) BEGIN
617
+ ---------------------------------------
618
+ PersonTest: test_person_fixtures_loaded
619
+ ---------------------------------------
620
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
621
+  (0.1ms) ROLLBACK
622
+  (0.1ms) BEGIN
623
+ --------------------------------------------------------------
624
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
625
+ --------------------------------------------------------------
626
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
627
+  (0.1ms) ROLLBACK
628
+  (0.1ms) BEGIN
629
+ -----------------------------------------------------------------
630
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
631
+ -----------------------------------------------------------------
632
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
633
+  (0.8ms) ROLLBACK
634
+  (0.1ms) BEGIN
635
+ ------------------------------------------------------------------------
636
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
637
+ ------------------------------------------------------------------------
638
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
639
+  (0.1ms) ROLLBACK
640
+  (0.1ms) BEGIN
641
+ -------------------------------------------------------------------------
642
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
643
+ -------------------------------------------------------------------------
644
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
645
+  (0.2ms) ROLLBACK
646
+  (0.2ms) BEGIN
647
+ ----------------------------
648
+ PostgresTreeTest: test_truth
649
+ ----------------------------
650
+  (0.2ms) ROLLBACK
651
+  (0.1ms) BEGIN
652
+ ---------------------------------------
653
+ PersonTest: test_person_fixtures_loaded
654
+ ---------------------------------------
655
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
656
+ PG::UndefinedTable: ERROR: relation "people" does not exist
657
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
658
+ ^
659
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
660
+  (0.1ms) ROLLBACK
661
+  (0.1ms) BEGIN
662
+ --------------------------------------------------------------
663
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
664
+ --------------------------------------------------------------
665
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
666
+ PG::UndefinedTable: ERROR: relation "people" does not exist
667
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
668
+ ^
669
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
670
+  (0.1ms) ROLLBACK
671
+  (0.1ms) BEGIN
672
+ -----------------------------------------------------------------
673
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
674
+ -----------------------------------------------------------------
675
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
676
+ PG::UndefinedTable: ERROR: relation "people" does not exist
677
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
678
+ ^
679
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
680
+  (0.1ms) ROLLBACK
681
+  (0.1ms) BEGIN
682
+ ------------------------------------------------------------------------
683
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
684
+ ------------------------------------------------------------------------
685
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
686
+ PG::UndefinedTable: ERROR: relation "people" does not exist
687
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
688
+ ^
689
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
690
+  (0.1ms) ROLLBACK
691
+  (0.1ms) BEGIN
692
+ -------------------------------------------------------------------------
693
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
694
+ -------------------------------------------------------------------------
695
+ Person Load (1.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
696
+ PG::UndefinedTable: ERROR: relation "people" does not exist
697
+ LINE 1: SELECT "people".* FROM "people" ORDER BY "people"."id" AS...
698
+ ^
699
+ : SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
700
+  (0.1ms) ROLLBACK
701
+  (15.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
702
+  (63.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
703
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
704
+ Migrating to CreatePeople (20140918023556)
705
+  (0.2ms) BEGIN
706
+  (55.0ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp) 
707
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
708
+  (13.6ms) COMMIT
709
+  (0.2ms) BEGIN
710
+ ----------------------------
711
+ PostgresTreeTest: test_truth
712
+ ----------------------------
713
+  (0.1ms) ROLLBACK
714
+  (0.1ms) BEGIN
715
+ ---------------------------------------
716
+ PersonTest: test_person_fixtures_loaded
717
+ ---------------------------------------
718
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
719
+  (0.1ms) ROLLBACK
720
+  (0.1ms) BEGIN
721
+ --------------------------------------------------------------
722
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
723
+ --------------------------------------------------------------
724
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
725
+  (0.1ms) ROLLBACK
726
+  (0.1ms) BEGIN
727
+ -----------------------------------------------------------------
728
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
729
+ -----------------------------------------------------------------
730
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
731
+  (0.1ms) ROLLBACK
732
+  (0.1ms) BEGIN
733
+ ------------------------------------------------------------------------
734
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
735
+ ------------------------------------------------------------------------
736
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
737
+  (0.1ms) ROLLBACK
738
+  (0.1ms) BEGIN
739
+ -------------------------------------------------------------------------
740
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
741
+ -------------------------------------------------------------------------
742
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
743
+  (0.1ms) ROLLBACK
744
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
745
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
746
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
747
+  (0.2ms) BEGIN
748
+ Fixture Delete (0.3ms) DELETE FROM "people"
749
+ Fixture Insert (0.6ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 03:43:57', '2014-09-18 03:43:57')
750
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 03:43:57', '2014-09-18 03:43:57')
751
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 03:43:57', '2014-09-18 03:43:57')
752
+  (16.8ms) COMMIT
753
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
754
+  (0.1ms) BEGIN
755
+ ----------------------------
756
+ PostgresTreeTest: test_truth
757
+ ----------------------------
758
+  (0.1ms) ROLLBACK
759
+  (0.1ms) BEGIN
760
+ ---------------------------------------
761
+ PersonTest: test_person_fixtures_loaded
762
+ ---------------------------------------
763
+ Person Load (0.8ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
764
+  (0.2ms) ROLLBACK
765
+  (0.1ms) BEGIN
766
+ --------------------------------------------------------------
767
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
768
+ --------------------------------------------------------------
769
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
770
+  (0.1ms) ROLLBACK
771
+  (0.1ms) BEGIN
772
+ -----------------------------------------------------------------
773
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
774
+ -----------------------------------------------------------------
775
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
776
+  (0.1ms) ROLLBACK
777
+  (0.1ms) BEGIN
778
+ ------------------------------------------------------------------------
779
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
780
+ ------------------------------------------------------------------------
781
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
782
+  (0.1ms) ROLLBACK
783
+  (0.1ms) BEGIN
784
+ -------------------------------------------------------------------------
785
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
786
+ -------------------------------------------------------------------------
787
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
788
+  (0.1ms) ROLLBACK
789
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
790
+ SQL (39.9ms) DELETE FROM "schema_migrations"
791
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
792
+ Migrating to CreatePeople (20140918023556)
793
+  (0.1ms) BEGIN
794
+  (3.0ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp) 
795
+ PG::DuplicateTable: ERROR: relation "people" already exists
796
+ : CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
797
+  (0.1ms) ROLLBACK
798
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
799
+  (45.6ms) drop schema public cascade;
800
+  (7.2ms) create schema public;
801
+  (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
802
+  (65.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
803
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
804
+ Migrating to CreatePeople (20140918023556)
805
+  (0.2ms) BEGIN
806
+  (55.6ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
807
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
808
+  (14.8ms) COMMIT
809
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
810
+  (0.2ms) BEGIN
811
+ Fixture Delete (0.6ms) DELETE FROM "people"
812
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:08:51', '2014-09-18 04:08:51')
813
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:08:51', '2014-09-18 04:08:51')
814
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:08:51', '2014-09-18 04:08:51')
815
+  (9.0ms) COMMIT
816
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
817
+  (0.1ms) BEGIN
818
+ ---------------------------------------
819
+ PersonTest: test_person_fixtures_loaded
820
+ ---------------------------------------
821
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
822
+  (0.3ms) ROLLBACK
823
+  (0.1ms) BEGIN
824
+ --------------------------------------------------------------
825
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
826
+ --------------------------------------------------------------
827
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
828
+  (0.1ms) ROLLBACK
829
+  (0.1ms) BEGIN
830
+ -----------------------------------------------------------------
831
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
832
+ -----------------------------------------------------------------
833
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
834
+  (0.1ms) ROLLBACK
835
+  (0.1ms) BEGIN
836
+ ------------------------------------------------------------------------
837
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
838
+ ------------------------------------------------------------------------
839
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
840
+  (0.1ms) ROLLBACK
841
+  (0.1ms) BEGIN
842
+ -------------------------------------------------------------------------
843
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
844
+ -------------------------------------------------------------------------
845
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
846
+  (0.1ms) ROLLBACK
847
+  (0.7ms) BEGIN
848
+ ----------------------------
849
+ PostgresTreeTest: test_truth
850
+ ----------------------------
851
+  (0.1ms) ROLLBACK
852
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
853
+  (16.9ms) drop schema public cascade;
854
+  (7.2ms) create schema public;
855
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
856
+  (55.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
857
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
858
+ Migrating to CreatePeople (20140918023556)
859
+  (0.1ms) BEGIN
860
+  (50.1ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
861
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
862
+  (13.4ms) COMMIT
863
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
864
+  (0.2ms) BEGIN
865
+ Fixture Delete (0.3ms) DELETE FROM "people"
866
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:09:30', '2014-09-18 04:09:30')
867
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:09:30', '2014-09-18 04:09:30')
868
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:09:30', '2014-09-18 04:09:30')
869
+  (9.7ms) COMMIT
870
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
871
+  (0.1ms) BEGIN
872
+ ----------------------------
873
+ PostgresTreeTest: test_truth
874
+ ----------------------------
875
+  (0.1ms) ROLLBACK
876
+  (0.1ms) BEGIN
877
+ ---------------------------------------
878
+ PersonTest: test_person_fixtures_loaded
879
+ ---------------------------------------
880
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
881
+  (0.3ms) ROLLBACK
882
+  (0.1ms) BEGIN
883
+ --------------------------------------------------------------
884
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
885
+ --------------------------------------------------------------
886
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
887
+  (0.1ms) ROLLBACK
888
+  (0.1ms) BEGIN
889
+ -----------------------------------------------------------------
890
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
891
+ -----------------------------------------------------------------
892
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
893
+  (0.1ms) ROLLBACK
894
+  (0.1ms) BEGIN
895
+ ------------------------------------------------------------------------
896
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
897
+ ------------------------------------------------------------------------
898
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
899
+  (0.1ms) ROLLBACK
900
+  (0.1ms) BEGIN
901
+ -------------------------------------------------------------------------
902
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
903
+ -------------------------------------------------------------------------
904
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
905
+  (0.2ms) ROLLBACK
906
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
907
+  (18.1ms) drop schema public cascade;
908
+  (6.9ms) create schema public;
909
+  (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
910
+  (72.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
911
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
912
+ Migrating to CreatePeople (20140918023556)
913
+  (0.2ms) BEGIN
914
+  (51.9ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
915
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
916
+  (19.1ms) COMMIT
917
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
918
+  (0.1ms) BEGIN
919
+ Fixture Delete (0.4ms) DELETE FROM "people"
920
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:11:47', '2014-09-18 04:11:47')
921
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:11:47', '2014-09-18 04:11:47')
922
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:11:47', '2014-09-18 04:11:47')
923
+  (5.5ms) COMMIT
924
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
925
+  (0.1ms) BEGIN
926
+ ----------------------------
927
+ PostgresTreeTest: test_truth
928
+ ----------------------------
929
+  (0.1ms) ROLLBACK
930
+  (0.1ms) BEGIN
931
+ ---------------------------------------
932
+ PersonTest: test_person_fixtures_loaded
933
+ ---------------------------------------
934
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
935
+  (0.2ms) ROLLBACK
936
+  (0.1ms) BEGIN
937
+ --------------------------------------------------------------
938
+ PersonTest: test_postgresql_treeify_record_respond_to_acestors
939
+ --------------------------------------------------------------
940
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
941
+  (0.1ms) ROLLBACK
942
+  (0.1ms) BEGIN
943
+ -----------------------------------------------------------------
944
+ PersonTest: test_postgresql_treeify_record_respond_to_descendents
945
+ -----------------------------------------------------------------
946
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
947
+  (0.1ms) ROLLBACK
948
+  (0.2ms) BEGIN
949
+ ------------------------------------------------------------------------
950
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
951
+ ------------------------------------------------------------------------
952
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
953
+  (0.1ms) ROLLBACK
954
+  (0.1ms) BEGIN
955
+ -------------------------------------------------------------------------
956
+ PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
957
+ -------------------------------------------------------------------------
958
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
959
+  (0.1ms) ROLLBACK
960
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
961
+  (22.3ms) drop schema public cascade;
962
+  (6.3ms) create schema public;
963
+  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
964
+  (72.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
965
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
966
+ Migrating to CreatePeople (20140918023556)
967
+  (0.1ms) BEGIN
968
+  (63.7ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
969
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
970
+  (19.5ms) COMMIT
971
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
972
+  (43.8ms) drop schema public cascade;
973
+  (6.7ms) create schema public;
974
+  (7.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
975
+  (72.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
976
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
977
+ Migrating to CreatePeople (20140918023556)
978
+  (0.1ms) BEGIN
979
+  (50.5ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
980
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
981
+  (14.4ms) COMMIT
982
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
983
+  (0.1ms) BEGIN
984
+ Fixture Delete (0.5ms) DELETE FROM "people"
985
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:15:43', '2014-09-18 04:15:43')
986
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:15:43', '2014-09-18 04:15:43')
987
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:15:43', '2014-09-18 04:15:43')
988
+  (9.0ms) COMMIT
989
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
990
+  (0.1ms) BEGIN
991
+ ----------------------------
992
+ PostgresTreeTest: test_truth
993
+ ----------------------------
994
+  (0.1ms) ROLLBACK
995
+  (0.1ms) BEGIN
996
+ ---------------------------------------
997
+ PersonTest: test_person_fixtures_loaded
998
+ ---------------------------------------
999
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1000
+  (0.2ms) ROLLBACK
1001
+  (0.1ms) BEGIN
1002
+ ------------------------------------
1003
+ PersonTest: test_respond_to_acestors
1004
+ ------------------------------------
1005
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1006
+  (0.1ms) ROLLBACK
1007
+  (0.1ms) BEGIN
1008
+ ----------------------------------------------
1009
+ PersonTest: test_respond_to_acestors_includes?
1010
+ ----------------------------------------------
1011
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1012
+  (0.1ms) ROLLBACK
1013
+  (0.1ms) BEGIN
1014
+ ---------------------------------------
1015
+ PersonTest: test_respond_to_descendents
1016
+ ---------------------------------------
1017
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1018
+  (0.1ms) ROLLBACK
1019
+  (0.1ms) BEGIN
1020
+ -------------------------------------------------
1021
+ PersonTest: test_respond_to_descendents_includes?
1022
+ -------------------------------------------------
1023
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1024
+  (0.1ms) ROLLBACK
1025
+  (0.1ms) BEGIN
1026
+ ----------------------------------------------
1027
+ PersonTest: test_respond_to_self_and_ancestors
1028
+ ----------------------------------------------
1029
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1030
+  (0.1ms) ROLLBACK
1031
+  (0.1ms) BEGIN
1032
+ --------------------------------------------------------
1033
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1034
+ --------------------------------------------------------
1035
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1036
+  (0.2ms) ROLLBACK
1037
+  (0.1ms) BEGIN
1038
+ -----------------------------------------------
1039
+ PersonTest: test_respond_to_self_and_decendents
1040
+ -----------------------------------------------
1041
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1042
+  (0.1ms) ROLLBACK
1043
+  (0.1ms) BEGIN
1044
+ ---------------------------------------------------------
1045
+ PersonTest: test_respond_to_self_and_decendents_includes?
1046
+ ---------------------------------------------------------
1047
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1048
+  (0.1ms) ROLLBACK
1049
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1050
+  (26.8ms) drop schema public cascade;
1051
+  (6.9ms) create schema public;
1052
+  (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1053
+  (63.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1054
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1055
+ Migrating to CreatePeople (20140918023556)
1056
+  (0.2ms) BEGIN
1057
+  (60.4ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1058
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1059
+  (16.0ms) COMMIT
1060
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1061
+  (0.2ms) BEGIN
1062
+ Fixture Delete (0.3ms) DELETE FROM "people"
1063
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:30:24', '2014-09-18 04:30:24')
1064
+ Fixture Insert (0.6ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:30:24', '2014-09-18 04:30:24')
1065
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:30:24', '2014-09-18 04:30:24')
1066
+  (3.2ms) COMMIT
1067
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1068
+  (0.1ms) BEGIN
1069
+ ----------------------------
1070
+ PostgresTreeTest: test_truth
1071
+ ----------------------------
1072
+  (0.1ms) ROLLBACK
1073
+  (0.1ms) BEGIN
1074
+ ---------------------------------------
1075
+ PersonTest: test_person_fixtures_loaded
1076
+ ---------------------------------------
1077
+ Person Load (0.8ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1078
+  (0.3ms) ROLLBACK
1079
+  (0.1ms) BEGIN
1080
+ ------------------------------------
1081
+ PersonTest: test_respond_to_acestors
1082
+ ------------------------------------
1083
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1084
+  (0.1ms) ROLLBACK
1085
+  (0.1ms) BEGIN
1086
+ ----------------------------------------------
1087
+ PersonTest: test_respond_to_acestors_includes?
1088
+ ----------------------------------------------
1089
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1090
+  (0.1ms) ROLLBACK
1091
+  (0.1ms) BEGIN
1092
+ ---------------------------------------
1093
+ PersonTest: test_respond_to_descendents
1094
+ ---------------------------------------
1095
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1096
+  (0.1ms) ROLLBACK
1097
+  (0.1ms) BEGIN
1098
+ -------------------------------------------------
1099
+ PersonTest: test_respond_to_descendents_includes?
1100
+ -------------------------------------------------
1101
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1102
+  (0.1ms) ROLLBACK
1103
+  (0.1ms) BEGIN
1104
+ ----------------------------------------------
1105
+ PersonTest: test_respond_to_self_and_ancestors
1106
+ ----------------------------------------------
1107
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1108
+  (0.1ms) ROLLBACK
1109
+  (0.1ms) BEGIN
1110
+ --------------------------------------------------------
1111
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1112
+ --------------------------------------------------------
1113
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1114
+  (0.1ms) ROLLBACK
1115
+  (0.1ms) BEGIN
1116
+ -----------------------------------------------
1117
+ PersonTest: test_respond_to_self_and_decendents
1118
+ -----------------------------------------------
1119
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1120
+  (0.1ms) ROLLBACK
1121
+  (0.1ms) BEGIN
1122
+ ---------------------------------------------------------
1123
+ PersonTest: test_respond_to_self_and_decendents_includes?
1124
+ ---------------------------------------------------------
1125
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1126
+  (0.1ms) ROLLBACK
1127
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1128
+  (23.9ms) drop schema public cascade;
1129
+  (6.9ms) create schema public;
1130
+  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1131
+  (72.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1132
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1133
+ Migrating to CreatePeople (20140918023556)
1134
+  (0.2ms) BEGIN
1135
+  (43.1ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1136
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1137
+  (19.5ms) COMMIT
1138
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1139
+  (0.2ms) BEGIN
1140
+ Fixture Delete (0.3ms) DELETE FROM "people"
1141
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:32:33', '2014-09-18 04:32:33')
1142
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:32:33', '2014-09-18 04:32:33')
1143
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:32:33', '2014-09-18 04:32:33')
1144
+  (8.9ms) COMMIT
1145
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1146
+  (0.1ms) BEGIN
1147
+ ----------------------------
1148
+ PostgresTreeTest: test_truth
1149
+ ----------------------------
1150
+  (0.1ms) ROLLBACK
1151
+  (0.1ms) BEGIN
1152
+ ---------------------------------------
1153
+ PersonTest: test_person_fixtures_loaded
1154
+ ---------------------------------------
1155
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1156
+  (0.2ms) ROLLBACK
1157
+  (0.1ms) BEGIN
1158
+ ------------------------------------
1159
+ PersonTest: test_respond_to_acestors
1160
+ ------------------------------------
1161
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1162
+  (0.1ms) ROLLBACK
1163
+  (0.1ms) BEGIN
1164
+ ----------------------------------------------
1165
+ PersonTest: test_respond_to_acestors_includes?
1166
+ ----------------------------------------------
1167
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1168
+  (0.1ms) ROLLBACK
1169
+  (0.1ms) BEGIN
1170
+ ---------------------------------------
1171
+ PersonTest: test_respond_to_descendents
1172
+ ---------------------------------------
1173
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1174
+  (0.1ms) ROLLBACK
1175
+  (0.1ms) BEGIN
1176
+ -------------------------------------------------
1177
+ PersonTest: test_respond_to_descendents_includes?
1178
+ -------------------------------------------------
1179
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1180
+  (0.1ms) ROLLBACK
1181
+  (0.1ms) BEGIN
1182
+ ----------------------------------------------
1183
+ PersonTest: test_respond_to_self_and_ancestors
1184
+ ----------------------------------------------
1185
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1186
+  (0.2ms) ROLLBACK
1187
+  (0.1ms) BEGIN
1188
+ --------------------------------------------------------
1189
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1190
+ --------------------------------------------------------
1191
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1192
+  (0.1ms) ROLLBACK
1193
+  (0.1ms) BEGIN
1194
+ -----------------------------------------------
1195
+ PersonTest: test_respond_to_self_and_decendents
1196
+ -----------------------------------------------
1197
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1198
+  (0.1ms) ROLLBACK
1199
+  (0.1ms) BEGIN
1200
+ ---------------------------------------------------------
1201
+ PersonTest: test_respond_to_self_and_decendents_includes?
1202
+ ---------------------------------------------------------
1203
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1204
+  (0.1ms) ROLLBACK
1205
+ Person Load (1.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1206
+ Person Load (1.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1207
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1208
+  (44.6ms) drop schema public cascade;
1209
+  (65.2ms) create schema public;
1210
+  (8.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1211
+  (73.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1212
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1213
+ Migrating to CreatePeople (20140918023556)
1214
+  (0.2ms) BEGIN
1215
+  (61.8ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1216
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1217
+  (18.8ms) COMMIT
1218
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1219
+  (6.5ms) drop schema public cascade;
1220
+  (7.5ms) create schema public;
1221
+  (8.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1222
+  (63.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1223
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1224
+ Migrating to CreatePeople (20140918023556)
1225
+  (0.2ms) BEGIN
1226
+  (42.4ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1227
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1228
+  (11.8ms) COMMIT
1229
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1230
+  (0.2ms) BEGIN
1231
+ Fixture Delete (0.3ms) DELETE FROM "people"
1232
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:50:07', '2014-09-18 04:50:07')
1233
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:50:07', '2014-09-18 04:50:07')
1234
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:50:07', '2014-09-18 04:50:07')
1235
+  (7.1ms) COMMIT
1236
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1237
+  (0.1ms) BEGIN
1238
+ ----------------------------
1239
+ PostgresTreeTest: test_truth
1240
+ ----------------------------
1241
+  (0.1ms) ROLLBACK
1242
+  (0.1ms) BEGIN
1243
+ ---------------------------------------
1244
+ PersonTest: test_person_fixtures_loaded
1245
+ ---------------------------------------
1246
+ Person Load (1.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1247
+  (1.0ms) ROLLBACK
1248
+  (0.1ms) BEGIN
1249
+ ------------------------------------
1250
+ PersonTest: test_respond_to_acestors
1251
+ ------------------------------------
1252
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1253
+  (0.2ms) ROLLBACK
1254
+  (0.1ms) BEGIN
1255
+ ----------------------------------------------
1256
+ PersonTest: test_respond_to_acestors_includes?
1257
+ ----------------------------------------------
1258
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1259
+  (0.1ms) ROLLBACK
1260
+  (0.1ms) BEGIN
1261
+ ---------------------------------------
1262
+ PersonTest: test_respond_to_descendents
1263
+ ---------------------------------------
1264
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1265
+  (0.2ms) ROLLBACK
1266
+  (0.1ms) BEGIN
1267
+ -------------------------------------------------
1268
+ PersonTest: test_respond_to_descendents_includes?
1269
+ -------------------------------------------------
1270
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1271
+  (0.2ms) ROLLBACK
1272
+  (0.1ms) BEGIN
1273
+ ----------------------------------------------
1274
+ PersonTest: test_respond_to_self_and_ancestors
1275
+ ----------------------------------------------
1276
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1277
+  (0.1ms) ROLLBACK
1278
+  (0.1ms) BEGIN
1279
+ --------------------------------------------------------
1280
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1281
+ --------------------------------------------------------
1282
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1283
+  (0.1ms) ROLLBACK
1284
+  (0.1ms) BEGIN
1285
+ -----------------------------------------------
1286
+ PersonTest: test_respond_to_self_and_decendents
1287
+ -----------------------------------------------
1288
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1289
+  (0.1ms) ROLLBACK
1290
+  (0.1ms) BEGIN
1291
+ ---------------------------------------------------------
1292
+ PersonTest: test_respond_to_self_and_decendents_includes?
1293
+ ---------------------------------------------------------
1294
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1295
+  (0.1ms) ROLLBACK
1296
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1297
+  (21.2ms) drop schema public cascade;
1298
+  (7.3ms) create schema public;
1299
+  (4.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1300
+  (63.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1301
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1302
+ Migrating to CreatePeople (20140918023556)
1303
+  (0.1ms) BEGIN
1304
+  (50.2ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1305
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1306
+  (15.4ms) COMMIT
1307
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1308
+  (0.1ms) BEGIN
1309
+ Fixture Delete (0.5ms) DELETE FROM "people"
1310
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:51:06', '2014-09-18 04:51:06')
1311
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:51:06', '2014-09-18 04:51:06')
1312
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:51:06', '2014-09-18 04:51:06')
1313
+  (5.9ms) COMMIT
1314
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1315
+  (0.1ms) BEGIN
1316
+ ----------------------------
1317
+ PostgresTreeTest: test_truth
1318
+ ----------------------------
1319
+  (0.1ms) ROLLBACK
1320
+  (0.1ms) BEGIN
1321
+ ---------------------------------------
1322
+ PersonTest: test_person_fixtures_loaded
1323
+ ---------------------------------------
1324
+ Person Load (0.8ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1325
+  (0.2ms) ROLLBACK
1326
+  (0.1ms) BEGIN
1327
+ ------------------------------------
1328
+ PersonTest: test_respond_to_acestors
1329
+ ------------------------------------
1330
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1331
+  (0.2ms) ROLLBACK
1332
+  (0.1ms) BEGIN
1333
+ ----------------------------------------------
1334
+ PersonTest: test_respond_to_acestors_includes?
1335
+ ----------------------------------------------
1336
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1337
+  (0.1ms) ROLLBACK
1338
+  (0.1ms) BEGIN
1339
+ ---------------------------------------
1340
+ PersonTest: test_respond_to_descendents
1341
+ ---------------------------------------
1342
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1343
+  (0.1ms) ROLLBACK
1344
+  (0.1ms) BEGIN
1345
+ -------------------------------------------------
1346
+ PersonTest: test_respond_to_descendents_includes?
1347
+ -------------------------------------------------
1348
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1349
+  (0.1ms) ROLLBACK
1350
+  (0.1ms) BEGIN
1351
+ ----------------------------------------------
1352
+ PersonTest: test_respond_to_self_and_ancestors
1353
+ ----------------------------------------------
1354
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1355
+  (0.1ms) ROLLBACK
1356
+  (0.1ms) BEGIN
1357
+ --------------------------------------------------------
1358
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1359
+ --------------------------------------------------------
1360
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1361
+  (0.1ms) ROLLBACK
1362
+  (0.1ms) BEGIN
1363
+ -----------------------------------------------
1364
+ PersonTest: test_respond_to_self_and_decendents
1365
+ -----------------------------------------------
1366
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1367
+  (0.1ms) ROLLBACK
1368
+  (0.1ms) BEGIN
1369
+ ---------------------------------------------------------
1370
+ PersonTest: test_respond_to_self_and_decendents_includes?
1371
+ ---------------------------------------------------------
1372
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1373
+  (0.1ms) ROLLBACK
1374
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1375
+  (45.0ms) drop schema public cascade;
1376
+  (6.5ms) create schema public;
1377
+  (13.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1378
+  (90.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1379
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1380
+ Migrating to CreatePeople (20140918023556)
1381
+  (0.1ms) BEGIN
1382
+  (90.8ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1383
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1384
+  (13.5ms) COMMIT
1385
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1386
+  (0.1ms) BEGIN
1387
+ Fixture Delete (0.2ms) DELETE FROM "people"
1388
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:54:46', '2014-09-18 04:54:46')
1389
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:54:46', '2014-09-18 04:54:46')
1390
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:54:46', '2014-09-18 04:54:46')
1391
+  (5.9ms) COMMIT
1392
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1393
+  (0.1ms) BEGIN
1394
+ ----------------------------
1395
+ PostgresTreeTest: test_truth
1396
+ ----------------------------
1397
+  (0.1ms) ROLLBACK
1398
+  (0.1ms) BEGIN
1399
+ ---------------------------------------
1400
+ PersonTest: test_person_fixtures_loaded
1401
+ ---------------------------------------
1402
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1403
+  (0.2ms) ROLLBACK
1404
+  (0.1ms) BEGIN
1405
+ ------------------------------------
1406
+ PersonTest: test_respond_to_acestors
1407
+ ------------------------------------
1408
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1409
+  (0.2ms) ROLLBACK
1410
+  (0.1ms) BEGIN
1411
+ ----------------------------------------------
1412
+ PersonTest: test_respond_to_acestors_includes?
1413
+ ----------------------------------------------
1414
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1415
+  (0.2ms) ROLLBACK
1416
+  (0.2ms) BEGIN
1417
+ ---------------------------------------
1418
+ PersonTest: test_respond_to_descendents
1419
+ ---------------------------------------
1420
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1421
+  (0.2ms) ROLLBACK
1422
+  (0.1ms) BEGIN
1423
+ -------------------------------------------------
1424
+ PersonTest: test_respond_to_descendents_includes?
1425
+ -------------------------------------------------
1426
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1427
+  (0.1ms) ROLLBACK
1428
+  (0.1ms) BEGIN
1429
+ ----------------------------------------------
1430
+ PersonTest: test_respond_to_self_and_ancestors
1431
+ ----------------------------------------------
1432
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1433
+  (0.1ms) ROLLBACK
1434
+  (0.1ms) BEGIN
1435
+ --------------------------------------------------------
1436
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1437
+ --------------------------------------------------------
1438
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1439
+  (0.1ms) ROLLBACK
1440
+  (0.1ms) BEGIN
1441
+ -----------------------------------------------
1442
+ PersonTest: test_respond_to_self_and_decendents
1443
+ -----------------------------------------------
1444
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1445
+  (0.1ms) ROLLBACK
1446
+  (0.1ms) BEGIN
1447
+ ---------------------------------------------------------
1448
+ PersonTest: test_respond_to_self_and_decendents_includes?
1449
+ ---------------------------------------------------------
1450
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1451
+  (0.1ms) ROLLBACK
1452
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1453
+  (11.1ms) drop schema public cascade;
1454
+  (7.3ms) create schema public;
1455
+  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1456
+  (54.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1457
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1458
+ Migrating to CreatePeople (20140918023556)
1459
+  (0.1ms) BEGIN
1460
+  (73.3ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1461
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1462
+  (16.8ms) COMMIT
1463
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1464
+  (0.2ms) BEGIN
1465
+ Fixture Delete (0.3ms) DELETE FROM "people"
1466
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:56:02', '2014-09-18 04:56:02')
1467
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:56:02', '2014-09-18 04:56:02')
1468
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:56:02', '2014-09-18 04:56:02')
1469
+  (3.6ms) COMMIT
1470
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1471
+  (0.1ms) BEGIN
1472
+ ----------------------------
1473
+ PostgresTreeTest: test_truth
1474
+ ----------------------------
1475
+  (0.1ms) ROLLBACK
1476
+  (0.1ms) BEGIN
1477
+ ---------------------------------------
1478
+ PersonTest: test_person_fixtures_loaded
1479
+ ---------------------------------------
1480
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1481
+  (0.1ms) ROLLBACK
1482
+  (0.1ms) BEGIN
1483
+ ------------------------------------
1484
+ PersonTest: test_respond_to_acestors
1485
+ ------------------------------------
1486
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1487
+  (0.1ms) ROLLBACK
1488
+  (0.1ms) BEGIN
1489
+ ----------------------------------------------
1490
+ PersonTest: test_respond_to_acestors_includes?
1491
+ ----------------------------------------------
1492
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1493
+  (0.1ms) ROLLBACK
1494
+  (0.1ms) BEGIN
1495
+ ---------------------------------------
1496
+ PersonTest: test_respond_to_descendents
1497
+ ---------------------------------------
1498
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1499
+  (0.1ms) ROLLBACK
1500
+  (0.1ms) BEGIN
1501
+ -------------------------------------------------
1502
+ PersonTest: test_respond_to_descendents_includes?
1503
+ -------------------------------------------------
1504
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1505
+  (0.3ms) ROLLBACK
1506
+  (0.1ms) BEGIN
1507
+ ----------------------------------------------
1508
+ PersonTest: test_respond_to_self_and_ancestors
1509
+ ----------------------------------------------
1510
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1511
+  (0.1ms) ROLLBACK
1512
+  (0.1ms) BEGIN
1513
+ --------------------------------------------------------
1514
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1515
+ --------------------------------------------------------
1516
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1517
+  (0.1ms) ROLLBACK
1518
+  (0.1ms) BEGIN
1519
+ -----------------------------------------------
1520
+ PersonTest: test_respond_to_self_and_decendents
1521
+ -----------------------------------------------
1522
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1523
+  (0.1ms) ROLLBACK
1524
+  (0.1ms) BEGIN
1525
+ ---------------------------------------------------------
1526
+ PersonTest: test_respond_to_self_and_decendents_includes?
1527
+ ---------------------------------------------------------
1528
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1529
+  (0.1ms) ROLLBACK
1530
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1531
+  (15.9ms) drop schema public cascade;
1532
+  (7.2ms) create schema public;
1533
+  (13.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1534
+  (64.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1535
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1536
+ Migrating to CreatePeople (20140918023556)
1537
+  (0.2ms) BEGIN
1538
+  (36.5ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1539
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1540
+  (18.1ms) COMMIT
1541
+  (9.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1542
+  (0.2ms) BEGIN
1543
+ Fixture Delete (0.5ms) DELETE FROM "people"
1544
+ Fixture Insert (0.6ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 04:59:16', '2014-09-18 04:59:16')
1545
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 04:59:16', '2014-09-18 04:59:16')
1546
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 04:59:16', '2014-09-18 04:59:16')
1547
+  (8.3ms) COMMIT
1548
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1549
+  (0.1ms) BEGIN
1550
+ ----------------------------
1551
+ PostgresTreeTest: test_truth
1552
+ ----------------------------
1553
+  (0.1ms) ROLLBACK
1554
+  (0.1ms) BEGIN
1555
+ ---------------------------------------
1556
+ PersonTest: test_person_fixtures_loaded
1557
+ ---------------------------------------
1558
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1559
+  (0.2ms) ROLLBACK
1560
+  (0.1ms) BEGIN
1561
+ ------------------------------------
1562
+ PersonTest: test_respond_to_acestors
1563
+ ------------------------------------
1564
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1565
+  (0.1ms) ROLLBACK
1566
+  (0.1ms) BEGIN
1567
+ ----------------------------------------------
1568
+ PersonTest: test_respond_to_acestors_includes?
1569
+ ----------------------------------------------
1570
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1571
+  (0.1ms) ROLLBACK
1572
+  (0.1ms) BEGIN
1573
+ ---------------------------------------
1574
+ PersonTest: test_respond_to_descendents
1575
+ ---------------------------------------
1576
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1577
+  (0.1ms) ROLLBACK
1578
+  (0.1ms) BEGIN
1579
+ -------------------------------------------------
1580
+ PersonTest: test_respond_to_descendents_includes?
1581
+ -------------------------------------------------
1582
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1583
+  (0.1ms) ROLLBACK
1584
+  (0.1ms) BEGIN
1585
+ ----------------------------------------------
1586
+ PersonTest: test_respond_to_self_and_ancestors
1587
+ ----------------------------------------------
1588
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1589
+  (0.1ms) ROLLBACK
1590
+  (0.1ms) BEGIN
1591
+ --------------------------------------------------------
1592
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1593
+ --------------------------------------------------------
1594
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1595
+  (0.1ms) ROLLBACK
1596
+  (0.1ms) BEGIN
1597
+ -----------------------------------------------
1598
+ PersonTest: test_respond_to_self_and_decendents
1599
+ -----------------------------------------------
1600
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1601
+  (0.1ms) ROLLBACK
1602
+  (0.1ms) BEGIN
1603
+ ---------------------------------------------------------
1604
+ PersonTest: test_respond_to_self_and_decendents_includes?
1605
+ ---------------------------------------------------------
1606
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1607
+  (0.1ms) ROLLBACK
1608
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
1609
+  (50.3ms) drop schema public cascade;
1610
+  (6.9ms) create schema public;
1611
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1612
+  (64.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1613
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1614
+ Migrating to CreatePeople (20140918023556)
1615
+  (0.2ms) BEGIN
1616
+  (52.9ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1617
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1618
+  (18.9ms) COMMIT
1619
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1620
+  (0.1ms) BEGIN
1621
+ Fixture Delete (0.5ms) DELETE FROM "people"
1622
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:00:29', '2014-09-18 05:00:29')
1623
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:00:29', '2014-09-18 05:00:29')
1624
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:00:29', '2014-09-18 05:00:29')
1625
+  (3.5ms) COMMIT
1626
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1627
+  (0.1ms) BEGIN
1628
+ ----------------------------
1629
+ PostgresTreeTest: test_truth
1630
+ ----------------------------
1631
+  (0.1ms) ROLLBACK
1632
+  (0.1ms) BEGIN
1633
+ ---------------------------------------
1634
+ PersonTest: test_person_fixtures_loaded
1635
+ ---------------------------------------
1636
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1637
+  (0.2ms) ROLLBACK
1638
+  (0.1ms) BEGIN
1639
+ ------------------------------------
1640
+ PersonTest: test_respond_to_acestors
1641
+ ------------------------------------
1642
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1643
+  (0.1ms) ROLLBACK
1644
+  (0.1ms) BEGIN
1645
+ ----------------------------------------------
1646
+ PersonTest: test_respond_to_acestors_includes?
1647
+ ----------------------------------------------
1648
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1649
+  (0.1ms) ROLLBACK
1650
+  (0.1ms) BEGIN
1651
+ ---------------------------------------
1652
+ PersonTest: test_respond_to_descendents
1653
+ ---------------------------------------
1654
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1655
+  (0.1ms) ROLLBACK
1656
+  (0.1ms) BEGIN
1657
+ -------------------------------------------------
1658
+ PersonTest: test_respond_to_descendents_includes?
1659
+ -------------------------------------------------
1660
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1661
+  (0.1ms) ROLLBACK
1662
+  (0.1ms) BEGIN
1663
+ ----------------------------------------------
1664
+ PersonTest: test_respond_to_self_and_ancestors
1665
+ ----------------------------------------------
1666
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1667
+  (0.1ms) ROLLBACK
1668
+  (0.1ms) BEGIN
1669
+ --------------------------------------------------------
1670
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1671
+ --------------------------------------------------------
1672
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1673
+  (0.1ms) ROLLBACK
1674
+  (0.1ms) BEGIN
1675
+ -----------------------------------------------
1676
+ PersonTest: test_respond_to_self_and_decendents
1677
+ -----------------------------------------------
1678
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1679
+  (0.1ms) ROLLBACK
1680
+  (0.1ms) BEGIN
1681
+ ---------------------------------------------------------
1682
+ PersonTest: test_respond_to_self_and_decendents_includes?
1683
+ ---------------------------------------------------------
1684
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1685
+  (0.1ms) ROLLBACK
1686
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1687
+  (6.4ms) drop schema public cascade;
1688
+  (7.9ms) create schema public;
1689
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1690
+  (64.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1691
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1692
+ Migrating to CreatePeople (20140918023556)
1693
+  (0.1ms) BEGIN
1694
+  (49.3ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1695
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1696
+  (39.6ms) COMMIT
1697
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1698
+  (0.1ms) BEGIN
1699
+ Fixture Delete (0.3ms) DELETE FROM "people"
1700
+ Fixture Insert (0.8ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:03:00', '2014-09-18 05:03:00')
1701
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:03:00', '2014-09-18 05:03:00')
1702
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:03:00', '2014-09-18 05:03:00')
1703
+  (34.6ms) COMMIT
1704
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1705
+  (0.1ms) BEGIN
1706
+ ----------------------------
1707
+ PostgresTreeTest: test_truth
1708
+ ----------------------------
1709
+  (0.1ms) ROLLBACK
1710
+  (0.1ms) BEGIN
1711
+ ---------------------------------------
1712
+ PersonTest: test_person_fixtures_loaded
1713
+ ---------------------------------------
1714
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1715
+  (0.2ms) ROLLBACK
1716
+  (0.1ms) BEGIN
1717
+ ------------------------------------
1718
+ PersonTest: test_respond_to_acestors
1719
+ ------------------------------------
1720
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1721
+  (0.1ms) ROLLBACK
1722
+  (0.1ms) BEGIN
1723
+ ----------------------------------------------
1724
+ PersonTest: test_respond_to_acestors_includes?
1725
+ ----------------------------------------------
1726
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1727
+  (0.1ms) ROLLBACK
1728
+  (0.1ms) BEGIN
1729
+ ---------------------------------------
1730
+ PersonTest: test_respond_to_descendents
1731
+ ---------------------------------------
1732
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1733
+  (0.1ms) ROLLBACK
1734
+  (0.1ms) BEGIN
1735
+ -------------------------------------------------
1736
+ PersonTest: test_respond_to_descendents_includes?
1737
+ -------------------------------------------------
1738
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1739
+  (0.1ms) ROLLBACK
1740
+  (0.1ms) BEGIN
1741
+ ----------------------------------------------
1742
+ PersonTest: test_respond_to_self_and_ancestors
1743
+ ----------------------------------------------
1744
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1745
+  (0.1ms) ROLLBACK
1746
+  (0.1ms) BEGIN
1747
+ --------------------------------------------------------
1748
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1749
+ --------------------------------------------------------
1750
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1751
+  (0.1ms) ROLLBACK
1752
+  (0.1ms) BEGIN
1753
+ -----------------------------------------------
1754
+ PersonTest: test_respond_to_self_and_decendents
1755
+ -----------------------------------------------
1756
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1757
+  (0.1ms) ROLLBACK
1758
+  (0.1ms) BEGIN
1759
+ ---------------------------------------------------------
1760
+ PersonTest: test_respond_to_self_and_decendents_includes?
1761
+ ---------------------------------------------------------
1762
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1763
+  (0.1ms) ROLLBACK
1764
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1765
+  (11.3ms) drop schema public cascade;
1766
+  (7.3ms) create schema public;
1767
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1768
+  (55.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1769
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1770
+ Migrating to CreatePeople (20140918023556)
1771
+  (0.2ms) BEGIN
1772
+  (43.7ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1773
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1774
+  (18.8ms) COMMIT
1775
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1776
+  (0.1ms) BEGIN
1777
+ Fixture Delete (0.6ms) DELETE FROM "people"
1778
+ Fixture Insert (1.1ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:05:54', '2014-09-18 05:05:54')
1779
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:05:54', '2014-09-18 05:05:54')
1780
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:05:54', '2014-09-18 05:05:54')
1781
+  (9.6ms) COMMIT
1782
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1783
+  (0.1ms) BEGIN
1784
+ ---------------------------------------
1785
+ PersonTest: test_person_fixtures_loaded
1786
+ ---------------------------------------
1787
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1788
+  (0.2ms) ROLLBACK
1789
+  (0.1ms) BEGIN
1790
+ ------------------------------------
1791
+ PersonTest: test_respond_to_acestors
1792
+ ------------------------------------
1793
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1794
+  (0.1ms) ROLLBACK
1795
+  (0.1ms) BEGIN
1796
+ ----------------------------------------------
1797
+ PersonTest: test_respond_to_acestors_includes?
1798
+ ----------------------------------------------
1799
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1800
+  (0.1ms) ROLLBACK
1801
+  (1.5ms) BEGIN
1802
+ ---------------------------------------
1803
+ PersonTest: test_respond_to_descendents
1804
+ ---------------------------------------
1805
+ Person Load (1.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1806
+  (0.1ms) ROLLBACK
1807
+  (0.1ms) BEGIN
1808
+ -------------------------------------------------
1809
+ PersonTest: test_respond_to_descendents_includes?
1810
+ -------------------------------------------------
1811
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1812
+  (0.1ms) ROLLBACK
1813
+  (0.1ms) BEGIN
1814
+ ----------------------------------------------
1815
+ PersonTest: test_respond_to_self_and_ancestors
1816
+ ----------------------------------------------
1817
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1818
+  (0.1ms) ROLLBACK
1819
+  (0.1ms) BEGIN
1820
+ --------------------------------------------------------
1821
+ PersonTest: test_respond_to_self_and_ancestors_includes?
1822
+ --------------------------------------------------------
1823
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1824
+  (0.1ms) ROLLBACK
1825
+  (0.1ms) BEGIN
1826
+ -----------------------------------------------
1827
+ PersonTest: test_respond_to_self_and_decendents
1828
+ -----------------------------------------------
1829
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1830
+  (0.1ms) ROLLBACK
1831
+  (0.1ms) BEGIN
1832
+ ---------------------------------------------------------
1833
+ PersonTest: test_respond_to_self_and_decendents_includes?
1834
+ ---------------------------------------------------------
1835
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1836
+  (0.1ms) ROLLBACK
1837
+  (0.1ms) BEGIN
1838
+ ----------------------------
1839
+ PostgresTreeTest: test_truth
1840
+ ----------------------------
1841
+  (0.1ms) ROLLBACK
1842
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1843
+  (7.1ms) drop schema public cascade;
1844
+  (7.7ms) create schema public;
1845
+  (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1846
+  (48.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1847
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1848
+ Migrating to CreatePeople (20140918023556)
1849
+  (0.3ms) BEGIN
1850
+  (36.2ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1851
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1852
+  (11.0ms) COMMIT
1853
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1854
+  (0.2ms) BEGIN
1855
+ Fixture Delete (0.6ms) DELETE FROM "people"
1856
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:06:45', '2014-09-18 05:06:45')
1857
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:06:45', '2014-09-18 05:06:45')
1858
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:06:45', '2014-09-18 05:06:45')
1859
+  (3.2ms) COMMIT
1860
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1861
+  (0.1ms) BEGIN
1862
+ ---------------------------------------
1863
+ PersonTest: test_person_fixtures_loaded
1864
+ ---------------------------------------
1865
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1866
+  (0.1ms) ROLLBACK
1867
+  (0.1ms) BEGIN
1868
+ ------------------------------------
1869
+ PersonTest: test_respond_to_acestors
1870
+ ------------------------------------
1871
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1872
+  (0.1ms) ROLLBACK
1873
+  (0.1ms) BEGIN
1874
+ ---------------------------------------------
1875
+ PersonTest: test_respond_to_acestors_include?
1876
+ ---------------------------------------------
1877
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1878
+  (0.1ms) ROLLBACK
1879
+  (0.1ms) BEGIN
1880
+ ---------------------------------------
1881
+ PersonTest: test_respond_to_descendents
1882
+ ---------------------------------------
1883
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1884
+  (0.1ms) ROLLBACK
1885
+  (0.1ms) BEGIN
1886
+ ------------------------------------------------
1887
+ PersonTest: test_respond_to_descendents_include?
1888
+ ------------------------------------------------
1889
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1890
+  (0.1ms) ROLLBACK
1891
+  (0.1ms) BEGIN
1892
+ ----------------------------------------------
1893
+ PersonTest: test_respond_to_self_and_ancestors
1894
+ ----------------------------------------------
1895
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1896
+  (0.1ms) ROLLBACK
1897
+  (0.1ms) BEGIN
1898
+ -------------------------------------------------------
1899
+ PersonTest: test_respond_to_self_and_ancestors_include?
1900
+ -------------------------------------------------------
1901
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1902
+  (4.0ms) ROLLBACK
1903
+  (0.1ms) BEGIN
1904
+ -----------------------------------------------
1905
+ PersonTest: test_respond_to_self_and_decendents
1906
+ -----------------------------------------------
1907
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1908
+  (0.1ms) ROLLBACK
1909
+  (0.1ms) BEGIN
1910
+ --------------------------------------------------------
1911
+ PersonTest: test_respond_to_self_and_decendents_include?
1912
+ --------------------------------------------------------
1913
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1914
+  (0.1ms) ROLLBACK
1915
+  (0.1ms) BEGIN
1916
+ ----------------------------
1917
+ PostgresTreeTest: test_truth
1918
+ ----------------------------
1919
+  (0.1ms) ROLLBACK
1920
+ Person Load (1.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1921
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1922
+ Person Load (1.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1923
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1924
+ Person Load (1.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
1925
+ SELECT id, parent_id, ARRAY[id]
1926
+ FROM people
1927
+ WHERE id = 1
1928
+ UNION ALL
1929
+ SELECT people.id, people.parent_id, path || people.id
1930
+ FROM search_tree
1931
+ JOIN people ON people.id = search_tree.parent_id
1932
+ WHERE NOT people.id = ANY(path)
1933
+ )
1934
+ SELECT id FROM search_tree ORDER BY path DESC
1935
+ ))
1936
+ Person Load (1.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1937
+ Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1938
+ Person Load (2.3ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
1939
+ SELECT id, parent_id, ARRAY[id]
1940
+ FROM people
1941
+ WHERE id = 1
1942
+ UNION ALL
1943
+ SELECT people.id, people.parent_id, path || people.id
1944
+ FROM search_tree
1945
+ JOIN people ON people.id = search_tree.parent_id
1946
+ WHERE NOT people.id = ANY(path)
1947
+ )
1948
+ SELECT id FROM search_tree ORDER BY path DESC
1949
+ ))
1950
+ Person Load (1.9ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
1951
+ SELECT id, parent_id, ARRAY[id]
1952
+ FROM people
1953
+ WHERE id = 1
1954
+ UNION ALL
1955
+ SELECT people.id, people.parent_id, path || people.id
1956
+ FROM search_tree
1957
+ JOIN people ON people.id = search_tree.parent_id
1958
+ WHERE NOT people.id = ANY(path)
1959
+ )
1960
+ SELECT id FROM search_tree ORDER BY path DESC
1961
+ ))
1962
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1963
+  (49.2ms) drop schema public cascade;
1964
+  (47.8ms) create schema public;
1965
+  (40.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
1966
+  (79.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1967
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1968
+ Migrating to CreatePeople (20140918023556)
1969
+  (0.1ms) BEGIN
1970
+  (54.4ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
1971
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
1972
+  (16.7ms) COMMIT
1973
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
1974
+  (0.2ms) BEGIN
1975
+ Fixture Delete (0.5ms) DELETE FROM "people"
1976
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:44:08', '2014-09-18 05:44:08')
1977
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:44:08', '2014-09-18 05:44:08')
1978
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:44:08', '2014-09-18 05:44:08')
1979
+  (6.5ms) COMMIT
1980
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
1981
+  (0.1ms) BEGIN
1982
+ ----------------------------
1983
+ PostgresTreeTest: test_truth
1984
+ ----------------------------
1985
+  (0.1ms) ROLLBACK
1986
+  (0.1ms) BEGIN
1987
+ ---------------------------------------
1988
+ PersonTest: test_person_fixtures_loaded
1989
+ ---------------------------------------
1990
+ Person Load (0.7ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1991
+  (0.1ms) ROLLBACK
1992
+  (0.1ms) BEGIN
1993
+ ------------------------------------
1994
+ PersonTest: test_respond_to_acestors
1995
+ ------------------------------------
1996
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
1997
+  (0.1ms) ROLLBACK
1998
+  (0.1ms) BEGIN
1999
+ ---------------------------------------------
2000
+ PersonTest: test_respond_to_acestors_include?
2001
+ ---------------------------------------------
2002
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2003
+  (0.1ms) ROLLBACK
2004
+  (0.3ms) BEGIN
2005
+ ---------------------------------------
2006
+ PersonTest: test_respond_to_descendents
2007
+ ---------------------------------------
2008
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2009
+  (0.7ms) ROLLBACK
2010
+  (0.1ms) BEGIN
2011
+ ------------------------------------------------
2012
+ PersonTest: test_respond_to_descendents_include?
2013
+ ------------------------------------------------
2014
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2015
+  (0.1ms) ROLLBACK
2016
+  (0.1ms) BEGIN
2017
+ ----------------------------------------------
2018
+ PersonTest: test_respond_to_self_and_ancestors
2019
+ ----------------------------------------------
2020
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2021
+  (0.1ms) ROLLBACK
2022
+  (0.1ms) BEGIN
2023
+ -------------------------------------------------------
2024
+ PersonTest: test_respond_to_self_and_ancestors_include?
2025
+ -------------------------------------------------------
2026
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2027
+  (0.1ms) ROLLBACK
2028
+  (0.1ms) BEGIN
2029
+ -----------------------------------------------
2030
+ PersonTest: test_respond_to_self_and_decendents
2031
+ -----------------------------------------------
2032
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2033
+  (0.1ms) ROLLBACK
2034
+  (0.1ms) BEGIN
2035
+ --------------------------------------------------------
2036
+ PersonTest: test_respond_to_self_and_decendents_include?
2037
+ --------------------------------------------------------
2038
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2039
+  (0.1ms) ROLLBACK
2040
+ Person Load (1.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2041
+ Person Load (1.9ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2042
+ SELECT id, parent_id, ARRAY[id]
2043
+ FROM people
2044
+ WHERE id = 1
2045
+ UNION ALL
2046
+ SELECT people.id, people.parent_id, path || people.id
2047
+ FROM search_tree
2048
+ JOIN people ON people.id = search_tree.parent_id
2049
+ WHERE NOT people.id = ANY(path)
2050
+ )
2051
+ SELECT id FROM search_tree ORDER BY path DESC
2052
+ ))
2053
+ Person Load (0.9ms) SELECT "people".* FROM "people" WHERE "people"."parent_id" IS NULL
2054
+ Person Load (1.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2055
+  (0.2ms) BEGIN
2056
+ SQL (0.3ms) UPDATE "people" SET "parent_id" = $1, "updated_at" = $2 WHERE "people"."id" = 2 [["parent_id", nil], ["updated_at", "2014-09-18 05:47:23.850049"]]
2057
+  (31.4ms) COMMIT
2058
+ Person Load (0.6ms) SELECT "people".* FROM "people" WHERE "people"."parent_id" IS NULL
2059
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2060
+  (22.9ms) drop schema public cascade;
2061
+  (6.3ms) create schema public;
2062
+  (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2063
+  (72.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2064
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2065
+ Migrating to CreatePeople (20140918023556)
2066
+  (0.1ms) BEGIN
2067
+  (50.4ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2068
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2069
+  (13.4ms) COMMIT
2070
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2071
+  (0.2ms) BEGIN
2072
+ Fixture Delete (0.3ms) DELETE FROM "people"
2073
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:50:46', '2014-09-18 05:50:46')
2074
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:50:46', '2014-09-18 05:50:46')
2075
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:50:46', '2014-09-18 05:50:46')
2076
+  (6.5ms) COMMIT
2077
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2078
+  (0.1ms) BEGIN
2079
+ ---------------------------------------
2080
+ PersonTest: test_person_fixtures_loaded
2081
+ ---------------------------------------
2082
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2083
+  (0.1ms) ROLLBACK
2084
+  (0.1ms) BEGIN
2085
+ ------------------------------------
2086
+ PersonTest: test_respond_to_acestors
2087
+ ------------------------------------
2088
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2089
+  (0.1ms) ROLLBACK
2090
+  (0.1ms) BEGIN
2091
+ ---------------------------------------------
2092
+ PersonTest: test_respond_to_acestors_include?
2093
+ ---------------------------------------------
2094
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2095
+  (0.1ms) ROLLBACK
2096
+  (0.1ms) BEGIN
2097
+ ---------------------------------------
2098
+ PersonTest: test_respond_to_descendents
2099
+ ---------------------------------------
2100
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2101
+  (0.1ms) ROLLBACK
2102
+  (0.1ms) BEGIN
2103
+ ------------------------------------------------
2104
+ PersonTest: test_respond_to_descendents_include?
2105
+ ------------------------------------------------
2106
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2107
+  (0.4ms) ROLLBACK
2108
+  (0.1ms) BEGIN
2109
+ ----------------------------------------------
2110
+ PersonTest: test_respond_to_self_and_ancestors
2111
+ ----------------------------------------------
2112
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2113
+  (0.1ms) ROLLBACK
2114
+  (0.1ms) BEGIN
2115
+ -------------------------------------------------------
2116
+ PersonTest: test_respond_to_self_and_ancestors_include?
2117
+ -------------------------------------------------------
2118
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2119
+  (0.1ms) ROLLBACK
2120
+  (0.1ms) BEGIN
2121
+ -----------------------------------------------
2122
+ PersonTest: test_respond_to_self_and_decendents
2123
+ -----------------------------------------------
2124
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2125
+  (0.1ms) ROLLBACK
2126
+  (0.1ms) BEGIN
2127
+ --------------------------------------------------------
2128
+ PersonTest: test_respond_to_self_and_decendents_include?
2129
+ --------------------------------------------------------
2130
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2131
+  (0.1ms) ROLLBACK
2132
+  (0.1ms) BEGIN
2133
+ ---------------------------------
2134
+ PersonTest: test_tree_roots_scope
2135
+ ---------------------------------
2136
+  (0.3ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2137
+  (0.1ms) ROLLBACK
2138
+  (0.1ms) BEGIN
2139
+ ----------------------------
2140
+ PostgresTreeTest: test_truth
2141
+ ----------------------------
2142
+  (0.1ms) ROLLBACK
2143
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2144
+  (10.1ms) drop schema public cascade;
2145
+  (7.4ms) create schema public;
2146
+  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2147
+  (73.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2148
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2149
+ Migrating to CreatePeople (20140918023556)
2150
+  (0.1ms) BEGIN
2151
+  (55.5ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2152
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2153
+  (15.9ms) COMMIT
2154
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2155
+  (0.2ms) BEGIN
2156
+ Fixture Delete (0.8ms) DELETE FROM "people"
2157
+ Fixture Insert (0.8ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:53:42', '2014-09-18 05:53:42')
2158
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:53:42', '2014-09-18 05:53:42')
2159
+ Fixture Insert (0.3ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:53:42', '2014-09-18 05:53:42')
2160
+  (4.8ms) COMMIT
2161
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2162
+  (0.1ms) BEGIN
2163
+ ------------------------------
2164
+ PersonTest: test_dad_ancestors
2165
+ ------------------------------
2166
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
2167
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2168
+ Person Load (1.4ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2169
+ SELECT id, parent_id, ARRAY[id]
2170
+ FROM people
2171
+ WHERE id = 2
2172
+ UNION ALL
2173
+ SELECT people.id, people.parent_id, path || people.id
2174
+ FROM search_tree
2175
+ JOIN people ON people.id = search_tree.parent_id
2176
+ WHERE NOT people.id = ANY(path)
2177
+ )
2178
+ SELECT id FROM search_tree ORDER BY path DESC
2179
+ ))
2180
+  (0.2ms) ROLLBACK
2181
+  (0.1ms) BEGIN
2182
+ ---------------------------------------
2183
+ PersonTest: test_person_fixtures_loaded
2184
+ ---------------------------------------
2185
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2186
+  (0.1ms) ROLLBACK
2187
+  (0.2ms) BEGIN
2188
+ ------------------------------------
2189
+ PersonTest: test_respond_to_acestors
2190
+ ------------------------------------
2191
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2192
+  (0.2ms) ROLLBACK
2193
+  (0.1ms) BEGIN
2194
+ ---------------------------------------------
2195
+ PersonTest: test_respond_to_acestors_include?
2196
+ ---------------------------------------------
2197
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2198
+  (0.1ms) ROLLBACK
2199
+  (0.1ms) BEGIN
2200
+ ---------------------------------------
2201
+ PersonTest: test_respond_to_descendents
2202
+ ---------------------------------------
2203
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2204
+  (0.1ms) ROLLBACK
2205
+  (0.1ms) BEGIN
2206
+ ------------------------------------------------
2207
+ PersonTest: test_respond_to_descendents_include?
2208
+ ------------------------------------------------
2209
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2210
+  (0.1ms) ROLLBACK
2211
+  (0.0ms) BEGIN
2212
+ ----------------------------------------------
2213
+ PersonTest: test_respond_to_self_and_ancestors
2214
+ ----------------------------------------------
2215
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2216
+  (0.1ms) ROLLBACK
2217
+  (0.1ms) BEGIN
2218
+ -------------------------------------------------------
2219
+ PersonTest: test_respond_to_self_and_ancestors_include?
2220
+ -------------------------------------------------------
2221
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2222
+  (0.1ms) ROLLBACK
2223
+  (0.1ms) BEGIN
2224
+ -----------------------------------------------
2225
+ PersonTest: test_respond_to_self_and_decendents
2226
+ -----------------------------------------------
2227
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2228
+  (0.1ms) ROLLBACK
2229
+  (0.1ms) BEGIN
2230
+ --------------------------------------------------------
2231
+ PersonTest: test_respond_to_self_and_decendents_include?
2232
+ --------------------------------------------------------
2233
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2234
+  (0.2ms) ROLLBACK
2235
+  (0.1ms) BEGIN
2236
+ ---------------------------------
2237
+ PersonTest: test_tree_roots_scope
2238
+ ---------------------------------
2239
+  (0.4ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2240
+  (0.1ms) ROLLBACK
2241
+  (0.1ms) BEGIN
2242
+ ----------------------------
2243
+ PostgresTreeTest: test_truth
2244
+ ----------------------------
2245
+  (0.1ms) ROLLBACK
2246
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2247
+  (12.9ms) drop schema public cascade;
2248
+  (7.3ms) create schema public;
2249
+  (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2250
+  (64.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2251
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2252
+ Migrating to CreatePeople (20140918023556)
2253
+  (0.1ms) BEGIN
2254
+  (57.3ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2255
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2256
+  (14.4ms) COMMIT
2257
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2258
+  (0.2ms) BEGIN
2259
+ Fixture Delete (0.4ms) DELETE FROM "people"
2260
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:54:18', '2014-09-18 05:54:18')
2261
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:54:18', '2014-09-18 05:54:18')
2262
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:54:18', '2014-09-18 05:54:18')
2263
+  (8.7ms) COMMIT
2264
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2265
+  (0.1ms) BEGIN
2266
+ ------------------------------
2267
+ PersonTest: test_dad_ancestors
2268
+ ------------------------------
2269
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
2270
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2271
+ Person Load (1.3ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2272
+ SELECT id, parent_id, ARRAY[id]
2273
+ FROM people
2274
+ WHERE id = 2
2275
+ UNION ALL
2276
+ SELECT people.id, people.parent_id, path || people.id
2277
+ FROM search_tree
2278
+ JOIN people ON people.id = search_tree.parent_id
2279
+ WHERE NOT people.id = ANY(path)
2280
+ )
2281
+ SELECT id FROM search_tree ORDER BY path DESC
2282
+ ))
2283
+  (0.2ms) ROLLBACK
2284
+  (0.1ms) BEGIN
2285
+ ---------------------------------------
2286
+ PersonTest: test_person_fixtures_loaded
2287
+ ---------------------------------------
2288
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2289
+  (0.1ms) ROLLBACK
2290
+  (0.1ms) BEGIN
2291
+ ------------------------------------
2292
+ PersonTest: test_respond_to_acestors
2293
+ ------------------------------------
2294
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2295
+  (0.1ms) ROLLBACK
2296
+  (0.7ms) BEGIN
2297
+ ---------------------------------------------
2298
+ PersonTest: test_respond_to_acestors_include?
2299
+ ---------------------------------------------
2300
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2301
+  (0.1ms) ROLLBACK
2302
+  (0.1ms) BEGIN
2303
+ ---------------------------------------
2304
+ PersonTest: test_respond_to_descendents
2305
+ ---------------------------------------
2306
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2307
+  (0.1ms) ROLLBACK
2308
+  (0.1ms) BEGIN
2309
+ ------------------------------------------------
2310
+ PersonTest: test_respond_to_descendents_include?
2311
+ ------------------------------------------------
2312
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2313
+  (0.1ms) ROLLBACK
2314
+  (0.1ms) BEGIN
2315
+ ----------------------------------------------
2316
+ PersonTest: test_respond_to_self_and_ancestors
2317
+ ----------------------------------------------
2318
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2319
+  (0.1ms) ROLLBACK
2320
+  (0.1ms) BEGIN
2321
+ -------------------------------------------------------
2322
+ PersonTest: test_respond_to_self_and_ancestors_include?
2323
+ -------------------------------------------------------
2324
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2325
+  (0.1ms) ROLLBACK
2326
+  (0.1ms) BEGIN
2327
+ -----------------------------------------------
2328
+ PersonTest: test_respond_to_self_and_decendents
2329
+ -----------------------------------------------
2330
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2331
+  (0.1ms) ROLLBACK
2332
+  (0.1ms) BEGIN
2333
+ --------------------------------------------------------
2334
+ PersonTest: test_respond_to_self_and_decendents_include?
2335
+ --------------------------------------------------------
2336
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2337
+  (0.1ms) ROLLBACK
2338
+  (0.1ms) BEGIN
2339
+ ---------------------------------
2340
+ PersonTest: test_tree_roots_scope
2341
+ ---------------------------------
2342
+  (0.5ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2343
+  (0.2ms) ROLLBACK
2344
+  (0.1ms) BEGIN
2345
+ ----------------------------
2346
+ PostgresTreeTest: test_truth
2347
+ ----------------------------
2348
+  (0.1ms) ROLLBACK
2349
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2350
+  (62.7ms) drop schema public cascade;
2351
+  (18.9ms) create schema public;
2352
+  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2353
+  (64.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2354
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2355
+ Migrating to CreatePeople (20140918023556)
2356
+  (0.1ms) BEGIN
2357
+  (49.6ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2358
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2359
+  (14.6ms) COMMIT
2360
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2361
+  (0.1ms) BEGIN
2362
+ Fixture Delete (0.4ms) DELETE FROM "people"
2363
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:55:25', '2014-09-18 05:55:25')
2364
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:55:25', '2014-09-18 05:55:25')
2365
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:55:25', '2014-09-18 05:55:25')
2366
+  (6.0ms) COMMIT
2367
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2368
+  (0.1ms) BEGIN
2369
+ ----------------------------
2370
+ PostgresTreeTest: test_truth
2371
+ ----------------------------
2372
+  (0.1ms) ROLLBACK
2373
+  (0.1ms) BEGIN
2374
+ ------------------------------
2375
+ PersonTest: test_dad_ancestors
2376
+ ------------------------------
2377
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
2378
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2379
+ Person Load (1.9ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2380
+ SELECT id, parent_id, ARRAY[id]
2381
+ FROM people
2382
+ WHERE id = 2
2383
+ UNION ALL
2384
+ SELECT people.id, people.parent_id, path || people.id
2385
+ FROM search_tree
2386
+ JOIN people ON people.id = search_tree.parent_id
2387
+ WHERE NOT people.id = ANY(path)
2388
+ )
2389
+ SELECT id FROM search_tree ORDER BY path DESC
2390
+ ))
2391
+  (0.2ms) ROLLBACK
2392
+  (0.1ms) BEGIN
2393
+ --------------------------------
2394
+ PersonTest: test_dad_descendents
2395
+ --------------------------------
2396
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2397
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
2398
+ Person Load (1.1ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2399
+ SELECT id, ARRAY[id]
2400
+ FROM people
2401
+ WHERE id = 2
2402
+ UNION ALL
2403
+ SELECT people.id, path || people.id
2404
+ FROM search_tree
2405
+ JOIN people ON people.parent_id = search_tree.id
2406
+ WHERE NOT people.id = ANY(path)
2407
+ )
2408
+ SELECT id FROM search_tree ORDER BY path
2409
+ ))
2410
+  (0.1ms) ROLLBACK
2411
+  (0.1ms) BEGIN
2412
+ ---------------------------------------
2413
+ PersonTest: test_person_fixtures_loaded
2414
+ ---------------------------------------
2415
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2416
+  (0.2ms) ROLLBACK
2417
+  (0.1ms) BEGIN
2418
+ ------------------------------------
2419
+ PersonTest: test_respond_to_acestors
2420
+ ------------------------------------
2421
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2422
+  (0.1ms) ROLLBACK
2423
+  (0.1ms) BEGIN
2424
+ ---------------------------------------------
2425
+ PersonTest: test_respond_to_acestors_include?
2426
+ ---------------------------------------------
2427
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2428
+  (0.1ms) ROLLBACK
2429
+  (0.1ms) BEGIN
2430
+ ---------------------------------------
2431
+ PersonTest: test_respond_to_descendents
2432
+ ---------------------------------------
2433
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2434
+  (0.1ms) ROLLBACK
2435
+  (0.1ms) BEGIN
2436
+ ------------------------------------------------
2437
+ PersonTest: test_respond_to_descendents_include?
2438
+ ------------------------------------------------
2439
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2440
+  (0.1ms) ROLLBACK
2441
+  (0.1ms) BEGIN
2442
+ ----------------------------------------------
2443
+ PersonTest: test_respond_to_self_and_ancestors
2444
+ ----------------------------------------------
2445
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2446
+  (0.1ms) ROLLBACK
2447
+  (0.1ms) BEGIN
2448
+ -------------------------------------------------------
2449
+ PersonTest: test_respond_to_self_and_ancestors_include?
2450
+ -------------------------------------------------------
2451
+ Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2452
+  (0.1ms) ROLLBACK
2453
+  (0.1ms) BEGIN
2454
+ -----------------------------------------------
2455
+ PersonTest: test_respond_to_self_and_decendents
2456
+ -----------------------------------------------
2457
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2458
+  (0.1ms) ROLLBACK
2459
+  (0.1ms) BEGIN
2460
+ --------------------------------------------------------
2461
+ PersonTest: test_respond_to_self_and_decendents_include?
2462
+ --------------------------------------------------------
2463
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2464
+  (0.1ms) ROLLBACK
2465
+  (0.1ms) BEGIN
2466
+ ---------------------------------
2467
+ PersonTest: test_tree_roots_scope
2468
+ ---------------------------------
2469
+  (0.3ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2470
+  (0.1ms) ROLLBACK
2471
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2472
+  (55.2ms) drop schema public cascade;
2473
+  (6.6ms) create schema public;
2474
+  (32.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2475
+  (61.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2476
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2477
+ Migrating to CreatePeople (20140918023556)
2478
+  (0.1ms) BEGIN
2479
+  (61.4ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2480
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2481
+  (8.2ms) COMMIT
2482
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2483
+  (0.1ms) BEGIN
2484
+ Fixture Delete (0.3ms) DELETE FROM "people"
2485
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 05:56:45', '2014-09-18 05:56:45')
2486
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 05:56:45', '2014-09-18 05:56:45')
2487
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 05:56:45', '2014-09-18 05:56:45')
2488
+  (9.7ms) COMMIT
2489
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2490
+  (0.1ms) BEGIN
2491
+ ------------------------------
2492
+ PersonTest: test_dad_ancestors
2493
+ ------------------------------
2494
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
2495
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2496
+ Person Load (1.6ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2497
+ SELECT id, parent_id, ARRAY[id]
2498
+ FROM people
2499
+ WHERE id = 2
2500
+ UNION ALL
2501
+ SELECT people.id, people.parent_id, path || people.id
2502
+ FROM search_tree
2503
+ JOIN people ON people.id = search_tree.parent_id
2504
+ WHERE NOT people.id = ANY(path)
2505
+ )
2506
+ SELECT id FROM search_tree ORDER BY path DESC
2507
+ ))
2508
+ Person Load (1.2ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2509
+ SELECT id, parent_id, ARRAY[id]
2510
+ FROM people
2511
+ WHERE id = 2
2512
+ UNION ALL
2513
+ SELECT people.id, people.parent_id, path || people.id
2514
+ FROM search_tree
2515
+ JOIN people ON people.id = search_tree.parent_id
2516
+ WHERE NOT people.id = ANY(path)
2517
+ )
2518
+ SELECT id FROM search_tree ORDER BY path DESC
2519
+ ))
2520
+  (0.2ms) ROLLBACK
2521
+  (0.2ms) BEGIN
2522
+ --------------------------------
2523
+ PersonTest: test_dad_descendents
2524
+ --------------------------------
2525
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2526
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
2527
+ Person Load (1.1ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2528
+ SELECT id, ARRAY[id]
2529
+ FROM people
2530
+ WHERE id = 2
2531
+ UNION ALL
2532
+ SELECT people.id, path || people.id
2533
+ FROM search_tree
2534
+ JOIN people ON people.parent_id = search_tree.id
2535
+ WHERE NOT people.id = ANY(path)
2536
+ )
2537
+ SELECT id FROM search_tree ORDER BY path
2538
+ ))
2539
+ Person Load (0.8ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2540
+ SELECT id, ARRAY[id]
2541
+ FROM people
2542
+ WHERE id = 2
2543
+ UNION ALL
2544
+ SELECT people.id, path || people.id
2545
+ FROM search_tree
2546
+ JOIN people ON people.parent_id = search_tree.id
2547
+ WHERE NOT people.id = ANY(path)
2548
+ )
2549
+ SELECT id FROM search_tree ORDER BY path
2550
+ ))
2551
+  (0.1ms) ROLLBACK
2552
+  (0.1ms) BEGIN
2553
+ ---------------------------------------
2554
+ PersonTest: test_person_fixtures_loaded
2555
+ ---------------------------------------
2556
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2557
+  (0.1ms) ROLLBACK
2558
+  (0.1ms) BEGIN
2559
+ ------------------------------------
2560
+ PersonTest: test_respond_to_acestors
2561
+ ------------------------------------
2562
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2563
+  (0.1ms) ROLLBACK
2564
+  (0.1ms) BEGIN
2565
+ ---------------------------------------------
2566
+ PersonTest: test_respond_to_acestors_include?
2567
+ ---------------------------------------------
2568
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2569
+  (0.1ms) ROLLBACK
2570
+  (0.1ms) BEGIN
2571
+ ---------------------------------------
2572
+ PersonTest: test_respond_to_descendents
2573
+ ---------------------------------------
2574
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2575
+  (0.1ms) ROLLBACK
2576
+  (0.1ms) BEGIN
2577
+ ------------------------------------------------
2578
+ PersonTest: test_respond_to_descendents_include?
2579
+ ------------------------------------------------
2580
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2581
+  (0.1ms) ROLLBACK
2582
+  (0.1ms) BEGIN
2583
+ ----------------------------------------------
2584
+ PersonTest: test_respond_to_self_and_ancestors
2585
+ ----------------------------------------------
2586
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2587
+  (0.1ms) ROLLBACK
2588
+  (0.1ms) BEGIN
2589
+ -------------------------------------------------------
2590
+ PersonTest: test_respond_to_self_and_ancestors_include?
2591
+ -------------------------------------------------------
2592
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2593
+  (0.1ms) ROLLBACK
2594
+  (0.1ms) BEGIN
2595
+ -----------------------------------------------
2596
+ PersonTest: test_respond_to_self_and_decendents
2597
+ -----------------------------------------------
2598
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2599
+  (0.1ms) ROLLBACK
2600
+  (0.1ms) BEGIN
2601
+ --------------------------------------------------------
2602
+ PersonTest: test_respond_to_self_and_decendents_include?
2603
+ --------------------------------------------------------
2604
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2605
+  (0.1ms) ROLLBACK
2606
+  (0.1ms) BEGIN
2607
+ ---------------------------------
2608
+ PersonTest: test_tree_roots_scope
2609
+ ---------------------------------
2610
+  (0.4ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2611
+  (0.2ms) ROLLBACK
2612
+  (0.1ms) BEGIN
2613
+ ----------------------------
2614
+ PostgresTreeTest: test_truth
2615
+ ----------------------------
2616
+  (0.1ms) ROLLBACK
2617
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
2618
+  (13.9ms) drop schema public cascade;
2619
+  (6.9ms) create schema public;
2620
+  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2621
+  (64.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2622
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2623
+ Migrating to CreatePeople (20140918023556)
2624
+  (0.2ms) BEGIN
2625
+  (78.1ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2626
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2627
+  (3.1ms) COMMIT
2628
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2629
+  (0.1ms) BEGIN
2630
+ Fixture Delete (0.4ms) DELETE FROM "people"
2631
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 06:02:15', '2014-09-18 06:02:15')
2632
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 06:02:15', '2014-09-18 06:02:15')
2633
+ Fixture Insert (0.1ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 06:02:15', '2014-09-18 06:02:15')
2634
+  (30.0ms) COMMIT
2635
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2636
+  (0.1ms) BEGIN
2637
+ ----------------------------
2638
+ PostgresTreeTest: test_truth
2639
+ ----------------------------
2640
+  (0.1ms) ROLLBACK
2641
+  (0.1ms) BEGIN
2642
+ ------------------------------
2643
+ PersonTest: test_dad_ancestors
2644
+ ------------------------------
2645
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
2646
+ Person Load (0.6ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2647
+ Person Load (1.5ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2648
+ SELECT id, parent_id, ARRAY[id]
2649
+ FROM people
2650
+ WHERE id = 2
2651
+ UNION ALL
2652
+ SELECT people.id, people.parent_id, path || people.id
2653
+ FROM search_tree
2654
+ JOIN people ON people.id = search_tree.parent_id
2655
+ WHERE NOT people.id = ANY(path)
2656
+ )
2657
+ SELECT id FROM search_tree ORDER BY path DESC
2658
+ ))
2659
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2660
+ SELECT id, parent_id, ARRAY[id]
2661
+ FROM people
2662
+ WHERE id = 2
2663
+ UNION ALL
2664
+ SELECT people.id, people.parent_id, path || people.id
2665
+ FROM search_tree
2666
+ JOIN people ON people.id = search_tree.parent_id
2667
+ WHERE NOT people.id = ANY(path)
2668
+ )
2669
+ SELECT id FROM search_tree ORDER BY path DESC
2670
+ ))
2671
+  (0.7ms) SELECT COUNT(*) FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2672
+ SELECT id, parent_id, ARRAY[id]
2673
+ FROM people
2674
+ WHERE id = 2
2675
+ UNION ALL
2676
+ SELECT people.id, people.parent_id, path || people.id
2677
+ FROM search_tree
2678
+ JOIN people ON people.id = search_tree.parent_id
2679
+ WHERE NOT people.id = ANY(path)
2680
+ )
2681
+ SELECT id FROM search_tree ORDER BY path DESC
2682
+ ))
2683
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2684
+ SELECT id, parent_id, ARRAY[id]
2685
+ FROM people
2686
+ WHERE id = 2
2687
+ UNION ALL
2688
+ SELECT people.id, people.parent_id, path || people.id
2689
+ FROM search_tree
2690
+ JOIN people ON people.id = search_tree.parent_id
2691
+ WHERE NOT people.id = ANY(path)
2692
+ )
2693
+ SELECT id FROM search_tree ORDER BY path DESC
2694
+ ))
2695
+ Person Load (1.2ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2696
+ SELECT id, parent_id, ARRAY[id]
2697
+ FROM people
2698
+ WHERE id = 2
2699
+ UNION ALL
2700
+ SELECT people.id, people.parent_id, path || people.id
2701
+ FROM search_tree
2702
+ JOIN people ON people.id = search_tree.parent_id
2703
+ WHERE NOT people.id = ANY(path)
2704
+ )
2705
+ SELECT id FROM search_tree ORDER BY path DESC
2706
+ ))
2707
+ Person Load (1.1ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2708
+ SELECT id, parent_id, ARRAY[id]
2709
+ FROM people
2710
+ WHERE id = 2
2711
+ UNION ALL
2712
+ SELECT people.id, people.parent_id, path || people.id
2713
+ FROM search_tree
2714
+ JOIN people ON people.id = search_tree.parent_id
2715
+ WHERE NOT people.id = ANY(path)
2716
+ )
2717
+ SELECT id FROM search_tree ORDER BY path DESC
2718
+ ))
2719
+  (0.2ms) ROLLBACK
2720
+  (0.1ms) BEGIN
2721
+ --------------------------------
2722
+ PersonTest: test_dad_descendents
2723
+ --------------------------------
2724
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2725
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
2726
+ Person Load (2.3ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2727
+ SELECT id, ARRAY[id]
2728
+ FROM people
2729
+ WHERE id = 2
2730
+ UNION ALL
2731
+ SELECT people.id, path || people.id
2732
+ FROM search_tree
2733
+ JOIN people ON people.parent_id = search_tree.id
2734
+ WHERE NOT people.id = ANY(path)
2735
+ )
2736
+ SELECT id FROM search_tree ORDER BY path
2737
+ ))
2738
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2739
+ SELECT id, ARRAY[id]
2740
+ FROM people
2741
+ WHERE id = 2
2742
+ UNION ALL
2743
+ SELECT people.id, path || people.id
2744
+ FROM search_tree
2745
+ JOIN people ON people.parent_id = search_tree.id
2746
+ WHERE NOT people.id = ANY(path)
2747
+ )
2748
+ SELECT id FROM search_tree ORDER BY path
2749
+ ))
2750
+  (0.3ms) ROLLBACK
2751
+  (0.1ms) BEGIN
2752
+ ---------------------------------------
2753
+ PersonTest: test_person_fixtures_loaded
2754
+ ---------------------------------------
2755
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2756
+  (0.1ms) ROLLBACK
2757
+  (0.1ms) BEGIN
2758
+ ---------------------------------------------
2759
+ PersonTest: test_respond_to_all_magic_methods
2760
+ ---------------------------------------------
2761
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2762
+  (0.1ms) ROLLBACK
2763
+  (0.1ms) BEGIN
2764
+ ----------------------------------------
2765
+ PersonTest: test_responds_to_all_methods
2766
+ ----------------------------------------
2767
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2768
+  (0.1ms) ROLLBACK
2769
+  (0.1ms) BEGIN
2770
+ ---------------------------------
2771
+ PersonTest: test_tree_roots_scope
2772
+ ---------------------------------
2773
+  (0.4ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2774
+  (0.1ms) ROLLBACK
2775
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2776
+  (41.0ms) drop schema public cascade;
2777
+  (7.4ms) create schema public;
2778
+  (8.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2779
+  (89.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2780
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2781
+ Migrating to CreatePeople (20140918023556)
2782
+  (0.2ms) BEGIN
2783
+  (91.2ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2784
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2785
+  (14.3ms) COMMIT
2786
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
2787
+  (0.1ms) BEGIN
2788
+ Fixture Delete (0.3ms) DELETE FROM "people"
2789
+ Fixture Insert (0.5ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 06:02:52', '2014-09-18 06:02:52')
2790
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 06:02:52', '2014-09-18 06:02:52')
2791
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 06:02:52', '2014-09-18 06:02:52')
2792
+  (9.5ms) COMMIT
2793
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
2794
+  (0.1ms) BEGIN
2795
+ ----------------------------
2796
+ PostgresTreeTest: test_truth
2797
+ ----------------------------
2798
+  (0.1ms) ROLLBACK
2799
+  (0.1ms) BEGIN
2800
+ ------------------------------
2801
+ PersonTest: test_dad_ancestors
2802
+ ------------------------------
2803
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
2804
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2805
+ Person Load (1.3ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2806
+ SELECT id, parent_id, ARRAY[id]
2807
+ FROM people
2808
+ WHERE id = 2
2809
+ UNION ALL
2810
+ SELECT people.id, people.parent_id, path || people.id
2811
+ FROM search_tree
2812
+ JOIN people ON people.id = search_tree.parent_id
2813
+ WHERE NOT people.id = ANY(path)
2814
+ )
2815
+ SELECT id FROM search_tree ORDER BY path DESC
2816
+ ))
2817
+ Person Load (0.8ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2818
+ SELECT id, parent_id, ARRAY[id]
2819
+ FROM people
2820
+ WHERE id = 2
2821
+ UNION ALL
2822
+ SELECT people.id, people.parent_id, path || people.id
2823
+ FROM search_tree
2824
+ JOIN people ON people.id = search_tree.parent_id
2825
+ WHERE NOT people.id = ANY(path)
2826
+ )
2827
+ SELECT id FROM search_tree ORDER BY path DESC
2828
+ ))
2829
+  (1.1ms) SELECT COUNT(*) FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2830
+ SELECT id, parent_id, ARRAY[id]
2831
+ FROM people
2832
+ WHERE id = 2
2833
+ UNION ALL
2834
+ SELECT people.id, people.parent_id, path || people.id
2835
+ FROM search_tree
2836
+ JOIN people ON people.id = search_tree.parent_id
2837
+ WHERE NOT people.id = ANY(path)
2838
+ )
2839
+ SELECT id FROM search_tree ORDER BY path DESC
2840
+ ))
2841
+ Person Load (0.8ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2842
+ SELECT id, parent_id, ARRAY[id]
2843
+ FROM people
2844
+ WHERE id = 2
2845
+ UNION ALL
2846
+ SELECT people.id, people.parent_id, path || people.id
2847
+ FROM search_tree
2848
+ JOIN people ON people.id = search_tree.parent_id
2849
+ WHERE NOT people.id = ANY(path)
2850
+ )
2851
+ SELECT id FROM search_tree ORDER BY path DESC
2852
+ ))
2853
+ Person Load (0.8ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2854
+ SELECT id, parent_id, ARRAY[id]
2855
+ FROM people
2856
+ WHERE id = 2
2857
+ UNION ALL
2858
+ SELECT people.id, people.parent_id, path || people.id
2859
+ FROM search_tree
2860
+ JOIN people ON people.id = search_tree.parent_id
2861
+ WHERE NOT people.id = ANY(path)
2862
+ )
2863
+ SELECT id FROM search_tree ORDER BY path DESC
2864
+ ))
2865
+ Person Load (1.0ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
2866
+ SELECT id, parent_id, ARRAY[id]
2867
+ FROM people
2868
+ WHERE id = 2
2869
+ UNION ALL
2870
+ SELECT people.id, people.parent_id, path || people.id
2871
+ FROM search_tree
2872
+ JOIN people ON people.id = search_tree.parent_id
2873
+ WHERE NOT people.id = ANY(path)
2874
+ )
2875
+ SELECT id FROM search_tree ORDER BY path DESC
2876
+ ))
2877
+  (0.1ms) ROLLBACK
2878
+  (0.1ms) BEGIN
2879
+ --------------------------------
2880
+ PersonTest: test_dad_descendents
2881
+ --------------------------------
2882
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
2883
+ Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
2884
+ Person Load (0.9ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2885
+ SELECT id, ARRAY[id]
2886
+ FROM people
2887
+ WHERE id = 2
2888
+ UNION ALL
2889
+ SELECT people.id, path || people.id
2890
+ FROM search_tree
2891
+ JOIN people ON people.parent_id = search_tree.id
2892
+ WHERE NOT people.id = ANY(path)
2893
+ )
2894
+ SELECT id FROM search_tree ORDER BY path
2895
+ ))
2896
+ Person Load (0.9ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2897
+ SELECT id, ARRAY[id]
2898
+ FROM people
2899
+ WHERE id = 2
2900
+ UNION ALL
2901
+ SELECT people.id, path || people.id
2902
+ FROM search_tree
2903
+ JOIN people ON people.parent_id = search_tree.id
2904
+ WHERE NOT people.id = ANY(path)
2905
+ )
2906
+ SELECT id FROM search_tree ORDER BY path
2907
+ ))
2908
+  (0.7ms) SELECT COUNT(*) FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2909
+ SELECT id, ARRAY[id]
2910
+ FROM people
2911
+ WHERE id = 2
2912
+ UNION ALL
2913
+ SELECT people.id, path || people.id
2914
+ FROM search_tree
2915
+ JOIN people ON people.parent_id = search_tree.id
2916
+ WHERE NOT people.id = ANY(path)
2917
+ )
2918
+ SELECT id FROM search_tree ORDER BY path
2919
+ ))
2920
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2921
+ SELECT id, ARRAY[id]
2922
+ FROM people
2923
+ WHERE id = 2
2924
+ UNION ALL
2925
+ SELECT people.id, path || people.id
2926
+ FROM search_tree
2927
+ JOIN people ON people.parent_id = search_tree.id
2928
+ WHERE NOT people.id = ANY(path)
2929
+ )
2930
+ SELECT id FROM search_tree ORDER BY path
2931
+ ))
2932
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2933
+ SELECT id, ARRAY[id]
2934
+ FROM people
2935
+ WHERE id = 2
2936
+ UNION ALL
2937
+ SELECT people.id, path || people.id
2938
+ FROM search_tree
2939
+ JOIN people ON people.parent_id = search_tree.id
2940
+ WHERE NOT people.id = ANY(path)
2941
+ )
2942
+ SELECT id FROM search_tree ORDER BY path
2943
+ ))
2944
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
2945
+ SELECT id, ARRAY[id]
2946
+ FROM people
2947
+ WHERE id = 2
2948
+ UNION ALL
2949
+ SELECT people.id, path || people.id
2950
+ FROM search_tree
2951
+ JOIN people ON people.parent_id = search_tree.id
2952
+ WHERE NOT people.id = ANY(path)
2953
+ )
2954
+ SELECT id FROM search_tree ORDER BY path
2955
+ ))
2956
+  (0.1ms) ROLLBACK
2957
+  (0.1ms) BEGIN
2958
+ ---------------------------------------
2959
+ PersonTest: test_person_fixtures_loaded
2960
+ ---------------------------------------
2961
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2962
+  (0.1ms) ROLLBACK
2963
+  (0.1ms) BEGIN
2964
+ ---------------------------------------------
2965
+ PersonTest: test_respond_to_all_magic_methods
2966
+ ---------------------------------------------
2967
+ Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2968
+  (2.1ms) ROLLBACK
2969
+  (0.1ms) BEGIN
2970
+ ----------------------------------------
2971
+ PersonTest: test_responds_to_all_methods
2972
+ ----------------------------------------
2973
+ Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
2974
+  (0.5ms) ROLLBACK
2975
+  (0.1ms) BEGIN
2976
+ ---------------------------------
2977
+ PersonTest: test_tree_roots_scope
2978
+ ---------------------------------
2979
+  (0.3ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
2980
+  (0.1ms) ROLLBACK
2981
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2982
+  (6.7ms) drop schema public cascade;
2983
+  (6.8ms) create schema public;
2984
+  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2985
+  (63.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2986
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2987
+ Migrating to CreatePeople (20140918023556)
2988
+  (0.1ms) BEGIN
2989
+  (54.6ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
2990
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
2991
+  (14.7ms) COMMIT
2992
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
2993
+  (11.6ms) drop schema public cascade;
2994
+  (7.3ms) create schema public;
2995
+  (7.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
2996
+  (73.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2997
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2998
+ Migrating to CreatePeople (20140918023556)
2999
+  (0.1ms) BEGIN
3000
+  (44.7ms) CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
3001
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
3002
+  (17.9ms) COMMIT
3003
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
3004
+  (0.1ms) BEGIN
3005
+ Fixture Delete (0.3ms) DELETE FROM "people"
3006
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 06:07:06', '2014-09-18 06:07:06')
3007
+ Fixture Insert (0.4ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (2, 'Dad', 1, '2014-09-18 06:07:06', '2014-09-18 06:07:06')
3008
+ Fixture Insert (0.2ms) INSERT INTO "people" ("id", "name", "parent_id", "created_at", "updated_at") VALUES (3, 'Son', 2, '2014-09-18 06:07:06', '2014-09-18 06:07:06')
3009
+  (7.3ms) COMMIT
3010
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
3011
+  (0.1ms) BEGIN
3012
+ ------------------------------
3013
+ PersonTest: test_dad_ancestors
3014
+ ------------------------------
3015
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
3016
+ Person Load (0.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
3017
+ Person Load (1.5ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3018
+ SELECT id, parent_id, ARRAY[id]
3019
+ FROM people
3020
+ WHERE id = 2
3021
+ UNION ALL
3022
+ SELECT people.id, people.parent_id, path || people.id
3023
+ FROM search_tree
3024
+ JOIN people ON people.id = search_tree.parent_id
3025
+ WHERE NOT people.id = ANY(path)
3026
+ )
3027
+ SELECT id FROM search_tree ORDER BY path DESC
3028
+ ))
3029
+ Person Load (1.3ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3030
+ SELECT id, parent_id, ARRAY[id]
3031
+ FROM people
3032
+ WHERE id = 2
3033
+ UNION ALL
3034
+ SELECT people.id, people.parent_id, path || people.id
3035
+ FROM search_tree
3036
+ JOIN people ON people.id = search_tree.parent_id
3037
+ WHERE NOT people.id = ANY(path)
3038
+ )
3039
+ SELECT id FROM search_tree ORDER BY path DESC
3040
+ ))
3041
+  (0.8ms) SELECT COUNT(*) FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3042
+ SELECT id, parent_id, ARRAY[id]
3043
+ FROM people
3044
+ WHERE id = 2
3045
+ UNION ALL
3046
+ SELECT people.id, people.parent_id, path || people.id
3047
+ FROM search_tree
3048
+ JOIN people ON people.id = search_tree.parent_id
3049
+ WHERE NOT people.id = ANY(path)
3050
+ )
3051
+ SELECT id FROM search_tree ORDER BY path DESC
3052
+ ))
3053
+ Person Load (0.6ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3054
+ SELECT id, parent_id, ARRAY[id]
3055
+ FROM people
3056
+ WHERE id = 2
3057
+ UNION ALL
3058
+ SELECT people.id, people.parent_id, path || people.id
3059
+ FROM search_tree
3060
+ JOIN people ON people.id = search_tree.parent_id
3061
+ WHERE NOT people.id = ANY(path)
3062
+ )
3063
+ SELECT id FROM search_tree ORDER BY path DESC
3064
+ ))
3065
+ Person Load (0.6ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3066
+ SELECT id, parent_id, ARRAY[id]
3067
+ FROM people
3068
+ WHERE id = 2
3069
+ UNION ALL
3070
+ SELECT people.id, people.parent_id, path || people.id
3071
+ FROM search_tree
3072
+ JOIN people ON people.id = search_tree.parent_id
3073
+ WHERE NOT people.id = ANY(path)
3074
+ )
3075
+ SELECT id FROM search_tree ORDER BY path DESC
3076
+ ))
3077
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3078
+ SELECT id, parent_id, ARRAY[id]
3079
+ FROM people
3080
+ WHERE id = 2
3081
+ UNION ALL
3082
+ SELECT people.id, people.parent_id, path || people.id
3083
+ FROM search_tree
3084
+ JOIN people ON people.id = search_tree.parent_id
3085
+ WHERE NOT people.id = ANY(path)
3086
+ )
3087
+ SELECT id FROM search_tree ORDER BY path DESC
3088
+ ))
3089
+  (0.2ms) ROLLBACK
3090
+  (0.1ms) BEGIN
3091
+ --------------------------------
3092
+ PersonTest: test_dad_descendents
3093
+ --------------------------------
3094
+ Person Load (2.4ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
3095
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
3096
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3097
+ SELECT id, ARRAY[id]
3098
+ FROM people
3099
+ WHERE id = 2
3100
+ UNION ALL
3101
+ SELECT people.id, path || people.id
3102
+ FROM search_tree
3103
+ JOIN people ON people.parent_id = search_tree.id
3104
+ WHERE NOT people.id = ANY(path)
3105
+ )
3106
+ SELECT id FROM search_tree ORDER BY path
3107
+ ))
3108
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3109
+ SELECT id, ARRAY[id]
3110
+ FROM people
3111
+ WHERE id = 2
3112
+ UNION ALL
3113
+ SELECT people.id, path || people.id
3114
+ FROM search_tree
3115
+ JOIN people ON people.parent_id = search_tree.id
3116
+ WHERE NOT people.id = ANY(path)
3117
+ )
3118
+ SELECT id FROM search_tree ORDER BY path
3119
+ ))
3120
+  (0.5ms) SELECT COUNT(*) FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3121
+ SELECT id, ARRAY[id]
3122
+ FROM people
3123
+ WHERE id = 2
3124
+ UNION ALL
3125
+ SELECT people.id, path || people.id
3126
+ FROM search_tree
3127
+ JOIN people ON people.parent_id = search_tree.id
3128
+ WHERE NOT people.id = ANY(path)
3129
+ )
3130
+ SELECT id FROM search_tree ORDER BY path
3131
+ ))
3132
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3133
+ SELECT id, ARRAY[id]
3134
+ FROM people
3135
+ WHERE id = 2
3136
+ UNION ALL
3137
+ SELECT people.id, path || people.id
3138
+ FROM search_tree
3139
+ JOIN people ON people.parent_id = search_tree.id
3140
+ WHERE NOT people.id = ANY(path)
3141
+ )
3142
+ SELECT id FROM search_tree ORDER BY path
3143
+ ))
3144
+ Person Load (0.6ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3145
+ SELECT id, ARRAY[id]
3146
+ FROM people
3147
+ WHERE id = 2
3148
+ UNION ALL
3149
+ SELECT people.id, path || people.id
3150
+ FROM search_tree
3151
+ JOIN people ON people.parent_id = search_tree.id
3152
+ WHERE NOT people.id = ANY(path)
3153
+ )
3154
+ SELECT id FROM search_tree ORDER BY path
3155
+ ))
3156
+ Person Load (0.7ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3157
+ SELECT id, ARRAY[id]
3158
+ FROM people
3159
+ WHERE id = 2
3160
+ UNION ALL
3161
+ SELECT people.id, path || people.id
3162
+ FROM search_tree
3163
+ JOIN people ON people.parent_id = search_tree.id
3164
+ WHERE NOT people.id = ANY(path)
3165
+ )
3166
+ SELECT id FROM search_tree ORDER BY path
3167
+ ))
3168
+  (0.1ms) ROLLBACK
3169
+  (0.1ms) BEGIN
3170
+ ----------------------------------
3171
+ PersonTest: test_grandad_ancestors
3172
+ ----------------------------------
3173
+ Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
3174
+ Person Load (0.5ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, parent_id, path) AS (
3175
+ SELECT id, parent_id, ARRAY[id]
3176
+ FROM people
3177
+ WHERE id = 1
3178
+ UNION ALL
3179
+ SELECT people.id, people.parent_id, path || people.id
3180
+ FROM search_tree
3181
+ JOIN people ON people.id = search_tree.parent_id
3182
+ WHERE NOT people.id = ANY(path)
3183
+ )
3184
+ SELECT id FROM search_tree ORDER BY path DESC
3185
+ ))
3186
+  (0.1ms) ROLLBACK
3187
+  (0.1ms) BEGIN
3188
+ ---------------------------------------
3189
+ PersonTest: test_person_fixtures_loaded
3190
+ ---------------------------------------
3191
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
3192
+  (0.1ms) ROLLBACK
3193
+  (0.1ms) BEGIN
3194
+ ---------------------------------------------
3195
+ PersonTest: test_respond_to_all_magic_methods
3196
+ ---------------------------------------------
3197
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
3198
+  (0.1ms) ROLLBACK
3199
+  (0.1ms) BEGIN
3200
+ ----------------------------------------
3201
+ PersonTest: test_responds_to_all_methods
3202
+ ----------------------------------------
3203
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
3204
+  (0.1ms) ROLLBACK
3205
+  (0.1ms) BEGIN
3206
+ --------------------------------
3207
+ PersonTest: test_son_descendents
3208
+ --------------------------------
3209
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
3210
+ Person Load (0.6ms) SELECT "people".* FROM "people" WHERE (people.id IN ( WITH RECURSIVE search_tree(id, path) AS (
3211
+ SELECT id, ARRAY[id]
3212
+ FROM people
3213
+ WHERE id = 3
3214
+ UNION ALL
3215
+ SELECT people.id, path || people.id
3216
+ FROM search_tree
3217
+ JOIN people ON people.parent_id = search_tree.id
3218
+ WHERE NOT people.id = ANY(path)
3219
+ )
3220
+ SELECT id FROM search_tree ORDER BY path
3221
+ ))
3222
+  (0.1ms) ROLLBACK
3223
+  (0.1ms) BEGIN
3224
+ ---------------------------------
3225
+ PersonTest: test_tree_roots_scope
3226
+ ---------------------------------
3227
+  (0.3ms) SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
3228
+  (0.1ms) ROLLBACK
3229
+  (0.1ms) BEGIN
3230
+ ----------------------------
3231
+ PostgresTreeTest: test_truth
3232
+ ----------------------------
3233
+  (0.1ms) ROLLBACK