views 0.0.1 → 4.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -19
- data/lib/generators/view/templates/migration.rb +5 -0
- data/lib/generators/{views → view}/templates/view.sql +0 -0
- data/lib/generators/view/view_generator.rb +24 -0
- data/lib/views.rb +7 -50
- data/lib/views/extensions/active_record/abstract_adapter.rb +17 -0
- data/lib/views/extensions/active_record/command_recorder.rb +26 -0
- data/lib/views/extensions/active_record/postgresql_adapter.rb +39 -0
- data/lib/views/extensions/active_record/schema_dumper.rb +28 -0
- data/lib/views/railtie.rb +17 -0
- data/lib/views/version.rb +3 -1
- data/test/dummy/bin/bundle +1 -0
- data/test/dummy/bin/rails +1 -0
- data/test/dummy/bin/rake +1 -0
- data/test/dummy/bin/setup +2 -1
- data/test/dummy/config/database.yml +2 -5
- data/test/dummy/config/database.yml.travis +2 -11
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy/config/environments/test.rb +2 -2
- data/test/dummy/config/initializers/mime_types.rb +1 -1
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/migrate/20161125151623_create_guitars_view.rb +5 -0
- data/test/dummy/db/schema.rb +3 -1
- data/test/dummy/db/views/guitars.sql +2 -2
- data/test/dummy/log/development.log +2897 -24
- data/test/dummy/log/test.log +1545 -915
- data/test/dummy/public/404.html +57 -63
- data/test/dummy/public/422.html +57 -63
- data/test/dummy/public/500.html +56 -62
- data/test/{generators_test.rb → generator_test.rb} +4 -4
- data/test/migration_test.rb +20 -0
- data/test/task_test.rb +25 -0
- metadata +19 -10
- data/lib/generators/views/view_generator.rb +0 -15
- data/lib/tasks/views.rake +0 -7
- data/test/tasks_test.rb +0 -28
data/test/dummy/log/test.log
CHANGED
@@ -1,1138 +1,1768 @@
|
|
1
|
-
[1m[
|
2
|
-
[1m[
|
3
|
-
[1m[
|
4
|
-
[1m[
|
5
|
-
[1m[
|
6
|
-
[1m[
|
7
|
-
[1m[35m (3.7ms)[0m CREATE TABLE "users" ("id" serial primary key, "name" character varying, "enabled" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
8
|
-
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
9
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
10
|
-
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11
|
-
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
12
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
-
[1m[35m (0.3ms)[0m BEGIN
|
14
|
-
----------------------
|
15
|
-
ViewsTest: test_update
|
16
|
-
----------------------
|
17
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
18
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("name", "enabled", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "John"], ["enabled", "t"], ["created_at", "2016-10-17 17:41:06.569048"], ["updated_at", "2016-10-17 17:41:06.569048"]]
|
19
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
21
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "enabled", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Mike"], ["enabled", "f"], ["created_at", "2016-10-17 17:41:06.573626"], ["updated_at", "2016-10-17 17:41:06.573626"]]
|
22
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
23
|
-
[1m[36m (18.2ms)[0m [1mDROP VIEW IF EXISTS enabled_users[0m
|
24
|
-
[1m[35m (6.7ms)[0m CREATE VIEW enabled_users AS
|
25
|
-
|
1
|
+
[1m[36m (113.9ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
2
|
+
[1m[35m (341.4ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
3
|
+
[1m[36mSQL (1.0ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
4
|
+
[1m[35m (8.8ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
5
|
+
[1m[36m (0.3ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
6
|
+
[1m[35m (13.5ms)[0m CREATE VIEW guitars AS
|
26
7
|
SELECT
|
27
|
-
|
8
|
+
*
|
28
9
|
FROM
|
29
|
-
|
10
|
+
products
|
30
11
|
WHERE
|
31
|
-
|
12
|
+
category = 'Guitar'
|
32
13
|
|
33
|
-
[1m[36m (
|
34
|
-
[1m[36m (180.0ms)[0m [1mDROP DATABASE IF EXISTS "sql_views_test"[0m
|
35
|
-
[1m[35m (361.0ms)[0m CREATE DATABASE "sql_views_test" ENCODING = 'utf8'
|
36
|
-
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
37
|
-
[1m[35m (3.9ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
38
|
-
[1m[36m (1.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
14
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
39
15
|
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
40
|
-
[1m[36m (0.
|
41
|
-
[1m[35m (0.
|
16
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
17
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161125151623')
|
18
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161017172847')[0m
|
42
19
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
20
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
21
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
Migrating to CreateProducts (20161017172847)
|
43
24
|
[1m[35m (0.2ms)[0m BEGIN
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
[1m[
|
49
|
-
[1m[36m (
|
50
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
51
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:45:43.747000"], ["updated_at", "2016-10-17 17:45:43.747000"]]
|
52
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
53
|
-
[1m[36m (0.3ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
54
|
-
[1m[35m (1.3ms)[0m CREATE VIEW guitars AS
|
55
|
-
|
25
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
26
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161017172847"]]
|
27
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
28
|
+
Migrating to CreateGuitarsView (20161125151623)
|
29
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30
|
+
[1m[36m (1.2ms)[0m [1mCREATE VIEW guitars AS
|
56
31
|
SELECT
|
57
|
-
|
32
|
+
*
|
58
33
|
FROM
|
59
34
|
products
|
60
35
|
WHERE
|
61
|
-
|
36
|
+
category = 'Guitar'
|
37
|
+
[0m
|
38
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161125151623"]]
|
39
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
40
|
+
Migrating to ChangeGuitarsView (20161126212242)
|
41
|
+
[1m[35m (0.1ms)[0m BEGIN
|
42
|
+
[1m[36m (0.7ms)[0m [1mDROP VIEW guitars[0m
|
43
|
+
[1m[35m (0.8ms)[0m CREATE VIEW guitars AS
|
44
|
+
SELECT
|
45
|
+
*
|
46
|
+
FROM
|
47
|
+
products
|
48
|
+
WHERE
|
49
|
+
category = 'Guitar'
|
62
50
|
|
63
|
-
[1m[
|
64
|
-
[1m[35m (0.
|
51
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161126212242"]]
|
52
|
+
[1m[35m (0.3ms)[0m COMMIT
|
53
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
54
|
+
[1m[35m (2.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
55
|
+
FROM pg_constraint c
|
56
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
57
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
58
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
59
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
60
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
61
|
+
WHERE c.contype = 'f'
|
62
|
+
AND t1.relname = 'products'
|
63
|
+
AND t3.nspname = ANY (current_schemas(false))
|
64
|
+
ORDER BY c.conname
|
65
|
+
|
66
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
67
|
+
FROM pg_class c
|
68
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
69
|
+
WHERE c.relkind IN ('v')
|
70
|
+
AND n.nspname = ANY (current_schemas(false))
|
71
|
+
ORDER BY c.oid ASC
|
72
|
+
[0m
|
73
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65
74
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
66
75
|
[1m[35m (0.2ms)[0m BEGIN
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
[1m[
|
71
|
-
[1m[
|
72
|
-
[1m[
|
76
|
+
--------------------------
|
77
|
+
MigrationTest: test_column
|
78
|
+
--------------------------
|
79
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
81
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
82
|
+
Migrating to ChangeGuitarsView (20161126212242)
|
73
83
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
74
|
-
[1m[
|
75
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
76
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
84
|
+
[1m[36m (10.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
77
85
|
[1m[35m (0.1ms)[0m ROLLBACK
|
78
|
-
[1m[
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
[1m[36m (0.1ms)[0m [
|
84
|
-
|
86
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
87
|
+
-----------------------------------
|
88
|
+
GeneratorTest: test_file_generation
|
89
|
+
-----------------------------------
|
90
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
91
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
92
|
+
-------------------
|
93
|
+
TaskTest: test_load
|
94
|
+
-------------------
|
95
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
96
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
97
|
+
-------------------
|
98
|
+
TaskTest: test_dump
|
99
|
+
-------------------
|
100
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
101
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
102
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
103
|
+
[1m[35m (0.3ms)[0m BEGIN
|
104
|
+
-------------------
|
105
|
+
TaskTest: test_load
|
106
|
+
-------------------
|
107
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
108
|
+
[1m[35m (0.1ms)[0m BEGIN
|
109
|
+
-------------------
|
110
|
+
TaskTest: test_dump
|
111
|
+
-------------------
|
112
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
113
|
+
[1m[35m (0.1ms)[0m BEGIN
|
114
|
+
--------------------------
|
115
|
+
MigrationTest: test_column
|
116
|
+
--------------------------
|
117
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
118
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
120
|
+
Migrating to CreateGuitarsView (20161125151623)
|
121
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
122
|
+
[1m[36m (6.3ms)[0m [1mDROP VIEW guitars[0m
|
123
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
85
124
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
125
|
+
Migrating to CreateProducts (20161017172847)
|
86
126
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
87
|
-
[1m[
|
127
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "products"[0m
|
128
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
129
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
130
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
131
|
+
Migrating to CreateProducts (20161017172847)
|
132
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
133
|
+
[1m[35m (14.6ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
134
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
88
135
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
89
|
-
|
90
|
-
[1m[
|
91
|
-
|
136
|
+
Migrating to CreateGuitarsView (20161125151623)
|
137
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
138
|
+
[1m[35m (2.9ms)[0m CREATE VIEW guitars AS
|
92
139
|
SELECT
|
93
|
-
|
140
|
+
*
|
94
141
|
FROM
|
95
142
|
products
|
96
143
|
WHERE
|
97
|
-
|
144
|
+
category = 'Guitar'
|
98
145
|
|
99
|
-
[1m[
|
100
|
-
[1m[
|
146
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
147
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
148
|
+
[1m[36m (15.5ms)[0m [1mROLLBACK[0m
|
149
|
+
[1m[35m (0.1ms)[0m BEGIN
|
150
|
+
-----------------------------------
|
151
|
+
GeneratorTest: test_file_generation
|
152
|
+
-----------------------------------
|
153
|
+
[1m[36m (3.5ms)[0m [1mROLLBACK[0m
|
154
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
101
155
|
[1m[35m (0.2ms)[0m BEGIN
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
[1m[
|
106
|
-
[1m[
|
156
|
+
--------------------------
|
157
|
+
MigrationTest: test_column
|
158
|
+
--------------------------
|
159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
160
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
161
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
162
|
+
Migrating to CreateGuitarsView (20161125151623)
|
163
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
164
|
+
[1m[36m (0.8ms)[0m [1mDROP VIEW guitars[0m
|
165
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
107
166
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
167
|
+
Migrating to CreateProducts (20161017172847)
|
108
168
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
109
|
-
[1m[
|
169
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "products"[0m
|
170
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
171
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
172
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
173
|
+
Migrating to CreateProducts (20161017172847)
|
174
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
175
|
+
[1m[35m (13.2ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
176
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
177
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
Migrating to CreateGuitarsView (20161125151623)
|
179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
180
|
+
[1m[35m (1.9ms)[0m CREATE VIEW guitars AS
|
181
|
+
SELECT
|
182
|
+
*
|
183
|
+
FROM
|
184
|
+
products
|
185
|
+
WHERE
|
186
|
+
category = 'Guitar'
|
187
|
+
|
188
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
110
189
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
111
|
-
[1m[36m (
|
112
|
-
[1m[35m (0.1ms)[0m
|
190
|
+
[1m[36m (6.2ms)[0m [1mROLLBACK[0m
|
191
|
+
[1m[35m (0.1ms)[0m BEGIN
|
192
|
+
-----------------------------------
|
193
|
+
GeneratorTest: test_file_generation
|
194
|
+
-----------------------------------
|
195
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
196
|
+
[1m[35m (0.1ms)[0m BEGIN
|
197
|
+
-------------------
|
198
|
+
TaskTest: test_load
|
199
|
+
-------------------
|
200
|
+
[1m[36m (114.0ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
201
|
+
[1m[35m (332.0ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
113
202
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
114
203
|
[1m[35m (0.2ms)[0m BEGIN
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
[1m[
|
119
|
-
[1m[
|
204
|
+
--------------------------
|
205
|
+
MigrationTest: test_column
|
206
|
+
--------------------------
|
207
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
208
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
209
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
210
|
+
Migrating to CreateGuitarsView (20161125151623)
|
211
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
212
|
+
[1m[36m (28.3ms)[0m [1mDROP VIEW guitars[0m
|
213
|
+
[1m[35mSQL (7.0ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
120
214
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
215
|
+
Migrating to CreateProducts (20161017172847)
|
121
216
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
122
|
-
[1m[
|
217
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "products"[0m
|
218
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
219
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
220
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
221
|
+
Migrating to CreateProducts (20161017172847)
|
222
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
223
|
+
[1m[35m (13.3ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
224
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
123
225
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
124
|
-
|
125
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
126
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
127
|
-
[1m[35m (0.2ms)[0m BEGIN
|
128
|
-
----------------------
|
129
|
-
ViewsTest: test_update
|
130
|
-
----------------------
|
226
|
+
Migrating to CreateGuitarsView (20161125151623)
|
131
227
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
132
|
-
[1m[
|
133
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
134
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
135
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 17:48:15.528578"], ["updated_at", "2016-10-17 17:48:15.528578"]]
|
136
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
137
|
-
[1m[36m (0.2ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
138
|
-
[1m[35m (1.3ms)[0m CREATE VIEW guitars AS
|
139
|
-
|
228
|
+
[1m[35m (0.8ms)[0m CREATE VIEW guitars AS
|
140
229
|
SELECT
|
141
|
-
|
230
|
+
*
|
142
231
|
FROM
|
143
232
|
products
|
144
233
|
WHERE
|
145
|
-
|
234
|
+
category = 'Guitar'
|
146
235
|
|
147
|
-
[1m[
|
148
|
-
[1m[35m (0.
|
149
|
-
[1m[
|
150
|
-
[1m[35m (0.
|
151
|
-
|
152
|
-
|
153
|
-
|
236
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
238
|
+
[1m[36m (6.1ms)[0m [1mROLLBACK[0m
|
239
|
+
[1m[35m (0.1ms)[0m BEGIN
|
240
|
+
-----------------------------------
|
241
|
+
GeneratorTest: test_file_generation
|
242
|
+
-----------------------------------
|
154
243
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
155
|
-
[1m[
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
[1m[
|
161
|
-
[1m[
|
162
|
-
|
244
|
+
[1m[35m (0.1ms)[0m BEGIN
|
245
|
+
-------------------
|
246
|
+
TaskTest: test_load
|
247
|
+
-------------------
|
248
|
+
[1m[36m (112.7ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
249
|
+
[1m[35m (268.2ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
250
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
251
|
+
[1m[35m (5.6ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
252
|
+
[1m[36m (0.2ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
253
|
+
[1m[35m (1.6ms)[0m CREATE VIEW guitars AS
|
163
254
|
SELECT
|
164
|
-
|
255
|
+
*
|
165
256
|
FROM
|
166
257
|
products
|
167
258
|
WHERE
|
168
|
-
|
259
|
+
category = 'Guitar'
|
169
260
|
|
170
|
-
[1m[36m (
|
171
|
-
[1m[
|
172
|
-
[1m[36m (0.
|
173
|
-
[1m[35m (0.
|
174
|
-
[1m[
|
175
|
-
[1m[35m (0.
|
176
|
-
[1m[36m (
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
261
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
262
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
263
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
264
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161126212242')
|
265
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161017172847')[0m
|
266
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161125151623')
|
267
|
+
[1m[36m (1.0ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
268
|
+
FROM pg_class c
|
269
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
270
|
+
WHERE c.relkind IN ('v')
|
271
|
+
AND n.nspname = ANY (current_schemas(false))
|
272
|
+
ORDER BY c.oid ASC
|
273
|
+
[0m
|
274
|
+
[1m[35m (0.1ms)[0m BEGIN
|
275
|
+
-------------------
|
276
|
+
TaskTest: test_dump
|
277
|
+
-------------------
|
278
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
279
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
280
|
+
[1m[35m (0.3ms)[0m BEGIN
|
281
|
+
-------------------
|
282
|
+
TaskTest: test_load
|
283
|
+
-------------------
|
284
|
+
[1m[36m (112.5ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
285
|
+
[1m[35m (369.0ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
286
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
287
|
+
[1m[35m (5.5ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
183
288
|
[1m[36m (0.3ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
184
|
-
[1m[35m (1.
|
185
|
-
|
289
|
+
[1m[35m (1.5ms)[0m CREATE VIEW guitars AS
|
186
290
|
SELECT
|
187
|
-
|
291
|
+
*
|
188
292
|
FROM
|
189
293
|
products
|
190
294
|
WHERE
|
191
|
-
|
295
|
+
category = 'Guitar'
|
192
296
|
|
193
|
-
[1m[36m (
|
194
|
-
[1m[
|
195
|
-
[1m[36m (0.
|
196
|
-
[1m[35m (0.
|
197
|
-
[1m[
|
198
|
-
[1m[35m (0.
|
199
|
-
[1m[36m (0.
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
[1m[
|
207
|
-
|
297
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
298
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
299
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
300
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161126212242')
|
301
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161017172847')[0m
|
302
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161125151623')
|
303
|
+
[1m[36m (0.9ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
304
|
+
FROM pg_class c
|
305
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
306
|
+
WHERE c.relkind IN ('v')
|
307
|
+
AND n.nspname = ANY (current_schemas(false))
|
308
|
+
ORDER BY c.oid ASC
|
309
|
+
[0m
|
310
|
+
[1m[35m (0.1ms)[0m BEGIN
|
311
|
+
-------------------
|
312
|
+
TaskTest: test_dump
|
313
|
+
-------------------
|
314
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
315
|
+
[1m[35m (2.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
316
|
+
FROM pg_constraint c
|
317
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
318
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
319
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
320
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
321
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
322
|
+
WHERE c.contype = 'f'
|
323
|
+
AND t1.relname = 'products'
|
324
|
+
AND t3.nspname = ANY (current_schemas(false))
|
325
|
+
ORDER BY c.conname
|
326
|
+
|
327
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
328
|
+
FROM pg_class c
|
329
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
330
|
+
WHERE c.relkind IN ('v')
|
331
|
+
AND n.nspname = ANY (current_schemas(false))
|
332
|
+
ORDER BY c.oid ASC
|
333
|
+
[0m
|
334
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
335
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
336
|
+
FROM pg_constraint c
|
337
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
338
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
339
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
340
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
341
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
342
|
+
WHERE c.contype = 'f'
|
343
|
+
AND t1.relname = 'products'
|
344
|
+
AND t3.nspname = ANY (current_schemas(false))
|
345
|
+
ORDER BY c.conname
|
346
|
+
[0m
|
347
|
+
[1m[35m (0.5ms)[0m SELECT c.relname as name, c.relkind AS type
|
348
|
+
FROM pg_class c
|
349
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
350
|
+
WHERE c.relkind IN ('v')
|
351
|
+
AND n.nspname = ANY (current_schemas(false))
|
352
|
+
ORDER BY c.oid ASC
|
353
|
+
|
354
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
355
|
+
[1m[35m (2.1ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
356
|
+
FROM pg_constraint c
|
357
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
358
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
359
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
360
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
361
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
362
|
+
WHERE c.contype = 'f'
|
363
|
+
AND t1.relname = 'products'
|
364
|
+
AND t3.nspname = ANY (current_schemas(false))
|
365
|
+
ORDER BY c.conname
|
366
|
+
|
367
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
368
|
+
FROM pg_class c
|
369
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
370
|
+
WHERE c.relkind IN ('v')
|
371
|
+
AND n.nspname = ANY (current_schemas(false))
|
372
|
+
ORDER BY c.oid ASC
|
373
|
+
[0m
|
374
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
375
|
+
[1m[36m (1.6ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
376
|
+
FROM pg_constraint c
|
377
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
378
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
379
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
380
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
381
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
382
|
+
WHERE c.contype = 'f'
|
383
|
+
AND t1.relname = 'products'
|
384
|
+
AND t3.nspname = ANY (current_schemas(false))
|
385
|
+
ORDER BY c.conname
|
386
|
+
[0m
|
387
|
+
[1m[35m (0.4ms)[0m SELECT c.relname as name, c.relkind AS type
|
388
|
+
FROM pg_class c
|
389
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
390
|
+
WHERE c.relkind IN ('v')
|
391
|
+
AND n.nspname = ANY (current_schemas(false))
|
392
|
+
ORDER BY c.oid ASC
|
393
|
+
|
394
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
395
|
+
[1m[35m (0.1ms)[0m BEGIN
|
396
|
+
-----------------------------------
|
397
|
+
GeneratorTest: test_file_generation
|
398
|
+
-----------------------------------
|
399
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
400
|
+
[1m[35m (0.1ms)[0m BEGIN
|
401
|
+
--------------------------
|
402
|
+
MigrationTest: test_column
|
403
|
+
--------------------------
|
404
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
405
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
406
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
407
|
+
Migrating to CreateGuitarsView (20161125151623)
|
408
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
409
|
+
[1m[36m (18.9ms)[0m [1mDROP VIEW guitars[0m
|
410
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
208
411
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
412
|
+
Migrating to CreateProducts (20161017172847)
|
209
413
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
210
|
-
[1m[
|
211
|
-
[1m[
|
212
|
-
[1m[36m (6.8ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
213
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
214
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
215
|
-
[1m[35m (0.2ms)[0m BEGIN
|
216
|
-
----------------------
|
217
|
-
TasksTest: test_update
|
218
|
-
----------------------
|
219
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
220
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:11:02.587072"], ["updated_at", "2016-10-17 18:11:02.587072"]]
|
414
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "products"[0m
|
415
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
221
416
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
222
|
-
[1m[
|
223
|
-
|
224
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
225
|
-
[1m[36m (6.5ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
226
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
227
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
228
|
-
[1m[35m (0.2ms)[0m BEGIN
|
229
|
-
----------------------
|
230
|
-
TasksTest: test_update
|
231
|
-
----------------------
|
417
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
418
|
+
Migrating to CreateProducts (20161017172847)
|
232
419
|
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
233
|
-
[1m[
|
234
|
-
[1m[
|
235
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
236
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:29:35.373130"], ["updated_at", "2016-10-17 18:29:35.373130"]]
|
420
|
+
[1m[35m (12.7ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
421
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
237
422
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
238
|
-
|
239
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
240
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
241
|
-
[1m[35m (0.2ms)[0m BEGIN
|
242
|
-
----------------------
|
243
|
-
TasksTest: test_update
|
244
|
-
----------------------
|
245
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
246
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:29:57.654568"], ["updated_at", "2016-10-17 18:29:57.654568"]]
|
247
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
248
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
249
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:29:57.659021"], ["updated_at", "2016-10-17 18:29:57.659021"]]
|
250
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
251
|
-
[1m[36m (6.4ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
252
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
253
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
254
|
-
[1m[35m (0.2ms)[0m BEGIN
|
255
|
-
----------------------
|
256
|
-
TasksTest: test_update
|
257
|
-
----------------------
|
423
|
+
Migrating to CreateGuitarsView (20161125151623)
|
258
424
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
259
|
-
[1m[
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
[1m[
|
268
|
-
----------------------
|
269
|
-
TasksTest: test_update
|
270
|
-
----------------------
|
271
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
272
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:31:06.457128"], ["updated_at", "2016-10-17 18:31:06.457128"]]
|
273
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
274
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
275
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:31:06.461286"], ["updated_at", "2016-10-17 18:31:06.461286"]]
|
425
|
+
[1m[35m (0.7ms)[0m CREATE VIEW guitars AS
|
426
|
+
SELECT
|
427
|
+
*
|
428
|
+
FROM
|
429
|
+
products
|
430
|
+
WHERE
|
431
|
+
category = 'Guitar'
|
432
|
+
|
433
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
276
434
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
277
|
-
[1m[36m (6.
|
278
|
-
[1m[
|
279
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
280
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
435
|
+
[1m[36m (6.0ms)[0m [1mROLLBACK[0m
|
436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
281
437
|
[1m[35m (0.2ms)[0m BEGIN
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
286
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:32:11.889772"], ["updated_at", "2016-10-17 18:32:11.889772"]]
|
287
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
288
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
289
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:32:11.893827"], ["updated_at", "2016-10-17 18:32:11.893827"]]
|
290
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
291
|
-
[1m[36m (6.6ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
292
|
-
[1m[35m (0.3ms)[0m DROP VIEW guitars IF EXISTS
|
438
|
+
-----------------------------------
|
439
|
+
GeneratorTest: test_file_generation
|
440
|
+
-----------------------------------
|
293
441
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
442
|
+
[1m[35m (0.1ms)[0m BEGIN
|
443
|
+
-------------------
|
444
|
+
TaskTest: test_dump
|
445
|
+
-------------------
|
294
446
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
295
|
-
[1m[35m (
|
296
|
-
|
297
|
-
|
298
|
-
|
447
|
+
[1m[35m (2.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
448
|
+
FROM pg_constraint c
|
449
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
450
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
451
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
452
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
453
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
454
|
+
WHERE c.contype = 'f'
|
455
|
+
AND t1.relname = 'products'
|
456
|
+
AND t3.nspname = ANY (current_schemas(false))
|
457
|
+
ORDER BY c.conname
|
458
|
+
|
459
|
+
[1m[36m (0.4ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
460
|
+
FROM pg_class c
|
461
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
462
|
+
WHERE c.relkind IN ('v')
|
463
|
+
AND n.nspname = ANY (current_schemas(false))
|
464
|
+
ORDER BY c.oid ASC
|
465
|
+
[0m
|
466
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
467
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
468
|
+
-------------------
|
469
|
+
TaskTest: test_load
|
470
|
+
-------------------
|
471
|
+
[1m[35m (110.8ms)[0m DROP DATABASE IF EXISTS "views_test"
|
472
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
473
|
+
[1m[35m (289.8ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
474
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
475
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
476
|
+
[1m[36m (5.0ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
477
|
+
[1m[35m (0.4ms)[0m DROP VIEW IF EXISTS guitars
|
478
|
+
[1m[36m (8.0ms)[0m [1mCREATE VIEW guitars AS
|
479
|
+
SELECT
|
480
|
+
*
|
481
|
+
FROM
|
482
|
+
products
|
483
|
+
WHERE
|
484
|
+
category = 'Guitar'
|
485
|
+
[0m
|
486
|
+
[1m[35m (12.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
487
|
+
[1m[36m (4.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
488
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
489
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161126212242')[0m
|
490
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
491
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
492
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
493
|
+
[1m[36m (7.8ms)[0m [1mDROP TABLE "products" CASCADE[0m
|
494
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
495
|
+
[1m[36m (0.3ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
496
|
+
[1m[35m (1.5ms)[0m CREATE VIEW guitars AS
|
497
|
+
SELECT
|
498
|
+
*
|
499
|
+
FROM
|
500
|
+
products
|
501
|
+
WHERE
|
502
|
+
category = 'Guitar'
|
503
|
+
|
504
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
505
|
+
[1m[35m (1.0ms)[0m SELECT c.relname as name, c.relkind AS type
|
506
|
+
FROM pg_class c
|
507
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
508
|
+
WHERE c.relkind IN ('v')
|
509
|
+
AND n.nspname = ANY (current_schemas(false))
|
510
|
+
ORDER BY c.oid ASC
|
511
|
+
|
512
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
513
|
+
--------------------------
|
514
|
+
MigrationTest: test_column
|
515
|
+
--------------------------
|
516
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
517
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
518
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
519
|
+
Migrating to CreateGuitarsView (20161125151623)
|
299
520
|
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
300
|
-
[1m[
|
301
|
-
[1m[
|
302
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
303
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:32:41.708326"], ["updated_at", "2016-10-17 18:32:41.708326"]]
|
304
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
305
|
-
[1m[36m (6.5ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
306
|
-
[1m[35m (0.3ms)[0m DROP VIEW IF EXISTS guitars
|
307
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
308
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
309
|
-
[1m[35m (0.2ms)[0m BEGIN
|
310
|
-
----------------------
|
311
|
-
TasksTest: test_update
|
312
|
-
----------------------
|
313
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
314
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:34:43.126856"], ["updated_at", "2016-10-17 18:34:43.126856"]]
|
315
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
316
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
317
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:34:43.131098"], ["updated_at", "2016-10-17 18:34:43.131098"]]
|
318
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
319
|
-
[1m[36m (6.4ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
320
|
-
[1m[35m (0.3ms)[0m DROP VIEW IF EXISTS guitars
|
321
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
322
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
323
|
-
[1m[35m (0.2ms)[0m BEGIN
|
324
|
-
----------------------
|
325
|
-
TasksTest: test_update
|
326
|
-
----------------------
|
327
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
328
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:34:55.609565"], ["updated_at", "2016-10-17 18:34:55.609565"]]
|
329
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
330
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
331
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:34:55.612768"], ["updated_at", "2016-10-17 18:34:55.612768"]]
|
521
|
+
[1m[35m (1.3ms)[0m DROP VIEW guitars
|
522
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161125151623"]]
|
332
523
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
333
|
-
|
334
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
335
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
336
|
-
[1m[35m (0.3ms)[0m BEGIN
|
337
|
-
----------------------
|
338
|
-
TasksTest: test_update
|
339
|
-
----------------------
|
524
|
+
Migrating to CreateProducts (20161017172847)
|
340
525
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
341
|
-
[1m[
|
342
|
-
[1m[
|
526
|
+
[1m[35m (1.0ms)[0m DROP TABLE "products"
|
527
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161017172847"]]
|
528
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
529
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
530
|
+
Migrating to CreateProducts (20161017172847)
|
343
531
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
344
|
-
[1m[
|
345
|
-
[1m[
|
346
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
347
|
-
[1m[35m (0.3ms)[0m DROP VIEW IF EXISTS guitars
|
348
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
349
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
350
|
-
[1m[35m (0.4ms)[0m BEGIN
|
351
|
-
----------------------
|
352
|
-
TasksTest: test_update
|
353
|
-
----------------------
|
354
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
355
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:37:51.655249"], ["updated_at", "2016-10-17 18:37:51.655249"]]
|
532
|
+
[1m[36m (8.2ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
533
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161017172847"]]
|
356
534
|
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
535
|
+
Migrating to CreateGuitarsView (20161125151623)
|
357
536
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
358
|
-
[1m[
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
----------------------
|
368
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
369
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:38:21.925906"], ["updated_at", "2016-10-17 18:38:21.925906"]]
|
537
|
+
[1m[36m (1.0ms)[0m [1mCREATE VIEW guitars AS
|
538
|
+
SELECT
|
539
|
+
*
|
540
|
+
FROM
|
541
|
+
products
|
542
|
+
WHERE
|
543
|
+
category = 'Guitar'
|
544
|
+
[0m
|
545
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161125151623"]]
|
370
546
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
371
|
-
[1m[35m (
|
372
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:38:21.929877"], ["updated_at", "2016-10-17 18:38:21.929877"]]
|
373
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
374
|
-
[1m[36m (6.5ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
375
|
-
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
376
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
547
|
+
[1m[35m (6.1ms)[0m ROLLBACK
|
377
548
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
378
549
|
[1m[35m (0.2ms)[0m BEGIN
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
383
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:38:30.982831"], ["updated_at", "2016-10-17 18:38:30.982831"]]
|
384
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
385
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
386
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:38:30.987091"], ["updated_at", "2016-10-17 18:38:30.987091"]]
|
387
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
388
|
-
[1m[36m (6.6ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
389
|
-
[1m[35m (4.6ms)[0m DROP VIEW IF EXISTS guitars
|
390
|
-
[1m[36mActiveRecord::SchemaMigration Load (28.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
391
|
-
[1m[35m (0.2ms)[0m BEGIN
|
392
|
-
----------------------
|
393
|
-
TasksTest: test_update
|
394
|
-
----------------------
|
395
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
396
|
-
[1m[35mSQL (20.0ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:43:15.466944"], ["updated_at", "2016-10-17 18:43:15.466944"]]
|
397
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
398
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
399
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:43:15.490666"], ["updated_at", "2016-10-17 18:43:15.490666"]]
|
400
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
401
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
402
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM guitars
|
403
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
550
|
+
-------------------
|
551
|
+
TaskTest: test_dump
|
552
|
+
-------------------
|
404
553
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
405
|
-
[1m[35m (
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
[1m[36m (0.
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
[1m[
|
425
|
-
[1m[36m (0.1ms)[0m [
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
[1m[
|
430
|
-
[1m[
|
431
|
-
|
554
|
+
[1m[35m (2.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
555
|
+
FROM pg_constraint c
|
556
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
557
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
558
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
559
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
560
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
561
|
+
WHERE c.contype = 'f'
|
562
|
+
AND t1.relname = 'products'
|
563
|
+
AND t3.nspname = ANY (current_schemas(false))
|
564
|
+
ORDER BY c.conname
|
565
|
+
|
566
|
+
[1m[36m (0.4ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
567
|
+
FROM pg_class c
|
568
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
569
|
+
WHERE c.relkind IN ('v')
|
570
|
+
AND n.nspname = ANY (current_schemas(false))
|
571
|
+
ORDER BY c.oid ASC
|
572
|
+
[0m
|
573
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
574
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
575
|
+
-------------------
|
576
|
+
TaskTest: test_load
|
577
|
+
-------------------
|
578
|
+
[1m[35m (111.6ms)[0m DROP DATABASE IF EXISTS "views_test"
|
579
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
580
|
+
[1m[35m (266.8ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
581
|
+
[1m[36m (0.7ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
582
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
583
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
584
|
+
[1m[35m (0.4ms)[0m DROP VIEW IF EXISTS guitars
|
585
|
+
[1m[36m (7.9ms)[0m [1mCREATE VIEW guitars AS
|
432
586
|
SELECT
|
433
|
-
|
587
|
+
*
|
434
588
|
FROM
|
435
589
|
products
|
436
590
|
WHERE
|
437
|
-
|
438
|
-
|
439
|
-
[1m[
|
440
|
-
[1m[
|
441
|
-
[1m[
|
442
|
-
[1m[
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
[1m[36m (
|
447
|
-
[1m[
|
448
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
449
|
-
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
450
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:26.067650"], ["updated_at", "2016-10-17 18:44:26.067650"]]
|
451
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
452
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
453
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
454
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
455
|
-
[1m[35m (0.2ms)[0m BEGIN
|
456
|
-
----------------------
|
457
|
-
TasksTest: test_update
|
458
|
-
----------------------
|
459
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
460
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:44:33.946308"], ["updated_at", "2016-10-17 18:44:33.946308"]]
|
461
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
462
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
463
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:33.949592"], ["updated_at", "2016-10-17 18:44:33.949592"]]
|
464
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
465
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
466
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
467
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
468
|
-
[1m[35m (0.3ms)[0m BEGIN
|
469
|
-
----------------------
|
470
|
-
TasksTest: test_update
|
471
|
-
----------------------
|
472
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
473
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:44:39.741873"], ["updated_at", "2016-10-17 18:44:39.741873"]]
|
474
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
475
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
476
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:44:39.745171"], ["updated_at", "2016-10-17 18:44:39.745171"]]
|
477
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
478
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
479
|
-
[1m[35m (0.4ms)[0m ROLLBACK
|
591
|
+
category = 'Guitar'
|
592
|
+
[0m
|
593
|
+
[1m[35m (16.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
594
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
595
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
596
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161126212242')[0m
|
597
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
598
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
599
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
600
|
+
[1m[36m (8.1ms)[0m [1mDROP TABLE "products" CASCADE[0m
|
601
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
480
602
|
[1m[36m (0.3ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
481
|
-
[1m[35m (
|
482
|
-
|
603
|
+
[1m[35m (1.1ms)[0m CREATE VIEW guitars AS
|
483
604
|
SELECT
|
484
|
-
|
605
|
+
*
|
485
606
|
FROM
|
486
607
|
products
|
487
608
|
WHERE
|
488
|
-
|
609
|
+
category = 'Guitar'
|
489
610
|
|
490
|
-
[1m[36m (0.
|
491
|
-
[1m[35m (0.
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
611
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
612
|
+
[1m[35m (0.9ms)[0m SELECT c.relname as name, c.relkind AS type
|
613
|
+
FROM pg_class c
|
614
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
615
|
+
WHERE c.relkind IN ('v')
|
616
|
+
AND n.nspname = ANY (current_schemas(false))
|
617
|
+
ORDER BY c.oid ASC
|
618
|
+
|
619
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
620
|
+
--------------------------
|
621
|
+
MigrationTest: test_column
|
622
|
+
--------------------------
|
623
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
624
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
625
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
626
|
+
Migrating to CreateGuitarsView (20161125151623)
|
497
627
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
498
|
-
[1m[
|
499
|
-
[1m[
|
628
|
+
[1m[35m (0.7ms)[0m DROP VIEW guitars
|
629
|
+
[1m[36mSQL (2.8ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161125151623"]]
|
630
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
631
|
+
Migrating to CreateProducts (20161017172847)
|
632
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
633
|
+
[1m[35m (0.7ms)[0m DROP TABLE "products"
|
634
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161017172847"]]
|
635
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
636
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
637
|
+
Migrating to CreateProducts (20161017172847)
|
500
638
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
501
|
-
[1m[
|
502
|
-
[1m[
|
503
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
504
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
505
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
506
|
-
[1m[35m (0.2ms)[0m BEGIN
|
507
|
-
----------------------
|
508
|
-
TasksTest: test_update
|
509
|
-
----------------------
|
510
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
511
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:47.399246"], ["updated_at", "2016-10-17 18:46:47.399246"]]
|
639
|
+
[1m[36m (19.1ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
640
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161017172847"]]
|
512
641
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
642
|
+
Migrating to CreateGuitarsView (20161125151623)
|
513
643
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
514
|
-
[1m[
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
----------------------
|
524
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
525
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:49.802296"], ["updated_at", "2016-10-17 18:46:49.802296"]]
|
644
|
+
[1m[36m (0.7ms)[0m [1mCREATE VIEW guitars AS
|
645
|
+
SELECT
|
646
|
+
*
|
647
|
+
FROM
|
648
|
+
products
|
649
|
+
WHERE
|
650
|
+
category = 'Guitar'
|
651
|
+
[0m
|
652
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161125151623"]]
|
526
653
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
527
|
-
[1m[35m (
|
528
|
-
[1m[
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
[1m[
|
533
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.
|
654
|
+
[1m[35m (6.2ms)[0m ROLLBACK
|
655
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
656
|
+
-----------------------------------
|
657
|
+
GeneratorTest: test_file_generation
|
658
|
+
-----------------------------------
|
659
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
660
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
534
661
|
[1m[35m (0.2ms)[0m BEGIN
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
539
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:46:54.821916"], ["updated_at", "2016-10-17 18:46:54.821916"]]
|
540
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
541
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
542
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:46:54.825418"], ["updated_at", "2016-10-17 18:46:54.825418"]]
|
543
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
544
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
545
|
-
[1m[35m (0.5ms)[0m DROP VIEW IF EXISTS guitars
|
546
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
662
|
+
-------------------
|
663
|
+
TaskTest: test_dump
|
664
|
+
-------------------
|
547
665
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
548
|
-
[1m[35m (
|
549
|
-
|
550
|
-
|
551
|
-
|
666
|
+
[1m[35m (2.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
667
|
+
FROM pg_constraint c
|
668
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
669
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
670
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
671
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
672
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
673
|
+
WHERE c.contype = 'f'
|
674
|
+
AND t1.relname = 'products'
|
675
|
+
AND t3.nspname = ANY (current_schemas(false))
|
676
|
+
ORDER BY c.conname
|
677
|
+
|
678
|
+
[1m[36m (0.4ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
679
|
+
FROM pg_class c
|
680
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
681
|
+
WHERE c.relkind IN ('v')
|
682
|
+
AND n.nspname = ANY (current_schemas(false))
|
683
|
+
ORDER BY c.oid ASC
|
684
|
+
[0m
|
685
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
686
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
687
|
+
-------------------
|
688
|
+
TaskTest: test_load
|
689
|
+
-------------------
|
690
|
+
[1m[35m (115.4ms)[0m DROP DATABASE IF EXISTS "views_test"
|
691
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
692
|
+
[1m[35m (346.3ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
693
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
694
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
695
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
696
|
+
[1m[35m (0.3ms)[0m DROP VIEW IF EXISTS guitars
|
697
|
+
[1m[36m (6.7ms)[0m [1mCREATE VIEW guitars AS
|
698
|
+
SELECT
|
699
|
+
*
|
700
|
+
FROM
|
701
|
+
products
|
702
|
+
WHERE
|
703
|
+
category = 'Guitar'
|
704
|
+
[0m
|
705
|
+
[1m[35m (18.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
706
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
707
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
708
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161126212242')[0m
|
709
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
710
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
711
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
712
|
+
[1m[36m (7.3ms)[0m [1mDROP TABLE "products" CASCADE[0m
|
713
|
+
[1m[35m (6.7ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
714
|
+
[1m[36m (0.4ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
715
|
+
[1m[35m (1.0ms)[0m CREATE VIEW guitars AS
|
716
|
+
SELECT
|
717
|
+
*
|
718
|
+
FROM
|
719
|
+
products
|
720
|
+
WHERE
|
721
|
+
category = 'Guitar'
|
722
|
+
|
723
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
724
|
+
[1m[35m (0.9ms)[0m SELECT c.relname as name, c.relkind AS type
|
725
|
+
FROM pg_class c
|
726
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
727
|
+
WHERE c.relkind IN ('v')
|
728
|
+
AND n.nspname = ANY (current_schemas(false))
|
729
|
+
ORDER BY c.oid ASC
|
730
|
+
|
731
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
732
|
+
--------------------------
|
733
|
+
MigrationTest: test_column
|
734
|
+
--------------------------
|
735
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
736
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
737
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
738
|
+
Migrating to CreateGuitarsView (20161125151623)
|
552
739
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
553
|
-
[1m[
|
554
|
-
[1m[
|
555
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
556
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:47:07.443561"], ["updated_at", "2016-10-17 18:47:07.443561"]]
|
740
|
+
[1m[35m (0.8ms)[0m DROP VIEW guitars
|
741
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161125151623"]]
|
557
742
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
558
|
-
|
559
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
560
|
-
[1m[36m (4.8ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
561
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
562
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
563
|
-
[1m[35m (0.3ms)[0m BEGIN
|
564
|
-
----------------------
|
565
|
-
TasksTest: test_update
|
566
|
-
----------------------
|
743
|
+
Migrating to CreateProducts (20161017172847)
|
567
744
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
-
[1m[
|
569
|
-
[1m[
|
570
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
571
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:47:26.701795"], ["updated_at", "2016-10-17 18:47:26.701795"]]
|
745
|
+
[1m[35m (0.9ms)[0m DROP TABLE "products"
|
746
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20161017172847"]]
|
572
747
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
573
|
-
[1m[
|
574
|
-
|
575
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
576
|
-
[1m[35m (0.2ms)[0m BEGIN
|
577
|
-
----------------------
|
578
|
-
TasksTest: test_update
|
579
|
-
----------------------
|
580
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
581
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:48:27.140736"], ["updated_at", "2016-10-17 18:48:27.140736"]]
|
582
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
748
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
749
|
+
Migrating to CreateProducts (20161017172847)
|
583
750
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
584
|
-
[1m[
|
585
|
-
[1m[
|
586
|
-
[1m[36m (0.3ms)[0m [1mDROP VIEW guitars[0m
|
587
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
588
|
-
[1m[35m (0.3ms)[0m BEGIN
|
589
|
-
----------------------
|
590
|
-
TasksTest: test_update
|
591
|
-
----------------------
|
592
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:48:47.573425"], ["updated_at", "2016-10-17 18:48:47.573425"]]
|
594
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
595
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
596
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:48:47.576814"], ["updated_at", "2016-10-17 18:48:47.576814"]]
|
597
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
598
|
-
[1m[36m (0.3ms)[0m [1mDROP VIEW guitars[0m
|
599
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
600
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
601
|
-
[1m[35m (0.2ms)[0m BEGIN
|
602
|
-
----------------------
|
603
|
-
TasksTest: test_update
|
604
|
-
----------------------
|
605
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
606
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:49:08.997442"], ["updated_at", "2016-10-17 18:49:08.997442"]]
|
751
|
+
[1m[36m (19.1ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
752
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161017172847"]]
|
607
753
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
754
|
+
Migrating to CreateGuitarsView (20161125151623)
|
608
755
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
609
|
-
[1m[
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
619
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:49:42.845540"], ["updated_at", "2016-10-17 18:49:42.845540"]]
|
756
|
+
[1m[36m (0.7ms)[0m [1mCREATE VIEW guitars AS
|
757
|
+
SELECT
|
758
|
+
*
|
759
|
+
FROM
|
760
|
+
products
|
761
|
+
WHERE
|
762
|
+
category = 'Guitar'
|
763
|
+
[0m
|
764
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161125151623"]]
|
620
765
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
621
|
-
[1m[35m (
|
622
|
-
[1m[
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
[1m[
|
627
|
-
[1m[
|
628
|
-
----------------------
|
629
|
-
TasksTest: test_update
|
630
|
-
----------------------
|
631
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
632
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:49:58.048008"], ["updated_at", "2016-10-17 18:49:58.048008"]]
|
633
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
634
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
635
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:49:58.051280"], ["updated_at", "2016-10-17 18:49:58.051280"]]
|
636
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
637
|
-
[1m[36m (0.4ms)[0m [1mDROP VIEW guitars[0m
|
638
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
766
|
+
[1m[35m (6.0ms)[0m ROLLBACK
|
767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
768
|
+
-----------------------------------
|
769
|
+
GeneratorTest: test_file_generation
|
770
|
+
-----------------------------------
|
771
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
772
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
639
773
|
[1m[35m (0.2ms)[0m BEGIN
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
[1m[
|
644
|
-
[1m[
|
645
|
-
[1m[
|
774
|
+
--------------------------
|
775
|
+
MigrationTest: test_column
|
776
|
+
--------------------------
|
777
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
778
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
779
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
780
|
+
Migrating to CreateGuitarsView (20161125151623)
|
646
781
|
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
647
|
-
[1m[
|
648
|
-
[1m[
|
649
|
-
[1m[36m (0.4ms)[0m [1mDROP VIEW guitars[0m
|
650
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
651
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
652
|
-
[1m[35m (0.3ms)[0m BEGIN
|
653
|
-
----------------------
|
654
|
-
TasksTest: test_update
|
655
|
-
----------------------
|
656
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
657
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:50:58.375081"], ["updated_at", "2016-10-17 18:50:58.375081"]]
|
782
|
+
[1m[36m (0.8ms)[0m [1mDROP VIEW guitars[0m
|
783
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
658
784
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
785
|
+
Migrating to CreateProducts (20161017172847)
|
659
786
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
660
|
-
[1m[
|
661
|
-
[1m[
|
662
|
-
[1m[36m (0.3ms)[0m [1mDROP VIEW guitars[0m
|
663
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
664
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
665
|
-
[1m[35m (0.2ms)[0m BEGIN
|
666
|
-
----------------------
|
667
|
-
TasksTest: test_update
|
668
|
-
----------------------
|
669
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
670
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:51:26.619707"], ["updated_at", "2016-10-17 18:51:26.619707"]]
|
671
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
672
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
673
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:51:26.622938"], ["updated_at", "2016-10-17 18:51:26.622938"]]
|
674
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
675
|
-
[1m[36m (0.4ms)[0m [1mDROP VIEW guitars[0m
|
676
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "products"
|
677
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
678
|
-
[1m[35m (0.2ms)[0m BEGIN
|
679
|
-
----------------------
|
680
|
-
TasksTest: test_update
|
681
|
-
----------------------
|
682
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
683
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:52:16.020181"], ["updated_at", "2016-10-17 18:52:16.020181"]]
|
787
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "products"[0m
|
788
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
684
789
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
685
|
-
[1m[
|
686
|
-
|
687
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
688
|
-
[1m[36m (0.4ms)[0m [1mDROP VIEW guitars[0m
|
689
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
690
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
691
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
692
|
-
[1m[35m (0.3ms)[0m BEGIN
|
693
|
-
----------------------
|
694
|
-
TasksTest: test_update
|
695
|
-
----------------------
|
790
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
791
|
+
Migrating to CreateProducts (20161017172847)
|
696
792
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
697
|
-
[1m[
|
698
|
-
[1m[
|
699
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
700
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:52:25.381747"], ["updated_at", "2016-10-17 18:52:25.381747"]]
|
793
|
+
[1m[35m (7.0ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
794
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
701
795
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
702
|
-
|
703
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
704
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
705
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
706
|
-
[1m[35m (0.2ms)[0m BEGIN
|
707
|
-
----------------------
|
708
|
-
TasksTest: test_update
|
709
|
-
----------------------
|
796
|
+
Migrating to CreateGuitarsView (20161125151623)
|
710
797
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
711
|
-
[1m[
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
798
|
+
[1m[35m (0.7ms)[0m CREATE VIEW guitars AS
|
799
|
+
SELECT
|
800
|
+
*
|
801
|
+
FROM
|
802
|
+
products
|
803
|
+
WHERE
|
804
|
+
category = 'Guitar'
|
805
|
+
|
806
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
807
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
808
|
+
[1m[36m (1.3ms)[0m [1mROLLBACK[0m
|
809
|
+
[1m[35m (0.1ms)[0m BEGIN
|
810
|
+
-------------------
|
811
|
+
TaskTest: test_dump
|
812
|
+
-------------------
|
813
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
814
|
+
[1m[35m (0.1ms)[0m BEGIN
|
815
|
+
-------------------
|
816
|
+
TaskTest: test_load
|
817
|
+
-------------------
|
818
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
819
|
+
[1m[35m (0.1ms)[0m BEGIN
|
820
|
+
-----------------------------------
|
821
|
+
GeneratorTest: test_file_generation
|
822
|
+
-----------------------------------
|
823
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
719
824
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
720
825
|
[1m[35m (0.2ms)[0m BEGIN
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
725
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:54:06.207860"], ["updated_at", "2016-10-17 18:54:06.207860"]]
|
726
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
727
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
728
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:54:06.212767"], ["updated_at", "2016-10-17 18:54:06.212767"]]
|
729
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
826
|
+
-----------------------------------
|
827
|
+
GeneratorTest: test_file_generation
|
828
|
+
-----------------------------------
|
730
829
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
731
|
-
[1m[
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
----------------------
|
736
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
737
|
-
[1m[35mSQL (20.5ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:54:40.149586"], ["updated_at", "2016-10-17 18:54:40.149586"]]
|
738
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
739
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
740
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:54:40.175449"], ["updated_at", "2016-10-17 18:54:40.175449"]]
|
741
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
830
|
+
[1m[35m (0.1ms)[0m BEGIN
|
831
|
+
-------------------
|
832
|
+
TaskTest: test_dump
|
833
|
+
-------------------
|
742
834
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
835
|
+
[1m[35m (0.1ms)[0m BEGIN
|
836
|
+
-------------------
|
837
|
+
TaskTest: test_load
|
838
|
+
-------------------
|
839
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
840
|
+
[1m[35m (0.1ms)[0m BEGIN
|
841
|
+
--------------------------
|
842
|
+
MigrationTest: test_column
|
843
|
+
--------------------------
|
743
844
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
744
|
-
[1m[
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
[1m[36m (0.
|
749
|
-
[1m[35mSQL (0.
|
845
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
846
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
847
|
+
Migrating to CreateGuitarsView (20161125151623)
|
848
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
849
|
+
[1m[36m (0.8ms)[0m [1mDROP VIEW guitars[0m
|
850
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
750
851
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
852
|
+
Migrating to CreateProducts (20161017172847)
|
751
853
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
752
|
-
[1m[
|
753
|
-
[1m[
|
754
|
-
[1m[
|
755
|
-
[1m[
|
756
|
-
|
757
|
-
TasksTest: test_update
|
758
|
-
----------------------
|
759
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
760
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:55:30.709837"], ["updated_at", "2016-10-17 18:55:30.709837"]]
|
761
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
762
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
763
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:55:30.714589"], ["updated_at", "2016-10-17 18:55:30.714589"]]
|
764
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
765
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
766
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
767
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
768
|
-
[1m[35m (0.2ms)[0m BEGIN
|
769
|
-
----------------------
|
770
|
-
TasksTest: test_update
|
771
|
-
----------------------
|
854
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "products"[0m
|
855
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
856
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
857
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
858
|
+
Migrating to CreateProducts (20161017172847)
|
772
859
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
773
|
-
[1m[
|
774
|
-
[1m[
|
775
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
776
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:55:36.851551"], ["updated_at", "2016-10-17 18:55:36.851551"]]
|
860
|
+
[1m[35m (23.5ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
861
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
777
862
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
778
|
-
|
779
|
-
[1m[
|
780
|
-
|
863
|
+
Migrating to CreateGuitarsView (20161125151623)
|
864
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
865
|
+
[1m[35m (0.7ms)[0m CREATE VIEW guitars AS
|
781
866
|
SELECT
|
782
|
-
|
867
|
+
*
|
783
868
|
FROM
|
784
869
|
products
|
785
870
|
WHERE
|
786
|
-
|
871
|
+
category = 'Guitar'
|
787
872
|
|
788
|
-
[1m[
|
789
|
-
[1m[35m (0.
|
873
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
874
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
875
|
+
[1m[36m (9.8ms)[0m [1mROLLBACK[0m
|
790
876
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
791
877
|
[1m[35m (0.2ms)[0m BEGIN
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
[1m[
|
796
|
-
[1m[
|
878
|
+
--------------------------
|
879
|
+
MigrationTest: test_column
|
880
|
+
--------------------------
|
881
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
882
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
883
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
884
|
+
Migrating to CreateGuitarsView (20161125151623)
|
885
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
886
|
+
[1m[36m (1.2ms)[0m [1mDROP VIEW guitars[0m
|
887
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
797
888
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
889
|
+
Migrating to CreateProducts (20161017172847)
|
798
890
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
799
|
-
[1m[
|
891
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "products"[0m
|
892
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
893
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
894
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
895
|
+
Migrating to CreateProducts (20161017172847)
|
896
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
897
|
+
[1m[35m (20.8ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
898
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
899
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
900
|
+
Migrating to CreateGuitarsView (20161125151623)
|
901
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
902
|
+
[1m[35m (1.0ms)[0m CREATE VIEW guitars AS
|
903
|
+
SELECT
|
904
|
+
*
|
905
|
+
FROM
|
906
|
+
products
|
907
|
+
WHERE
|
908
|
+
category = 'Guitar'
|
909
|
+
|
910
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
800
911
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
912
|
+
[1m[36m (6.3ms)[0m [1mROLLBACK[0m
|
913
|
+
[1m[35m (0.1ms)[0m BEGIN
|
914
|
+
-----------------------------------
|
915
|
+
GeneratorTest: test_file_generation
|
916
|
+
-----------------------------------
|
917
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
918
|
+
[1m[35m (0.1ms)[0m BEGIN
|
919
|
+
-------------------
|
920
|
+
TaskTest: test_dump
|
921
|
+
-------------------
|
922
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
923
|
+
[1m[35m (2.2ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
924
|
+
FROM pg_constraint c
|
925
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
926
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
927
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
928
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
929
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
930
|
+
WHERE c.contype = 'f'
|
931
|
+
AND t1.relname = 'products'
|
932
|
+
AND t3.nspname = ANY (current_schemas(false))
|
933
|
+
ORDER BY c.conname
|
934
|
+
|
935
|
+
[1m[36m (0.4ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
936
|
+
FROM pg_class c
|
937
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
938
|
+
WHERE c.relkind IN ('v')
|
939
|
+
AND n.nspname = ANY (current_schemas(false))
|
940
|
+
ORDER BY c.oid ASC
|
941
|
+
[0m
|
942
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
943
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
944
|
+
-------------------
|
945
|
+
TaskTest: test_load
|
946
|
+
-------------------
|
947
|
+
[1m[35m (115.6ms)[0m DROP DATABASE IF EXISTS "views_test"
|
948
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
949
|
+
[1m[35m (434.6ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
950
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
951
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
952
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
953
|
+
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
954
|
+
[1m[36m (1.4ms)[0m [1mCREATE VIEW guitars AS
|
955
|
+
SELECT
|
956
|
+
*
|
957
|
+
FROM
|
958
|
+
products
|
959
|
+
WHERE
|
960
|
+
category = 'Guitar'
|
961
|
+
[0m
|
962
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
963
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
964
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
965
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161126212242')[0m
|
966
|
+
[1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
967
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
968
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
969
|
+
[1m[36m (8.1ms)[0m [1mDROP TABLE "products" CASCADE[0m
|
970
|
+
[1m[35m (7.0ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
801
971
|
[1m[36m (0.2ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
802
|
-
[1m[35m (
|
803
|
-
|
972
|
+
[1m[35m (0.9ms)[0m CREATE VIEW guitars AS
|
804
973
|
SELECT
|
805
|
-
|
974
|
+
*
|
806
975
|
FROM
|
807
976
|
products
|
808
977
|
WHERE
|
809
|
-
|
978
|
+
category = 'Guitar'
|
979
|
+
|
980
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
981
|
+
[1m[35m (1.1ms)[0m SELECT c.relname as name, c.relkind AS type
|
982
|
+
FROM pg_class c
|
983
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
984
|
+
WHERE c.relkind IN ('v')
|
985
|
+
AND n.nspname = ANY (current_schemas(false))
|
986
|
+
ORDER BY c.oid ASC
|
810
987
|
|
811
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM guitars[0m
|
812
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
813
988
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
814
989
|
[1m[35m (0.3ms)[0m BEGIN
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
[1m[36m (0.
|
819
|
-
[1m[
|
820
|
-
|
990
|
+
-----------------------------------
|
991
|
+
GeneratorTest: test_file_generation
|
992
|
+
-----------------------------------
|
993
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
994
|
+
[1m[35m (0.1ms)[0m BEGIN
|
995
|
+
--------------------------
|
996
|
+
MigrationTest: test_column
|
997
|
+
--------------------------
|
998
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
999
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1000
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1001
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1002
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1003
|
+
[1m[36m (1.0ms)[0m [1mDROP VIEW guitars[0m
|
1004
|
+
[1m[35mSQL (11.4ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
1005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1006
|
+
Migrating to CreateProducts (20161017172847)
|
821
1007
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
822
|
-
[1m[
|
823
|
-
[1m[
|
824
|
-
[1m[36m (0.
|
825
|
-
[1m[
|
826
|
-
|
1008
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "products"[0m
|
1009
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1010
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1011
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1012
|
+
Migrating to CreateProducts (20161017172847)
|
1013
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1014
|
+
[1m[35m (18.7ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1015
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
1016
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1017
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1018
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1019
|
+
[1m[35m (0.7ms)[0m CREATE VIEW guitars AS
|
827
1020
|
SELECT
|
828
|
-
|
1021
|
+
*
|
829
1022
|
FROM
|
830
1023
|
products
|
831
1024
|
WHERE
|
832
|
-
|
1025
|
+
category = 'Guitar'
|
833
1026
|
|
834
|
-
[1m[
|
835
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
836
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
837
|
-
[1m[35m (0.2ms)[0m BEGIN
|
838
|
-
----------------------
|
839
|
-
TasksTest: test_update
|
840
|
-
----------------------
|
841
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
842
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-17 18:56:41.159087"], ["updated_at", "2016-10-17 18:56:41.159087"]]
|
843
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
844
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
845
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 18:56:41.162571"], ["updated_at", "2016-10-17 18:56:41.162571"]]
|
1027
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
846
1028
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
847
|
-
[1m[36m (
|
848
|
-
[1m[35m (
|
849
|
-
|
1029
|
+
[1m[36m (6.1ms)[0m [1mROLLBACK[0m
|
1030
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1031
|
+
-------------------
|
1032
|
+
TaskTest: test_dump
|
1033
|
+
-------------------
|
1034
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1035
|
+
[1m[35m (2.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1036
|
+
FROM pg_constraint c
|
1037
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1038
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1039
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1040
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1041
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1042
|
+
WHERE c.contype = 'f'
|
1043
|
+
AND t1.relname = 'products'
|
1044
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1045
|
+
ORDER BY c.conname
|
1046
|
+
|
1047
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1048
|
+
FROM pg_class c
|
1049
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1050
|
+
WHERE c.relkind IN ('v')
|
1051
|
+
AND n.nspname = ANY (current_schemas(false))
|
1052
|
+
ORDER BY c.oid ASC
|
1053
|
+
[0m
|
1054
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1055
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1056
|
+
-------------------
|
1057
|
+
TaskTest: test_load
|
1058
|
+
-------------------
|
1059
|
+
[1m[35m (187.4ms)[0m DROP DATABASE IF EXISTS "views_test"
|
1060
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1061
|
+
[1m[35m (363.2ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
1062
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
1063
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
1064
|
+
[1m[36m (5.5ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1065
|
+
[1m[35m (0.3ms)[0m DROP VIEW IF EXISTS guitars
|
1066
|
+
[1m[36m (2.8ms)[0m [1mCREATE VIEW guitars AS
|
850
1067
|
SELECT
|
851
|
-
|
1068
|
+
*
|
852
1069
|
FROM
|
853
1070
|
products
|
854
1071
|
WHERE
|
855
|
-
|
856
|
-
|
857
|
-
[1m[
|
858
|
-
[1m[
|
859
|
-
[1m[
|
860
|
-
[1m[
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
[1m[36m (
|
865
|
-
[1m[
|
866
|
-
[1m[36m (0.2ms)[0m [
|
867
|
-
[1m[35m (
|
868
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-17 20:02:07.722542"], ["updated_at", "2016-10-17 20:02:07.722542"]]
|
869
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
870
|
-
[1m[36m (0.3ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
871
|
-
[1m[35m (2.2ms)[0m CREATE VIEW guitars AS
|
872
|
-
|
1072
|
+
category = 'Guitar'
|
1073
|
+
[0m
|
1074
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
1075
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1076
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
1077
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161126212242')[0m
|
1078
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
1079
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
1080
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
1081
|
+
[1m[36m (7.6ms)[0m [1mDROP TABLE "products" CASCADE[0m
|
1082
|
+
[1m[35m (6.6ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1083
|
+
[1m[36m (0.2ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
1084
|
+
[1m[35m (1.0ms)[0m CREATE VIEW guitars AS
|
873
1085
|
SELECT
|
874
|
-
|
1086
|
+
*
|
875
1087
|
FROM
|
876
1088
|
products
|
877
1089
|
WHERE
|
878
|
-
|
1090
|
+
category = 'Guitar'
|
1091
|
+
|
1092
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1093
|
+
[1m[35m (1.1ms)[0m SELECT c.relname as name, c.relkind AS type
|
1094
|
+
FROM pg_class c
|
1095
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1096
|
+
WHERE c.relkind IN ('v')
|
1097
|
+
AND n.nspname = ANY (current_schemas(false))
|
1098
|
+
ORDER BY c.oid ASC
|
879
1099
|
|
880
|
-
[1m[36m (0.3ms)[0m [1mSELECT 1 FROM guitars[0m
|
881
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
882
1100
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
883
1101
|
[1m[35m (0.2ms)[0m BEGIN
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
[1m[
|
888
|
-
[1m[
|
1102
|
+
--------------------------
|
1103
|
+
MigrationTest: test_column
|
1104
|
+
--------------------------
|
1105
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1106
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1108
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1109
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1110
|
+
[1m[36m (1.1ms)[0m [1mDROP VIEW guitars[0m
|
1111
|
+
[1m[35mSQL (7.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
889
1112
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1113
|
+
Migrating to CreateProducts (20161017172847)
|
890
1114
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
891
|
-
[1m[
|
892
|
-
[1m[
|
893
|
-
[1m[36m (
|
894
|
-
[1m[
|
895
|
-
|
896
|
-
[1m[
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
[1m[
|
902
|
-
|
1115
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "products"[0m
|
1116
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1117
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1118
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1119
|
+
Migrating to CreateProducts (20161017172847)
|
1120
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1121
|
+
[1m[35m (13.8ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1122
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
1123
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1124
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1125
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1126
|
+
[1m[35m (0.8ms)[0m CREATE VIEW guitars AS
|
903
1127
|
SELECT
|
904
|
-
|
1128
|
+
*
|
905
1129
|
FROM
|
906
1130
|
products
|
907
1131
|
WHERE
|
908
|
-
|
1132
|
+
category = 'Guitar'
|
909
1133
|
|
910
|
-
[1m[
|
911
|
-
[1m[35m (0.
|
912
|
-
[1m[
|
913
|
-
[1m[35m (0.
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
[1m[36m (
|
918
|
-
[1m[
|
919
|
-
|
1134
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
1135
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1136
|
+
[1m[36m (6.0ms)[0m [1mROLLBACK[0m
|
1137
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1138
|
+
-------------------
|
1139
|
+
TaskTest: test_load
|
1140
|
+
-------------------
|
1141
|
+
[1m[36m (111.8ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1142
|
+
[1m[36m (35.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
1143
|
+
[1m[35m (11.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1144
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1145
|
+
Migrating to CreateProducts (20161017172847)
|
1146
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1147
|
+
[1m[36m (27.8ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1148
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161017172847"]]
|
1149
|
+
[1m[36m (5.5ms)[0m [1mCOMMIT[0m
|
1150
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1151
|
+
[1m[35m (5.4ms)[0m BEGIN
|
1152
|
+
[1m[36m (28.3ms)[0m [1mCREATE VIEW guitars AS
|
920
1153
|
SELECT
|
921
|
-
|
1154
|
+
*
|
922
1155
|
FROM
|
923
1156
|
products
|
924
1157
|
WHERE
|
925
|
-
|
1158
|
+
category = 'Guitar'
|
1159
|
+
[0m
|
1160
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20161125151623"]]
|
1161
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
1162
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1163
|
+
[1m[36m (2.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1164
|
+
FROM pg_constraint c
|
1165
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1166
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1167
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1168
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1169
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1170
|
+
WHERE c.contype = 'f'
|
1171
|
+
AND t1.relname = 'products'
|
1172
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1173
|
+
ORDER BY c.conname
|
1174
|
+
[0m
|
1175
|
+
[1m[35m (0.4ms)[0m SELECT c.relname as name, c.relkind AS type
|
1176
|
+
FROM pg_class c
|
1177
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1178
|
+
WHERE c.relkind IN ('v')
|
1179
|
+
AND n.nspname = ANY (current_schemas(false))
|
1180
|
+
ORDER BY c.oid ASC
|
926
1181
|
|
927
|
-
[1m[36m (0.4ms)[0m [1mSELECT 1 FROM guitars[0m
|
928
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
929
1182
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
930
1183
|
[1m[35m (0.2ms)[0m BEGIN
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
[1m[36m (0.
|
935
|
-
[1m[35m (
|
936
|
-
|
1184
|
+
-----------------------------------
|
1185
|
+
GeneratorTest: test_file_generation
|
1186
|
+
-----------------------------------
|
1187
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1188
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1189
|
+
-------------------
|
1190
|
+
TaskTest: test_dump
|
1191
|
+
-------------------
|
1192
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1193
|
+
[1m[35m (2.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1194
|
+
FROM pg_constraint c
|
1195
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1196
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1197
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1198
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1199
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1200
|
+
WHERE c.contype = 'f'
|
1201
|
+
AND t1.relname = 'products'
|
1202
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1203
|
+
ORDER BY c.conname
|
1204
|
+
|
1205
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1206
|
+
FROM pg_class c
|
1207
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1208
|
+
WHERE c.relkind IN ('v')
|
1209
|
+
AND n.nspname = ANY (current_schemas(false))
|
1210
|
+
ORDER BY c.oid ASC
|
1211
|
+
[0m
|
1212
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1213
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1214
|
+
-------------------
|
1215
|
+
TaskTest: test_load
|
1216
|
+
-------------------
|
1217
|
+
[1m[35m (130.4ms)[0m DROP DATABASE IF EXISTS "views_test"
|
1218
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1219
|
+
[1m[35m (403.9ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
1220
|
+
[1m[36m (0.7ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
1221
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
1222
|
+
[1m[36m (4.6ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1223
|
+
[1m[35m (0.3ms)[0m DROP VIEW IF EXISTS guitars
|
1224
|
+
[1m[36m (11.7ms)[0m [1mCREATE VIEW guitars AS
|
937
1225
|
SELECT
|
938
|
-
|
1226
|
+
*
|
939
1227
|
FROM
|
940
1228
|
products
|
941
1229
|
WHERE
|
942
|
-
|
943
|
-
|
944
|
-
[1m[
|
1230
|
+
category = 'Guitar'
|
1231
|
+
[0m
|
1232
|
+
[1m[35m (11.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
1233
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1234
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
1235
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
1236
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
1237
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1238
|
+
[1m[35m (7.5ms)[0m DROP TABLE "products" CASCADE
|
1239
|
+
[1m[36m (6.9ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1240
|
+
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
1241
|
+
[1m[36m (0.9ms)[0m [1mCREATE VIEW guitars AS
|
1242
|
+
SELECT
|
1243
|
+
*
|
1244
|
+
FROM
|
1245
|
+
products
|
1246
|
+
WHERE
|
1247
|
+
category = 'Guitar'
|
1248
|
+
[0m
|
1249
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
945
1250
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
946
|
-
[1m[
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
1251
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1252
|
+
[1m[36m (0.6ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1253
|
+
FROM pg_class c
|
1254
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1255
|
+
WHERE c.relkind IN ('v')
|
1256
|
+
AND n.nspname = ANY (current_schemas(false))
|
1257
|
+
ORDER BY c.oid ASC
|
1258
|
+
[0m
|
1259
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1260
|
+
--------------------------
|
1261
|
+
MigrationTest: test_column
|
1262
|
+
--------------------------
|
1263
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1264
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1266
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1267
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1268
|
+
[1m[36m (0.9ms)[0m [1mDROP VIEW guitars[0m
|
1269
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
1270
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1271
|
+
Migrating to CreateProducts (20161017172847)
|
1272
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1273
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "products"[0m
|
1274
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1275
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1276
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1277
|
+
Migrating to CreateProducts (20161017172847)
|
1278
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1279
|
+
[1m[35m (18.8ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1280
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
1281
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1282
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1283
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1284
|
+
[1m[35m (0.9ms)[0m CREATE VIEW guitars AS
|
953
1285
|
SELECT
|
954
|
-
|
1286
|
+
*
|
955
1287
|
FROM
|
956
1288
|
products
|
957
1289
|
WHERE
|
958
|
-
|
1290
|
+
category = 'Guitar'
|
959
1291
|
|
960
|
-
[1m[
|
961
|
-
[1m[35m (0.
|
962
|
-
[1m[36m (
|
963
|
-
[1m[35m (0.5ms)[0m SELECT 1 FROM guitars
|
964
|
-
[1m[36m (0.6ms)[0m [1mSELECT 1 FROM guitars[0m
|
965
|
-
[1m[35m (0.5ms)[0m SELECT 1 FROM guitars
|
966
|
-
[1m[36m (0.3ms)[0m [1mSELECT 1 FROM guitars[0m
|
967
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1292
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
1293
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1294
|
+
[1m[36m (6.0ms)[0m [1mROLLBACK[0m
|
968
1295
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
969
|
-
[1m[35m (0.
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
[1m[
|
1296
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1297
|
+
--------------------------
|
1298
|
+
MigrationTest: test_column
|
1299
|
+
--------------------------
|
1300
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1301
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1303
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1304
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1305
|
+
[1m[36m (0.8ms)[0m [1mDROP VIEW guitars[0m
|
1306
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
1307
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1308
|
+
Migrating to CreateProducts (20161017172847)
|
1309
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1310
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "products"[0m
|
1311
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1312
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1313
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1314
|
+
Migrating to CreateProducts (20161017172847)
|
1315
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1316
|
+
[1m[35m (13.4ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1317
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
1318
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1319
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1320
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1321
|
+
[1m[35m (0.9ms)[0m CREATE VIEW guitars AS
|
1322
|
+
SELECT
|
1323
|
+
*
|
1324
|
+
FROM
|
1325
|
+
products
|
1326
|
+
WHERE
|
1327
|
+
category = 'Guitar'
|
1328
|
+
|
1329
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
1330
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1331
|
+
[1m[36m (6.2ms)[0m [1mROLLBACK[0m
|
1332
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1333
|
+
-----------------------------------
|
1334
|
+
GeneratorTest: test_file_generation
|
1335
|
+
-----------------------------------
|
1336
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1337
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1338
|
+
-------------------
|
1339
|
+
TaskTest: test_load
|
1340
|
+
-------------------
|
1341
|
+
[1m[36m (177.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1342
|
+
[1m[35m (309.8ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
1343
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1344
|
+
[1m[35m (3.8ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1345
|
+
[1m[36m (0.2ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
974
1346
|
[1m[35m (1.2ms)[0m CREATE VIEW guitars AS
|
975
|
-
|
976
1347
|
SELECT
|
977
|
-
|
1348
|
+
*
|
978
1349
|
FROM
|
979
1350
|
products
|
980
1351
|
WHERE
|
981
|
-
|
1352
|
+
category = 'Guitar'
|
982
1353
|
|
983
|
-
[1m[36m (
|
984
|
-
[1m[35m (0.
|
985
|
-
[1m[
|
1354
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
1355
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1356
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1357
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161125151623')
|
1358
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161017172847')[0m
|
1359
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1360
|
+
[1m[36m (0.6ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1361
|
+
FROM pg_class c
|
1362
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1363
|
+
WHERE c.relkind IN ('v')
|
1364
|
+
AND n.nspname = ANY (current_schemas(false))
|
1365
|
+
ORDER BY c.oid ASC
|
1366
|
+
[0m
|
1367
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1368
|
+
-------------------
|
1369
|
+
TaskTest: test_dump
|
1370
|
+
-------------------
|
1371
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1372
|
+
[1m[35m (2.1ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1373
|
+
FROM pg_constraint c
|
1374
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1375
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1376
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1377
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1378
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1379
|
+
WHERE c.contype = 'f'
|
1380
|
+
AND t1.relname = 'products'
|
1381
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1382
|
+
ORDER BY c.conname
|
1383
|
+
|
1384
|
+
[1m[36m (0.4ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1385
|
+
FROM pg_class c
|
1386
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1387
|
+
WHERE c.relkind IN ('v')
|
1388
|
+
AND n.nspname = ANY (current_schemas(false))
|
1389
|
+
ORDER BY c.oid ASC
|
1390
|
+
[0m
|
1391
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1392
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1393
|
+
FROM pg_constraint c
|
1394
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1395
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1396
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1397
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1398
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1399
|
+
WHERE c.contype = 'f'
|
1400
|
+
AND t1.relname = 'products'
|
1401
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1402
|
+
ORDER BY c.conname
|
1403
|
+
[0m
|
1404
|
+
[1m[35m (0.4ms)[0m SELECT c.relname as name, c.relkind AS type
|
1405
|
+
FROM pg_class c
|
1406
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1407
|
+
WHERE c.relkind IN ('v')
|
1408
|
+
AND n.nspname = ANY (current_schemas(false))
|
1409
|
+
ORDER BY c.oid ASC
|
1410
|
+
|
1411
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1412
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
986
1413
|
[1m[35m (0.2ms)[0m BEGIN
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
[1m[
|
991
|
-
[1m[
|
1414
|
+
--------------------------
|
1415
|
+
MigrationTest: test_column
|
1416
|
+
--------------------------
|
1417
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1418
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1419
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1420
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1421
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1422
|
+
[1m[36m (0.9ms)[0m [1mDROP VIEW guitars[0m
|
1423
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
992
1424
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1425
|
+
Migrating to CreateProducts (20161017172847)
|
993
1426
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
994
|
-
[1m[
|
1427
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "products"[0m
|
1428
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1429
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1430
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1431
|
+
Migrating to CreateProducts (20161017172847)
|
1432
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1433
|
+
[1m[35m (13.6ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1434
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
995
1435
|
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
996
|
-
|
997
|
-
[1m[
|
998
|
-
|
1436
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1438
|
+
[1m[35m (1.3ms)[0m CREATE VIEW guitars AS
|
999
1439
|
SELECT
|
1000
|
-
|
1440
|
+
*
|
1001
1441
|
FROM
|
1002
1442
|
products
|
1003
1443
|
WHERE
|
1004
|
-
|
1444
|
+
category = 'Guitar'
|
1445
|
+
|
1446
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
1447
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1448
|
+
[1m[36m (6.1ms)[0m [1mROLLBACK[0m
|
1449
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1450
|
+
-------------------
|
1451
|
+
TaskTest: test_dump
|
1452
|
+
-------------------
|
1453
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1454
|
+
[1m[35m (2.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1455
|
+
FROM pg_constraint c
|
1456
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1457
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1458
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1459
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1460
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1461
|
+
WHERE c.contype = 'f'
|
1462
|
+
AND t1.relname = 'products'
|
1463
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1464
|
+
ORDER BY c.conname
|
1005
1465
|
|
1006
|
-
[1m[36m (0.
|
1466
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1467
|
+
FROM pg_class c
|
1468
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1469
|
+
WHERE c.relkind IN ('v')
|
1470
|
+
AND n.nspname = ANY (current_schemas(false))
|
1471
|
+
ORDER BY c.oid ASC
|
1472
|
+
[0m
|
1007
1473
|
[1m[35m (0.2ms)[0m ROLLBACK
|
1008
|
-
[1m[36m (
|
1009
|
-
|
1474
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1475
|
+
-------------------
|
1476
|
+
TaskTest: test_load
|
1477
|
+
-------------------
|
1478
|
+
[1m[35m (148.7ms)[0m DROP DATABASE IF EXISTS "views_test"
|
1479
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1480
|
+
[1m[35m (293.4ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
1481
|
+
[1m[36m (0.7ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
1482
|
+
[1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
1483
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1484
|
+
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
1485
|
+
[1m[36m (1.3ms)[0m [1mCREATE VIEW guitars AS
|
1486
|
+
SELECT
|
1487
|
+
*
|
1488
|
+
FROM
|
1489
|
+
products
|
1490
|
+
WHERE
|
1491
|
+
category = 'Guitar'
|
1492
|
+
[0m
|
1493
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
1494
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1495
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
1496
|
+
[1m[36m (2.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
1497
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
1010
1498
|
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1011
|
-
[1m[35m (
|
1012
|
-
[1m[36m (
|
1013
|
-
[1m[35m (0.
|
1014
|
-
[1m[36m (0.
|
1015
|
-
|
1499
|
+
[1m[35m (7.2ms)[0m DROP TABLE "products" CASCADE
|
1500
|
+
[1m[36m (7.5ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1501
|
+
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
1502
|
+
[1m[36m (0.9ms)[0m [1mCREATE VIEW guitars AS
|
1503
|
+
SELECT
|
1504
|
+
*
|
1505
|
+
FROM
|
1506
|
+
products
|
1507
|
+
WHERE
|
1508
|
+
category = 'Guitar'
|
1509
|
+
[0m
|
1510
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
1016
1511
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1512
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1513
|
+
[1m[36m (0.7ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1514
|
+
FROM pg_class c
|
1515
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1516
|
+
WHERE c.relkind IN ('v')
|
1517
|
+
AND n.nspname = ANY (current_schemas(false))
|
1518
|
+
ORDER BY c.oid ASC
|
1519
|
+
[0m
|
1520
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1521
|
+
-----------------------------------
|
1522
|
+
GeneratorTest: test_file_generation
|
1523
|
+
-----------------------------------
|
1524
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1017
1525
|
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1018
|
-
[1m[35m (0.
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
[1m[
|
1023
|
-
[1m[35m (0.
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
[1m[
|
1028
|
-
[1m[
|
1526
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1527
|
+
-----------------------------------
|
1528
|
+
GeneratorTest: test_file_generation
|
1529
|
+
-----------------------------------
|
1530
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1532
|
+
--------------------------
|
1533
|
+
MigrationTest: test_column
|
1534
|
+
--------------------------
|
1535
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1536
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1537
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1538
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1539
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1540
|
+
[1m[36m (1.1ms)[0m [1mDROP VIEW guitars[0m
|
1541
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
1029
1542
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1543
|
+
Migrating to CreateProducts (20161017172847)
|
1030
1544
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1031
|
-
[1m[
|
1545
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "products"[0m
|
1546
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1547
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1548
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1549
|
+
Migrating to CreateProducts (20161017172847)
|
1550
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1551
|
+
[1m[35m (3.5ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1552
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
1032
1553
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1033
|
-
|
1034
|
-
[1m[
|
1035
|
-
|
1554
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1555
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1556
|
+
[1m[35m (1.0ms)[0m CREATE VIEW guitars AS
|
1036
1557
|
SELECT
|
1037
|
-
|
1558
|
+
*
|
1038
1559
|
FROM
|
1039
1560
|
products
|
1040
1561
|
WHERE
|
1041
|
-
|
1562
|
+
category = 'Guitar'
|
1042
1563
|
|
1043
|
-
[1m[
|
1044
|
-
[1m[35m (0.
|
1045
|
-
[1m[36m (
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
[1m[
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1055
|
-
[1m[35mSQL (0.9ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-18 00:58:53.320941"], ["updated_at", "2016-10-18 00:58:53.320941"]]
|
1056
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1057
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1058
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-18 00:58:53.326151"], ["updated_at", "2016-10-18 00:58:53.326151"]]
|
1059
|
-
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
1564
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
1565
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1566
|
+
[1m[36m (1.1ms)[0m [1mROLLBACK[0m
|
1567
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1568
|
+
-------------------
|
1569
|
+
TaskTest: test_load
|
1570
|
+
-------------------
|
1571
|
+
[1m[36m (136.1ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1572
|
+
[1m[35m (281.1ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
1573
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1574
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1060
1575
|
[1m[36m (0.2ms)[0m [1mDROP VIEW IF EXISTS guitars[0m
|
1061
|
-
[1m[35m (1.
|
1062
|
-
|
1576
|
+
[1m[35m (1.5ms)[0m CREATE VIEW guitars AS
|
1063
1577
|
SELECT
|
1064
|
-
|
1578
|
+
*
|
1065
1579
|
FROM
|
1066
1580
|
products
|
1067
1581
|
WHERE
|
1068
|
-
|
1582
|
+
category = 'Guitar'
|
1069
1583
|
|
1070
|
-
[1m[36m (
|
1071
|
-
[1m[35m (0.
|
1584
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
1585
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
1586
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
1587
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161125151623')
|
1588
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161017172847')[0m
|
1589
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1590
|
+
[1m[36m (0.6ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1591
|
+
FROM pg_class c
|
1592
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1593
|
+
WHERE c.relkind IN ('v')
|
1594
|
+
AND n.nspname = ANY (current_schemas(false))
|
1595
|
+
ORDER BY c.oid ASC
|
1596
|
+
[0m
|
1597
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1598
|
+
-------------------
|
1599
|
+
TaskTest: test_dump
|
1600
|
+
-------------------
|
1601
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1602
|
+
[1m[35m (2.2ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1603
|
+
FROM pg_constraint c
|
1604
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1605
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1606
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1607
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1608
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1609
|
+
WHERE c.contype = 'f'
|
1610
|
+
AND t1.relname = 'products'
|
1611
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1612
|
+
ORDER BY c.conname
|
1613
|
+
|
1614
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1615
|
+
FROM pg_class c
|
1616
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1617
|
+
WHERE c.relkind IN ('v')
|
1618
|
+
AND n.nspname = ANY (current_schemas(false))
|
1619
|
+
ORDER BY c.oid ASC
|
1620
|
+
[0m
|
1621
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1622
|
+
[1m[36m (1.5ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1623
|
+
FROM pg_constraint c
|
1624
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1625
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1626
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1627
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1628
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1629
|
+
WHERE c.contype = 'f'
|
1630
|
+
AND t1.relname = 'products'
|
1631
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1632
|
+
ORDER BY c.conname
|
1633
|
+
[0m
|
1634
|
+
[1m[35m (0.5ms)[0m SELECT c.relname as name, c.relkind AS type
|
1635
|
+
FROM pg_class c
|
1636
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1637
|
+
WHERE c.relkind IN ('v')
|
1638
|
+
AND n.nspname = ANY (current_schemas(false))
|
1639
|
+
ORDER BY c.oid ASC
|
1640
|
+
|
1641
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1642
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1643
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1644
|
+
-------------------
|
1645
|
+
TaskTest: test_dump
|
1646
|
+
-------------------
|
1647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1648
|
+
[1m[35m (2.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1649
|
+
FROM pg_constraint c
|
1650
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1651
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1652
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1653
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1654
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1655
|
+
WHERE c.contype = 'f'
|
1656
|
+
AND t1.relname = 'products'
|
1657
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1658
|
+
ORDER BY c.conname
|
1659
|
+
|
1660
|
+
[1m[36m (0.4ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1661
|
+
FROM pg_class c
|
1662
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1663
|
+
WHERE c.relkind IN ('v')
|
1664
|
+
AND n.nspname = ANY (current_schemas(false))
|
1665
|
+
ORDER BY c.oid ASC
|
1666
|
+
[0m
|
1667
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1072
1668
|
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
[1m[
|
1077
|
-
[1m[
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1669
|
+
-------------------
|
1670
|
+
TaskTest: test_load
|
1671
|
+
-------------------
|
1672
|
+
[1m[35m (130.5ms)[0m DROP DATABASE IF EXISTS "views_test"
|
1673
|
+
[1m[36m (0.2ms)[0m [1mDROP DATABASE IF EXISTS "views_test"[0m
|
1674
|
+
[1m[35m (313.1ms)[0m CREATE DATABASE "views_test" ENCODING = 'utf8'
|
1675
|
+
[1m[36m (0.6ms)[0m [1mCREATE DATABASE "views_test" ENCODING = 'utf8'[0m
|
1676
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
1677
|
+
[1m[36m (16.9ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1678
|
+
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
1679
|
+
[1m[36m (6.6ms)[0m [1mCREATE VIEW guitars AS
|
1680
|
+
SELECT
|
1681
|
+
*
|
1682
|
+
FROM
|
1683
|
+
products
|
1684
|
+
WHERE
|
1685
|
+
category = 'Guitar'
|
1686
|
+
[0m
|
1687
|
+
[1m[35m (17.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
1688
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1689
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
1690
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20161125151623')[0m
|
1691
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20161017172847')
|
1692
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1693
|
+
[1m[35m (12.5ms)[0m DROP TABLE "products" CASCADE
|
1694
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1695
|
+
[1m[35m (0.2ms)[0m DROP VIEW IF EXISTS guitars
|
1696
|
+
[1m[36m (0.9ms)[0m [1mCREATE VIEW guitars AS
|
1697
|
+
SELECT
|
1698
|
+
*
|
1699
|
+
FROM
|
1700
|
+
products
|
1701
|
+
WHERE
|
1702
|
+
category = 'Guitar'
|
1703
|
+
[0m
|
1704
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
1081
1705
|
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1082
|
-
[1m[
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1706
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1707
|
+
[1m[36m (0.5ms)[0m [1m SELECT c.relname as name, c.relkind AS type
|
1708
|
+
FROM pg_class c
|
1709
|
+
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
|
1710
|
+
WHERE c.relkind IN ('v')
|
1711
|
+
AND n.nspname = ANY (current_schemas(false))
|
1712
|
+
ORDER BY c.oid ASC
|
1713
|
+
[0m
|
1714
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1715
|
+
-----------------------------------
|
1716
|
+
GeneratorTest: test_file_generation
|
1717
|
+
-----------------------------------
|
1718
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1719
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1720
|
+
-----------------------------------
|
1721
|
+
MigrationTest: test_create_and_drop
|
1722
|
+
-----------------------------------
|
1723
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1724
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1725
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1726
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1727
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1728
|
+
[1m[36m (2.8ms)[0m [1mDROP VIEW guitars[0m
|
1729
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161125151623"]]
|
1093
1730
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1731
|
+
Migrating to CreateProducts (20161017172847)
|
1094
1732
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1095
|
-
[1m[
|
1733
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "products"[0m
|
1734
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20161017172847"]]
|
1735
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1736
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1737
|
+
Migrating to CreateProducts (20161017172847)
|
1738
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1739
|
+
[1m[35m (13.5ms)[0m CREATE TABLE "products" ("id" serial primary key, "name" character varying, "category" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1740
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161017172847"]]
|
1096
1741
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1097
|
-
|
1098
|
-
[1m[
|
1099
|
-
|
1742
|
+
Migrating to CreateGuitarsView (20161125151623)
|
1743
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1744
|
+
[1m[35m (0.7ms)[0m CREATE VIEW guitars AS
|
1100
1745
|
SELECT
|
1101
|
-
|
1746
|
+
*
|
1102
1747
|
FROM
|
1103
1748
|
products
|
1104
1749
|
WHERE
|
1105
|
-
|
1750
|
+
category = 'Guitar'
|
1106
1751
|
|
1107
|
-
[1m[
|
1108
|
-
[1m[35m (6.0ms)[0m CREATE VIEW tests AS
|
1109
|
-
|
1110
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1111
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1112
|
-
[1m[35m (0.2ms)[0m BEGIN
|
1113
|
-
----------------------
|
1114
|
-
TasksTest: test_update
|
1115
|
-
----------------------
|
1116
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1117
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Les Paul"], ["category", "Guitar"], ["created_at", "2016-10-18 01:01:02.810985"], ["updated_at", "2016-10-18 01:01:02.810985"]]
|
1118
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1119
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1120
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("name", "category", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laney"], ["category", "Amps"], ["created_at", "2016-10-18 01:01:02.816600"], ["updated_at", "2016-10-18 01:01:02.816600"]]
|
1752
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20161125151623"]]
|
1121
1753
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1122
|
-
[1m[36m (
|
1123
|
-
[1m[35m (
|
1124
|
-
|
1754
|
+
[1m[36m (6.7ms)[0m [1mROLLBACK[0m
|
1755
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1756
|
+
--------------------------
|
1757
|
+
MigrationTest: test_change
|
1758
|
+
--------------------------
|
1759
|
+
[1m[36m (0.4ms)[0m [1mDROP VIEW guitars[0m
|
1760
|
+
[1m[35m (0.6ms)[0m CREATE VIEW guitars AS
|
1125
1761
|
SELECT
|
1126
|
-
|
1762
|
+
*
|
1127
1763
|
FROM
|
1128
1764
|
products
|
1129
1765
|
WHERE
|
1130
|
-
|
1766
|
+
category = 'Guitar'
|
1131
1767
|
|
1132
|
-
[1m[36m (0.
|
1133
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1134
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1135
|
-
------------------------------------
|
1136
|
-
GeneratorsTest: test_file_generation
|
1137
|
-
------------------------------------
|
1138
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1768
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|