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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa8d4a34128f506ff892fa9028e84caa163451b1
4
- data.tar.gz: 43ea3df28bac2d20a700732c4cf08bcb374926f6
3
+ metadata.gz: 749493d4e792a5e39b976d20dd79fc14fa03f659
4
+ data.tar.gz: ad8f82d6b33d48f539dd338bb8a6ea0e2476bb5f
5
5
  SHA512:
6
- metadata.gz: f2be4dc8e70e9b545ba7591094f4e91b54fc9b484ab556f8a5fd475b6e19e2ddb9c654108910318887a00987e713ea1267466ab56e50e706934c81a797ee056a
7
- data.tar.gz: 6a85c5a843027f2ac42410c2b587080c7ff50aff27faa9b5a02a091b2549a13931aad3296bf67cd35ebb1be66b9a088dfece23fd8d91af584dc8ce1d48e7cbc2
6
+ metadata.gz: 17d2906483aa7734b58c44891c1e0ef67cb748db1876e79a20bf9a909bbe16c1b1e5912b2b3face7ff9c767cfae181f2359576f18544a0bd64cc73c6a2c84eca
7
+ data.tar.gz: ff8e6acfb9055d8d76fe31e0d025a079cdefc870141d5e61efeee20788348d50ba3e77c5b700b8bf3a2f89ca0b721818c63969735de4f96b385c3704a32ec50e
@@ -31,7 +31,7 @@ class Adviser < ActiveRecord::Base
31
31
 
32
32
  validate :match_reference_number
33
33
 
34
- after_save :geocode_if_needed
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 geocode_if_needed
52
- if valid? && postcode_changed?
53
- GeocodeAdviserJob.perform_later(self)
54
- end
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
@@ -87,7 +87,7 @@ class Firm < ActiveRecord::Base
87
87
  validates :investment_sizes,
88
88
  length: { minimum: 1 }
89
89
 
90
- after_save :geocode, if: :valid?
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(', ')
@@ -1,5 +1,5 @@
1
1
  module MAS
2
2
  module RadCore
3
- VERSION = '0.0.36'
3
+ VERSION = '0.0.37'
4
4
  end
5
5
  end
