mas-rad_core 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/adviser.rb +7 -5
- data/app/models/firm.rb +1 -1
- data/lib/mas/rad_core/version.rb +1 -1
- data/spec/dummy/log/development.log +240 -1322
- data/spec/dummy/log/test.log +114730 -36157
- data/spec/factories/adviser.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 749493d4e792a5e39b976d20dd79fc14fa03f659
|
4
|
+
data.tar.gz: ad8f82d6b33d48f539dd338bb8a6ea0e2476bb5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d2906483aa7734b58c44891c1e0ef67cb748db1876e79a20bf9a909bbe16c1b1e5912b2b3face7ff9c767cfae181f2359576f18544a0bd64cc73c6a2c84eca
|
7
|
+
data.tar.gz: ff8e6acfb9055d8d76fe31e0d025a079cdefc870141d5e61efeee20788348d50ba3e77c5b700b8bf3a2f89ca0b721818c63969735de4f96b385c3704a32ec50e
|
data/app/models/adviser.rb
CHANGED
@@ -31,7 +31,7 @@ class Adviser < ActiveRecord::Base
|
|
31
31
|
|
32
32
|
validate :match_reference_number
|
33
33
|
|
34
|
-
|
34
|
+
after_commit :geocode, if: :geocode?
|
35
35
|
|
36
36
|
def full_street_address
|
37
37
|
"#{postcode}, United Kingdom"
|
@@ -48,10 +48,12 @@ class Adviser < ActiveRecord::Base
|
|
48
48
|
|
49
49
|
private
|
50
50
|
|
51
|
-
def
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
def geocode?
|
52
|
+
valid? && postcode_changed?
|
53
|
+
end
|
54
|
+
|
55
|
+
def geocode
|
56
|
+
GeocodeAdviserJob.perform_later(self)
|
55
57
|
end
|
56
58
|
|
57
59
|
def upcase_postcode
|
data/app/models/firm.rb
CHANGED
@@ -87,7 +87,7 @@ class Firm < ActiveRecord::Base
|
|
87
87
|
validates :investment_sizes,
|
88
88
|
length: { minimum: 1 }
|
89
89
|
|
90
|
-
|
90
|
+
after_commit :geocode, if: :valid?
|
91
91
|
|
92
92
|
def full_street_address
|
93
93
|
[address_line_one, address_line_two, address_postcode, 'United Kingdom'].delete_if(&:blank?).join(', ')
|
data/lib/mas/rad_core/version.rb
CHANGED
@@ -1,1327 +1,245 @@
|
|
1
|
-
[1m[
|
2
|
-
[1m[
|
3
|
-
[1m[36m (
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
[0m
|
15
|
-
[1m[
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
[1m[36m (
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
[0m
|
39
|
-
[1m[
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
[1m[36m (
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
[0m
|
63
|
-
[1m[
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
[1m[36m (
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
[0m
|
87
|
-
[1m[
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
[1m[36m (
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
[0m
|
111
|
-
[1m[
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
[1m[36m (
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
[0m
|
135
|
-
[1m[
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
[1m[36m (
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
[0m
|
159
|
-
[1m[
|
160
|
-
|
161
|
-
|
162
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
163
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
164
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
165
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
166
|
-
WHERE c.contype = 'f'
|
167
|
-
AND t1.relname = 'firms_other_advice_methods'
|
168
|
-
AND t3.nspname = ANY (current_schemas(false))
|
169
|
-
ORDER BY c.conname
|
170
|
-
|
171
|
-
[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
|
172
|
-
FROM pg_constraint c
|
173
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
174
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
175
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
176
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
177
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
178
|
-
WHERE c.contype = 'f'
|
179
|
-
AND t1.relname = 'in_person_advice_methods'
|
180
|
-
AND t3.nspname = ANY (current_schemas(false))
|
181
|
-
ORDER BY c.conname
|
182
|
-
[0m
|
183
|
-
[1m[35m (1.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
|
184
|
-
FROM pg_constraint c
|
185
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
186
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
187
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
188
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
189
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
190
|
-
WHERE c.contype = 'f'
|
191
|
-
AND t1.relname = 'initial_advice_fee_structures'
|
192
|
-
AND t3.nspname = ANY (current_schemas(false))
|
193
|
-
ORDER BY c.conname
|
194
|
-
|
195
|
-
[1m[36m (1.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
|
196
|
-
FROM pg_constraint c
|
197
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
198
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
199
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
200
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
201
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
202
|
-
WHERE c.contype = 'f'
|
203
|
-
AND t1.relname = 'initial_meeting_durations'
|
204
|
-
AND t3.nspname = ANY (current_schemas(false))
|
205
|
-
ORDER BY c.conname
|
206
|
-
[0m
|
207
|
-
[1m[35m (1.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
|
208
|
-
FROM pg_constraint c
|
209
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
210
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
211
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
212
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
213
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
214
|
-
WHERE c.contype = 'f'
|
215
|
-
AND t1.relname = 'investment_sizes'
|
216
|
-
AND t3.nspname = ANY (current_schemas(false))
|
217
|
-
ORDER BY c.conname
|
218
|
-
|
219
|
-
[1m[36m (1.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
|
220
|
-
FROM pg_constraint c
|
221
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
222
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
223
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
224
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
225
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
226
|
-
WHERE c.contype = 'f'
|
227
|
-
AND t1.relname = 'lookup_advisers'
|
228
|
-
AND t3.nspname = ANY (current_schemas(false))
|
229
|
-
ORDER BY c.conname
|
230
|
-
[0m
|
231
|
-
[1m[35m (1.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
|
232
|
-
FROM pg_constraint c
|
233
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
234
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
235
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
236
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
237
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
238
|
-
WHERE c.contype = 'f'
|
239
|
-
AND t1.relname = 'lookup_firms'
|
240
|
-
AND t3.nspname = ANY (current_schemas(false))
|
241
|
-
ORDER BY c.conname
|
242
|
-
|
243
|
-
[1m[36m (1.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
|
244
|
-
FROM pg_constraint c
|
245
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
246
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
247
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
248
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
249
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
250
|
-
WHERE c.contype = 'f'
|
251
|
-
AND t1.relname = 'lookup_subsidiaries'
|
252
|
-
AND t3.nspname = ANY (current_schemas(false))
|
253
|
-
ORDER BY c.conname
|
254
|
-
[0m
|
255
|
-
[1m[35m (1.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
|
256
|
-
FROM pg_constraint c
|
257
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
258
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
259
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
260
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
261
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
262
|
-
WHERE c.contype = 'f'
|
263
|
-
AND t1.relname = 'ongoing_advice_fee_structures'
|
264
|
-
AND t3.nspname = ANY (current_schemas(false))
|
265
|
-
ORDER BY c.conname
|
266
|
-
|
267
|
-
[1m[36m (1.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
|
268
|
-
FROM pg_constraint c
|
269
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
270
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
271
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
272
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
273
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
274
|
-
WHERE c.contype = 'f'
|
275
|
-
AND t1.relname = 'other_advice_methods'
|
276
|
-
AND t3.nspname = ANY (current_schemas(false))
|
277
|
-
ORDER BY c.conname
|
278
|
-
[0m
|
279
|
-
[1m[35m (1.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
|
280
|
-
FROM pg_constraint c
|
281
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
282
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
283
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
284
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
285
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
286
|
-
WHERE c.contype = 'f'
|
287
|
-
AND t1.relname = 'principals'
|
288
|
-
AND t3.nspname = ANY (current_schemas(false))
|
289
|
-
ORDER BY c.conname
|
290
|
-
|
291
|
-
[1m[36m (1.3ms)[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
|
292
|
-
FROM pg_constraint c
|
293
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
294
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
295
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
296
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
297
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
298
|
-
WHERE c.contype = 'f'
|
299
|
-
AND t1.relname = 'professional_bodies'
|
300
|
-
AND t3.nspname = ANY (current_schemas(false))
|
301
|
-
ORDER BY c.conname
|
302
|
-
[0m
|
303
|
-
[1m[35m (1.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
|
304
|
-
FROM pg_constraint c
|
305
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
306
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
307
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
308
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
309
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
310
|
-
WHERE c.contype = 'f'
|
311
|
-
AND t1.relname = 'professional_standings'
|
312
|
-
AND t3.nspname = ANY (current_schemas(false))
|
313
|
-
ORDER BY c.conname
|
314
|
-
|
315
|
-
[1m[36m (1.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
|
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 = 'qualifications'
|
324
|
-
AND t3.nspname = ANY (current_schemas(false))
|
325
|
-
ORDER BY c.conname
|
326
|
-
[0m
|
327
|
-
[1m[36mActiveRecord::SchemaMigration Load (5.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
328
|
-
Migrating to AddLatitudeAndLongitudeToFirm (20150210113610)
|
329
|
-
[1m[35m (0.3ms)[0m BEGIN
|
330
|
-
[1m[36m (27.0ms)[0m [1mALTER TABLE "firms" ADD "latitude" float[0m
|
331
|
-
[1m[35m (0.2ms)[0m ALTER TABLE "firms" ADD "longitude" float
|
332
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150210113610"]]
|
1
|
+
[1m[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2
|
+
[1m[35m (25.6ms)[0m CREATE TABLE "accreditations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
3
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL) [0m
|
4
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" USING btree ("adviser_id", "accreditation_id")
|
5
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "firm_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "confirmed_disclaimer" boolean NOT NULL, "postcode" character varying DEFAULT '' NOT NULL, "travel_distance" integer DEFAULT 0 NOT NULL, "latitude" float, "longitude" float) [0m
|
6
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL)
|
7
|
+
[1m[36m (2.4ms)[0m [1mCREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" USING btree ("adviser_id", "professional_body_id")[0m
|
8
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL)
|
9
|
+
[1m[36m (3.0ms)[0m [1mCREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" USING btree ("adviser_id", "professional_standing_id")[0m
|
10
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL)
|
11
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" USING btree ("adviser_id", "qualification_id")[0m
|
12
|
+
[1m[35m (4.3ms)[0m CREATE TABLE "allowed_payment_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
13
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL) [0m
|
14
|
+
[1m[35m (4.0ms)[0m CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" USING btree ("firm_id", "allowed_payment_method_id")
|
15
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying NOT NULL, "email_address" character varying, "telephone_number" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "address_line_one" character varying, "address_line_two" character varying, "address_town" character varying, "address_county" character varying, "address_postcode" character varying, "free_initial_meeting" boolean, "initial_meeting_duration_id" integer, "minimum_fixed_fee" integer, "retirement_income_products_percent" integer, "pension_transfer_percent" integer, "long_term_care_percent" integer, "equity_release_percent" integer, "inheritance_tax_and_estate_planning_percent" integer, "wills_and_probate_percent" integer, "other_percent" integer, "parent_id" integer, "latitude" float, "longitude" float) [0m
|
16
|
+
[1m[35m (1.9ms)[0m CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" USING btree ("initial_meeting_duration_id")
|
17
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL) [0m
|
18
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" USING btree ("firm_id", "in_person_advice_method_id")
|
19
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL) [0m
|
20
|
+
[1m[35m (2.0ms)[0m CREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" USING btree ("firm_id", "initial_advice_fee_structure_id")
|
21
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL) [0m
|
22
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" USING btree ("firm_id", "investment_size_id")
|
23
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL) [0m
|
24
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" USING btree ("firm_id", "ongoing_advice_fee_structure_id")
|
25
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL) [0m
|
26
|
+
[1m[35m (3.9ms)[0m CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" USING btree ("firm_id", "other_advice_method_id")
|
27
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "in_person_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
28
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "initial_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
29
|
+
[1m[36m (6.3ms)[0m [1mCREATE TABLE "initial_meeting_durations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
30
|
+
[1m[35m (7.1ms)[0m CREATE TABLE "investment_sizes" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL, "cy_name" character varying)
|
31
|
+
[1m[36m (6.4ms)[0m [1mCREATE TABLE "lookup_advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
32
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "lookup_firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying DEFAULT '' NOT NULL, "created_at" timestamp, "updated_at" timestamp)
|
33
|
+
[1m[36m (2.1ms)[0m [1mCREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" USING btree ("fca_number")[0m
|
34
|
+
[1m[35m (4.6ms)[0m CREATE TABLE "lookup_subsidiaries" ("id" serial primary key, "fca_number" integer NOT NULL, "name" character varying DEFAULT '' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
35
|
+
[1m[36m (2.2ms)[0m [1mCREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" USING btree ("fca_number")[0m
|
36
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "ongoing_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
37
|
+
[1m[36m (5.1ms)[0m [1mCREATE TABLE "other_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL, "cy_name" character varying) [0m
|
38
|
+
[1m[35m (8.7ms)[0m CREATE TABLE "principals" ("id" serial primary key, "fca_number" integer, "token" character varying, "website_address" character varying, "first_name" character varying, "last_name" character varying, "job_title" character varying, "email_address" character varying, "telephone_number" character varying, "confirmed_disclaimer" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
|
39
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" USING btree ("fca_number")[0m
|
40
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" USING btree ("token")
|
41
|
+
[1m[36m (4.1ms)[0m [1mCREATE TABLE "professional_bodies" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
42
|
+
[1m[35m (6.2ms)[0m CREATE TABLE "professional_standings" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
43
|
+
[1m[36m (7.0ms)[0m [1mCREATE TABLE "qualifications" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
44
|
+
[1m[35m (12.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
45
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
46
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
47
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150305150719')[0m
|
48
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141211110031')
|
49
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141221140208')[0m
|
50
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141222150416')
|
51
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141230112136')[0m
|
52
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150106115732')
|
53
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150114144343')[0m
|
54
|
+
[1m[35m (1.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150114151447')
|
55
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150115130949')[0m
|
56
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119102735')
|
57
|
+
[1m[36m (1.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119111754')[0m
|
58
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119114218')
|
59
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119125208')[0m
|
60
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119152325')
|
61
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119152336')[0m
|
62
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150120133717')
|
63
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150120141928')[0m
|
64
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150120150738')
|
65
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121110757')[0m
|
66
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121123437')
|
67
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121134845')[0m
|
68
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121154458')
|
69
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121173015')[0m
|
70
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121181341')
|
71
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121183728')[0m
|
72
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150124124350')
|
73
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150125145457')[0m
|
74
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150125164156')
|
75
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150127084858')[0m
|
76
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150209144836')
|
77
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150210113610')[0m
|
78
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150222092417')
|
79
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150228095315')[0m
|
80
|
+
[1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
|
81
|
+
[1m[36m (6.0ms)[0m [1mCREATE TABLE "accreditations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
82
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL)
|
83
|
+
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" USING btree ("adviser_id", "accreditation_id")[0m
|
84
|
+
[1m[35m (5.6ms)[0m CREATE TABLE "advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "firm_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "confirmed_disclaimer" boolean NOT NULL, "postcode" character varying DEFAULT '' NOT NULL, "travel_distance" integer DEFAULT 0 NOT NULL, "latitude" float, "longitude" float)
|
85
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL) [0m
|
86
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" USING btree ("adviser_id", "professional_body_id")
|
87
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL) [0m
|
88
|
+
[1m[35m (2.5ms)[0m CREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" USING btree ("adviser_id", "professional_standing_id")
|
89
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL) [0m
|
90
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" USING btree ("adviser_id", "qualification_id")
|
91
|
+
[1m[36m (4.3ms)[0m [1mCREATE TABLE "allowed_payment_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
92
|
+
[1m[35m (1.6ms)[0m CREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL)
|
93
|
+
[1m[36m (2.5ms)[0m [1mCREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" USING btree ("firm_id", "allowed_payment_method_id")[0m
|
94
|
+
[1m[35m (7.3ms)[0m CREATE TABLE "firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying NOT NULL, "email_address" character varying, "telephone_number" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "address_line_one" character varying, "address_line_two" character varying, "address_town" character varying, "address_county" character varying, "address_postcode" character varying, "free_initial_meeting" boolean, "initial_meeting_duration_id" integer, "minimum_fixed_fee" integer, "retirement_income_products_percent" integer, "pension_transfer_percent" integer, "long_term_care_percent" integer, "equity_release_percent" integer, "inheritance_tax_and_estate_planning_percent" integer, "wills_and_probate_percent" integer, "other_percent" integer, "parent_id" integer, "latitude" float, "longitude" float)
|
95
|
+
[1m[36m (2.0ms)[0m [1mCREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" USING btree ("initial_meeting_duration_id")[0m
|
96
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL)
|
97
|
+
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" USING btree ("firm_id", "in_person_advice_method_id")[0m
|
98
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL)
|
99
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" USING btree ("firm_id", "initial_advice_fee_structure_id")[0m
|
100
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL)
|
101
|
+
[1m[36m (2.8ms)[0m [1mCREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" USING btree ("firm_id", "investment_size_id")[0m
|
102
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL)
|
103
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" USING btree ("firm_id", "ongoing_advice_fee_structure_id")[0m
|
104
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL)
|
105
|
+
[1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" USING btree ("firm_id", "other_advice_method_id")[0m
|
106
|
+
[1m[35m (4.9ms)[0m CREATE TABLE "in_person_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
107
|
+
[1m[36m (5.6ms)[0m [1mCREATE TABLE "initial_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
108
|
+
[1m[35m (5.1ms)[0m CREATE TABLE "initial_meeting_durations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
109
|
+
[1m[36m (4.2ms)[0m [1mCREATE TABLE "investment_sizes" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL, "cy_name" character varying) [0m
|
110
|
+
[1m[35m (10.0ms)[0m CREATE TABLE "lookup_advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
111
|
+
[1m[36m (4.8ms)[0m [1mCREATE TABLE "lookup_firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying DEFAULT '' NOT NULL, "created_at" timestamp, "updated_at" timestamp) [0m
|
112
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" USING btree ("fca_number")
|
113
|
+
[1m[36m (5.6ms)[0m [1mCREATE TABLE "lookup_subsidiaries" ("id" serial primary key, "fca_number" integer NOT NULL, "name" character varying DEFAULT '' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
114
|
+
[1m[35m (3.2ms)[0m CREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" USING btree ("fca_number")
|
115
|
+
[1m[36m (8.6ms)[0m [1mCREATE TABLE "ongoing_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
116
|
+
[1m[35m (4.5ms)[0m CREATE TABLE "other_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL, "cy_name" character varying)
|
117
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "principals" ("id" serial primary key, "fca_number" integer, "token" character varying, "website_address" character varying, "first_name" character varying, "last_name" character varying, "job_title" character varying, "email_address" character varying, "telephone_number" character varying, "confirmed_disclaimer" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp) [0m
|
118
|
+
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" USING btree ("fca_number")
|
119
|
+
[1m[36m (2.0ms)[0m [1mCREATE UNIQUE INDEX "index_principals_on_token" ON "principals" USING btree ("token")[0m
|
120
|
+
[1m[35m (5.5ms)[0m CREATE TABLE "professional_bodies" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
121
|
+
[1m[36m (4.7ms)[0m [1mCREATE TABLE "professional_standings" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
122
|
+
[1m[35m (8.6ms)[0m CREATE TABLE "qualifications" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
123
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
124
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
125
|
+
[1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
126
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150305150719')
|
127
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141211110031')[0m
|
128
|
+
[1m[35m (1.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141221140208')
|
129
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141222150416')[0m
|
130
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141230112136')
|
131
|
+
[1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150106115732')[0m
|
132
|
+
[1m[35m (1.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150114144343')
|
133
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150114151447')[0m
|
134
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150115130949')
|
135
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119102735')[0m
|
136
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119111754')
|
137
|
+
[1m[36m (1.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119114218')[0m
|
138
|
+
[1m[35m (1.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119125208')
|
139
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119152325')[0m
|
140
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119152336')
|
141
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150120133717')[0m
|
142
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150120141928')
|
143
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150120150738')[0m
|
144
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121110757')
|
145
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121123437')[0m
|
146
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121134845')
|
147
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121154458')[0m
|
148
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121173015')
|
149
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121181341')[0m
|
150
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121183728')
|
151
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150124124350')[0m
|
152
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150125145457')
|
153
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150125164156')[0m
|
154
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150127084858')
|
155
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150209144836')[0m
|
156
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150210113610')
|
157
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150222092417')[0m
|
158
|
+
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150228095315')
|
159
|
+
[1m[36mFirm Load (2.6ms)[0m [1mSELECT "firms".* FROM "firms" ORDER BY "firms"."id" ASC LIMIT 1[0m
|
160
|
+
[1m[35m (0.2ms)[0m BEGIN
|
161
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "in_person_advice_methods" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Sunt adipisci quibusdam dolorem dolorem vel pariatur."], ["created_at", "2015-04-06 15:20:57.469534"], ["updated_at", "2015-04-06 15:20:57.469534"]]
|
333
162
|
[1m[35m (1.4ms)[0m COMMIT
|
334
|
-
Migrating to AddLatitudeAndLongitudeToAdvisers (20150222092417)
|
335
163
|
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
336
|
-
[1m[
|
337
|
-
[1m[36m (
|
338
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222092417"]]
|
339
|
-
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
340
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
341
|
-
[1m[36m (1.9ms)[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
|
342
|
-
FROM pg_constraint c
|
343
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
344
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
345
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
346
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
347
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
348
|
-
WHERE c.contype = 'f'
|
349
|
-
AND t1.relname = 'accreditations'
|
350
|
-
AND t3.nspname = ANY (current_schemas(false))
|
351
|
-
ORDER BY c.conname
|
352
|
-
[0m
|
353
|
-
[1m[35m (1.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
|
354
|
-
FROM pg_constraint c
|
355
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
356
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
357
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
358
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
359
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
360
|
-
WHERE c.contype = 'f'
|
361
|
-
AND t1.relname = 'accreditations_advisers'
|
362
|
-
AND t3.nspname = ANY (current_schemas(false))
|
363
|
-
ORDER BY c.conname
|
364
|
-
|
365
|
-
[1m[36m (1.3ms)[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
|
366
|
-
FROM pg_constraint c
|
367
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
368
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
369
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
370
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
371
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
372
|
-
WHERE c.contype = 'f'
|
373
|
-
AND t1.relname = 'advisers'
|
374
|
-
AND t3.nspname = ANY (current_schemas(false))
|
375
|
-
ORDER BY c.conname
|
376
|
-
[0m
|
377
|
-
[1m[35m (1.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
|
378
|
-
FROM pg_constraint c
|
379
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
380
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
381
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
382
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
383
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
384
|
-
WHERE c.contype = 'f'
|
385
|
-
AND t1.relname = 'advisers_professional_bodies'
|
386
|
-
AND t3.nspname = ANY (current_schemas(false))
|
387
|
-
ORDER BY c.conname
|
388
|
-
|
389
|
-
[1m[36m (1.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
|
390
|
-
FROM pg_constraint c
|
391
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
392
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
393
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
394
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
395
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
396
|
-
WHERE c.contype = 'f'
|
397
|
-
AND t1.relname = 'advisers_professional_standings'
|
398
|
-
AND t3.nspname = ANY (current_schemas(false))
|
399
|
-
ORDER BY c.conname
|
400
|
-
[0m
|
401
|
-
[1m[35m (1.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
|
402
|
-
FROM pg_constraint c
|
403
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
404
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
405
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
406
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
407
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
408
|
-
WHERE c.contype = 'f'
|
409
|
-
AND t1.relname = 'advisers_qualifications'
|
410
|
-
AND t3.nspname = ANY (current_schemas(false))
|
411
|
-
ORDER BY c.conname
|
412
|
-
|
413
|
-
[1m[36m (1.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
|
414
|
-
FROM pg_constraint c
|
415
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
416
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
417
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
418
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
419
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
420
|
-
WHERE c.contype = 'f'
|
421
|
-
AND t1.relname = 'allowed_payment_methods'
|
422
|
-
AND t3.nspname = ANY (current_schemas(false))
|
423
|
-
ORDER BY c.conname
|
424
|
-
[0m
|
425
|
-
[1m[35m (1.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
|
426
|
-
FROM pg_constraint c
|
427
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
428
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
429
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
430
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
431
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
432
|
-
WHERE c.contype = 'f'
|
433
|
-
AND t1.relname = 'allowed_payment_methods_firms'
|
434
|
-
AND t3.nspname = ANY (current_schemas(false))
|
435
|
-
ORDER BY c.conname
|
436
|
-
|
437
|
-
[1m[36m (1.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
|
438
|
-
FROM pg_constraint c
|
439
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
440
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
441
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
442
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
443
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
444
|
-
WHERE c.contype = 'f'
|
445
|
-
AND t1.relname = 'firms'
|
446
|
-
AND t3.nspname = ANY (current_schemas(false))
|
447
|
-
ORDER BY c.conname
|
448
|
-
[0m
|
449
|
-
[1m[35m (1.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
|
450
|
-
FROM pg_constraint c
|
451
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
452
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
453
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
454
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
455
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
456
|
-
WHERE c.contype = 'f'
|
457
|
-
AND t1.relname = 'firms_in_person_advice_methods'
|
458
|
-
AND t3.nspname = ANY (current_schemas(false))
|
459
|
-
ORDER BY c.conname
|
460
|
-
|
461
|
-
[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
|
462
|
-
FROM pg_constraint c
|
463
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
464
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
465
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
466
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
467
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
468
|
-
WHERE c.contype = 'f'
|
469
|
-
AND t1.relname = 'firms_initial_advice_fee_structures'
|
470
|
-
AND t3.nspname = ANY (current_schemas(false))
|
471
|
-
ORDER BY c.conname
|
472
|
-
[0m
|
473
|
-
[1m[35m (1.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
|
474
|
-
FROM pg_constraint c
|
475
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
476
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
477
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
478
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
479
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
480
|
-
WHERE c.contype = 'f'
|
481
|
-
AND t1.relname = 'firms_investment_sizes'
|
482
|
-
AND t3.nspname = ANY (current_schemas(false))
|
483
|
-
ORDER BY c.conname
|
484
|
-
|
485
|
-
[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
|
486
|
-
FROM pg_constraint c
|
487
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
488
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
489
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
490
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
491
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
492
|
-
WHERE c.contype = 'f'
|
493
|
-
AND t1.relname = 'firms_ongoing_advice_fee_structures'
|
494
|
-
AND t3.nspname = ANY (current_schemas(false))
|
495
|
-
ORDER BY c.conname
|
496
|
-
[0m
|
497
|
-
[1m[35m (1.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
|
498
|
-
FROM pg_constraint c
|
499
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
500
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
501
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
502
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
503
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
504
|
-
WHERE c.contype = 'f'
|
505
|
-
AND t1.relname = 'firms_other_advice_methods'
|
506
|
-
AND t3.nspname = ANY (current_schemas(false))
|
507
|
-
ORDER BY c.conname
|
508
|
-
|
509
|
-
[1m[36m (1.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
|
510
|
-
FROM pg_constraint c
|
511
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
512
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
513
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
514
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
515
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
516
|
-
WHERE c.contype = 'f'
|
517
|
-
AND t1.relname = 'in_person_advice_methods'
|
518
|
-
AND t3.nspname = ANY (current_schemas(false))
|
519
|
-
ORDER BY c.conname
|
520
|
-
[0m
|
521
|
-
[1m[35m (1.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
|
522
|
-
FROM pg_constraint c
|
523
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
524
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
525
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
526
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
527
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
528
|
-
WHERE c.contype = 'f'
|
529
|
-
AND t1.relname = 'initial_advice_fee_structures'
|
530
|
-
AND t3.nspname = ANY (current_schemas(false))
|
531
|
-
ORDER BY c.conname
|
532
|
-
|
533
|
-
[1m[36m (1.3ms)[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
|
534
|
-
FROM pg_constraint c
|
535
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
536
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
537
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
538
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
539
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
540
|
-
WHERE c.contype = 'f'
|
541
|
-
AND t1.relname = 'initial_meeting_durations'
|
542
|
-
AND t3.nspname = ANY (current_schemas(false))
|
543
|
-
ORDER BY c.conname
|
544
|
-
[0m
|
545
|
-
[1m[35m (1.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
|
546
|
-
FROM pg_constraint c
|
547
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
548
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
549
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
550
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
551
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
552
|
-
WHERE c.contype = 'f'
|
553
|
-
AND t1.relname = 'investment_sizes'
|
554
|
-
AND t3.nspname = ANY (current_schemas(false))
|
555
|
-
ORDER BY c.conname
|
556
|
-
|
557
|
-
[1m[36m (2.3ms)[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
|
558
|
-
FROM pg_constraint c
|
559
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
560
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
561
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
562
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
563
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
564
|
-
WHERE c.contype = 'f'
|
565
|
-
AND t1.relname = 'lookup_advisers'
|
566
|
-
AND t3.nspname = ANY (current_schemas(false))
|
567
|
-
ORDER BY c.conname
|
568
|
-
[0m
|
569
|
-
[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
|
570
|
-
FROM pg_constraint c
|
571
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
572
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
573
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
574
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
575
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
576
|
-
WHERE c.contype = 'f'
|
577
|
-
AND t1.relname = 'lookup_firms'
|
578
|
-
AND t3.nspname = ANY (current_schemas(false))
|
579
|
-
ORDER BY c.conname
|
580
|
-
|
581
|
-
[1m[36m (1.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
|
582
|
-
FROM pg_constraint c
|
583
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
584
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
585
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
586
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
587
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
588
|
-
WHERE c.contype = 'f'
|
589
|
-
AND t1.relname = 'lookup_subsidiaries'
|
590
|
-
AND t3.nspname = ANY (current_schemas(false))
|
591
|
-
ORDER BY c.conname
|
592
|
-
[0m
|
593
|
-
[1m[35m (1.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
|
594
|
-
FROM pg_constraint c
|
595
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
596
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
597
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
598
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
599
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
600
|
-
WHERE c.contype = 'f'
|
601
|
-
AND t1.relname = 'ongoing_advice_fee_structures'
|
602
|
-
AND t3.nspname = ANY (current_schemas(false))
|
603
|
-
ORDER BY c.conname
|
604
|
-
|
605
|
-
[1m[36m (1.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
|
606
|
-
FROM pg_constraint c
|
607
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
608
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
609
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
610
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
611
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
612
|
-
WHERE c.contype = 'f'
|
613
|
-
AND t1.relname = 'other_advice_methods'
|
614
|
-
AND t3.nspname = ANY (current_schemas(false))
|
615
|
-
ORDER BY c.conname
|
616
|
-
[0m
|
617
|
-
[1m[35m (1.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
|
618
|
-
FROM pg_constraint c
|
619
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
620
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
621
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
622
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
623
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
624
|
-
WHERE c.contype = 'f'
|
625
|
-
AND t1.relname = 'principals'
|
626
|
-
AND t3.nspname = ANY (current_schemas(false))
|
627
|
-
ORDER BY c.conname
|
628
|
-
|
629
|
-
[1m[36m (1.3ms)[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
|
630
|
-
FROM pg_constraint c
|
631
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
632
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
633
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
634
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
635
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
636
|
-
WHERE c.contype = 'f'
|
637
|
-
AND t1.relname = 'professional_bodies'
|
638
|
-
AND t3.nspname = ANY (current_schemas(false))
|
639
|
-
ORDER BY c.conname
|
640
|
-
[0m
|
641
|
-
[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
|
642
|
-
FROM pg_constraint c
|
643
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
644
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
645
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
646
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
647
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
648
|
-
WHERE c.contype = 'f'
|
649
|
-
AND t1.relname = 'professional_standings'
|
650
|
-
AND t3.nspname = ANY (current_schemas(false))
|
651
|
-
ORDER BY c.conname
|
652
|
-
|
653
|
-
[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
|
654
|
-
FROM pg_constraint c
|
655
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
656
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
657
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
658
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
659
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
660
|
-
WHERE c.contype = 'f'
|
661
|
-
AND t1.relname = 'qualifications'
|
662
|
-
AND t3.nspname = ANY (current_schemas(false))
|
663
|
-
ORDER BY c.conname
|
664
|
-
[0m
|
665
|
-
[1m[36mActiveRecord::SchemaMigration Load (9.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
666
|
-
Migrating to AddCyNameToOtherAdviceMethods (20150228095315)
|
164
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "other_advice_methods" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Aut aut voluptate eligendi quasi sunt ad."], ["cy_name", "Quod est distinctio quos dolor nulla rem molestiae autem."], ["created_at", "2015-04-06 15:20:57.507175"], ["updated_at", "2015-04-06 15:20:57.507175"]]
|
165
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
667
166
|
[1m[35m (0.2ms)[0m BEGIN
|
668
|
-
[1m[
|
669
|
-
[1m[
|
167
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "other_advice_methods" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Sit et maxime cum aliquam."], ["cy_name", "Sapiente optio natus odio fuga est non suscipit est."], ["created_at", "2015-04-06 15:20:57.513688"], ["updated_at", "2015-04-06 15:20:57.513688"]]
|
168
|
+
[1m[35m (1.3ms)[0m COMMIT
|
169
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
170
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "initial_meeting_durations" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "15 mins"], ["created_at", "2015-04-06 15:20:57.534102"], ["updated_at", "2015-04-06 15:20:57.534102"]]
|
670
171
|
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
671
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
672
|
-
[1m[36m (1.9ms)[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
|
673
|
-
FROM pg_constraint c
|
674
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
675
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
676
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
677
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
678
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
679
|
-
WHERE c.contype = 'f'
|
680
|
-
AND t1.relname = 'accreditations'
|
681
|
-
AND t3.nspname = ANY (current_schemas(false))
|
682
|
-
ORDER BY c.conname
|
683
|
-
[0m
|
684
|
-
[1m[35m (1.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
|
685
|
-
FROM pg_constraint c
|
686
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
687
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
688
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
689
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
690
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
691
|
-
WHERE c.contype = 'f'
|
692
|
-
AND t1.relname = 'accreditations_advisers'
|
693
|
-
AND t3.nspname = ANY (current_schemas(false))
|
694
|
-
ORDER BY c.conname
|
695
|
-
|
696
|
-
[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
|
697
|
-
FROM pg_constraint c
|
698
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
699
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
700
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
701
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
702
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
703
|
-
WHERE c.contype = 'f'
|
704
|
-
AND t1.relname = 'advisers'
|
705
|
-
AND t3.nspname = ANY (current_schemas(false))
|
706
|
-
ORDER BY c.conname
|
707
|
-
[0m
|
708
|
-
[1m[35m (1.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
|
709
|
-
FROM pg_constraint c
|
710
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
711
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
712
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
713
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
714
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
715
|
-
WHERE c.contype = 'f'
|
716
|
-
AND t1.relname = 'advisers_professional_bodies'
|
717
|
-
AND t3.nspname = ANY (current_schemas(false))
|
718
|
-
ORDER BY c.conname
|
719
|
-
|
720
|
-
[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
|
721
|
-
FROM pg_constraint c
|
722
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
723
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
724
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
725
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
726
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
727
|
-
WHERE c.contype = 'f'
|
728
|
-
AND t1.relname = 'advisers_professional_standings'
|
729
|
-
AND t3.nspname = ANY (current_schemas(false))
|
730
|
-
ORDER BY c.conname
|
731
|
-
[0m
|
732
|
-
[1m[35m (1.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
|
733
|
-
FROM pg_constraint c
|
734
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
735
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
736
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
737
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
738
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
739
|
-
WHERE c.contype = 'f'
|
740
|
-
AND t1.relname = 'advisers_qualifications'
|
741
|
-
AND t3.nspname = ANY (current_schemas(false))
|
742
|
-
ORDER BY c.conname
|
743
|
-
|
744
|
-
[1m[36m (1.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
|
745
|
-
FROM pg_constraint c
|
746
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
747
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
748
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
749
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
750
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
751
|
-
WHERE c.contype = 'f'
|
752
|
-
AND t1.relname = 'allowed_payment_methods'
|
753
|
-
AND t3.nspname = ANY (current_schemas(false))
|
754
|
-
ORDER BY c.conname
|
755
|
-
[0m
|
756
|
-
[1m[35m (1.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
|
757
|
-
FROM pg_constraint c
|
758
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
759
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
760
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
761
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
762
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
763
|
-
WHERE c.contype = 'f'
|
764
|
-
AND t1.relname = 'allowed_payment_methods_firms'
|
765
|
-
AND t3.nspname = ANY (current_schemas(false))
|
766
|
-
ORDER BY c.conname
|
767
|
-
|
768
|
-
[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
|
769
|
-
FROM pg_constraint c
|
770
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
771
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
772
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
773
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
774
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
775
|
-
WHERE c.contype = 'f'
|
776
|
-
AND t1.relname = 'firms'
|
777
|
-
AND t3.nspname = ANY (current_schemas(false))
|
778
|
-
ORDER BY c.conname
|
779
|
-
[0m
|
780
|
-
[1m[35m (1.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
|
781
|
-
FROM pg_constraint c
|
782
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
783
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
784
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
785
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
786
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
787
|
-
WHERE c.contype = 'f'
|
788
|
-
AND t1.relname = 'firms_in_person_advice_methods'
|
789
|
-
AND t3.nspname = ANY (current_schemas(false))
|
790
|
-
ORDER BY c.conname
|
791
|
-
|
792
|
-
[1m[36m (1.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
|
793
|
-
FROM pg_constraint c
|
794
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
795
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
796
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
797
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
798
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
799
|
-
WHERE c.contype = 'f'
|
800
|
-
AND t1.relname = 'firms_initial_advice_fee_structures'
|
801
|
-
AND t3.nspname = ANY (current_schemas(false))
|
802
|
-
ORDER BY c.conname
|
803
|
-
[0m
|
804
|
-
[1m[35m (1.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
|
805
|
-
FROM pg_constraint c
|
806
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
807
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
808
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
809
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
810
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
811
|
-
WHERE c.contype = 'f'
|
812
|
-
AND t1.relname = 'firms_investment_sizes'
|
813
|
-
AND t3.nspname = ANY (current_schemas(false))
|
814
|
-
ORDER BY c.conname
|
815
|
-
|
816
|
-
[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
|
817
|
-
FROM pg_constraint c
|
818
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
819
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
820
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
821
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
822
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
823
|
-
WHERE c.contype = 'f'
|
824
|
-
AND t1.relname = 'firms_ongoing_advice_fee_structures'
|
825
|
-
AND t3.nspname = ANY (current_schemas(false))
|
826
|
-
ORDER BY c.conname
|
827
|
-
[0m
|
828
|
-
[1m[35m (1.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
|
829
|
-
FROM pg_constraint c
|
830
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
831
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
832
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
833
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
834
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
835
|
-
WHERE c.contype = 'f'
|
836
|
-
AND t1.relname = 'firms_other_advice_methods'
|
837
|
-
AND t3.nspname = ANY (current_schemas(false))
|
838
|
-
ORDER BY c.conname
|
839
|
-
|
840
|
-
[1m[36m (1.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
|
841
|
-
FROM pg_constraint c
|
842
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
843
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
844
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
845
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
846
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
847
|
-
WHERE c.contype = 'f'
|
848
|
-
AND t1.relname = 'in_person_advice_methods'
|
849
|
-
AND t3.nspname = ANY (current_schemas(false))
|
850
|
-
ORDER BY c.conname
|
851
|
-
[0m
|
852
|
-
[1m[35m (1.8ms)[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
|
853
|
-
FROM pg_constraint c
|
854
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
855
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
856
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
857
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
858
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
859
|
-
WHERE c.contype = 'f'
|
860
|
-
AND t1.relname = 'initial_advice_fee_structures'
|
861
|
-
AND t3.nspname = ANY (current_schemas(false))
|
862
|
-
ORDER BY c.conname
|
863
|
-
|
864
|
-
[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
|
865
|
-
FROM pg_constraint c
|
866
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
867
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
868
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
869
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
870
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
871
|
-
WHERE c.contype = 'f'
|
872
|
-
AND t1.relname = 'initial_meeting_durations'
|
873
|
-
AND t3.nspname = ANY (current_schemas(false))
|
874
|
-
ORDER BY c.conname
|
875
|
-
[0m
|
876
|
-
[1m[35m (1.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
|
877
|
-
FROM pg_constraint c
|
878
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
879
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
880
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
881
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
882
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
883
|
-
WHERE c.contype = 'f'
|
884
|
-
AND t1.relname = 'investment_sizes'
|
885
|
-
AND t3.nspname = ANY (current_schemas(false))
|
886
|
-
ORDER BY c.conname
|
887
|
-
|
888
|
-
[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
|
889
|
-
FROM pg_constraint c
|
890
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
891
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
892
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
893
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
894
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
895
|
-
WHERE c.contype = 'f'
|
896
|
-
AND t1.relname = 'lookup_advisers'
|
897
|
-
AND t3.nspname = ANY (current_schemas(false))
|
898
|
-
ORDER BY c.conname
|
899
|
-
[0m
|
900
|
-
[1m[35m (1.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
|
901
|
-
FROM pg_constraint c
|
902
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
903
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
904
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
905
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
906
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
907
|
-
WHERE c.contype = 'f'
|
908
|
-
AND t1.relname = 'lookup_firms'
|
909
|
-
AND t3.nspname = ANY (current_schemas(false))
|
910
|
-
ORDER BY c.conname
|
911
|
-
|
912
|
-
[1m[36m (1.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
|
913
|
-
FROM pg_constraint c
|
914
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
915
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
916
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
917
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
918
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
919
|
-
WHERE c.contype = 'f'
|
920
|
-
AND t1.relname = 'lookup_subsidiaries'
|
921
|
-
AND t3.nspname = ANY (current_schemas(false))
|
922
|
-
ORDER BY c.conname
|
923
|
-
[0m
|
924
|
-
[1m[35m (1.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
|
925
|
-
FROM pg_constraint c
|
926
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
927
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
928
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
929
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
930
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
931
|
-
WHERE c.contype = 'f'
|
932
|
-
AND t1.relname = 'ongoing_advice_fee_structures'
|
933
|
-
AND t3.nspname = ANY (current_schemas(false))
|
934
|
-
ORDER BY c.conname
|
935
|
-
|
936
|
-
[1m[36m (1.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
|
937
|
-
FROM pg_constraint c
|
938
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
939
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
940
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
941
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
942
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
943
|
-
WHERE c.contype = 'f'
|
944
|
-
AND t1.relname = 'other_advice_methods'
|
945
|
-
AND t3.nspname = ANY (current_schemas(false))
|
946
|
-
ORDER BY c.conname
|
947
|
-
[0m
|
948
|
-
[1m[35m (1.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
|
949
|
-
FROM pg_constraint c
|
950
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
951
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
952
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
953
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
954
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
955
|
-
WHERE c.contype = 'f'
|
956
|
-
AND t1.relname = 'principals'
|
957
|
-
AND t3.nspname = ANY (current_schemas(false))
|
958
|
-
ORDER BY c.conname
|
959
|
-
|
960
|
-
[1m[36m (1.3ms)[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
|
961
|
-
FROM pg_constraint c
|
962
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
963
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
964
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
965
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
966
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
967
|
-
WHERE c.contype = 'f'
|
968
|
-
AND t1.relname = 'professional_bodies'
|
969
|
-
AND t3.nspname = ANY (current_schemas(false))
|
970
|
-
ORDER BY c.conname
|
971
|
-
[0m
|
972
|
-
[1m[35m (1.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
|
973
|
-
FROM pg_constraint c
|
974
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
975
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
976
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
977
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
978
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
979
|
-
WHERE c.contype = 'f'
|
980
|
-
AND t1.relname = 'professional_standings'
|
981
|
-
AND t3.nspname = ANY (current_schemas(false))
|
982
|
-
ORDER BY c.conname
|
983
|
-
|
984
|
-
[1m[36m (1.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
|
985
|
-
FROM pg_constraint c
|
986
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
987
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
988
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
989
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
990
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
991
|
-
WHERE c.contype = 'f'
|
992
|
-
AND t1.relname = 'qualifications'
|
993
|
-
AND t3.nspname = ANY (current_schemas(false))
|
994
|
-
ORDER BY c.conname
|
995
|
-
[0m
|
996
|
-
[1m[36mActiveRecord::SchemaMigration Load (11.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
997
|
-
Migrating to AddCyNameToInvestmentSize (20150305150719)
|
998
172
|
[1m[35m (0.2ms)[0m BEGIN
|
999
|
-
[1m[
|
1000
|
-
[1m[
|
1001
|
-
[1m[
|
1002
|
-
[1m[
|
1003
|
-
[1m[
|
1004
|
-
[1m[35m (
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
[1m[
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
[0m
|
1028
|
-
[1m[35m (
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
[1m[
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
FROM
|
1054
|
-
JOIN
|
1055
|
-
JOIN
|
1056
|
-
JOIN
|
1057
|
-
JOIN
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
FROM
|
1066
|
-
JOIN
|
1067
|
-
JOIN
|
1068
|
-
JOIN
|
1069
|
-
JOIN
|
1070
|
-
|
1071
|
-
|
1072
|
-
AND t1.relname = 'advisers_qualifications'
|
1073
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1074
|
-
ORDER BY c.conname
|
1075
|
-
[0m
|
1076
|
-
[1m[35m (1.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
|
1077
|
-
FROM pg_constraint c
|
1078
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1079
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1080
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1081
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1082
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1083
|
-
WHERE c.contype = 'f'
|
1084
|
-
AND t1.relname = 'allowed_payment_methods'
|
1085
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1086
|
-
ORDER BY c.conname
|
1087
|
-
|
1088
|
-
[1m[36m (1.3ms)[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
|
1089
|
-
FROM pg_constraint c
|
1090
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1091
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1092
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1093
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1094
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1095
|
-
WHERE c.contype = 'f'
|
1096
|
-
AND t1.relname = 'allowed_payment_methods_firms'
|
1097
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1098
|
-
ORDER BY c.conname
|
1099
|
-
[0m
|
1100
|
-
[1m[35m (1.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
|
1101
|
-
FROM pg_constraint c
|
1102
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1103
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1104
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1105
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1106
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1107
|
-
WHERE c.contype = 'f'
|
1108
|
-
AND t1.relname = 'firms'
|
1109
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1110
|
-
ORDER BY c.conname
|
1111
|
-
|
1112
|
-
[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
|
1113
|
-
FROM pg_constraint c
|
1114
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1115
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1116
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1117
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1118
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1119
|
-
WHERE c.contype = 'f'
|
1120
|
-
AND t1.relname = 'firms_in_person_advice_methods'
|
1121
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1122
|
-
ORDER BY c.conname
|
1123
|
-
[0m
|
1124
|
-
[1m[35m (1.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
|
1125
|
-
FROM pg_constraint c
|
1126
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1127
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1128
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1129
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1130
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1131
|
-
WHERE c.contype = 'f'
|
1132
|
-
AND t1.relname = 'firms_initial_advice_fee_structures'
|
1133
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1134
|
-
ORDER BY c.conname
|
1135
|
-
|
1136
|
-
[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
|
1137
|
-
FROM pg_constraint c
|
1138
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1139
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1140
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1141
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1142
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1143
|
-
WHERE c.contype = 'f'
|
1144
|
-
AND t1.relname = 'firms_investment_sizes'
|
1145
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1146
|
-
ORDER BY c.conname
|
1147
|
-
[0m
|
1148
|
-
[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
|
1149
|
-
FROM pg_constraint c
|
1150
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1151
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1152
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1153
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1154
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1155
|
-
WHERE c.contype = 'f'
|
1156
|
-
AND t1.relname = 'firms_ongoing_advice_fee_structures'
|
1157
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1158
|
-
ORDER BY c.conname
|
1159
|
-
|
1160
|
-
[1m[36m (1.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
|
1161
|
-
FROM pg_constraint c
|
1162
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1163
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1164
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1165
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1166
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1167
|
-
WHERE c.contype = 'f'
|
1168
|
-
AND t1.relname = 'firms_other_advice_methods'
|
1169
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1170
|
-
ORDER BY c.conname
|
1171
|
-
[0m
|
1172
|
-
[1m[35m (1.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
|
1173
|
-
FROM pg_constraint c
|
1174
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1175
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1176
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1177
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1178
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1179
|
-
WHERE c.contype = 'f'
|
1180
|
-
AND t1.relname = 'in_person_advice_methods'
|
1181
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1182
|
-
ORDER BY c.conname
|
1183
|
-
|
1184
|
-
[1m[36m (1.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
|
1185
|
-
FROM pg_constraint c
|
1186
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1187
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1188
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1189
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1190
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1191
|
-
WHERE c.contype = 'f'
|
1192
|
-
AND t1.relname = 'initial_advice_fee_structures'
|
1193
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1194
|
-
ORDER BY c.conname
|
1195
|
-
[0m
|
1196
|
-
[1m[35m (1.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
|
1197
|
-
FROM pg_constraint c
|
1198
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1199
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1200
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1201
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1202
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1203
|
-
WHERE c.contype = 'f'
|
1204
|
-
AND t1.relname = 'initial_meeting_durations'
|
1205
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1206
|
-
ORDER BY c.conname
|
1207
|
-
|
1208
|
-
[1m[36m (1.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
|
1209
|
-
FROM pg_constraint c
|
1210
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1211
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1212
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1213
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1214
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1215
|
-
WHERE c.contype = 'f'
|
1216
|
-
AND t1.relname = 'investment_sizes'
|
1217
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1218
|
-
ORDER BY c.conname
|
1219
|
-
[0m
|
1220
|
-
[1m[35m (1.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
|
1221
|
-
FROM pg_constraint c
|
1222
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1223
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1224
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1225
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1226
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1227
|
-
WHERE c.contype = 'f'
|
1228
|
-
AND t1.relname = 'lookup_advisers'
|
1229
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1230
|
-
ORDER BY c.conname
|
1231
|
-
|
1232
|
-
[1m[36m (1.3ms)[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
|
1233
|
-
FROM pg_constraint c
|
1234
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1235
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1236
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1237
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1238
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1239
|
-
WHERE c.contype = 'f'
|
1240
|
-
AND t1.relname = 'lookup_firms'
|
1241
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1242
|
-
ORDER BY c.conname
|
1243
|
-
[0m
|
1244
|
-
[1m[35m (1.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
|
1245
|
-
FROM pg_constraint c
|
1246
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1247
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1248
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1249
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1250
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1251
|
-
WHERE c.contype = 'f'
|
1252
|
-
AND t1.relname = 'lookup_subsidiaries'
|
1253
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1254
|
-
ORDER BY c.conname
|
1255
|
-
|
1256
|
-
[1m[36m (1.3ms)[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
|
1257
|
-
FROM pg_constraint c
|
1258
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1259
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1260
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1261
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1262
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1263
|
-
WHERE c.contype = 'f'
|
1264
|
-
AND t1.relname = 'ongoing_advice_fee_structures'
|
1265
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1266
|
-
ORDER BY c.conname
|
1267
|
-
[0m
|
1268
|
-
[1m[35m (1.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
|
1269
|
-
FROM pg_constraint c
|
1270
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1271
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1272
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1273
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1274
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1275
|
-
WHERE c.contype = 'f'
|
1276
|
-
AND t1.relname = 'other_advice_methods'
|
1277
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1278
|
-
ORDER BY c.conname
|
1279
|
-
|
1280
|
-
[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
|
1281
|
-
FROM pg_constraint c
|
1282
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1283
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1284
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1285
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1286
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1287
|
-
WHERE c.contype = 'f'
|
1288
|
-
AND t1.relname = 'principals'
|
1289
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1290
|
-
ORDER BY c.conname
|
1291
|
-
[0m
|
1292
|
-
[1m[35m (1.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
|
1293
|
-
FROM pg_constraint c
|
1294
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1295
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1296
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1297
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1298
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1299
|
-
WHERE c.contype = 'f'
|
1300
|
-
AND t1.relname = 'professional_bodies'
|
1301
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1302
|
-
ORDER BY c.conname
|
1303
|
-
|
1304
|
-
[1m[36m (1.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
|
1305
|
-
FROM pg_constraint c
|
1306
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1307
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1308
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1309
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1310
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1311
|
-
WHERE c.contype = 'f'
|
1312
|
-
AND t1.relname = 'professional_standings'
|
1313
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1314
|
-
ORDER BY c.conname
|
1315
|
-
[0m
|
1316
|
-
[1m[35m (1.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
|
1317
|
-
FROM pg_constraint c
|
1318
|
-
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1319
|
-
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1320
|
-
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1321
|
-
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1322
|
-
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1323
|
-
WHERE c.contype = 'f'
|
1324
|
-
AND t1.relname = 'qualifications'
|
1325
|
-
AND t3.nspname = ANY (current_schemas(false))
|
1326
|
-
ORDER BY c.conname
|
1327
|
-
|
173
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "initial_advice_fee_structures" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Hic modi quos omnis."], ["created_at", "2015-04-06 15:20:57.547996"], ["updated_at", "2015-04-06 15:20:57.547996"]]
|
174
|
+
[1m[35m (1.4ms)[0m COMMIT
|
175
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
176
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "initial_advice_fee_structures" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Praesentium rerum voluptas enim molestias accusamus."], ["created_at", "2015-04-06 15:20:57.556584"], ["updated_at", "2015-04-06 15:20:57.556584"]]
|
177
|
+
[1m[36m (1.5ms)[0m [1mCOMMIT[0m
|
178
|
+
[1m[35m (0.2ms)[0m BEGIN
|
179
|
+
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO "ongoing_advice_fee_structures" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Sunt at laudantium et recusandae a mollitia tempora."], ["created_at", "2015-04-06 15:20:57.577227"], ["updated_at", "2015-04-06 15:20:57.577227"]]
|
180
|
+
[1m[35m (1.4ms)[0m COMMIT
|
181
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
182
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "allowed_payment_methods" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Et modi magnam vel quia temporibus officiis non."], ["created_at", "2015-04-06 15:20:57.598306"], ["updated_at", "2015-04-06 15:20:57.598306"]]
|
183
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
184
|
+
[1m[35m (0.4ms)[0m BEGIN
|
185
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "allowed_payment_methods" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["name", "Nisi et officia id magnam."], ["created_at", "2015-04-06 15:20:57.605766"], ["updated_at", "2015-04-06 15:20:57.605766"]]
|
186
|
+
[1m[35m (1.3ms)[0m COMMIT
|
187
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
188
|
+
[1m[35mSQL (1.7ms)[0m INSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Sit assumenda commodi et qui sunt quidem consectetur."], ["cy_name", "Autem est recusandae doloribus delectus dolorem fugit rerum."], ["created_at", "2015-04-06 15:20:57.626453"], ["updated_at", "2015-04-06 15:20:57.626453"]]
|
189
|
+
[1m[36m (1.3ms)[0m [1mCOMMIT[0m
|
190
|
+
[1m[35m (0.2ms)[0m BEGIN
|
191
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Fuga voluptatem cupiditate laudantium sed enim."], ["cy_name", "Nemo omnis eum rem optio autem occaecati."], ["created_at", "2015-04-06 15:20:57.632428"], ["updated_at", "2015-04-06 15:20:57.632428"]]
|
192
|
+
[1m[35m (1.2ms)[0m COMMIT
|
193
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
194
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Doloribus sequi est velit tempore."], ["cy_name", "Eos nihil et consequatur voluptatem eius."], ["created_at", "2015-04-06 15:20:57.636702"], ["updated_at", "2015-04-06 15:20:57.636702"]]
|
195
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
196
|
+
[1m[35m (0.2ms)[0m BEGIN
|
197
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Laudantium tempore pariatur totam."], ["cy_name", "Doloribus accusamus enim omnis dignissimos nostrum."], ["created_at", "2015-04-06 15:20:57.640790"], ["updated_at", "2015-04-06 15:20:57.640790"]]
|
198
|
+
[1m[35m (1.2ms)[0m COMMIT
|
199
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
200
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Odio omnis ut et cum enim."], ["cy_name", "Et pariatur voluptatem commodi repudiandae neque."], ["created_at", "2015-04-06 15:20:57.644933"], ["updated_at", "2015-04-06 15:20:57.644933"]]
|
201
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
202
|
+
[1m[35m (0.2ms)[0m BEGIN
|
203
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["name", "Id et quasi a quia quia suscipit."], ["cy_name", "Est velit sed error."], ["created_at", "2015-04-06 15:20:57.648821"], ["updated_at", "2015-04-06 15:20:57.648821"]]
|
204
|
+
[1m[35m (1.4ms)[0m COMMIT
|
205
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
206
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "firms" ("fca_number", "registered_name", "email_address", "telephone_number", "address_line_one", "address_line_two", "address_town", "address_county", "address_postcode", "free_initial_meeting", "initial_meeting_duration_id", "retirement_income_products_percent", "pension_transfer_percent", "long_term_care_percent", "equity_release_percent", "inheritance_tax_and_estate_planning_percent", "wills_and_probate_percent", "other_percent", "latitude", "longitude", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["fca_number", 100000], ["registered_name", "Financial Advice 1 Ltd."], ["email_address", "lucinda@boyle.info"], ["telephone_number", "71575 591 637"], ["address_line_one", "4797 Toni Road"], ["address_line_two", "Suite 626"], ["address_town", "Maddisonmouth"], ["address_county", "West Virginia"], ["address_postcode", "EC1N 2TD"], ["free_initial_meeting", "t"], ["initial_meeting_duration_id", 1], ["retirement_income_products_percent", 15], ["pension_transfer_percent", 15], ["long_term_care_percent", 15], ["equity_release_percent", 15], ["inheritance_tax_and_estate_planning_percent", 15], ["wills_and_probate_percent", 15], ["other_percent", 10], ["latitude", 7.638045], ["longitude", -124.024881], ["created_at", "2015-04-06 15:20:57.668748"], ["updated_at", "2015-04-06 15:20:57.668748"]]
|
207
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "firms_in_person_advice_methods" ("in_person_advice_method_id", "firm_id") VALUES ($1, $2)[0m [["in_person_advice_method_id", 1], ["firm_id", 1]]
|
208
|
+
[1m[35mSQL (1.7ms)[0m INSERT INTO "firms_other_advice_methods" ("other_advice_method_id", "firm_id") VALUES ($1, $2) [["other_advice_method_id", 1], ["firm_id", 1]]
|
209
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "firms_other_advice_methods" ("other_advice_method_id", "firm_id") VALUES ($1, $2)[0m [["other_advice_method_id", 2], ["firm_id", 1]]
|
210
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "firms_initial_advice_fee_structures" ("initial_advice_fee_structure_id", "firm_id") VALUES ($1, $2) [["initial_advice_fee_structure_id", 1], ["firm_id", 1]]
|
211
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "firms_initial_advice_fee_structures" ("initial_advice_fee_structure_id", "firm_id") VALUES ($1, $2)[0m [["initial_advice_fee_structure_id", 2], ["firm_id", 1]]
|
212
|
+
[1m[35mSQL (2.0ms)[0m INSERT INTO "firms_ongoing_advice_fee_structures" ("ongoing_advice_fee_structure_id", "firm_id") VALUES ($1, $2) [["ongoing_advice_fee_structure_id", 1], ["firm_id", 1]]
|
213
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "allowed_payment_methods_firms" ("allowed_payment_method_id", "firm_id") VALUES ($1, $2)[0m [["allowed_payment_method_id", 1], ["firm_id", 1]]
|
214
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "allowed_payment_methods_firms" ("allowed_payment_method_id", "firm_id") VALUES ($1, $2) [["allowed_payment_method_id", 2], ["firm_id", 1]]
|
215
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2)[0m [["investment_size_id", 1], ["firm_id", 1]]
|
216
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 2], ["firm_id", 1]]
|
217
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2)[0m [["investment_size_id", 3], ["firm_id", 1]]
|
218
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 4], ["firm_id", 1]]
|
219
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2)[0m [["investment_size_id", 5], ["firm_id", 1]]
|
220
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 6], ["firm_id", 1]]
|
221
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
222
|
+
[1m[35mFirm Load (0.5ms)[0m SELECT "firms".* FROM "firms" ORDER BY "firms"."id" DESC LIMIT 1
|
223
|
+
[ActiveJob] Enqueued IndexFirmJob (Job ID: bd987d0d-f65e-4463-a91f-46c088421b73) to Inline(default) with arguments: gid://dummy/Firm/1
|
224
|
+
[ActiveJob] [1m[36mFirm Load (0.2ms)[0m [1mSELECT "firms".* FROM "firms" WHERE "firms"."id" = $1 LIMIT 1[0m [["id", 1]]
|
225
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] Performing IndexFirmJob from Inline(default) with arguments: gid://dummy/Firm/1
|
226
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[35mInPersonAdviceMethod Load (0.3ms)[0m SELECT "in_person_advice_methods".* FROM "in_person_advice_methods" INNER JOIN "firms_in_person_advice_methods" ON "in_person_advice_methods"."id" = "firms_in_person_advice_methods"."in_person_advice_method_id" WHERE "firms_in_person_advice_methods"."firm_id" = $1 ORDER BY "in_person_advice_methods"."order" ASC [["firm_id", 1]]
|
227
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[36mPrincipal Load (7.8ms)[0m [1mSELECT "principals".* FROM "principals" WHERE "principals"."fca_number" = $1 LIMIT 1[0m [["fca_number", 100000]]
|
228
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[35m (0.3ms)[0m SELECT "other_advice_methods".id FROM "other_advice_methods" INNER JOIN "firms_other_advice_methods" ON "other_advice_methods"."id" = "firms_other_advice_methods"."other_advice_method_id" WHERE "firms_other_advice_methods"."firm_id" = $1 ORDER BY "other_advice_methods"."order" ASC [["firm_id", 1]]
|
229
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[36m (0.3ms)[0m [1mSELECT "investment_sizes".id FROM "investment_sizes" INNER JOIN "firms_investment_sizes" ON "investment_sizes"."id" = "firms_investment_sizes"."investment_size_id" WHERE "firms_investment_sizes"."firm_id" = $1 ORDER BY "investment_sizes"."order" ASC[0m [["firm_id", 1]]
|
230
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[35m (2.3ms)[0m SELECT DISTINCT "qualifications".id FROM "qualifications" INNER JOIN "advisers_qualifications" ON "qualifications"."id" = "advisers_qualifications"."qualification_id" INNER JOIN "advisers" ON "advisers_qualifications"."adviser_id" = "advisers"."id" WHERE "advisers"."firm_id" = $1 [["firm_id", 1]]
|
231
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[36m (2.2ms)[0m [1mSELECT DISTINCT "accreditations".id FROM "accreditations" INNER JOIN "accreditations_advisers" ON "accreditations"."id" = "accreditations_advisers"."accreditation_id" INNER JOIN "advisers" ON "accreditations_advisers"."adviser_id" = "advisers"."id" WHERE "advisers"."firm_id" = $1[0m [["firm_id", 1]]
|
232
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] [1m[35mAdviser Load (0.2ms)[0m SELECT "advisers".* FROM "advisers" WHERE "advisers"."firm_id" = $1 AND ("advisers"."latitude" IS NOT NULL) AND ("advisers"."longitude" IS NOT NULL) [["firm_id", 1]]
|
233
|
+
[ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] Performed IndexFirmJob from Inline(default) in 482.67ms
|
234
|
+
[1m[36mFirm Load (0.8ms)[0m [1mSELECT "firms".* FROM "firms" ORDER BY "firms"."id" DESC LIMIT 1[0m
|
235
|
+
[ActiveJob] Enqueued IndexFirmJob (Job ID: 21fcffe9-3018-4ea5-8492-e4b3d95b6cf9) to Inline(default) with arguments: gid://dummy/Firm/1
|
236
|
+
[ActiveJob] [1m[35mFirm Load (0.2ms)[0m SELECT "firms".* FROM "firms" WHERE "firms"."id" = $1 LIMIT 1 [["id", 1]]
|
237
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] Performing IndexFirmJob from Inline(default) with arguments: gid://dummy/Firm/1
|
238
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[36mInPersonAdviceMethod Load (0.5ms)[0m [1mSELECT "in_person_advice_methods".* FROM "in_person_advice_methods" INNER JOIN "firms_in_person_advice_methods" ON "in_person_advice_methods"."id" = "firms_in_person_advice_methods"."in_person_advice_method_id" WHERE "firms_in_person_advice_methods"."firm_id" = $1 ORDER BY "in_person_advice_methods"."order" ASC[0m [["firm_id", 1]]
|
239
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[35mPrincipal Load (0.4ms)[0m SELECT "principals".* FROM "principals" WHERE "principals"."fca_number" = $1 LIMIT 1 [["fca_number", 100000]]
|
240
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[36m (0.4ms)[0m [1mSELECT "other_advice_methods".id FROM "other_advice_methods" INNER JOIN "firms_other_advice_methods" ON "other_advice_methods"."id" = "firms_other_advice_methods"."other_advice_method_id" WHERE "firms_other_advice_methods"."firm_id" = $1 ORDER BY "other_advice_methods"."order" ASC[0m [["firm_id", 1]]
|
241
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[35m (0.6ms)[0m SELECT "investment_sizes".id FROM "investment_sizes" INNER JOIN "firms_investment_sizes" ON "investment_sizes"."id" = "firms_investment_sizes"."investment_size_id" WHERE "firms_investment_sizes"."firm_id" = $1 ORDER BY "investment_sizes"."order" ASC [["firm_id", 1]]
|
242
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[36m (0.5ms)[0m [1mSELECT DISTINCT "qualifications".id FROM "qualifications" INNER JOIN "advisers_qualifications" ON "qualifications"."id" = "advisers_qualifications"."qualification_id" INNER JOIN "advisers" ON "advisers_qualifications"."adviser_id" = "advisers"."id" WHERE "advisers"."firm_id" = $1[0m [["firm_id", 1]]
|
243
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[35m (0.5ms)[0m SELECT DISTINCT "accreditations".id FROM "accreditations" INNER JOIN "accreditations_advisers" ON "accreditations"."id" = "accreditations_advisers"."accreditation_id" INNER JOIN "advisers" ON "accreditations_advisers"."adviser_id" = "advisers"."id" WHERE "advisers"."firm_id" = $1 [["firm_id", 1]]
|
244
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] [1m[36mAdviser Load (0.2ms)[0m [1mSELECT "advisers".* FROM "advisers" WHERE "advisers"."firm_id" = $1 AND ("advisers"."latitude" IS NOT NULL) AND ("advisers"."longitude" IS NOT NULL)[0m [["firm_id", 1]]
|
245
|
+
[ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] Performed IndexFirmJob from Inline(default) in 6810.41ms
|