pg_jbuilder 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +468 -0
- data/Rakefile +7 -0
- data/config/database.yml +3 -0
- data/lib/pg_jbuilder.rb +108 -0
- data/lib/pg_jbuilder/railtie.rb +44 -0
- data/lib/pg_jbuilder/version.rb +3 -0
- data/pg_jbuilder.gemspec +30 -0
- data/queries/test1.sql +1 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/test_model.rb +2 -0
- data/spec/dummy/app/queries/test.sql +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +26 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +26 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150210004140_add_test_model.rb +11 -0
- data/spec/dummy/db/schema.rb +25 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/log/development.log +303 -0
- data/spec/dummy/log/test.log +354 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/pg_jbuilder/pg_jbuilder_spec.rb +182 -0
- data/spec/pg_jbuilder/railtie_spec.rb +88 -0
- data/spec/queries/test2.sql +1 -0
- data/spec/spec_helper.rb +29 -0
- metadata +298 -0
@@ -0,0 +1,354 @@
|
|
1
|
+
[1m[36m (120.0ms)[0m [1mDROP DATABASE IF EXISTS "pg_json_builder_rails_test"[0m
|
2
|
+
[1m[35m (297.8ms)[0m CREATE DATABASE "pg_json_builder_rails_test" ENCODING = 'utf8'
|
3
|
+
[1m[36m (5.3ms)[0m [1mCREATE TABLE "test_model" ("id" serial primary key, "field_string" character varying NOT NULL, "field_int" integer NOT NULL, "field_bool" boolean NOT NULL, "field_datetime" timestamp NOT NULL, "created_at" timestamp, "updated_at" timestamp) [0m
|
4
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
5
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
6
|
+
[1m[35m (0.7ms)[0m SELECT version FROM "schema_migrations"
|
7
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150210004140')[0m
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
+
[1m[36m (117.7ms)[0m [1mDROP DATABASE IF EXISTS "pg_json_builder_rails_test"[0m
|
10
|
+
[1m[35m (432.4ms)[0m CREATE DATABASE "pg_json_builder_rails_test" ENCODING = 'utf8'
|
11
|
+
[1m[36m (8.4ms)[0m [1mCREATE TABLE "test_model" ("id" serial primary key, "field_string" character varying NOT NULL, "field_int" integer NOT NULL, "field_bool" boolean NOT NULL, "field_datetime" timestamp NOT NULL, "created_at" timestamp, "updated_at" timestamp) [0m
|
12
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
13
|
+
[1m[36m (2.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
15
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150210004140')[0m
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
26
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
33
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
39
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
40
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
42
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
43
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
44
|
+
[1m[35m (0.1ms)[0m
|
45
|
+
TypeError: wrong argument type nil (expected String):
|
46
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
47
|
+
[1m[35m (0.1ms)[0m
|
48
|
+
TypeError: wrong argument type nil (expected String):
|
49
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50
|
+
[1m[35m (0.1ms)[0m
|
51
|
+
TypeError: wrong argument type nil (expected String):
|
52
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
53
|
+
[1m[35m (0.1ms)[0m
|
54
|
+
TypeError: wrong argument type nil (expected String):
|
55
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
56
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
57
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
58
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
66
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
68
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
71
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
72
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
73
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
74
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
75
|
+
^
|
76
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
77
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
78
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
79
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
80
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
81
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
82
|
+
ORDER BY a.attnum
|
83
|
+
|
84
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
85
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
86
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
87
|
+
^
|
88
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
89
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
90
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
91
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
92
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
93
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
94
|
+
ORDER BY a.attnum
|
95
|
+
|
96
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
97
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
98
|
+
^
|
99
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
100
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
101
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
102
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
103
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
104
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
105
|
+
ORDER BY a.attnum
|
106
|
+
|
107
|
+
[1m[36m (5.9ms)[0m [1mCREATE TABLE "test_model" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field_string" varchar NOT NULL, "field_int" integer NOT NULL, "field_bool" boolean NOT NULL, "field_datetime" datetime NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
108
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
109
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
110
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
111
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
112
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150210004140')
|
113
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
114
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
115
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
116
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
117
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
118
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
120
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
121
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
122
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
123
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
124
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
125
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
126
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
127
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
128
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
129
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
130
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
131
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
132
|
+
[1m[35m (0.2ms)[0m SELECT COALESCE(array_to_json(array_agg(row_to_json(array_row))),'[]'::json)
|
133
|
+
FROM (
|
134
|
+
SELECT 1 as one
|
135
|
+
|
136
|
+
) array_row
|
137
|
+
SQLite3::SQLException: unrecognized token: ":": SELECT COALESCE(array_to_json(array_agg(row_to_json(array_row))),'[]'::json)
|
138
|
+
FROM (
|
139
|
+
SELECT 1 as one
|
140
|
+
|
141
|
+
) array_row
|
142
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
143
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
144
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
145
|
+
[1m[35m (0.2ms)[0m SELECT COALESCE(array_to_json(array_agg(row_to_json(array_row))),'[]'::json)
|
146
|
+
FROM (
|
147
|
+
SELECT 1 as one
|
148
|
+
|
149
|
+
) array_row
|
150
|
+
SQLite3::SQLException: unrecognized token: ":": SELECT COALESCE(array_to_json(array_agg(row_to_json(array_row))),'[]'::json)
|
151
|
+
FROM (
|
152
|
+
SELECT 1 as one
|
153
|
+
|
154
|
+
) array_row
|
155
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
156
|
+
[1m[35m (0.2ms)[0m SELECT COALESCE(array_to_json(array_agg(row_to_json(array_row))),'[]'::json)
|
157
|
+
FROM (
|
158
|
+
TEST SQL
|
159
|
+
|
160
|
+
) array_row
|
161
|
+
SQLite3::SQLException: unrecognized token: ":": SELECT COALESCE(array_to_json(array_agg(row_to_json(array_row))),'[]'::json)
|
162
|
+
FROM (
|
163
|
+
TEST SQL
|
164
|
+
|
165
|
+
) array_row
|
166
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
167
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
168
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
169
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
170
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
171
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
172
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
173
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
174
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
175
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
176
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
177
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
178
|
+
^
|
179
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
180
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
181
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
182
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
183
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
184
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
185
|
+
ORDER BY a.attnum
|
186
|
+
|
187
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
188
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
189
|
+
^
|
190
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
191
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
192
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
193
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
194
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
195
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
196
|
+
ORDER BY a.attnum
|
197
|
+
|
198
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
199
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
200
|
+
^
|
201
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
202
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
203
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
204
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
205
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
206
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
207
|
+
ORDER BY a.attnum
|
208
|
+
|
209
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
210
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
211
|
+
^
|
212
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
213
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
214
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
215
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
216
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
217
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
218
|
+
ORDER BY a.attnum
|
219
|
+
|
220
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
221
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
222
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
223
|
+
^
|
224
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
225
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
226
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
227
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
228
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
229
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
230
|
+
ORDER BY a.attnum
|
231
|
+
|
232
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
233
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
234
|
+
^
|
235
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
236
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
237
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
238
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
239
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
240
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
241
|
+
ORDER BY a.attnum
|
242
|
+
|
243
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
244
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
245
|
+
^
|
246
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
247
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
248
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
249
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
250
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
251
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
252
|
+
ORDER BY a.attnum
|
253
|
+
|
254
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
255
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
256
|
+
^
|
257
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
258
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
259
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
260
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
261
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
262
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
263
|
+
ORDER BY a.attnum
|
264
|
+
|
265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
266
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
267
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
268
|
+
^
|
269
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
270
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
271
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
272
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
273
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
274
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
275
|
+
ORDER BY a.attnum
|
276
|
+
|
277
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
278
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
279
|
+
^
|
280
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
281
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
282
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
283
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
284
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
285
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
286
|
+
ORDER BY a.attnum
|
287
|
+
|
288
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
289
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
290
|
+
^
|
291
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
292
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
293
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
294
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
295
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
296
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
297
|
+
ORDER BY a.attnum
|
298
|
+
|
299
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
300
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
301
|
+
^
|
302
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
303
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
304
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
305
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
306
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
307
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
308
|
+
ORDER BY a.attnum
|
309
|
+
|
310
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
311
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
312
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
313
|
+
^
|
314
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
315
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
316
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
317
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
318
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
319
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
320
|
+
ORDER BY a.attnum
|
321
|
+
|
322
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
323
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
324
|
+
^
|
325
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
326
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
327
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
328
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
329
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
330
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
331
|
+
ORDER BY a.attnum
|
332
|
+
|
333
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
334
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
335
|
+
^
|
336
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
337
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
338
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
339
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
340
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
341
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
342
|
+
ORDER BY a.attnum
|
343
|
+
|
344
|
+
PG::UndefinedTable: ERROR: relation "test_models" does not exist
|
345
|
+
LINE 5: WHERE a.attrelid = '"test_models"'::regclass
|
346
|
+
^
|
347
|
+
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
|
348
|
+
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
|
349
|
+
FROM pg_attribute a LEFT JOIN pg_attrdef d
|
350
|
+
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
|
351
|
+
WHERE a.attrelid = '"test_models"'::regclass
|
352
|
+
AND a.attnum > 0 AND NOT a.attisdropped
|
353
|
+
ORDER BY a.attnum
|
354
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|