postgres_tree 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +34 -0
- data/lib/postgres_tree/concerns/model/active_record.rb +81 -0
- data/lib/postgres_tree/engine.rb +4 -0
- data/lib/postgres_tree/version.rb +3 -0
- data/lib/postgres_tree.rb +2 -0
- data/lib/tasks/postgres_tree_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/person.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +87 -0
- data/test/dummy/config/database.yml.travis +4 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20140918023556_create_people.rb +10 -0
- data/test/dummy/db/schema.rb +26 -0
- data/test/dummy/log/development.log +64 -0
- data/test/dummy/log/test.log +3233 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/people.yml +15 -0
- data/test/dummy/test/models/person_test.rb +86 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/postgres_tree_test.rb +7 -0
- data/test/test_helper.rb +41 -0
- metadata +182 -0
@@ -0,0 +1,3233 @@
|
|
1
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2
|
+
----------------------------
|
3
|
+
PostgresTreeTest: test_truth
|
4
|
+
----------------------------
|
5
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
6
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7
|
+
--------------------------------------------------------------
|
8
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
9
|
+
--------------------------------------------------------------
|
10
|
+
[1m[35mPerson Load (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17
|
+
-----------------------------------------------------------------
|
18
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
19
|
+
-----------------------------------------------------------------
|
20
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
26
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27
|
+
------------------------------------------------------------------------
|
28
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
29
|
+
------------------------------------------------------------------------
|
30
|
+
[1m[35mPerson Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
36
|
+
[1m[35m (0.1ms)[0m BEGIN
|
37
|
+
-------------------------------------------------------------------------
|
38
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
39
|
+
-------------------------------------------------------------------------
|
40
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
46
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
47
|
+
-------------------------------------
|
48
|
+
PersonTest: test_tree_fixtures_loaded
|
49
|
+
-------------------------------------
|
50
|
+
[1m[35mPerson Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
56
|
+
[1m[36m (0.1ms)[0m [1m[0m
|
57
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
70
|
+
[1m[35m (0.1ms)[0m
|
71
|
+
[1m[36m (0.1ms)[0m [1m[0m
|
72
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
85
|
+
[1m[35m (0.1ms)[0m
|
86
|
+
[1m[36m (0.1ms)[0m [1m[0m
|
87
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
100
|
+
[1m[35m (0.2ms)[0m
|
101
|
+
[1m[36m (0.1ms)[0m [1m[0m
|
102
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
115
|
+
[1m[35m (0.1ms)[0m
|
116
|
+
[1m[36m (0.1ms)[0m [1m[0m
|
117
|
+
[1m[35m (1.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
130
|
+
[1m[35m (0.1ms)[0m
|
131
|
+
[1m[36m (0.1ms)[0m [1m[0m
|
132
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
145
|
+
[1m[35m (0.1ms)[0m
|
146
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
147
|
+
--------------------------------------------------------------
|
148
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
149
|
+
--------------------------------------------------------------
|
150
|
+
[1m[35mPerson Load (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
156
|
+
[1m[35m (0.1ms)[0m BEGIN
|
157
|
+
-----------------------------------------------------------------
|
158
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
159
|
+
-----------------------------------------------------------------
|
160
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
166
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
167
|
+
------------------------------------------------------------------------
|
168
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
169
|
+
------------------------------------------------------------------------
|
170
|
+
[1m[35mPerson Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
176
|
+
[1m[35m (0.1ms)[0m BEGIN
|
177
|
+
-------------------------------------------------------------------------
|
178
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
179
|
+
-------------------------------------------------------------------------
|
180
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
186
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
187
|
+
-------------------------------------
|
188
|
+
PersonTest: test_tree_fixtures_loaded
|
189
|
+
-------------------------------------
|
190
|
+
[1m[35mPerson Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
196
|
+
[1m[35m (0.1ms)[0m BEGIN
|
197
|
+
----------------------------
|
198
|
+
PostgresTreeTest: test_truth
|
199
|
+
----------------------------
|
200
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
201
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
202
|
+
----------------------------
|
203
|
+
PostgresTreeTest: test_truth
|
204
|
+
----------------------------
|
205
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
206
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
207
|
+
---------------------------------------
|
208
|
+
PersonTest: test_person_fixtures_loaded
|
209
|
+
---------------------------------------
|
210
|
+
[1m[35mPerson Load (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
216
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
217
|
+
----------------------------
|
218
|
+
PostgresTreeTest: test_truth
|
219
|
+
----------------------------
|
220
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
221
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
222
|
+
---------------------------------------
|
223
|
+
PersonTest: test_person_fixtures_loaded
|
224
|
+
---------------------------------------
|
225
|
+
[1m[35mPerson Load (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
231
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
232
|
+
----------------------------
|
233
|
+
PostgresTreeTest: test_truth
|
234
|
+
----------------------------
|
235
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
236
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
237
|
+
---------------------------------------
|
238
|
+
PersonTest: test_person_fixtures_loaded
|
239
|
+
---------------------------------------
|
240
|
+
[1m[35mPerson Load (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
246
|
+
[1m[36m (47.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
247
|
+
[1m[35m (55.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
248
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
249
|
+
Migrating to CreatePeople (20140918023556)
|
250
|
+
[1m[35m (0.2ms)[0m BEGIN
|
251
|
+
[1m[36m (52.2ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
|
252
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
|
253
|
+
[1m[36m (12.6ms)[0m [1mCOMMIT[0m
|
254
|
+
[1m[35m (0.3ms)[0m BEGIN
|
255
|
+
---------------------------------------
|
256
|
+
PersonTest: test_person_fixtures_loaded
|
257
|
+
---------------------------------------
|
258
|
+
[1m[36mPerson Load (1.0ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
259
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
260
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
261
|
+
----------------------------
|
262
|
+
PostgresTreeTest: test_truth
|
263
|
+
----------------------------
|
264
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
266
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
267
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
268
|
+
---------------------------------------
|
269
|
+
PersonTest: test_person_fixtures_loaded
|
270
|
+
---------------------------------------
|
271
|
+
[1m[35mPerson Load (0.9ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
272
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
273
|
+
[1m[35m (0.1ms)[0m BEGIN
|
274
|
+
--------------------------------------------------------------
|
275
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
276
|
+
--------------------------------------------------------------
|
277
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
278
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
279
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
280
|
+
-----------------------------------------------------------------
|
281
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
282
|
+
-----------------------------------------------------------------
|
283
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
284
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
285
|
+
[1m[35m (0.1ms)[0m BEGIN
|
286
|
+
------------------------------------------------------------------------
|
287
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
288
|
+
------------------------------------------------------------------------
|
289
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
290
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
291
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
292
|
+
-------------------------------------------------------------------------
|
293
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
294
|
+
-------------------------------------------------------------------------
|
295
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
296
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
297
|
+
[1m[35m (0.1ms)[0m BEGIN
|
298
|
+
----------------------------
|
299
|
+
PostgresTreeTest: test_truth
|
300
|
+
----------------------------
|
301
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
303
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
304
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
305
|
+
---------------------------------------
|
306
|
+
PersonTest: test_person_fixtures_loaded
|
307
|
+
---------------------------------------
|
308
|
+
[1m[35mPerson Load (0.9ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
309
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
310
|
+
[1m[35m (0.1ms)[0m BEGIN
|
311
|
+
--------------------------------------------------------------
|
312
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
313
|
+
--------------------------------------------------------------
|
314
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
315
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
316
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
317
|
+
-----------------------------------------------------------------
|
318
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
319
|
+
-----------------------------------------------------------------
|
320
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
321
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
322
|
+
[1m[35m (0.1ms)[0m BEGIN
|
323
|
+
------------------------------------------------------------------------
|
324
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
325
|
+
------------------------------------------------------------------------
|
326
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
327
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
328
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
329
|
+
-------------------------------------------------------------------------
|
330
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
331
|
+
-------------------------------------------------------------------------
|
332
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
333
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
334
|
+
[1m[35m (0.1ms)[0m BEGIN
|
335
|
+
----------------------------
|
336
|
+
PostgresTreeTest: test_truth
|
337
|
+
----------------------------
|
338
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
339
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
340
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
341
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
342
|
+
----------------------------
|
343
|
+
PostgresTreeTest: test_truth
|
344
|
+
----------------------------
|
345
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
346
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
347
|
+
---------------------------------------
|
348
|
+
PersonTest: test_person_fixtures_loaded
|
349
|
+
---------------------------------------
|
350
|
+
[1m[35mPerson Load (0.9ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
351
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
352
|
+
[1m[35m (0.1ms)[0m BEGIN
|
353
|
+
--------------------------------------------------------------
|
354
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
355
|
+
--------------------------------------------------------------
|
356
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
357
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
358
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
359
|
+
-----------------------------------------------------------------
|
360
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
361
|
+
-----------------------------------------------------------------
|
362
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
363
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
364
|
+
[1m[35m (0.2ms)[0m BEGIN
|
365
|
+
------------------------------------------------------------------------
|
366
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
367
|
+
------------------------------------------------------------------------
|
368
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
369
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
370
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
371
|
+
-------------------------------------------------------------------------
|
372
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
373
|
+
-------------------------------------------------------------------------
|
374
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
375
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
376
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
377
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
378
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
379
|
+
---------------------------------------
|
380
|
+
PersonTest: test_person_fixtures_loaded
|
381
|
+
---------------------------------------
|
382
|
+
[1m[35mPerson Load (1.0ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
383
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
384
|
+
[1m[35m (0.1ms)[0m BEGIN
|
385
|
+
--------------------------------------------------------------
|
386
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
387
|
+
--------------------------------------------------------------
|
388
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
389
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
390
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
391
|
+
-----------------------------------------------------------------
|
392
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
393
|
+
-----------------------------------------------------------------
|
394
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
395
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
396
|
+
[1m[35m (0.1ms)[0m BEGIN
|
397
|
+
------------------------------------------------------------------------
|
398
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
399
|
+
------------------------------------------------------------------------
|
400
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
401
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
402
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
403
|
+
-------------------------------------------------------------------------
|
404
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
405
|
+
-------------------------------------------------------------------------
|
406
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
407
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
408
|
+
[1m[35m (0.1ms)[0m BEGIN
|
409
|
+
----------------------------
|
410
|
+
PostgresTreeTest: test_truth
|
411
|
+
----------------------------
|
412
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
413
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
414
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
415
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
416
|
+
---------------------------------------
|
417
|
+
PersonTest: test_person_fixtures_loaded
|
418
|
+
---------------------------------------
|
419
|
+
[1m[35mPerson Load (0.7ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
420
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
421
|
+
[1m[35m (0.1ms)[0m BEGIN
|
422
|
+
--------------------------------------------------------------
|
423
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
424
|
+
--------------------------------------------------------------
|
425
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
426
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
427
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
428
|
+
-----------------------------------------------------------------
|
429
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
430
|
+
-----------------------------------------------------------------
|
431
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
432
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
433
|
+
[1m[35m (0.1ms)[0m BEGIN
|
434
|
+
------------------------------------------------------------------------
|
435
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
436
|
+
------------------------------------------------------------------------
|
437
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
438
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
439
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
440
|
+
-------------------------------------------------------------------------
|
441
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
442
|
+
-------------------------------------------------------------------------
|
443
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
444
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
445
|
+
[1m[35m (0.1ms)[0m BEGIN
|
446
|
+
----------------------------
|
447
|
+
PostgresTreeTest: test_truth
|
448
|
+
----------------------------
|
449
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
450
|
+
[1m[36mPerson Load (1.8ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
451
|
+
[1m[36mPerson Load (1.1ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
452
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
453
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
454
|
+
Something!
|
455
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
456
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
457
|
+
---------------------------------------
|
458
|
+
PersonTest: test_person_fixtures_loaded
|
459
|
+
---------------------------------------
|
460
|
+
[1m[35mPerson Load (1.1ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
461
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
462
|
+
[1m[35m (0.1ms)[0m BEGIN
|
463
|
+
--------------------------------------------------------------
|
464
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
465
|
+
--------------------------------------------------------------
|
466
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
467
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
468
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
469
|
+
-----------------------------------------------------------------
|
470
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
471
|
+
-----------------------------------------------------------------
|
472
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
473
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
474
|
+
[1m[35m (0.1ms)[0m BEGIN
|
475
|
+
------------------------------------------------------------------------
|
476
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
477
|
+
------------------------------------------------------------------------
|
478
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
479
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
480
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
481
|
+
-------------------------------------------------------------------------
|
482
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
483
|
+
-------------------------------------------------------------------------
|
484
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
485
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
486
|
+
[1m[35m (0.1ms)[0m BEGIN
|
487
|
+
----------------------------
|
488
|
+
PostgresTreeTest: test_truth
|
489
|
+
----------------------------
|
490
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
491
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
492
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
493
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
494
|
+
---------------------------------------
|
495
|
+
PersonTest: test_person_fixtures_loaded
|
496
|
+
---------------------------------------
|
497
|
+
[1m[35mPerson Load (1.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
498
|
+
[1m[36m (0.9ms)[0m [1mROLLBACK[0m
|
499
|
+
[1m[35m (0.2ms)[0m BEGIN
|
500
|
+
--------------------------------------------------------------
|
501
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
502
|
+
--------------------------------------------------------------
|
503
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
504
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
505
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
506
|
+
-----------------------------------------------------------------
|
507
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
508
|
+
-----------------------------------------------------------------
|
509
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
510
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
511
|
+
[1m[35m (0.1ms)[0m BEGIN
|
512
|
+
------------------------------------------------------------------------
|
513
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
514
|
+
------------------------------------------------------------------------
|
515
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
516
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
517
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
518
|
+
-------------------------------------------------------------------------
|
519
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
520
|
+
-------------------------------------------------------------------------
|
521
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
522
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
523
|
+
[1m[35m (0.1ms)[0m BEGIN
|
524
|
+
----------------------------
|
525
|
+
PostgresTreeTest: test_truth
|
526
|
+
----------------------------
|
527
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
528
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
529
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
530
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
531
|
+
---------------------------------------
|
532
|
+
PersonTest: test_person_fixtures_loaded
|
533
|
+
---------------------------------------
|
534
|
+
[1m[35mPerson Load (0.8ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
535
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
536
|
+
[1m[35m (0.1ms)[0m BEGIN
|
537
|
+
--------------------------------------------------------------
|
538
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
539
|
+
--------------------------------------------------------------
|
540
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
541
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
542
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
543
|
+
-----------------------------------------------------------------
|
544
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
545
|
+
-----------------------------------------------------------------
|
546
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
547
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
548
|
+
[1m[35m (0.1ms)[0m BEGIN
|
549
|
+
------------------------------------------------------------------------
|
550
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
551
|
+
------------------------------------------------------------------------
|
552
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
553
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
554
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
555
|
+
-------------------------------------------------------------------------
|
556
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
557
|
+
-------------------------------------------------------------------------
|
558
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
559
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
561
|
+
----------------------------
|
562
|
+
PostgresTreeTest: test_truth
|
563
|
+
----------------------------
|
564
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
565
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
566
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
567
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
568
|
+
---------------------------------------
|
569
|
+
PersonTest: test_person_fixtures_loaded
|
570
|
+
---------------------------------------
|
571
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
572
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
573
|
+
[1m[35m (0.1ms)[0m BEGIN
|
574
|
+
--------------------------------------------------------------
|
575
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
576
|
+
--------------------------------------------------------------
|
577
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
578
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
579
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
580
|
+
-----------------------------------------------------------------
|
581
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
582
|
+
-----------------------------------------------------------------
|
583
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
584
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
585
|
+
[1m[35m (0.1ms)[0m BEGIN
|
586
|
+
------------------------------------------------------------------------
|
587
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
588
|
+
------------------------------------------------------------------------
|
589
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
590
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
591
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
592
|
+
-------------------------------------------------------------------------
|
593
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
594
|
+
-------------------------------------------------------------------------
|
595
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
596
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
597
|
+
[1m[35m (0.1ms)[0m BEGIN
|
598
|
+
----------------------------
|
599
|
+
PostgresTreeTest: test_truth
|
600
|
+
----------------------------
|
601
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
602
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
603
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL
|
604
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
605
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "people"
|
606
|
+
[1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "people" ("id", "name", "created_at", "updated_at") VALUES (1, 'Grandad', '2014-09-18 03:30:08', '2014-09-18 03:30:08')[0m
|
607
|
+
[1m[35mFixture Insert (0.3ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
609
|
+
[1m[35m (43.5ms)[0m COMMIT
|
610
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL[0m
|
611
|
+
[1m[35m (0.2ms)[0m BEGIN
|
612
|
+
----------------------------
|
613
|
+
PostgresTreeTest: test_truth
|
614
|
+
----------------------------
|
615
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
616
|
+
[1m[35m (0.1ms)[0m BEGIN
|
617
|
+
---------------------------------------
|
618
|
+
PersonTest: test_person_fixtures_loaded
|
619
|
+
---------------------------------------
|
620
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
621
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
622
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
623
|
+
--------------------------------------------------------------
|
624
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
625
|
+
--------------------------------------------------------------
|
626
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
627
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
628
|
+
[1m[35m (0.1ms)[0m BEGIN
|
629
|
+
-----------------------------------------------------------------
|
630
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
631
|
+
-----------------------------------------------------------------
|
632
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
633
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
634
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
635
|
+
------------------------------------------------------------------------
|
636
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
637
|
+
------------------------------------------------------------------------
|
638
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
639
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
640
|
+
[1m[35m (0.1ms)[0m BEGIN
|
641
|
+
-------------------------------------------------------------------------
|
642
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
643
|
+
-------------------------------------------------------------------------
|
644
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
645
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
646
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
647
|
+
----------------------------
|
648
|
+
PostgresTreeTest: test_truth
|
649
|
+
----------------------------
|
650
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
651
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
652
|
+
---------------------------------------
|
653
|
+
PersonTest: test_person_fixtures_loaded
|
654
|
+
---------------------------------------
|
655
|
+
[1m[35mPerson Load (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
661
|
+
[1m[35m (0.1ms)[0m BEGIN
|
662
|
+
--------------------------------------------------------------
|
663
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
664
|
+
--------------------------------------------------------------
|
665
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
671
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
672
|
+
-----------------------------------------------------------------
|
673
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
674
|
+
-----------------------------------------------------------------
|
675
|
+
[1m[35mPerson Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
681
|
+
[1m[35m (0.1ms)[0m BEGIN
|
682
|
+
------------------------------------------------------------------------
|
683
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
684
|
+
------------------------------------------------------------------------
|
685
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
691
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
692
|
+
-------------------------------------------------------------------------
|
693
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
694
|
+
-------------------------------------------------------------------------
|
695
|
+
[1m[35mPerson Load (1.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
701
|
+
[1m[36m (15.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
702
|
+
[1m[35m (63.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
703
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
704
|
+
Migrating to CreatePeople (20140918023556)
|
705
|
+
[1m[35m (0.2ms)[0m BEGIN
|
706
|
+
[1m[36m (55.0ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
|
707
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140918023556"]]
|
708
|
+
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
|
709
|
+
[1m[35m (0.2ms)[0m BEGIN
|
710
|
+
----------------------------
|
711
|
+
PostgresTreeTest: test_truth
|
712
|
+
----------------------------
|
713
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
714
|
+
[1m[35m (0.1ms)[0m BEGIN
|
715
|
+
---------------------------------------
|
716
|
+
PersonTest: test_person_fixtures_loaded
|
717
|
+
---------------------------------------
|
718
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
719
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
720
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
721
|
+
--------------------------------------------------------------
|
722
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
723
|
+
--------------------------------------------------------------
|
724
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
725
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
726
|
+
[1m[35m (0.1ms)[0m BEGIN
|
727
|
+
-----------------------------------------------------------------
|
728
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
729
|
+
-----------------------------------------------------------------
|
730
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
731
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
732
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
733
|
+
------------------------------------------------------------------------
|
734
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
735
|
+
------------------------------------------------------------------------
|
736
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
737
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
738
|
+
[1m[35m (0.1ms)[0m BEGIN
|
739
|
+
-------------------------------------------------------------------------
|
740
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
741
|
+
-------------------------------------------------------------------------
|
742
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
743
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
744
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
745
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
746
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
747
|
+
[1m[35m (0.2ms)[0m BEGIN
|
748
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
749
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
751
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
|
753
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
754
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
755
|
+
----------------------------
|
756
|
+
PostgresTreeTest: test_truth
|
757
|
+
----------------------------
|
758
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
759
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
760
|
+
---------------------------------------
|
761
|
+
PersonTest: test_person_fixtures_loaded
|
762
|
+
---------------------------------------
|
763
|
+
[1m[35mPerson Load (0.8ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
764
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
765
|
+
[1m[35m (0.1ms)[0m BEGIN
|
766
|
+
--------------------------------------------------------------
|
767
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
768
|
+
--------------------------------------------------------------
|
769
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
770
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
771
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
772
|
+
-----------------------------------------------------------------
|
773
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
774
|
+
-----------------------------------------------------------------
|
775
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
776
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
777
|
+
[1m[35m (0.1ms)[0m BEGIN
|
778
|
+
------------------------------------------------------------------------
|
779
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
780
|
+
------------------------------------------------------------------------
|
781
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
782
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
783
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
784
|
+
-------------------------------------------------------------------------
|
785
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
786
|
+
-------------------------------------------------------------------------
|
787
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
788
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
789
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
790
|
+
[1m[35mSQL (39.9ms)[0m DELETE FROM "schema_migrations"
|
791
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
792
|
+
Migrating to CreatePeople (20140918023556)
|
793
|
+
[1m[35m (0.1ms)[0m BEGIN
|
794
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
798
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
799
|
+
[1m[35m (45.6ms)[0m drop schema public cascade;
|
800
|
+
[1m[36m (7.2ms)[0m [1mcreate schema public;[0m
|
801
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
802
|
+
[1m[36m (65.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
803
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
804
|
+
Migrating to CreatePeople (20140918023556)
|
805
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
806
|
+
[1m[35m (55.6ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
807
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
808
|
+
[1m[35m (14.8ms)[0m COMMIT
|
809
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
810
|
+
[1m[35m (0.2ms)[0m BEGIN
|
811
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "people"[0m
|
812
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m
|
814
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mCOMMIT[0m
|
816
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
818
|
+
---------------------------------------
|
819
|
+
PersonTest: test_person_fixtures_loaded
|
820
|
+
---------------------------------------
|
821
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
822
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
823
|
+
[1m[35m (0.1ms)[0m BEGIN
|
824
|
+
--------------------------------------------------------------
|
825
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
826
|
+
--------------------------------------------------------------
|
827
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
828
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
829
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
830
|
+
-----------------------------------------------------------------
|
831
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
832
|
+
-----------------------------------------------------------------
|
833
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
834
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
835
|
+
[1m[35m (0.1ms)[0m BEGIN
|
836
|
+
------------------------------------------------------------------------
|
837
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
838
|
+
------------------------------------------------------------------------
|
839
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
840
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
841
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
842
|
+
-------------------------------------------------------------------------
|
843
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
844
|
+
-------------------------------------------------------------------------
|
845
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
846
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
847
|
+
[1m[35m (0.7ms)[0m BEGIN
|
848
|
+
----------------------------
|
849
|
+
PostgresTreeTest: test_truth
|
850
|
+
----------------------------
|
851
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
852
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
853
|
+
[1m[35m (16.9ms)[0m drop schema public cascade;
|
854
|
+
[1m[36m (7.2ms)[0m [1mcreate schema public;[0m
|
855
|
+
[1m[35m (7.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
856
|
+
[1m[36m (55.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
857
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
858
|
+
Migrating to CreatePeople (20140918023556)
|
859
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
860
|
+
[1m[35m (50.1ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
861
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
862
|
+
[1m[35m (13.4ms)[0m COMMIT
|
863
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
864
|
+
[1m[35m (0.2ms)[0m BEGIN
|
865
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
866
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
868
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (9.7ms)[0m [1mCOMMIT[0m
|
870
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
871
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
872
|
+
----------------------------
|
873
|
+
PostgresTreeTest: test_truth
|
874
|
+
----------------------------
|
875
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
876
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
877
|
+
---------------------------------------
|
878
|
+
PersonTest: test_person_fixtures_loaded
|
879
|
+
---------------------------------------
|
880
|
+
[1m[35mPerson Load (0.9ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
881
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
882
|
+
[1m[35m (0.1ms)[0m BEGIN
|
883
|
+
--------------------------------------------------------------
|
884
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
885
|
+
--------------------------------------------------------------
|
886
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
887
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
888
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
889
|
+
-----------------------------------------------------------------
|
890
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
891
|
+
-----------------------------------------------------------------
|
892
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
893
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
894
|
+
[1m[35m (0.1ms)[0m BEGIN
|
895
|
+
------------------------------------------------------------------------
|
896
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
897
|
+
------------------------------------------------------------------------
|
898
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
899
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
900
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
901
|
+
-------------------------------------------------------------------------
|
902
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
903
|
+
-------------------------------------------------------------------------
|
904
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
905
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
906
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
907
|
+
[1m[35m (18.1ms)[0m drop schema public cascade;
|
908
|
+
[1m[36m (6.9ms)[0m [1mcreate schema public;[0m
|
909
|
+
[1m[35m (7.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
910
|
+
[1m[36m (72.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
911
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
912
|
+
Migrating to CreatePeople (20140918023556)
|
913
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
914
|
+
[1m[35m (51.9ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
915
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
916
|
+
[1m[35m (19.1ms)[0m COMMIT
|
917
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
918
|
+
[1m[35m (0.1ms)[0m BEGIN
|
919
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "people"[0m
|
920
|
+
[1m[35mFixture Insert (0.3ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
922
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
|
924
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
925
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
926
|
+
----------------------------
|
927
|
+
PostgresTreeTest: test_truth
|
928
|
+
----------------------------
|
929
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
930
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
931
|
+
---------------------------------------
|
932
|
+
PersonTest: test_person_fixtures_loaded
|
933
|
+
---------------------------------------
|
934
|
+
[1m[35mPerson Load (0.9ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
935
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
936
|
+
[1m[35m (0.1ms)[0m BEGIN
|
937
|
+
--------------------------------------------------------------
|
938
|
+
PersonTest: test_postgresql_treeify_record_respond_to_acestors
|
939
|
+
--------------------------------------------------------------
|
940
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
941
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
942
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
943
|
+
-----------------------------------------------------------------
|
944
|
+
PersonTest: test_postgresql_treeify_record_respond_to_descendents
|
945
|
+
-----------------------------------------------------------------
|
946
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
947
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
948
|
+
[1m[35m (0.2ms)[0m BEGIN
|
949
|
+
------------------------------------------------------------------------
|
950
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_ancestors
|
951
|
+
------------------------------------------------------------------------
|
952
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
953
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
954
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
955
|
+
-------------------------------------------------------------------------
|
956
|
+
PersonTest: test_postgresql_treeify_record_respond_to_self_and_decendents
|
957
|
+
-------------------------------------------------------------------------
|
958
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
959
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
960
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
961
|
+
[1m[35m (22.3ms)[0m drop schema public cascade;
|
962
|
+
[1m[36m (6.3ms)[0m [1mcreate schema public;[0m
|
963
|
+
[1m[35m (8.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
964
|
+
[1m[36m (72.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
965
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
966
|
+
Migrating to CreatePeople (20140918023556)
|
967
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
968
|
+
[1m[35m (63.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
969
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
970
|
+
[1m[35m (19.5ms)[0m COMMIT
|
971
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
972
|
+
[1m[35m (43.8ms)[0m drop schema public cascade;
|
973
|
+
[1m[36m (6.7ms)[0m [1mcreate schema public;[0m
|
974
|
+
[1m[35m (7.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
975
|
+
[1m[36m (72.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
976
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
977
|
+
Migrating to CreatePeople (20140918023556)
|
978
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
979
|
+
[1m[35m (50.5ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
980
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
981
|
+
[1m[35m (14.4ms)[0m COMMIT
|
982
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
983
|
+
[1m[35m (0.1ms)[0m BEGIN
|
984
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "people"[0m
|
985
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m
|
987
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mCOMMIT[0m
|
989
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
990
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
991
|
+
----------------------------
|
992
|
+
PostgresTreeTest: test_truth
|
993
|
+
----------------------------
|
994
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
995
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
996
|
+
---------------------------------------
|
997
|
+
PersonTest: test_person_fixtures_loaded
|
998
|
+
---------------------------------------
|
999
|
+
[1m[35mPerson Load (0.7ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1000
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1001
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1002
|
+
------------------------------------
|
1003
|
+
PersonTest: test_respond_to_acestors
|
1004
|
+
------------------------------------
|
1005
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1006
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1007
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1008
|
+
----------------------------------------------
|
1009
|
+
PersonTest: test_respond_to_acestors_includes?
|
1010
|
+
----------------------------------------------
|
1011
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1012
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1013
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1014
|
+
---------------------------------------
|
1015
|
+
PersonTest: test_respond_to_descendents
|
1016
|
+
---------------------------------------
|
1017
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1018
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1019
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1020
|
+
-------------------------------------------------
|
1021
|
+
PersonTest: test_respond_to_descendents_includes?
|
1022
|
+
-------------------------------------------------
|
1023
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1024
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1025
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1026
|
+
----------------------------------------------
|
1027
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1028
|
+
----------------------------------------------
|
1029
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1030
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1031
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1032
|
+
--------------------------------------------------------
|
1033
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1034
|
+
--------------------------------------------------------
|
1035
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1036
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1037
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1038
|
+
-----------------------------------------------
|
1039
|
+
PersonTest: test_respond_to_self_and_decendents
|
1040
|
+
-----------------------------------------------
|
1041
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1042
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1043
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1044
|
+
---------------------------------------------------------
|
1045
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1046
|
+
---------------------------------------------------------
|
1047
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1048
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1049
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1050
|
+
[1m[35m (26.8ms)[0m drop schema public cascade;
|
1051
|
+
[1m[36m (6.9ms)[0m [1mcreate schema public;[0m
|
1052
|
+
[1m[35m (6.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1053
|
+
[1m[36m (63.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1054
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1055
|
+
Migrating to CreatePeople (20140918023556)
|
1056
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1057
|
+
[1m[35m (60.4ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1058
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1059
|
+
[1m[35m (16.0ms)[0m COMMIT
|
1060
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1061
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1062
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
1063
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT 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')[0m
|
1065
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (3.2ms)[0m [1mCOMMIT[0m
|
1067
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1068
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1069
|
+
----------------------------
|
1070
|
+
PostgresTreeTest: test_truth
|
1071
|
+
----------------------------
|
1072
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1073
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1074
|
+
---------------------------------------
|
1075
|
+
PersonTest: test_person_fixtures_loaded
|
1076
|
+
---------------------------------------
|
1077
|
+
[1m[35mPerson Load (0.8ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1078
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1079
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1080
|
+
------------------------------------
|
1081
|
+
PersonTest: test_respond_to_acestors
|
1082
|
+
------------------------------------
|
1083
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1084
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1085
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1086
|
+
----------------------------------------------
|
1087
|
+
PersonTest: test_respond_to_acestors_includes?
|
1088
|
+
----------------------------------------------
|
1089
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1090
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1091
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1092
|
+
---------------------------------------
|
1093
|
+
PersonTest: test_respond_to_descendents
|
1094
|
+
---------------------------------------
|
1095
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1096
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1097
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1098
|
+
-------------------------------------------------
|
1099
|
+
PersonTest: test_respond_to_descendents_includes?
|
1100
|
+
-------------------------------------------------
|
1101
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1102
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1103
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1104
|
+
----------------------------------------------
|
1105
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1106
|
+
----------------------------------------------
|
1107
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1108
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1109
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1110
|
+
--------------------------------------------------------
|
1111
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1112
|
+
--------------------------------------------------------
|
1113
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1114
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1115
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1116
|
+
-----------------------------------------------
|
1117
|
+
PersonTest: test_respond_to_self_and_decendents
|
1118
|
+
-----------------------------------------------
|
1119
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1120
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1121
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1122
|
+
---------------------------------------------------------
|
1123
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1124
|
+
---------------------------------------------------------
|
1125
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1126
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1127
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1128
|
+
[1m[35m (23.9ms)[0m drop schema public cascade;
|
1129
|
+
[1m[36m (6.9ms)[0m [1mcreate schema public;[0m
|
1130
|
+
[1m[35m (7.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1131
|
+
[1m[36m (72.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1132
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1133
|
+
Migrating to CreatePeople (20140918023556)
|
1134
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1135
|
+
[1m[35m (43.1ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1136
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1137
|
+
[1m[35m (19.5ms)[0m COMMIT
|
1138
|
+
[1m[36m (1.0ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1139
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1140
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
1141
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1143
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mCOMMIT[0m
|
1145
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1146
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1147
|
+
----------------------------
|
1148
|
+
PostgresTreeTest: test_truth
|
1149
|
+
----------------------------
|
1150
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1151
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1152
|
+
---------------------------------------
|
1153
|
+
PersonTest: test_person_fixtures_loaded
|
1154
|
+
---------------------------------------
|
1155
|
+
[1m[35mPerson Load (0.7ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1156
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1157
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1158
|
+
------------------------------------
|
1159
|
+
PersonTest: test_respond_to_acestors
|
1160
|
+
------------------------------------
|
1161
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1162
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1163
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1164
|
+
----------------------------------------------
|
1165
|
+
PersonTest: test_respond_to_acestors_includes?
|
1166
|
+
----------------------------------------------
|
1167
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1168
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1169
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1170
|
+
---------------------------------------
|
1171
|
+
PersonTest: test_respond_to_descendents
|
1172
|
+
---------------------------------------
|
1173
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1174
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1175
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1176
|
+
-------------------------------------------------
|
1177
|
+
PersonTest: test_respond_to_descendents_includes?
|
1178
|
+
-------------------------------------------------
|
1179
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1180
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1181
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1182
|
+
----------------------------------------------
|
1183
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1184
|
+
----------------------------------------------
|
1185
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1186
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1187
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1188
|
+
--------------------------------------------------------
|
1189
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1190
|
+
--------------------------------------------------------
|
1191
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1192
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1193
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1194
|
+
-----------------------------------------------
|
1195
|
+
PersonTest: test_respond_to_self_and_decendents
|
1196
|
+
-----------------------------------------------
|
1197
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1198
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1199
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1200
|
+
---------------------------------------------------------
|
1201
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1202
|
+
---------------------------------------------------------
|
1203
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1204
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1205
|
+
[1m[36mPerson Load (1.6ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1206
|
+
[1m[36mPerson Load (1.9ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1207
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1208
|
+
[1m[35m (44.6ms)[0m drop schema public cascade;
|
1209
|
+
[1m[36m (65.2ms)[0m [1mcreate schema public;[0m
|
1210
|
+
[1m[35m (8.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1211
|
+
[1m[36m (73.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1212
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1213
|
+
Migrating to CreatePeople (20140918023556)
|
1214
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1215
|
+
[1m[35m (61.8ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1216
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1217
|
+
[1m[35m (18.8ms)[0m COMMIT
|
1218
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1219
|
+
[1m[35m (6.5ms)[0m drop schema public cascade;
|
1220
|
+
[1m[36m (7.5ms)[0m [1mcreate schema public;[0m
|
1221
|
+
[1m[35m (8.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1222
|
+
[1m[36m (63.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1223
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1224
|
+
Migrating to CreatePeople (20140918023556)
|
1225
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1226
|
+
[1m[35m (42.4ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1227
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1228
|
+
[1m[35m (11.8ms)[0m COMMIT
|
1229
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1230
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1231
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
1232
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m
|
1234
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (7.1ms)[0m [1mCOMMIT[0m
|
1236
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1237
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1238
|
+
----------------------------
|
1239
|
+
PostgresTreeTest: test_truth
|
1240
|
+
----------------------------
|
1241
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1242
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1243
|
+
---------------------------------------
|
1244
|
+
PersonTest: test_person_fixtures_loaded
|
1245
|
+
---------------------------------------
|
1246
|
+
[1m[35mPerson Load (1.1ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1247
|
+
[1m[36m (1.0ms)[0m [1mROLLBACK[0m
|
1248
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1249
|
+
------------------------------------
|
1250
|
+
PersonTest: test_respond_to_acestors
|
1251
|
+
------------------------------------
|
1252
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1253
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1254
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1255
|
+
----------------------------------------------
|
1256
|
+
PersonTest: test_respond_to_acestors_includes?
|
1257
|
+
----------------------------------------------
|
1258
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1259
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1261
|
+
---------------------------------------
|
1262
|
+
PersonTest: test_respond_to_descendents
|
1263
|
+
---------------------------------------
|
1264
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1265
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1266
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1267
|
+
-------------------------------------------------
|
1268
|
+
PersonTest: test_respond_to_descendents_includes?
|
1269
|
+
-------------------------------------------------
|
1270
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1271
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1272
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1273
|
+
----------------------------------------------
|
1274
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1275
|
+
----------------------------------------------
|
1276
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1277
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1278
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1279
|
+
--------------------------------------------------------
|
1280
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1281
|
+
--------------------------------------------------------
|
1282
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1283
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1284
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1285
|
+
-----------------------------------------------
|
1286
|
+
PersonTest: test_respond_to_self_and_decendents
|
1287
|
+
-----------------------------------------------
|
1288
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1289
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1290
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1291
|
+
---------------------------------------------------------
|
1292
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1293
|
+
---------------------------------------------------------
|
1294
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1295
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1296
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1297
|
+
[1m[35m (21.2ms)[0m drop schema public cascade;
|
1298
|
+
[1m[36m (7.3ms)[0m [1mcreate schema public;[0m
|
1299
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1300
|
+
[1m[36m (63.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1301
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1302
|
+
Migrating to CreatePeople (20140918023556)
|
1303
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1304
|
+
[1m[35m (50.2ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1305
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1306
|
+
[1m[35m (15.4ms)[0m COMMIT
|
1307
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1308
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1309
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "people"[0m
|
1310
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1312
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
|
1314
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1315
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1316
|
+
----------------------------
|
1317
|
+
PostgresTreeTest: test_truth
|
1318
|
+
----------------------------
|
1319
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1320
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1321
|
+
---------------------------------------
|
1322
|
+
PersonTest: test_person_fixtures_loaded
|
1323
|
+
---------------------------------------
|
1324
|
+
[1m[35mPerson Load (0.8ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1325
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1326
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1327
|
+
------------------------------------
|
1328
|
+
PersonTest: test_respond_to_acestors
|
1329
|
+
------------------------------------
|
1330
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1331
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1332
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1333
|
+
----------------------------------------------
|
1334
|
+
PersonTest: test_respond_to_acestors_includes?
|
1335
|
+
----------------------------------------------
|
1336
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1337
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1338
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1339
|
+
---------------------------------------
|
1340
|
+
PersonTest: test_respond_to_descendents
|
1341
|
+
---------------------------------------
|
1342
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1343
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1344
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1345
|
+
-------------------------------------------------
|
1346
|
+
PersonTest: test_respond_to_descendents_includes?
|
1347
|
+
-------------------------------------------------
|
1348
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1349
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1350
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1351
|
+
----------------------------------------------
|
1352
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1353
|
+
----------------------------------------------
|
1354
|
+
[1m[36mPerson Load (0.9ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1355
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1356
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1357
|
+
--------------------------------------------------------
|
1358
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1359
|
+
--------------------------------------------------------
|
1360
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1361
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1362
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1363
|
+
-----------------------------------------------
|
1364
|
+
PersonTest: test_respond_to_self_and_decendents
|
1365
|
+
-----------------------------------------------
|
1366
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1367
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1368
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1369
|
+
---------------------------------------------------------
|
1370
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1371
|
+
---------------------------------------------------------
|
1372
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1373
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1374
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1375
|
+
[1m[35m (45.0ms)[0m drop schema public cascade;
|
1376
|
+
[1m[36m (6.5ms)[0m [1mcreate schema public;[0m
|
1377
|
+
[1m[35m (13.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1378
|
+
[1m[36m (90.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1379
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1380
|
+
Migrating to CreatePeople (20140918023556)
|
1381
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1382
|
+
[1m[35m (90.8ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1383
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1384
|
+
[1m[35m (13.5ms)[0m COMMIT
|
1385
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1386
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1387
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "people"[0m
|
1388
|
+
[1m[35mFixture Insert (0.3ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1390
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
|
1392
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1393
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1394
|
+
----------------------------
|
1395
|
+
PostgresTreeTest: test_truth
|
1396
|
+
----------------------------
|
1397
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1398
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1399
|
+
---------------------------------------
|
1400
|
+
PersonTest: test_person_fixtures_loaded
|
1401
|
+
---------------------------------------
|
1402
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1403
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1404
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1405
|
+
------------------------------------
|
1406
|
+
PersonTest: test_respond_to_acestors
|
1407
|
+
------------------------------------
|
1408
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1409
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1410
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1411
|
+
----------------------------------------------
|
1412
|
+
PersonTest: test_respond_to_acestors_includes?
|
1413
|
+
----------------------------------------------
|
1414
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1415
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1416
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1417
|
+
---------------------------------------
|
1418
|
+
PersonTest: test_respond_to_descendents
|
1419
|
+
---------------------------------------
|
1420
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1421
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1422
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1423
|
+
-------------------------------------------------
|
1424
|
+
PersonTest: test_respond_to_descendents_includes?
|
1425
|
+
-------------------------------------------------
|
1426
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1427
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1428
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1429
|
+
----------------------------------------------
|
1430
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1431
|
+
----------------------------------------------
|
1432
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1433
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1434
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1435
|
+
--------------------------------------------------------
|
1436
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1437
|
+
--------------------------------------------------------
|
1438
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1439
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1440
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1441
|
+
-----------------------------------------------
|
1442
|
+
PersonTest: test_respond_to_self_and_decendents
|
1443
|
+
-----------------------------------------------
|
1444
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1445
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1446
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1447
|
+
---------------------------------------------------------
|
1448
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1449
|
+
---------------------------------------------------------
|
1450
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1451
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1452
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1453
|
+
[1m[35m (11.1ms)[0m drop schema public cascade;
|
1454
|
+
[1m[36m (7.3ms)[0m [1mcreate schema public;[0m
|
1455
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1456
|
+
[1m[36m (54.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1457
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1458
|
+
Migrating to CreatePeople (20140918023556)
|
1459
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1460
|
+
[1m[35m (73.3ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1461
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1462
|
+
[1m[35m (16.8ms)[0m COMMIT
|
1463
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1464
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1465
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
1466
|
+
[1m[35mFixture Insert (0.3ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1468
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (3.6ms)[0m [1mCOMMIT[0m
|
1470
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1471
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1472
|
+
----------------------------
|
1473
|
+
PostgresTreeTest: test_truth
|
1474
|
+
----------------------------
|
1475
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1476
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1477
|
+
---------------------------------------
|
1478
|
+
PersonTest: test_person_fixtures_loaded
|
1479
|
+
---------------------------------------
|
1480
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1481
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1482
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1483
|
+
------------------------------------
|
1484
|
+
PersonTest: test_respond_to_acestors
|
1485
|
+
------------------------------------
|
1486
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1487
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1488
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1489
|
+
----------------------------------------------
|
1490
|
+
PersonTest: test_respond_to_acestors_includes?
|
1491
|
+
----------------------------------------------
|
1492
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1493
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1494
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1495
|
+
---------------------------------------
|
1496
|
+
PersonTest: test_respond_to_descendents
|
1497
|
+
---------------------------------------
|
1498
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1499
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1500
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1501
|
+
-------------------------------------------------
|
1502
|
+
PersonTest: test_respond_to_descendents_includes?
|
1503
|
+
-------------------------------------------------
|
1504
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1505
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1506
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1507
|
+
----------------------------------------------
|
1508
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1509
|
+
----------------------------------------------
|
1510
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1511
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1512
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1513
|
+
--------------------------------------------------------
|
1514
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1515
|
+
--------------------------------------------------------
|
1516
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1517
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1518
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1519
|
+
-----------------------------------------------
|
1520
|
+
PersonTest: test_respond_to_self_and_decendents
|
1521
|
+
-----------------------------------------------
|
1522
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1523
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1524
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1525
|
+
---------------------------------------------------------
|
1526
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1527
|
+
---------------------------------------------------------
|
1528
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1529
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1530
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1531
|
+
[1m[35m (15.9ms)[0m drop schema public cascade;
|
1532
|
+
[1m[36m (7.2ms)[0m [1mcreate schema public;[0m
|
1533
|
+
[1m[35m (13.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1534
|
+
[1m[36m (64.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1535
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1536
|
+
Migrating to CreatePeople (20140918023556)
|
1537
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1538
|
+
[1m[35m (36.5ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1539
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1540
|
+
[1m[35m (18.1ms)[0m COMMIT
|
1541
|
+
[1m[36m (9.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1542
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1543
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "people"[0m
|
1544
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m
|
1546
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (8.3ms)[0m [1mCOMMIT[0m
|
1548
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1550
|
+
----------------------------
|
1551
|
+
PostgresTreeTest: test_truth
|
1552
|
+
----------------------------
|
1553
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1554
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1555
|
+
---------------------------------------
|
1556
|
+
PersonTest: test_person_fixtures_loaded
|
1557
|
+
---------------------------------------
|
1558
|
+
[1m[35mPerson Load (0.7ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1559
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1561
|
+
------------------------------------
|
1562
|
+
PersonTest: test_respond_to_acestors
|
1563
|
+
------------------------------------
|
1564
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1565
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1566
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1567
|
+
----------------------------------------------
|
1568
|
+
PersonTest: test_respond_to_acestors_includes?
|
1569
|
+
----------------------------------------------
|
1570
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1571
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1572
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1573
|
+
---------------------------------------
|
1574
|
+
PersonTest: test_respond_to_descendents
|
1575
|
+
---------------------------------------
|
1576
|
+
[1m[36mPerson Load (0.9ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1577
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1578
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1579
|
+
-------------------------------------------------
|
1580
|
+
PersonTest: test_respond_to_descendents_includes?
|
1581
|
+
-------------------------------------------------
|
1582
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1583
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1584
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1585
|
+
----------------------------------------------
|
1586
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1587
|
+
----------------------------------------------
|
1588
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1589
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1590
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1591
|
+
--------------------------------------------------------
|
1592
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1593
|
+
--------------------------------------------------------
|
1594
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1595
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1596
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1597
|
+
-----------------------------------------------
|
1598
|
+
PersonTest: test_respond_to_self_and_decendents
|
1599
|
+
-----------------------------------------------
|
1600
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1601
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1602
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1603
|
+
---------------------------------------------------------
|
1604
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1605
|
+
---------------------------------------------------------
|
1606
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1607
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1608
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1609
|
+
[1m[35m (50.3ms)[0m drop schema public cascade;
|
1610
|
+
[1m[36m (6.9ms)[0m [1mcreate schema public;[0m
|
1611
|
+
[1m[35m (5.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1612
|
+
[1m[36m (64.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1613
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1614
|
+
Migrating to CreatePeople (20140918023556)
|
1615
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1616
|
+
[1m[35m (52.9ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1617
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1618
|
+
[1m[35m (18.9ms)[0m COMMIT
|
1619
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1620
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1621
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "people"[0m
|
1622
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1624
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (3.5ms)[0m [1mCOMMIT[0m
|
1626
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1627
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1628
|
+
----------------------------
|
1629
|
+
PostgresTreeTest: test_truth
|
1630
|
+
----------------------------
|
1631
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1632
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1633
|
+
---------------------------------------
|
1634
|
+
PersonTest: test_person_fixtures_loaded
|
1635
|
+
---------------------------------------
|
1636
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1637
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1638
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1639
|
+
------------------------------------
|
1640
|
+
PersonTest: test_respond_to_acestors
|
1641
|
+
------------------------------------
|
1642
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1643
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1645
|
+
----------------------------------------------
|
1646
|
+
PersonTest: test_respond_to_acestors_includes?
|
1647
|
+
----------------------------------------------
|
1648
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1649
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1650
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1651
|
+
---------------------------------------
|
1652
|
+
PersonTest: test_respond_to_descendents
|
1653
|
+
---------------------------------------
|
1654
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1655
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1656
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1657
|
+
-------------------------------------------------
|
1658
|
+
PersonTest: test_respond_to_descendents_includes?
|
1659
|
+
-------------------------------------------------
|
1660
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1661
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1662
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1663
|
+
----------------------------------------------
|
1664
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1665
|
+
----------------------------------------------
|
1666
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1667
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1668
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1669
|
+
--------------------------------------------------------
|
1670
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1671
|
+
--------------------------------------------------------
|
1672
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1673
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1674
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1675
|
+
-----------------------------------------------
|
1676
|
+
PersonTest: test_respond_to_self_and_decendents
|
1677
|
+
-----------------------------------------------
|
1678
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1679
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1680
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1681
|
+
---------------------------------------------------------
|
1682
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1683
|
+
---------------------------------------------------------
|
1684
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1685
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1686
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1687
|
+
[1m[35m (6.4ms)[0m drop schema public cascade;
|
1688
|
+
[1m[36m (7.9ms)[0m [1mcreate schema public;[0m
|
1689
|
+
[1m[35m (4.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1690
|
+
[1m[36m (64.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1691
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1692
|
+
Migrating to CreatePeople (20140918023556)
|
1693
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1694
|
+
[1m[35m (49.3ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1695
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1696
|
+
[1m[35m (39.6ms)[0m COMMIT
|
1697
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1698
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1699
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
1700
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT 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')[0m
|
1702
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (34.6ms)[0m [1mCOMMIT[0m
|
1704
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1705
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1706
|
+
----------------------------
|
1707
|
+
PostgresTreeTest: test_truth
|
1708
|
+
----------------------------
|
1709
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1710
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1711
|
+
---------------------------------------
|
1712
|
+
PersonTest: test_person_fixtures_loaded
|
1713
|
+
---------------------------------------
|
1714
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1715
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1716
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1717
|
+
------------------------------------
|
1718
|
+
PersonTest: test_respond_to_acestors
|
1719
|
+
------------------------------------
|
1720
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1721
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1723
|
+
----------------------------------------------
|
1724
|
+
PersonTest: test_respond_to_acestors_includes?
|
1725
|
+
----------------------------------------------
|
1726
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1727
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1728
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1729
|
+
---------------------------------------
|
1730
|
+
PersonTest: test_respond_to_descendents
|
1731
|
+
---------------------------------------
|
1732
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1733
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1734
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1735
|
+
-------------------------------------------------
|
1736
|
+
PersonTest: test_respond_to_descendents_includes?
|
1737
|
+
-------------------------------------------------
|
1738
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1739
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1740
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1741
|
+
----------------------------------------------
|
1742
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1743
|
+
----------------------------------------------
|
1744
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1745
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1746
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1747
|
+
--------------------------------------------------------
|
1748
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1749
|
+
--------------------------------------------------------
|
1750
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1751
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1752
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1753
|
+
-----------------------------------------------
|
1754
|
+
PersonTest: test_respond_to_self_and_decendents
|
1755
|
+
-----------------------------------------------
|
1756
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1757
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1758
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1759
|
+
---------------------------------------------------------
|
1760
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1761
|
+
---------------------------------------------------------
|
1762
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1763
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1764
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1765
|
+
[1m[35m (11.3ms)[0m drop schema public cascade;
|
1766
|
+
[1m[36m (7.3ms)[0m [1mcreate schema public;[0m
|
1767
|
+
[1m[35m (4.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1768
|
+
[1m[36m (55.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1769
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1770
|
+
Migrating to CreatePeople (20140918023556)
|
1771
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1772
|
+
[1m[35m (43.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1773
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1774
|
+
[1m[35m (18.8ms)[0m COMMIT
|
1775
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1776
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1777
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "people"[0m
|
1778
|
+
[1m[35mFixture Insert (1.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1780
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (9.6ms)[0m [1mCOMMIT[0m
|
1782
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1783
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1784
|
+
---------------------------------------
|
1785
|
+
PersonTest: test_person_fixtures_loaded
|
1786
|
+
---------------------------------------
|
1787
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1788
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1789
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1790
|
+
------------------------------------
|
1791
|
+
PersonTest: test_respond_to_acestors
|
1792
|
+
------------------------------------
|
1793
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1794
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1795
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1796
|
+
----------------------------------------------
|
1797
|
+
PersonTest: test_respond_to_acestors_includes?
|
1798
|
+
----------------------------------------------
|
1799
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1800
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1801
|
+
[1m[35m (1.5ms)[0m BEGIN
|
1802
|
+
---------------------------------------
|
1803
|
+
PersonTest: test_respond_to_descendents
|
1804
|
+
---------------------------------------
|
1805
|
+
[1m[36mPerson Load (1.6ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1806
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1807
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1808
|
+
-------------------------------------------------
|
1809
|
+
PersonTest: test_respond_to_descendents_includes?
|
1810
|
+
-------------------------------------------------
|
1811
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1812
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1813
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1814
|
+
----------------------------------------------
|
1815
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1816
|
+
----------------------------------------------
|
1817
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1818
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1819
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1820
|
+
--------------------------------------------------------
|
1821
|
+
PersonTest: test_respond_to_self_and_ancestors_includes?
|
1822
|
+
--------------------------------------------------------
|
1823
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1824
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1825
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1826
|
+
-----------------------------------------------
|
1827
|
+
PersonTest: test_respond_to_self_and_decendents
|
1828
|
+
-----------------------------------------------
|
1829
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1830
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1831
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1832
|
+
---------------------------------------------------------
|
1833
|
+
PersonTest: test_respond_to_self_and_decendents_includes?
|
1834
|
+
---------------------------------------------------------
|
1835
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1836
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1837
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1838
|
+
----------------------------
|
1839
|
+
PostgresTreeTest: test_truth
|
1840
|
+
----------------------------
|
1841
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1842
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1843
|
+
[1m[35m (7.1ms)[0m drop schema public cascade;
|
1844
|
+
[1m[36m (7.7ms)[0m [1mcreate schema public;[0m
|
1845
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1846
|
+
[1m[36m (48.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1847
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1848
|
+
Migrating to CreatePeople (20140918023556)
|
1849
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1850
|
+
[1m[35m (36.2ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1851
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1852
|
+
[1m[35m (11.0ms)[0m COMMIT
|
1853
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1854
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1855
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "people"[0m
|
1856
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1858
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (3.2ms)[0m [1mCOMMIT[0m
|
1860
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1861
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1862
|
+
---------------------------------------
|
1863
|
+
PersonTest: test_person_fixtures_loaded
|
1864
|
+
---------------------------------------
|
1865
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1866
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1867
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1868
|
+
------------------------------------
|
1869
|
+
PersonTest: test_respond_to_acestors
|
1870
|
+
------------------------------------
|
1871
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1872
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1873
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1874
|
+
---------------------------------------------
|
1875
|
+
PersonTest: test_respond_to_acestors_include?
|
1876
|
+
---------------------------------------------
|
1877
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1878
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1879
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1880
|
+
---------------------------------------
|
1881
|
+
PersonTest: test_respond_to_descendents
|
1882
|
+
---------------------------------------
|
1883
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1884
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1885
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1886
|
+
------------------------------------------------
|
1887
|
+
PersonTest: test_respond_to_descendents_include?
|
1888
|
+
------------------------------------------------
|
1889
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1890
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1891
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1892
|
+
----------------------------------------------
|
1893
|
+
PersonTest: test_respond_to_self_and_ancestors
|
1894
|
+
----------------------------------------------
|
1895
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1896
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1897
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1898
|
+
-------------------------------------------------------
|
1899
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
1900
|
+
-------------------------------------------------------
|
1901
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1902
|
+
[1m[36m (4.0ms)[0m [1mROLLBACK[0m
|
1903
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1904
|
+
-----------------------------------------------
|
1905
|
+
PersonTest: test_respond_to_self_and_decendents
|
1906
|
+
-----------------------------------------------
|
1907
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1908
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1909
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1910
|
+
--------------------------------------------------------
|
1911
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
1912
|
+
--------------------------------------------------------
|
1913
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1914
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1915
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1916
|
+
----------------------------
|
1917
|
+
PostgresTreeTest: test_truth
|
1918
|
+
----------------------------
|
1919
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1920
|
+
[1m[36mPerson Load (1.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1921
|
+
[1m[36mPerson Load (0.9ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1922
|
+
[1m[36mPerson Load (1.1ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1923
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1924
|
+
[1m[35mPerson Load (1.7ms)[0m 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
|
+
[1m[36mPerson Load (1.0ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1937
|
+
[1m[36mPerson Load (0.9ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1938
|
+
[1m[35mPerson Load (2.3ms)[0m 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
|
+
[1m[36mPerson Load (1.9ms)[0m [1mSELECT "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
|
+
))[0m
|
1962
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1963
|
+
[1m[35m (49.2ms)[0m drop schema public cascade;
|
1964
|
+
[1m[36m (47.8ms)[0m [1mcreate schema public;[0m
|
1965
|
+
[1m[35m (40.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
1966
|
+
[1m[36m (79.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1967
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1968
|
+
Migrating to CreatePeople (20140918023556)
|
1969
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1970
|
+
[1m[35m (54.4ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
1971
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
1972
|
+
[1m[35m (16.7ms)[0m COMMIT
|
1973
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
1974
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1975
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "people"[0m
|
1976
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
1978
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
|
1980
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
1981
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1982
|
+
----------------------------
|
1983
|
+
PostgresTreeTest: test_truth
|
1984
|
+
----------------------------
|
1985
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1986
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1987
|
+
---------------------------------------
|
1988
|
+
PersonTest: test_person_fixtures_loaded
|
1989
|
+
---------------------------------------
|
1990
|
+
[1m[35mPerson Load (0.7ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
1991
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1992
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1993
|
+
------------------------------------
|
1994
|
+
PersonTest: test_respond_to_acestors
|
1995
|
+
------------------------------------
|
1996
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
1997
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1998
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1999
|
+
---------------------------------------------
|
2000
|
+
PersonTest: test_respond_to_acestors_include?
|
2001
|
+
---------------------------------------------
|
2002
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2003
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2004
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2005
|
+
---------------------------------------
|
2006
|
+
PersonTest: test_respond_to_descendents
|
2007
|
+
---------------------------------------
|
2008
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2009
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
2010
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2011
|
+
------------------------------------------------
|
2012
|
+
PersonTest: test_respond_to_descendents_include?
|
2013
|
+
------------------------------------------------
|
2014
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2015
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2016
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2017
|
+
----------------------------------------------
|
2018
|
+
PersonTest: test_respond_to_self_and_ancestors
|
2019
|
+
----------------------------------------------
|
2020
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2021
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2022
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2023
|
+
-------------------------------------------------------
|
2024
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
2025
|
+
-------------------------------------------------------
|
2026
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2027
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2028
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2029
|
+
-----------------------------------------------
|
2030
|
+
PersonTest: test_respond_to_self_and_decendents
|
2031
|
+
-----------------------------------------------
|
2032
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2033
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2034
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2035
|
+
--------------------------------------------------------
|
2036
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
2037
|
+
--------------------------------------------------------
|
2038
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2039
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2040
|
+
[1m[36mPerson Load (1.0ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2041
|
+
[1m[35mPerson Load (1.9ms)[0m 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
|
+
[1m[36mPerson Load (0.9ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2054
|
+
[1m[36mPerson Load (1.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2055
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2056
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "people" SET "parent_id" = $1, "updated_at" = $2 WHERE "people"."id" = 2[0m [["parent_id", nil], ["updated_at", "2014-09-18 05:47:23.850049"]]
|
2057
|
+
[1m[35m (31.4ms)[0m COMMIT
|
2058
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2059
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2060
|
+
[1m[35m (22.9ms)[0m drop schema public cascade;
|
2061
|
+
[1m[36m (6.3ms)[0m [1mcreate schema public;[0m
|
2062
|
+
[1m[35m (5.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2063
|
+
[1m[36m (72.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2064
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2065
|
+
Migrating to CreatePeople (20140918023556)
|
2066
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2067
|
+
[1m[35m (50.4ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2068
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2069
|
+
[1m[35m (13.4ms)[0m COMMIT
|
2070
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2071
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2072
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
2073
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
2075
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
|
2077
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2078
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2079
|
+
---------------------------------------
|
2080
|
+
PersonTest: test_person_fixtures_loaded
|
2081
|
+
---------------------------------------
|
2082
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2083
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2084
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2085
|
+
------------------------------------
|
2086
|
+
PersonTest: test_respond_to_acestors
|
2087
|
+
------------------------------------
|
2088
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2089
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2090
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2091
|
+
---------------------------------------------
|
2092
|
+
PersonTest: test_respond_to_acestors_include?
|
2093
|
+
---------------------------------------------
|
2094
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2095
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2096
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2097
|
+
---------------------------------------
|
2098
|
+
PersonTest: test_respond_to_descendents
|
2099
|
+
---------------------------------------
|
2100
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2101
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2102
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2103
|
+
------------------------------------------------
|
2104
|
+
PersonTest: test_respond_to_descendents_include?
|
2105
|
+
------------------------------------------------
|
2106
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2107
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
2108
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2109
|
+
----------------------------------------------
|
2110
|
+
PersonTest: test_respond_to_self_and_ancestors
|
2111
|
+
----------------------------------------------
|
2112
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2113
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2114
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2115
|
+
-------------------------------------------------------
|
2116
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
2117
|
+
-------------------------------------------------------
|
2118
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2119
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2120
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2121
|
+
-----------------------------------------------
|
2122
|
+
PersonTest: test_respond_to_self_and_decendents
|
2123
|
+
-----------------------------------------------
|
2124
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2125
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2126
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2127
|
+
--------------------------------------------------------
|
2128
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
2129
|
+
--------------------------------------------------------
|
2130
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2131
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2132
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2133
|
+
---------------------------------
|
2134
|
+
PersonTest: test_tree_roots_scope
|
2135
|
+
---------------------------------
|
2136
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2137
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2138
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2139
|
+
----------------------------
|
2140
|
+
PostgresTreeTest: test_truth
|
2141
|
+
----------------------------
|
2142
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2143
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2144
|
+
[1m[35m (10.1ms)[0m drop schema public cascade;
|
2145
|
+
[1m[36m (7.4ms)[0m [1mcreate schema public;[0m
|
2146
|
+
[1m[35m (5.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2147
|
+
[1m[36m (73.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2148
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2149
|
+
Migrating to CreatePeople (20140918023556)
|
2150
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2151
|
+
[1m[35m (55.5ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2152
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2153
|
+
[1m[35m (15.9ms)[0m COMMIT
|
2154
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2155
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2156
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "people"[0m
|
2157
|
+
[1m[35mFixture Insert (0.8ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m
|
2159
|
+
[1m[35mFixture Insert (0.3ms)[0m 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
|
+
[1m[36m (4.8ms)[0m [1mCOMMIT[0m
|
2161
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2162
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2163
|
+
------------------------------
|
2164
|
+
PersonTest: test_dad_ancestors
|
2165
|
+
------------------------------
|
2166
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
2167
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2168
|
+
[1m[35mPerson Load (1.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2181
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2182
|
+
---------------------------------------
|
2183
|
+
PersonTest: test_person_fixtures_loaded
|
2184
|
+
---------------------------------------
|
2185
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2186
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2187
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2188
|
+
------------------------------------
|
2189
|
+
PersonTest: test_respond_to_acestors
|
2190
|
+
------------------------------------
|
2191
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2192
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2193
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2194
|
+
---------------------------------------------
|
2195
|
+
PersonTest: test_respond_to_acestors_include?
|
2196
|
+
---------------------------------------------
|
2197
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2198
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2199
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2200
|
+
---------------------------------------
|
2201
|
+
PersonTest: test_respond_to_descendents
|
2202
|
+
---------------------------------------
|
2203
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2204
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2205
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2206
|
+
------------------------------------------------
|
2207
|
+
PersonTest: test_respond_to_descendents_include?
|
2208
|
+
------------------------------------------------
|
2209
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2210
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2211
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
2212
|
+
----------------------------------------------
|
2213
|
+
PersonTest: test_respond_to_self_and_ancestors
|
2214
|
+
----------------------------------------------
|
2215
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2216
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2217
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2218
|
+
-------------------------------------------------------
|
2219
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
2220
|
+
-------------------------------------------------------
|
2221
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2222
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2223
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2224
|
+
-----------------------------------------------
|
2225
|
+
PersonTest: test_respond_to_self_and_decendents
|
2226
|
+
-----------------------------------------------
|
2227
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2228
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2229
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2230
|
+
--------------------------------------------------------
|
2231
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
2232
|
+
--------------------------------------------------------
|
2233
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2234
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2235
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2236
|
+
---------------------------------
|
2237
|
+
PersonTest: test_tree_roots_scope
|
2238
|
+
---------------------------------
|
2239
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
|
2240
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2241
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2242
|
+
----------------------------
|
2243
|
+
PostgresTreeTest: test_truth
|
2244
|
+
----------------------------
|
2245
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2246
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2247
|
+
[1m[35m (12.9ms)[0m drop schema public cascade;
|
2248
|
+
[1m[36m (7.3ms)[0m [1mcreate schema public;[0m
|
2249
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2250
|
+
[1m[36m (64.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2251
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2252
|
+
Migrating to CreatePeople (20140918023556)
|
2253
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2254
|
+
[1m[35m (57.3ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2255
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2256
|
+
[1m[35m (14.4ms)[0m COMMIT
|
2257
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2258
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2259
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "people"[0m
|
2260
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
2262
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.7ms)[0m [1mCOMMIT[0m
|
2264
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2265
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2266
|
+
------------------------------
|
2267
|
+
PersonTest: test_dad_ancestors
|
2268
|
+
------------------------------
|
2269
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
2270
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2271
|
+
[1m[35mPerson Load (1.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2284
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2285
|
+
---------------------------------------
|
2286
|
+
PersonTest: test_person_fixtures_loaded
|
2287
|
+
---------------------------------------
|
2288
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2289
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2290
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2291
|
+
------------------------------------
|
2292
|
+
PersonTest: test_respond_to_acestors
|
2293
|
+
------------------------------------
|
2294
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2295
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2296
|
+
[1m[35m (0.7ms)[0m BEGIN
|
2297
|
+
---------------------------------------------
|
2298
|
+
PersonTest: test_respond_to_acestors_include?
|
2299
|
+
---------------------------------------------
|
2300
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2301
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2302
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2303
|
+
---------------------------------------
|
2304
|
+
PersonTest: test_respond_to_descendents
|
2305
|
+
---------------------------------------
|
2306
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2307
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2308
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2309
|
+
------------------------------------------------
|
2310
|
+
PersonTest: test_respond_to_descendents_include?
|
2311
|
+
------------------------------------------------
|
2312
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2313
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2314
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2315
|
+
----------------------------------------------
|
2316
|
+
PersonTest: test_respond_to_self_and_ancestors
|
2317
|
+
----------------------------------------------
|
2318
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2319
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2320
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2321
|
+
-------------------------------------------------------
|
2322
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
2323
|
+
-------------------------------------------------------
|
2324
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2325
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2326
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2327
|
+
-----------------------------------------------
|
2328
|
+
PersonTest: test_respond_to_self_and_decendents
|
2329
|
+
-----------------------------------------------
|
2330
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2331
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2332
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2333
|
+
--------------------------------------------------------
|
2334
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
2335
|
+
--------------------------------------------------------
|
2336
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2337
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2338
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2339
|
+
---------------------------------
|
2340
|
+
PersonTest: test_tree_roots_scope
|
2341
|
+
---------------------------------
|
2342
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL
|
2343
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2344
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2345
|
+
----------------------------
|
2346
|
+
PostgresTreeTest: test_truth
|
2347
|
+
----------------------------
|
2348
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2349
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2350
|
+
[1m[35m (62.7ms)[0m drop schema public cascade;
|
2351
|
+
[1m[36m (18.9ms)[0m [1mcreate schema public;[0m
|
2352
|
+
[1m[35m (4.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2353
|
+
[1m[36m (64.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2354
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2355
|
+
Migrating to CreatePeople (20140918023556)
|
2356
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2357
|
+
[1m[35m (49.6ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2358
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2359
|
+
[1m[35m (14.6ms)[0m COMMIT
|
2360
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2361
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2362
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "people"[0m
|
2363
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
2365
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
|
2367
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2368
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2369
|
+
----------------------------
|
2370
|
+
PostgresTreeTest: test_truth
|
2371
|
+
----------------------------
|
2372
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2373
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2374
|
+
------------------------------
|
2375
|
+
PersonTest: test_dad_ancestors
|
2376
|
+
------------------------------
|
2377
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
2378
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2379
|
+
[1m[35mPerson Load (1.9ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2392
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2393
|
+
--------------------------------
|
2394
|
+
PersonTest: test_dad_descendents
|
2395
|
+
--------------------------------
|
2396
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2397
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 3]]
|
2398
|
+
[1m[36mPerson Load (1.1ms)[0m [1mSELECT "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
|
+
))[0m
|
2410
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2411
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2412
|
+
---------------------------------------
|
2413
|
+
PersonTest: test_person_fixtures_loaded
|
2414
|
+
---------------------------------------
|
2415
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2416
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2417
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2418
|
+
------------------------------------
|
2419
|
+
PersonTest: test_respond_to_acestors
|
2420
|
+
------------------------------------
|
2421
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2422
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2423
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2424
|
+
---------------------------------------------
|
2425
|
+
PersonTest: test_respond_to_acestors_include?
|
2426
|
+
---------------------------------------------
|
2427
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2428
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2429
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2430
|
+
---------------------------------------
|
2431
|
+
PersonTest: test_respond_to_descendents
|
2432
|
+
---------------------------------------
|
2433
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2434
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2435
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2436
|
+
------------------------------------------------
|
2437
|
+
PersonTest: test_respond_to_descendents_include?
|
2438
|
+
------------------------------------------------
|
2439
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2440
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2441
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2442
|
+
----------------------------------------------
|
2443
|
+
PersonTest: test_respond_to_self_and_ancestors
|
2444
|
+
----------------------------------------------
|
2445
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2447
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2448
|
+
-------------------------------------------------------
|
2449
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
2450
|
+
-------------------------------------------------------
|
2451
|
+
[1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2452
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2453
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2454
|
+
-----------------------------------------------
|
2455
|
+
PersonTest: test_respond_to_self_and_decendents
|
2456
|
+
-----------------------------------------------
|
2457
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2458
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2459
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2460
|
+
--------------------------------------------------------
|
2461
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
2462
|
+
--------------------------------------------------------
|
2463
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2464
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2465
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2466
|
+
---------------------------------
|
2467
|
+
PersonTest: test_tree_roots_scope
|
2468
|
+
---------------------------------
|
2469
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2470
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2471
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2472
|
+
[1m[35m (55.2ms)[0m drop schema public cascade;
|
2473
|
+
[1m[36m (6.6ms)[0m [1mcreate schema public;[0m
|
2474
|
+
[1m[35m (32.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2475
|
+
[1m[36m (61.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2476
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2477
|
+
Migrating to CreatePeople (20140918023556)
|
2478
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2479
|
+
[1m[35m (61.4ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2480
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2481
|
+
[1m[35m (8.2ms)[0m COMMIT
|
2482
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2483
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2484
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
2485
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
2487
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (9.7ms)[0m [1mCOMMIT[0m
|
2489
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2490
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2491
|
+
------------------------------
|
2492
|
+
PersonTest: test_dad_ancestors
|
2493
|
+
------------------------------
|
2494
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
2495
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2496
|
+
[1m[35mPerson Load (1.6ms)[0m 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
|
+
[1m[36mPerson Load (1.2ms)[0m [1mSELECT "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
|
+
))[0m
|
2520
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2521
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2522
|
+
--------------------------------
|
2523
|
+
PersonTest: test_dad_descendents
|
2524
|
+
--------------------------------
|
2525
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
|
2526
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 3]]
|
2527
|
+
[1m[35mPerson Load (1.1ms)[0m 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
|
+
[1m[36mPerson Load (0.8ms)[0m [1mSELECT "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
|
+
))[0m
|
2551
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2552
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2553
|
+
---------------------------------------
|
2554
|
+
PersonTest: test_person_fixtures_loaded
|
2555
|
+
---------------------------------------
|
2556
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2557
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2558
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2559
|
+
------------------------------------
|
2560
|
+
PersonTest: test_respond_to_acestors
|
2561
|
+
------------------------------------
|
2562
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2563
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2564
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2565
|
+
---------------------------------------------
|
2566
|
+
PersonTest: test_respond_to_acestors_include?
|
2567
|
+
---------------------------------------------
|
2568
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2569
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2570
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2571
|
+
---------------------------------------
|
2572
|
+
PersonTest: test_respond_to_descendents
|
2573
|
+
---------------------------------------
|
2574
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2575
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2576
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2577
|
+
------------------------------------------------
|
2578
|
+
PersonTest: test_respond_to_descendents_include?
|
2579
|
+
------------------------------------------------
|
2580
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2581
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2582
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2583
|
+
----------------------------------------------
|
2584
|
+
PersonTest: test_respond_to_self_and_ancestors
|
2585
|
+
----------------------------------------------
|
2586
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2587
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2588
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2589
|
+
-------------------------------------------------------
|
2590
|
+
PersonTest: test_respond_to_self_and_ancestors_include?
|
2591
|
+
-------------------------------------------------------
|
2592
|
+
[1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2593
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2594
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2595
|
+
-----------------------------------------------
|
2596
|
+
PersonTest: test_respond_to_self_and_decendents
|
2597
|
+
-----------------------------------------------
|
2598
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2599
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2600
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2601
|
+
--------------------------------------------------------
|
2602
|
+
PersonTest: test_respond_to_self_and_decendents_include?
|
2603
|
+
--------------------------------------------------------
|
2604
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2605
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2606
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2607
|
+
---------------------------------
|
2608
|
+
PersonTest: test_tree_roots_scope
|
2609
|
+
---------------------------------
|
2610
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2611
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2612
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2613
|
+
----------------------------
|
2614
|
+
PostgresTreeTest: test_truth
|
2615
|
+
----------------------------
|
2616
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2617
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2618
|
+
[1m[35m (13.9ms)[0m drop schema public cascade;
|
2619
|
+
[1m[36m (6.9ms)[0m [1mcreate schema public;[0m
|
2620
|
+
[1m[35m (8.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2621
|
+
[1m[36m (64.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2622
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2623
|
+
Migrating to CreatePeople (20140918023556)
|
2624
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2625
|
+
[1m[35m (78.1ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2626
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2627
|
+
[1m[35m (3.1ms)[0m COMMIT
|
2628
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2629
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2630
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "people"[0m
|
2631
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
2633
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (30.0ms)[0m [1mCOMMIT[0m
|
2635
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2636
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2637
|
+
----------------------------
|
2638
|
+
PostgresTreeTest: test_truth
|
2639
|
+
----------------------------
|
2640
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2641
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2642
|
+
------------------------------
|
2643
|
+
PersonTest: test_dad_ancestors
|
2644
|
+
------------------------------
|
2645
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
2646
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2647
|
+
[1m[35mPerson Load (1.5ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
2671
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
2695
|
+
[1m[35mPerson Load (1.2ms)[0m 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
|
+
[1m[36mPerson Load (1.1ms)[0m [1mSELECT "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
|
+
))[0m
|
2719
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2720
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2721
|
+
--------------------------------
|
2722
|
+
PersonTest: test_dad_descendents
|
2723
|
+
--------------------------------
|
2724
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
|
2725
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 3]]
|
2726
|
+
[1m[35mPerson Load (2.3ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
2750
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2751
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2752
|
+
---------------------------------------
|
2753
|
+
PersonTest: test_person_fixtures_loaded
|
2754
|
+
---------------------------------------
|
2755
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2756
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2757
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2758
|
+
---------------------------------------------
|
2759
|
+
PersonTest: test_respond_to_all_magic_methods
|
2760
|
+
---------------------------------------------
|
2761
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2762
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2763
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2764
|
+
----------------------------------------
|
2765
|
+
PersonTest: test_responds_to_all_methods
|
2766
|
+
----------------------------------------
|
2767
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2768
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2769
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2770
|
+
---------------------------------
|
2771
|
+
PersonTest: test_tree_roots_scope
|
2772
|
+
---------------------------------
|
2773
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2774
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2775
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2776
|
+
[1m[35m (41.0ms)[0m drop schema public cascade;
|
2777
|
+
[1m[36m (7.4ms)[0m [1mcreate schema public;[0m
|
2778
|
+
[1m[35m (8.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2779
|
+
[1m[36m (89.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2780
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2781
|
+
Migrating to CreatePeople (20140918023556)
|
2782
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2783
|
+
[1m[35m (91.2ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2784
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2785
|
+
[1m[35m (14.3ms)[0m COMMIT
|
2786
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
2787
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2788
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
2789
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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')[0m
|
2791
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (9.5ms)[0m [1mCOMMIT[0m
|
2793
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
2794
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2795
|
+
----------------------------
|
2796
|
+
PostgresTreeTest: test_truth
|
2797
|
+
----------------------------
|
2798
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2799
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2800
|
+
------------------------------
|
2801
|
+
PersonTest: test_dad_ancestors
|
2802
|
+
------------------------------
|
2803
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
2804
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
2805
|
+
[1m[35mPerson Load (1.3ms)[0m 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
|
+
[1m[36mPerson Load (0.8ms)[0m [1mSELECT "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
|
+
))[0m
|
2829
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36mPerson Load (0.8ms)[0m [1mSELECT "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
|
+
))[0m
|
2853
|
+
[1m[35mPerson Load (0.8ms)[0m 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
|
+
[1m[36mPerson Load (1.0ms)[0m [1mSELECT "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
|
+
))[0m
|
2877
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2878
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2879
|
+
--------------------------------
|
2880
|
+
PersonTest: test_dad_descendents
|
2881
|
+
--------------------------------
|
2882
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
|
2883
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 3]]
|
2884
|
+
[1m[35mPerson Load (0.9ms)[0m 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
|
+
[1m[36mPerson Load (0.9ms)[0m [1mSELECT "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
|
+
))[0m
|
2908
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
2932
|
+
[1m[35mPerson Load (0.7ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
2956
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2957
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2958
|
+
---------------------------------------
|
2959
|
+
PersonTest: test_person_fixtures_loaded
|
2960
|
+
---------------------------------------
|
2961
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2962
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2964
|
+
---------------------------------------------
|
2965
|
+
PersonTest: test_respond_to_all_magic_methods
|
2966
|
+
---------------------------------------------
|
2967
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
2968
|
+
[1m[35m (2.1ms)[0m ROLLBACK
|
2969
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2970
|
+
----------------------------------------
|
2971
|
+
PersonTest: test_responds_to_all_methods
|
2972
|
+
----------------------------------------
|
2973
|
+
[1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
2974
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
2975
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2976
|
+
---------------------------------
|
2977
|
+
PersonTest: test_tree_roots_scope
|
2978
|
+
---------------------------------
|
2979
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
2980
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2981
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2982
|
+
[1m[35m (6.7ms)[0m drop schema public cascade;
|
2983
|
+
[1m[36m (6.8ms)[0m [1mcreate schema public;[0m
|
2984
|
+
[1m[35m (5.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2985
|
+
[1m[36m (63.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2986
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2987
|
+
Migrating to CreatePeople (20140918023556)
|
2988
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2989
|
+
[1m[35m (54.6ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
2990
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
2991
|
+
[1m[35m (14.7ms)[0m COMMIT
|
2992
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2993
|
+
[1m[35m (11.6ms)[0m drop schema public cascade;
|
2994
|
+
[1m[36m (7.3ms)[0m [1mcreate schema public;[0m
|
2995
|
+
[1m[35m (7.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
2996
|
+
[1m[36m (73.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
2997
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
2998
|
+
Migrating to CreatePeople (20140918023556)
|
2999
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3000
|
+
[1m[35m (44.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "name" character varying(255), "parent_id" integer, "created_at" timestamp, "updated_at" timestamp)
|
3001
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20140918023556"]]
|
3002
|
+
[1m[35m (17.9ms)[0m COMMIT
|
3003
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "people" DISABLE TRIGGER ALL[0m
|
3004
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3005
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
3006
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT 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')[0m
|
3008
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36m (7.3ms)[0m [1mCOMMIT[0m
|
3010
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "people" ENABLE TRIGGER ALL
|
3011
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3012
|
+
------------------------------
|
3013
|
+
PersonTest: test_dad_ancestors
|
3014
|
+
------------------------------
|
3015
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
3016
|
+
[1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 2]]
|
3017
|
+
[1m[35mPerson Load (1.5ms)[0m 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
|
+
[1m[36mPerson Load (1.3ms)[0m [1mSELECT "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
|
+
))[0m
|
3041
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36mPerson Load (0.6ms)[0m [1mSELECT "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
|
+
))[0m
|
3065
|
+
[1m[35mPerson Load (0.6ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
3089
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3090
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3091
|
+
--------------------------------
|
3092
|
+
PersonTest: test_dad_descendents
|
3093
|
+
--------------------------------
|
3094
|
+
[1m[35mPerson Load (2.4ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 2]]
|
3095
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 3]]
|
3096
|
+
[1m[35mPerson Load (0.7ms)[0m 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
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "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
|
+
))[0m
|
3120
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "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
|
+
))[0m
|
3144
|
+
[1m[35mPerson Load (0.6ms)[0m 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
|
+
[1m[36mPerson Load (0.7ms)[0m [1mSELECT "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
|
+
))[0m
|
3168
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3169
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3170
|
+
----------------------------------
|
3171
|
+
PersonTest: test_grandad_ancestors
|
3172
|
+
----------------------------------
|
3173
|
+
[1m[35mPerson Load (0.2ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 1]]
|
3174
|
+
[1m[36mPerson Load (0.5ms)[0m [1mSELECT "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
|
+
))[0m
|
3186
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3187
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3188
|
+
---------------------------------------
|
3189
|
+
PersonTest: test_person_fixtures_loaded
|
3190
|
+
---------------------------------------
|
3191
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
3192
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3193
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3194
|
+
---------------------------------------------
|
3195
|
+
PersonTest: test_respond_to_all_magic_methods
|
3196
|
+
---------------------------------------------
|
3197
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
|
3198
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3199
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3200
|
+
----------------------------------------
|
3201
|
+
PersonTest: test_responds_to_all_methods
|
3202
|
+
----------------------------------------
|
3203
|
+
[1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
|
3204
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3205
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3206
|
+
--------------------------------
|
3207
|
+
PersonTest: test_son_descendents
|
3208
|
+
--------------------------------
|
3209
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 3]]
|
3210
|
+
[1m[35mPerson Load (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3223
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3224
|
+
---------------------------------
|
3225
|
+
PersonTest: test_tree_roots_scope
|
3226
|
+
---------------------------------
|
3227
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "people" WHERE "people"."parent_id" IS NULL[0m
|
3228
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3229
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3230
|
+
----------------------------
|
3231
|
+
PostgresTreeTest: test_truth
|
3232
|
+
----------------------------
|
3233
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|