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.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +22 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +10 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +468 -0
  8. data/Rakefile +7 -0
  9. data/config/database.yml +3 -0
  10. data/lib/pg_jbuilder.rb +108 -0
  11. data/lib/pg_jbuilder/railtie.rb +44 -0
  12. data/lib/pg_jbuilder/version.rb +3 -0
  13. data/pg_jbuilder.gemspec +30 -0
  14. data/queries/test1.sql +1 -0
  15. data/spec/dummy/README.rdoc +28 -0
  16. data/spec/dummy/Rakefile +6 -0
  17. data/spec/dummy/app/assets/images/.keep +0 -0
  18. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  21. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/mailers/.keep +0 -0
  24. data/spec/dummy/app/models/.keep +0 -0
  25. data/spec/dummy/app/models/concerns/.keep +0 -0
  26. data/spec/dummy/app/models/test_model.rb +2 -0
  27. data/spec/dummy/app/queries/test.sql +1 -0
  28. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +29 -0
  33. data/spec/dummy/config.ru +4 -0
  34. data/spec/dummy/config/application.rb +26 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/database.yml +26 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +41 -0
  39. data/spec/dummy/config/environments/production.rb +79 -0
  40. data/spec/dummy/config/environments/test.rb +42 -0
  41. data/spec/dummy/config/initializers/assets.rb +11 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  44. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/spec/dummy/config/initializers/inflections.rb +16 -0
  46. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  47. data/spec/dummy/config/initializers/session_store.rb +3 -0
  48. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/spec/dummy/config/locales/en.yml +23 -0
  50. data/spec/dummy/config/routes.rb +56 -0
  51. data/spec/dummy/config/secrets.yml +22 -0
  52. data/spec/dummy/db/development.sqlite3 +0 -0
  53. data/spec/dummy/db/migrate/20150210004140_add_test_model.rb +11 -0
  54. data/spec/dummy/db/schema.rb +25 -0
  55. data/spec/dummy/db/test.sqlite3 +0 -0
  56. data/spec/dummy/lib/assets/.keep +0 -0
  57. data/spec/dummy/log/.keep +0 -0
  58. data/spec/dummy/log/development.log +303 -0
  59. data/spec/dummy/log/test.log +354 -0
  60. data/spec/dummy/public/404.html +67 -0
  61. data/spec/dummy/public/422.html +67 -0
  62. data/spec/dummy/public/500.html +66 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/pg_jbuilder/pg_jbuilder_spec.rb +182 -0
  65. data/spec/pg_jbuilder/railtie_spec.rb +88 -0
  66. data/spec/queries/test2.sql +1 -0
  67. data/spec/spec_helper.rb +29 -0
  68. metadata +298 -0
@@ -0,0 +1,354 @@
1
+  (120.0ms) DROP DATABASE IF EXISTS "pg_json_builder_rails_test"
2
+  (297.8ms) CREATE DATABASE "pg_json_builder_rails_test" ENCODING = 'utf8'
3
+  (5.3ms) CREATE 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) 
4
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
5
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.7ms) SELECT version FROM "schema_migrations"
7
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150210004140')
8
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+  (117.7ms) DROP DATABASE IF EXISTS "pg_json_builder_rails_test"
10
+  (432.4ms) CREATE DATABASE "pg_json_builder_rails_test" ENCODING = 'utf8'
11
+  (8.4ms) CREATE 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) 
12
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
13
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
14
+  (0.5ms) SELECT version FROM "schema_migrations"
15
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150210004140')
16
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
30
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
37
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
42
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (0.1ms)
45
+ TypeError: wrong argument type nil (expected String):
46
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
47
+  (0.1ms)
48
+ TypeError: wrong argument type nil (expected String):
49
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+  (0.1ms)
51
+ TypeError: wrong argument type nil (expected String):
52
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
+  (0.1ms)
54
+ TypeError: wrong argument type nil (expected String):
55
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
57
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
58
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
59
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
60
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
63
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
64
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
66
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
69
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
70
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
71
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
72
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+  (5.9ms) CREATE 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) 
108
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
109
+  (0.1ms) select sqlite_version(*)
110
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
111
+  (0.2ms) SELECT version FROM "schema_migrations"
112
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150210004140')
113
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
115
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
116
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
118
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
119
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
120
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
121
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
122
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
123
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
124
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
127
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
128
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
129
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
130
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
132
+  (0.2ms) 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
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
143
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
144
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
145
+  (0.2ms) 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
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
156
+  (0.2ms) 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
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
167
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
168
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
169
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
171
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
172
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
173
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
174
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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>