@@ -1,1327 +1,245 @@
1
- ActiveRecord::SchemaMigration Load (4.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
3
-  (2.0ms) 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
4
- FROM pg_constraint c
5
- JOIN pg_class t1 ON c.conrelid = t1.oid
6
- JOIN pg_class t2 ON c.confrelid = t2.oid
7
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
8
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
9
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
10
- WHERE c.contype = 'f'
11
- AND t1.relname = 'accreditations'
12
- AND t3.nspname = ANY (current_schemas(false))
13
- ORDER BY c.conname
14
- 
15
-  (1.5ms) 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
16
- FROM pg_constraint c
17
- JOIN pg_class t1 ON c.conrelid = t1.oid
18
- JOIN pg_class t2 ON c.confrelid = t2.oid
19
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
20
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
21
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
22
- WHERE c.contype = 'f'
23
- AND t1.relname = 'accreditations_advisers'
24
- AND t3.nspname = ANY (current_schemas(false))
25
- ORDER BY c.conname
26
-
27
-  (1.4ms) 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
28
- FROM pg_constraint c
29
- JOIN pg_class t1 ON c.conrelid = t1.oid
30
- JOIN pg_class t2 ON c.confrelid = t2.oid
31
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
32
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
33
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
34
- WHERE c.contype = 'f'
35
- AND t1.relname = 'advisers'
36
- AND t3.nspname = ANY (current_schemas(false))
37
- ORDER BY c.conname
38
- 
39
-  (1.4ms) 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
40
- FROM pg_constraint c
41
- JOIN pg_class t1 ON c.conrelid = t1.oid
42
- JOIN pg_class t2 ON c.confrelid = t2.oid
43
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
44
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
45
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
46
- WHERE c.contype = 'f'
47
- AND t1.relname = 'advisers_professional_bodies'
48
- AND t3.nspname = ANY (current_schemas(false))
49
- ORDER BY c.conname
50
-
51
-  (2.2ms) 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
52
- FROM pg_constraint c
53
- JOIN pg_class t1 ON c.conrelid = t1.oid
54
- JOIN pg_class t2 ON c.confrelid = t2.oid
55
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
56
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
57
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
58
- WHERE c.contype = 'f'
59
- AND t1.relname = 'advisers_professional_standings'
60
- AND t3.nspname = ANY (current_schemas(false))
61
- ORDER BY c.conname
62
- 
63
-  (2.0ms) 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
64
- FROM pg_constraint c
65
- JOIN pg_class t1 ON c.conrelid = t1.oid
66
- JOIN pg_class t2 ON c.confrelid = t2.oid
67
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
68
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
69
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
70
- WHERE c.contype = 'f'
71
- AND t1.relname = 'advisers_qualifications'
72
- AND t3.nspname = ANY (current_schemas(false))
73
- ORDER BY c.conname
74
-
75
-  (1.4ms) 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
76
- FROM pg_constraint c
77
- JOIN pg_class t1 ON c.conrelid = t1.oid
78
- JOIN pg_class t2 ON c.confrelid = t2.oid
79
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
80
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
81
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
82
- WHERE c.contype = 'f'
83
- AND t1.relname = 'allowed_payment_methods'
84
- AND t3.nspname = ANY (current_schemas(false))
85
- ORDER BY c.conname
86
- 
87
-  (1.4ms) 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
88
- FROM pg_constraint c
89
- JOIN pg_class t1 ON c.conrelid = t1.oid
90
- JOIN pg_class t2 ON c.confrelid = t2.oid
91
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
92
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
93
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
94
- WHERE c.contype = 'f'
95
- AND t1.relname = 'allowed_payment_methods_firms'
96
- AND t3.nspname = ANY (current_schemas(false))
97
- ORDER BY c.conname
98
-
99
-  (1.3ms) 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
100
- FROM pg_constraint c
101
- JOIN pg_class t1 ON c.conrelid = t1.oid
102
- JOIN pg_class t2 ON c.confrelid = t2.oid
103
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
104
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
105
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
106
- WHERE c.contype = 'f'
107
- AND t1.relname = 'firms'
108
- AND t3.nspname = ANY (current_schemas(false))
109
- ORDER BY c.conname
110
- 
111
-  (1.3ms) 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
112
- FROM pg_constraint c
113
- JOIN pg_class t1 ON c.conrelid = t1.oid
114
- JOIN pg_class t2 ON c.confrelid = t2.oid
115
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
116
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
117
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
118
- WHERE c.contype = 'f'
119
- AND t1.relname = 'firms_in_person_advice_methods'
120
- AND t3.nspname = ANY (current_schemas(false))
121
- ORDER BY c.conname
122
-
123
-  (1.3ms) 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
124
- FROM pg_constraint c
125
- JOIN pg_class t1 ON c.conrelid = t1.oid
126
- JOIN pg_class t2 ON c.confrelid = t2.oid
127
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
128
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
129
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
130
- WHERE c.contype = 'f'
131
- AND t1.relname = 'firms_initial_advice_fee_structures'
132
- AND t3.nspname = ANY (current_schemas(false))
133
- ORDER BY c.conname
134
- 
135
-  (1.3ms) 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
136
- FROM pg_constraint c
137
- JOIN pg_class t1 ON c.conrelid = t1.oid
138
- JOIN pg_class t2 ON c.confrelid = t2.oid
139
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
140
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
141
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
142
- WHERE c.contype = 'f'
143
- AND t1.relname = 'firms_investment_sizes'
144
- AND t3.nspname = ANY (current_schemas(false))
145
- ORDER BY c.conname
146
-
147
-  (1.4ms) 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
148
- FROM pg_constraint c
149
- JOIN pg_class t1 ON c.conrelid = t1.oid
150
- JOIN pg_class t2 ON c.confrelid = t2.oid
151
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
152
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
153
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
154
- WHERE c.contype = 'f'
155
- AND t1.relname = 'firms_ongoing_advice_fee_structures'
156
- AND t3.nspname = ANY (current_schemas(false))
157
- ORDER BY c.conname
158
- 
159
-  (1.8ms) 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
160
- FROM pg_constraint c
161
- JOIN pg_class t1 ON c.conrelid = t1.oid
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
-  (1.5ms) 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
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
- 
183
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
207
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
231
-  (1.5ms) 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
-  (1.4ms) 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
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
- 
255
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
279
-  (1.3ms) 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
-  (1.3ms) 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
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
- 
303
-  (1.3ms) 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
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
316
- FROM pg_constraint c
317
- JOIN pg_class t1 ON c.conrelid = t1.oid
318
- JOIN pg_class t2 ON c.confrelid = t2.oid
319
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
320
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
321
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
322
- WHERE c.contype = 'f'
323
- AND t1.relname = 'qualifications'
324
- AND t3.nspname = ANY (current_schemas(false))
325
- ORDER BY c.conname
326
- 
327
- ActiveRecord::SchemaMigration Load (5.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
328
- Migrating to AddLatitudeAndLongitudeToFirm (20150210113610)
329
-  (0.3ms) BEGIN
330
-  (27.0ms) ALTER TABLE "firms" ADD "latitude" float
331
-  (0.2ms) ALTER TABLE "firms" ADD "longitude" float
332
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150210113610"]]
1
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2
+  (25.6ms) 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
+  (1.6ms) CREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL) 
4
+  (2.1ms) CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" USING btree ("adviser_id", "accreditation_id")
5
+  (4.7ms) 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) 
6
+  (0.7ms) CREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL)
7
+  (2.4ms) CREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" USING btree ("adviser_id", "professional_body_id")
8
+  (2.0ms) CREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL)
9
+  (3.0ms) CREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" USING btree ("adviser_id", "professional_standing_id")
10
+  (1.7ms) CREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL)
11
+  (1.7ms) CREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" USING btree ("adviser_id", "qualification_id")
12
+  (4.3ms) 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
+  (2.6ms) CREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL) 
14
+  (4.0ms) CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" USING btree ("firm_id", "allowed_payment_method_id")
15
+  (4.7ms) 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) 
16
+  (1.9ms) CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" USING btree ("initial_meeting_duration_id")
17
+  (1.6ms) CREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL) 
18
+  (1.8ms) 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
+  (1.7ms) CREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL) 
20
+  (2.0ms) 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
+  (1.6ms) CREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL) 
22
+  (1.8ms) CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" USING btree ("firm_id", "investment_size_id")
23
+  (1.6ms) CREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL) 
24
+  (1.9ms) 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
+  (1.7ms) CREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL) 
26
+  (3.9ms) CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" USING btree ("firm_id", "other_advice_method_id")
27
+  (4.5ms) 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) 
28
+  (4.5ms) 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
+  (6.3ms) 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) 
30
+  (7.1ms) 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
+  (6.4ms) 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) 
32
+  (4.5ms) 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
+  (2.1ms) CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" USING btree ("fca_number")
34
+  (4.6ms) 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
+  (2.2ms) CREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" USING btree ("fca_number")
36
+  (4.9ms) 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
+  (5.1ms) 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) 
38
+  (8.7ms) 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
+  (1.7ms) CREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" USING btree ("fca_number")
40
+  (1.9ms) CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" USING btree ("token")
41
+  (4.1ms) 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) 
42
+  (6.2ms) 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
+  (7.0ms) 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) 
44
+  (12.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
45
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
46
+  (0.4ms) SELECT version FROM "schema_migrations"
47
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150305150719')
48
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141211110031')
49
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141221140208')
50
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222150416')
51
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141230112136')
52
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150106115732')
53
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150114144343')
54
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150114151447')
55
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150115130949')
56
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119102735')
57
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119111754')
58
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119114218')
59
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119125208')
60
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119152325')
61
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119152336')
62
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120133717')
63
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120141928')
64
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120150738')
65
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121110757')
66
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121123437')
67
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121134845')
68
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121154458')
69
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121173015')
70
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121181341')
71
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121183728')
72
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150124124350')
73
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150125145457')
74
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150125164156')
75
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150127084858')
76
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150209144836')
77
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150210113610')
78
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150222092417')
79
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150228095315')
80
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
81
+  (6.0ms) 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) 
82
+  (1.9ms) CREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL)
83
+  (1.9ms) CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" USING btree ("adviser_id", "accreditation_id")
84
+  (5.6ms) 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
+  (1.9ms) CREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL) 
86
+  (1.7ms) CREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" USING btree ("adviser_id", "professional_body_id")
87
+  (1.4ms) CREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL) 
88
+  (2.5ms) CREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" USING btree ("adviser_id", "professional_standing_id")
89
+  (2.6ms) CREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL) 
90
+  (1.7ms) CREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" USING btree ("adviser_id", "qualification_id")
91
+  (4.3ms) 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) 
92
+  (1.6ms) CREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL)
93
+  (2.5ms) CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" USING btree ("firm_id", "allowed_payment_method_id")
94
+  (7.3ms) 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
+  (2.0ms) CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" USING btree ("initial_meeting_duration_id")
96
+  (1.5ms) CREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL)
97
+  (1.9ms) CREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" USING btree ("firm_id", "in_person_advice_method_id")
98
+  (1.9ms) CREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL)
99
+  (2.0ms) CREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" USING btree ("firm_id", "initial_advice_fee_structure_id")
100
+  (1.8ms) CREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL)
101
+  (2.8ms) CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" USING btree ("firm_id", "investment_size_id")
102
+  (1.5ms) CREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL)
103
+  (1.7ms) CREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" USING btree ("firm_id", "ongoing_advice_fee_structure_id")
104
+  (1.8ms) CREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL)
105
+  (1.8ms) CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" USING btree ("firm_id", "other_advice_method_id")
106
+  (4.9ms) 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
+  (5.6ms) 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) 
108
+  (5.1ms) 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
+  (4.2ms) 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) 
110
+  (10.0ms) 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
+  (4.8ms) 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) 
112
+  (1.8ms) CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" USING btree ("fca_number")
113
+  (5.6ms) 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) 
114
+  (3.2ms) CREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" USING btree ("fca_number")
115
+  (8.6ms) 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) 
116
+  (4.5ms) 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
+  (4.7ms) 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) 
118
+  (2.1ms) CREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" USING btree ("fca_number")
119
+  (2.0ms) CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" USING btree ("token")
120
+  (5.5ms) 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
+  (4.7ms) 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) 
122
+  (8.6ms) 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
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
124
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
125
+  (0.4ms) SELECT version FROM "schema_migrations"
126
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150305150719')
127
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141211110031')
128
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141221140208')
129
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141222150416')
130
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20141230112136')
131
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150106115732')
132
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150114144343')
133
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150114151447')
134
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150115130949')
135
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119102735')
136
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119111754')
137
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119114218')
138
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119125208')
139
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119152325')
140
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150119152336')
141
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120133717')
142
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120141928')
143
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150120150738')
144
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121110757')
145
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121123437')
146
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121134845')
147
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121154458')
148
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121173015')
149
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121181341')
150
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150121183728')
151
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150124124350')
152
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150125145457')
153
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150125164156')
154
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150127084858')
155
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150209144836')
156
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150210113610')
157
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150222092417')
158
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150228095315')
159
+ Firm Load (2.6ms) SELECT "firms".* FROM "firms" ORDER BY "firms"."id" ASC LIMIT 1
160
+  (0.2ms) BEGIN
161
+ SQL (2.0ms) INSERT INTO "in_person_advice_methods" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["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
   (1.4ms) COMMIT
334
- Migrating to AddLatitudeAndLongitudeToAdvisers (20150222092417)
335
163
   (0.2ms) BEGIN
336
-  (2.3ms) ALTER TABLE "advisers" ADD "latitude" float
337
-  (0.2ms) ALTER TABLE "advisers" ADD "longitude" float
338
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222092417"]]
339
-  (0.3ms) COMMIT
340
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
341
-  (1.9ms) 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
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
- 
353
-  (1.4ms) 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
-  (1.3ms) 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
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
- 
377
-  (1.5ms) 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
-  (1.4ms) 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
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
- 
401
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
425
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
449
-  (1.5ms) 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
-  (1.8ms) 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
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
- 
473
-  (1.4ms) 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
-  (1.5ms) 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
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
- 
497
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
521
-  (1.3ms) 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
-  (1.3ms) 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
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
- 
545
-  (1.4ms) 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
-  (2.3ms) 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
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
- 
569
-  (2.2ms) 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
-  (1.4ms) 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
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
- 
593
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
617
-  (1.3ms) 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
-  (1.3ms) 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
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
- 
641
-  (2.3ms) 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
-  (1.6ms) 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
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
- 
665
- ActiveRecord::SchemaMigration Load (9.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
666
- Migrating to AddCyNameToOtherAdviceMethods (20150228095315)
164
+ SQL (1.8ms) 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
+  (1.4ms) COMMIT
667
166
   (0.2ms) BEGIN
668
-  (13.6ms) ALTER TABLE "other_advice_methods" ADD "cy_name" character varying
669
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150228095315"]]
167
+ SQL (0.2ms) INSERT INTO "other_advice_methods" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (1.3ms) COMMIT
169
+  (0.2ms) BEGIN
170
+ SQL (1.6ms) 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
   (1.3ms) COMMIT
671
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
672
-  (1.9ms) 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
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
- 
684
-  (1.4ms) 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
-  (1.5ms) 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
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
- 
708
-  (1.4ms) 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
-  (1.5ms) 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
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
- 
732
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
756
-  (1.5ms) 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
-  (1.5ms) 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
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
- 
780
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
804
-  (1.4ms) 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
-  (1.5ms) 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
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
- 
828
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
852
-  (1.8ms) 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
-  (1.6ms) 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
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
- 
876
-  (1.4ms) 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
-  (1.6ms) 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
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
- 
900
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
924
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
948
-  (1.4ms) 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
-  (1.3ms) 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
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
- 
972
-  (1.3ms) 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
-  (1.4ms) 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
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
- 
996
- ActiveRecord::SchemaMigration Load (11.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
997
- Migrating to AddCyNameToInvestmentSize (20150305150719)
998
172
   (0.2ms) BEGIN
999
-  (13.9ms) ALTER TABLE "investment_sizes" ADD "cy_name" character varying
1000
- InvestmentSize Load (4.9ms) SELECT "investment_sizes".* FROM "investment_sizes" ORDER BY "investment_sizes"."order" ASC
1001
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150305150719"]]
1002
-  (1.5ms) COMMIT
1003
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1004
-  (1.8ms) 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
1005
- FROM pg_constraint c
1006
- JOIN pg_class t1 ON c.conrelid = t1.oid
1007
- JOIN pg_class t2 ON c.confrelid = t2.oid
1008
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1009
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1010
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1011
- WHERE c.contype = 'f'
1012
- AND t1.relname = 'accreditations'
1013
- AND t3.nspname = ANY (current_schemas(false))
1014
- ORDER BY c.conname
1015
-
1016
-  (1.4ms) 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
1017
- FROM pg_constraint c
1018
- JOIN pg_class t1 ON c.conrelid = t1.oid
1019
- JOIN pg_class t2 ON c.confrelid = t2.oid
1020
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1021
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1022
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1023
- WHERE c.contype = 'f'
1024
- AND t1.relname = 'accreditations_advisers'
1025
- AND t3.nspname = ANY (current_schemas(false))
1026
- ORDER BY c.conname
1027
- 
1028
-  (1.4ms) 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
1029
- FROM pg_constraint c
1030
- JOIN pg_class t1 ON c.conrelid = t1.oid
1031
- JOIN pg_class t2 ON c.confrelid = t2.oid
1032
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1033
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1034
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1035
- WHERE c.contype = 'f'
1036
- AND t1.relname = 'advisers'
1037
- AND t3.nspname = ANY (current_schemas(false))
1038
- ORDER BY c.conname
1039
-
1040
-  (1.4ms) 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
1041
- FROM pg_constraint c
1042
- JOIN pg_class t1 ON c.conrelid = t1.oid
1043
- JOIN pg_class t2 ON c.confrelid = t2.oid
1044
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1045
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1046
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1047
- WHERE c.contype = 'f'
1048
- AND t1.relname = 'advisers_professional_bodies'
1049
- AND t3.nspname = ANY (current_schemas(false))
1050
- ORDER BY c.conname
1051
- 
1052
-  (1.3ms) 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
1053
- FROM pg_constraint c
1054
- JOIN pg_class t1 ON c.conrelid = t1.oid
1055
- JOIN pg_class t2 ON c.confrelid = t2.oid
1056
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1057
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1058
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1059
- WHERE c.contype = 'f'
1060
- AND t1.relname = 'advisers_professional_standings'
1061
- AND t3.nspname = ANY (current_schemas(false))
1062
- ORDER BY c.conname
1063
-
1064
-  (1.3ms) 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
1065
- FROM pg_constraint c
1066
- JOIN pg_class t1 ON c.conrelid = t1.oid
1067
- JOIN pg_class t2 ON c.confrelid = t2.oid
1068
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1069
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1070
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
1071
- WHERE c.contype = 'f'
1072
- AND t1.relname = 'advisers_qualifications'
1073
- AND t3.nspname = ANY (current_schemas(false))
1074
- ORDER BY c.conname
1075
- 
1076
-  (1.3ms) 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
-  (1.3ms) 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
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
- 
1100
-  (1.4ms) 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
-  (1.8ms) 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
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
- 
1124
-  (1.5ms) 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
-  (1.6ms) 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
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
- 
1148
-  (2.4ms) 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
-  (1.4ms) 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
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
- 
1172
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
1196
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
1220
-  (1.4ms) 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
-  (1.3ms) 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
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
- 
1244
-  (1.3ms) 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
-  (1.3ms) 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
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
- 
1268
-  (1.3ms) 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
-  (1.6ms) 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
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
- 
1292
-  (1.4ms) 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
-  (1.4ms) 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
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
- 
1316
-  (1.3ms) 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
+ SQL (1.9ms) INSERT INTO "initial_advice_fee_structures" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Hic modi quos omnis."], ["created_at", "2015-04-06 15:20:57.547996"], ["updated_at", "2015-04-06 15:20:57.547996"]]
174
+  (1.4ms) COMMIT
175
+  (0.3ms) BEGIN
176
+ SQL (0.7ms) 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
+  (1.5ms) COMMIT
178
+  (0.2ms) BEGIN
179
+ SQL (1.8ms) INSERT INTO "ongoing_advice_fee_structures" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["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
+  (1.4ms) COMMIT
181
+  (0.2ms) BEGIN
182
+ SQL (1.6ms) 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
+  (1.3ms) COMMIT
184
+  (0.4ms) BEGIN
185
+ SQL (0.5ms) INSERT INTO "allowed_payment_methods" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["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
+  (1.3ms) COMMIT
187
+  (0.2ms) BEGIN
188
+ SQL (1.7ms) 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
+  (1.3ms) COMMIT
190
+  (0.2ms) BEGIN
191
+ SQL (0.3ms) INSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (1.2ms) COMMIT
193
+  (0.2ms) BEGIN
194
+ SQL (0.2ms) 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
+  (1.2ms) COMMIT
196
+  (0.2ms) BEGIN
197
+ SQL (0.3ms) INSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (1.2ms) COMMIT
199
+  (0.2ms) BEGIN
200
+ SQL (0.2ms) 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
+  (1.2ms) COMMIT
202
+  (0.2ms) BEGIN
203
+ SQL (0.2ms) INSERT INTO "investment_sizes" ("name", "cy_name", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (1.4ms) COMMIT
205
+  (0.1ms) BEGIN
206
+ SQL (0.5ms) 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
+ SQL (1.5ms) INSERT INTO "firms_in_person_advice_methods" ("in_person_advice_method_id", "firm_id") VALUES ($1, $2) [["in_person_advice_method_id", 1], ["firm_id", 1]]
208
+ SQL (1.7ms) INSERT INTO "firms_other_advice_methods" ("other_advice_method_id", "firm_id") VALUES ($1, $2) [["other_advice_method_id", 1], ["firm_id", 1]]
209
+ SQL (0.2ms) INSERT INTO "firms_other_advice_methods" ("other_advice_method_id", "firm_id") VALUES ($1, $2) [["other_advice_method_id", 2], ["firm_id", 1]]
210
+ SQL (1.5ms) 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
+ SQL (0.5ms) INSERT INTO "firms_initial_advice_fee_structures" ("initial_advice_fee_structure_id", "firm_id") VALUES ($1, $2) [["initial_advice_fee_structure_id", 2], ["firm_id", 1]]
212
+ SQL (2.0ms) 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
+ SQL (1.5ms) INSERT INTO "allowed_payment_methods_firms" ("allowed_payment_method_id", "firm_id") VALUES ($1, $2) [["allowed_payment_method_id", 1], ["firm_id", 1]]
214
+ SQL (0.2ms) INSERT INTO "allowed_payment_methods_firms" ("allowed_payment_method_id", "firm_id") VALUES ($1, $2) [["allowed_payment_method_id", 2], ["firm_id", 1]]
215
+ SQL (1.7ms) INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 1], ["firm_id", 1]]
216
+ SQL (0.2ms) INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 2], ["firm_id", 1]]
217
+ SQL (0.2ms) INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 3], ["firm_id", 1]]
218
+ SQL (0.2ms) INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 4], ["firm_id", 1]]
219
+ SQL (0.2ms) INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 5], ["firm_id", 1]]
220
+ SQL (0.2ms) INSERT INTO "firms_investment_sizes" ("investment_size_id", "firm_id") VALUES ($1, $2) [["investment_size_id", 6], ["firm_id", 1]]
221
+  (1.2ms) COMMIT
222
+ Firm Load (0.5ms) 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] Firm Load (0.2ms) SELECT "firms".* FROM "firms" WHERE "firms"."id" = $1 LIMIT 1 [["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] InPersonAdviceMethod Load (0.3ms) 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] Principal Load (7.8ms) SELECT "principals".* FROM "principals" WHERE "principals"."fca_number" = $1 LIMIT 1 [["fca_number", 100000]]
228
+ [ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73]  (0.3ms) 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]  (0.3ms) 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]]
230
+ [ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73]  (2.3ms) 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]  (2.2ms) 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]]
232
+ [ActiveJob] [IndexFirmJob] [bd987d0d-f65e-4463-a91f-46c088421b73] Adviser Load (0.2ms) 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
+ Firm Load (0.8ms) SELECT "firms".* FROM "firms" ORDER BY "firms"."id" DESC LIMIT 1
235
+ [ActiveJob] Enqueued IndexFirmJob (Job ID: 21fcffe9-3018-4ea5-8492-e4b3d95b6cf9) to Inline(default) with arguments: gid://dummy/Firm/1
236
+ [ActiveJob] Firm Load (0.2ms) 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] InPersonAdviceMethod Load (0.5ms) 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]]
239
+ [ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] Principal Load (0.4ms) SELECT "principals".* FROM "principals" WHERE "principals"."fca_number" = $1 LIMIT 1 [["fca_number", 100000]]
240
+ [ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9]  (0.4ms) 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]]
241
+ [ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9]  (0.6ms) 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]  (0.5ms) 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]]
243
+ [ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9]  (0.5ms) 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] Adviser Load (0.2ms) SELECT "advisers".* FROM "advisers" WHERE "advisers"."firm_id" = $1 AND ("advisers"."latitude" IS NOT NULL) AND ("advisers"."longitude" IS NOT NULL) [["firm_id", 1]]
245
+ [ActiveJob] [IndexFirmJob] [21fcffe9-3018-4ea5-8492-e4b3d95b6cf9] Performed IndexFirmJob from Inline(default) in 6810.41ms