mas-rad_core 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5eb76c0f9fad72ca6854efdb85f26c8234f12593
4
- data.tar.gz: b0edef6fdcae58bd271a44c51cd3adf46b350246
3
+ metadata.gz: 7212e21d8f7f420a134fe3457fdb0623b7e19992
4
+ data.tar.gz: 5be31f7df487f9dec72936519b07986e0635f532
5
5
  SHA512:
6
- metadata.gz: 5a79cf56e7fb30f6b207080e59d02863e98511ea085a5ff6cede333ae14229702e5cbc38318ce0bc6202dd80ea18c1755f2eff81651f783eaabda35c6e9082ca
7
- data.tar.gz: 0592e46eb8c0b56a4b0ecdff8ab01c2167e66415036dc1fca19f8aba22982fea8b0aef24a3bf2d8057ab2f178a2cddb65a5e00edfce24b3b88891cb562a70e22
6
+ metadata.gz: 19202bf96d7108f27cc1c535f67c3c853c4cc011904220ff9e04b0b6dda6895066d29655bab4735a69bbe9a02e45bbf713f3de793a50c14670d0105aecac9621
7
+ data.tar.gz: f4779f4432053abfb1f896f7a1507fa51d3162c9331da65bad0853ccca8eab170a970df13b96b7929c2a4a60d1e362c1050b938003508ba034e3ec7bfdff2ea1
@@ -145,7 +145,7 @@ class Firm < ActiveRecord::Base
145
145
  private
146
146
 
147
147
  def geocode_if_needed
148
- if full_street_address.present? && full_street_address_changed?
148
+ if valid? && full_street_address_changed?
149
149
  GeocodeFirmJob.perform_later(self)
150
150
  end
151
151
  end
@@ -1,5 +1,5 @@
1
1
  module MAS
2
2
  module RadCore
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
@@ -0,0 +1,542 @@
1
+  (14.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateLookupFirms (20141211110031)
5
+  (0.3ms) BEGIN
6
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/lshepstone/Repos/money-advice-service/rad_core/db/migrate/20141211110031_create_lookup_firms.rb:8)
7
+  (22.3ms) 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) 
8
+  (1.0ms) CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" ("fca_number")
9
+ SQL (6.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141211110031"]]
10
+  (6.7ms) COMMIT
11
+ Migrating to CreatePrincipals (20141221140208)
12
+  (6.4ms) BEGIN
13
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block (2 levels) in change at /Users/lshepstone/Repos/money-advice-service/rad_core/db/migrate/20141221140208_create_principals.rb:19)
14
+  (15.8ms) 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)
15
+  (1.0ms) CREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" ("fca_number")
16
+  (0.8ms) CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" ("token")
17
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141221140208"]]
18
+  (0.6ms) COMMIT
19
+ Migrating to AddLastSignInAtToPrincipal (20141222150416)
20
+  (6.3ms) BEGIN
21
+  (0.4ms) ALTER TABLE "principals" ADD "last_sign_in_at" timestamp
22
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141222150416"]]
23
+  (5.8ms) COMMIT
24
+ Migrating to CreateLookupSubsidiaries (20141230112136)
25
+  (0.2ms) BEGIN
26
+  (14.7ms) 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)
27
+  (7.1ms) CREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" ("fca_number")
28
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141230112136"]]
29
+  (0.7ms) COMMIT
30
+ Migrating to RemoveLastSignInAtFromPrincipals (20150106115732)
31
+  (6.3ms) BEGIN
32
+  (0.9ms) ALTER TABLE "principals" DROP "last_sign_in_at"
33
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150106115732"]]
34
+  (6.4ms) COMMIT
35
+ Migrating to CreateLookupAdvisers (20150114144343)
36
+  (0.2ms) BEGIN
37
+  (14.6ms) 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) 
38
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150114144343"]]
39
+  (6.2ms) COMMIT
40
+ Migrating to CreateFirms (20150114151447)
41
+  (5.7ms) BEGIN
42
+  (15.0ms) 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) 
43
+  (5.5ms) CREATE UNIQUE INDEX "index_firms_on_fca_number" ON "firms" ("fca_number")
44
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150114151447"]]
45
+  (0.5ms) COMMIT
46
+ Migrating to AddAddressToFirm (20150115130949)
47
+  (6.2ms) BEGIN
48
+  (0.3ms) ALTER TABLE "firms" ADD "address_line_one" character varying
49
+  (0.3ms) ALTER TABLE "firms" ADD "address_line_two" character varying
50
+  (0.2ms) ALTER TABLE "firms" ADD "address_town" character varying
51
+  (0.3ms) ALTER TABLE "firms" ADD "address_county" character varying
52
+  (0.2ms) ALTER TABLE "firms" ADD "address_postcode" character varying
53
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150115130949"]]
54
+  (6.6ms) COMMIT
55
+ Migrating to CreateInPersonAdviceMethods (20150119102735)
56
+  (0.3ms) BEGIN
57
+  (8.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)
58
+  (0.8ms) CREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL) 
59
+  (1.1ms) CREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" ("firm_id", "in_person_advice_method_id")
60
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119102735"]]
61
+  (0.5ms) COMMIT
62
+ Migrating to CreateOtherAdviceMethods (20150119111754)
63
+  (6.1ms) BEGIN
64
+  (14.2ms) CREATE TABLE "other_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
65
+  (0.7ms) CREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL) 
66
+  (0.9ms) CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" ("firm_id", "other_advice_method_id")
67
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119111754"]]
68
+  (0.6ms) COMMIT
69
+ Migrating to AddFreeInitialMeetingToFirm (20150119114218)
70
+  (6.1ms) BEGIN
71
+  (0.3ms) ALTER TABLE "firms" ADD "free_initial_meeting" boolean
72
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119114218"]]
73
+  (6.4ms) COMMIT
74
+ Migrating to CreateInitialMeetingDurations (20150119125208)
75
+  (0.2ms) BEGIN
76
+  (14.7ms) CREATE TABLE "initial_meeting_durations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
77
+  (0.3ms) ALTER TABLE "firms" ADD "initial_meeting_duration_id" integer
78
+  (6.7ms) CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" ("initial_meeting_duration_id")
79
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119125208"]]
80
+  (0.5ms) COMMIT
81
+ Migrating to CreateInitialAdviceFeeStructures (20150119152325)
82
+  (6.4ms) BEGIN
83
+  (15.9ms) 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)
84
+  (0.7ms) CREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL) 
85
+  (1.0ms) CREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" ("firm_id", "initial_advice_fee_structure_id")
86
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119152325"]]
87
+  (0.5ms) COMMIT
88
+ Migrating to CreateOngoingAdviceFeeStructures (20150119152336)
89
+  (6.0ms) BEGIN
90
+  (14.7ms) 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)
91
+  (0.7ms) CREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL) 
92
+  (1.0ms) CREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" ("firm_id", "ongoing_advice_fee_structure_id")
93
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119152336"]]
94
+  (0.5ms) COMMIT
95
+ Migrating to CreateAllowedPaymentMethods (20150120133717)
96
+  (5.7ms) BEGIN
97
+  (14.4ms) CREATE TABLE "allowed_payment_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
98
+  (0.7ms) CREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL) 
99
+  (0.8ms) CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" ("firm_id", "allowed_payment_method_id")
100
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150120133717"]]
101
+  (0.4ms) COMMIT
102
+ Migrating to AddMinimumFixedFeeToFirm (20150120141928)
103
+  (5.7ms) BEGIN
104
+  (0.3ms) ALTER TABLE "firms" ADD "minimum_fixed_fee" integer
105
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150120141928"]]
106
+  (6.5ms) COMMIT
107
+ Migrating to CreateInvestmentSizes (20150120150738)
108
+  (0.3ms) BEGIN
109
+  (15.2ms) CREATE TABLE "investment_sizes" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
110
+  (0.7ms) CREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL) 
111
+  (5.6ms) CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" ("firm_id", "investment_size_id")
112
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150120150738"]]
113
+  (0.4ms) COMMIT
114
+ Migrating to CreateAdvisers (20150121110757)
115
+  (5.9ms) BEGIN
116
+  (14.2ms) 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)
117
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121110757"]]
118
+  (5.4ms) COMMIT
119
+ Migrating to AddBusinessIncomeBreakdownFieldsToFirm (20150121123437)
120
+  (6.0ms) BEGIN
121
+  (0.4ms) ALTER TABLE "firms" ADD "retirement_income_products_percent" integer
122
+  (0.4ms) ALTER TABLE "firms" ADD "pension_transfer_percent" integer
123
+  (0.3ms) ALTER TABLE "firms" ADD "long_term_care_percent" integer
124
+  (0.3ms) ALTER TABLE "firms" ADD "equity_release_percent" integer
125
+  (0.3ms) ALTER TABLE "firms" ADD "inheritance_tax_and_estate_planning_percent" integer
126
+  (0.3ms) ALTER TABLE "firms" ADD "wills_and_probate_percent" integer
127
+  (0.3ms) ALTER TABLE "firms" ADD "other_percent" integer
128
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121123437"]]
129
+  (6.4ms) COMMIT
130
+ Migrating to CreateQualifications (20150121134845)
131
+  (0.2ms) BEGIN
132
+  (13.9ms) CREATE TABLE "qualifications" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
133
+  (0.7ms) CREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL) 
134
+  (7.0ms) CREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" ("adviser_id", "qualification_id")
135
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121134845"]]
136
+  (0.6ms) COMMIT
137
+ Migrating to CreateAccreditations (20150121154458)
138
+  (6.3ms) BEGIN
139
+  (19.6ms) CREATE TABLE "accreditations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
140
+  (0.6ms) CREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL) 
141
+  (0.8ms) CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" ("adviser_id", "accreditation_id")
142
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121154458"]]
143
+  (0.5ms) COMMIT
144
+ Migrating to CreateProfessionalStandings (20150121173015)
145
+  (5.8ms) BEGIN
146
+  (14.8ms) CREATE TABLE "professional_standings" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
147
+  (0.8ms) CREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL) 
148
+  (1.0ms) CREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" ("adviser_id", "professional_standing_id")
149
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121173015"]]
150
+  (0.5ms) COMMIT
151
+ Migrating to CreateProfessionalBodies (20150121181341)
152
+  (6.0ms) BEGIN
153
+  (19.0ms) CREATE TABLE "professional_bodies" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
154
+  (0.7ms) CREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL) 
155
+  (0.8ms) CREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" ("adviser_id", "professional_body_id")
156
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121181341"]]
157
+  (0.5ms) COMMIT
158
+ Migrating to AddConfirmedDisclaimerToAdvisers (20150121183728)
159
+  (6.4ms) BEGIN
160
+  (0.5ms) ALTER TABLE "advisers" ADD "confirmed_disclaimer" boolean NOT NULL
161
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121183728"]]
162
+  (6.6ms) COMMIT
163
+ Migrating to AddGeographicalFieldsToAdviser (20150124124350)
164
+  (0.2ms) BEGIN
165
+  (15.9ms) ALTER TABLE "advisers" ADD "postcode" character varying DEFAULT '' NOT NULL
166
+  (9.3ms) ALTER TABLE "advisers" ADD "travel_distance" integer DEFAULT 0 NOT NULL
167
+  (3.2ms) ALTER TABLE "advisers" ADD "covers_whole_of_uk" boolean DEFAULT 'f' NOT NULL
168
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150124124350"]]
169
+  (9.0ms) COMMIT
170
+ Migrating to AddParentIdToFirms (20150125145457)
171
+  (0.3ms) BEGIN
172
+  (0.3ms) ALTER TABLE "firms" ADD "parent_id" integer
173
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150125145457"]]
174
+  (0.4ms) COMMIT
175
+ Migrating to RemoveUniqueConstraintFromFirmsFcaNumber (20150125164156)
176
+  (0.1ms) BEGIN
177
+  (0.2ms) DROP INDEX "index_firms_on_fca_number"
178
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150125164156"]]
179
+  (7.3ms) COMMIT
180
+ Migrating to AddOrderingOnReferenceData (20150127084858)
181
+  (0.1ms) BEGIN
182
+  (14.2ms) ALTER TABLE "accreditations" ADD "order" integer DEFAULT 0 NOT NULL
183
+ Accreditation Load (2.0ms) SELECT "accreditations".* FROM "accreditations" ORDER BY "accreditations"."id" ASC
184
+  (2.6ms) ALTER TABLE "allowed_payment_methods" ADD "order" integer DEFAULT 0 NOT NULL
185
+ AllowedPaymentMethod Load (1.9ms) SELECT "allowed_payment_methods".* FROM "allowed_payment_methods" ORDER BY "allowed_payment_methods"."id" ASC
186
+  (14.6ms) ALTER TABLE "in_person_advice_methods" ADD "order" integer DEFAULT 0 NOT NULL
187
+ InPersonAdviceMethod Load (2.1ms) SELECT "in_person_advice_methods".* FROM "in_person_advice_methods" ORDER BY "in_person_advice_methods"."id" ASC
188
+  (14.6ms) ALTER TABLE "initial_advice_fee_structures" ADD "order" integer DEFAULT 0 NOT NULL
189
+ InitialAdviceFeeStructure Load (1.9ms) SELECT "initial_advice_fee_structures".* FROM "initial_advice_fee_structures" ORDER BY "initial_advice_fee_structures"."id" ASC
190
+  (14.8ms) ALTER TABLE "initial_meeting_durations" ADD "order" integer DEFAULT 0 NOT NULL
191
+ InitialMeetingDuration Load (2.2ms) SELECT "initial_meeting_durations".* FROM "initial_meeting_durations" ORDER BY "initial_meeting_durations"."id" ASC
192
+  (14.4ms) ALTER TABLE "investment_sizes" ADD "order" integer DEFAULT 0 NOT NULL
193
+ InvestmentSize Load (1.9ms) SELECT "investment_sizes".* FROM "investment_sizes" ORDER BY "investment_sizes"."id" ASC
194
+  (14.8ms) ALTER TABLE "ongoing_advice_fee_structures" ADD "order" integer DEFAULT 0 NOT NULL
195
+ OngoingAdviceFeeStructure Load (2.0ms) SELECT "ongoing_advice_fee_structures".* FROM "ongoing_advice_fee_structures" ORDER BY "ongoing_advice_fee_structures"."id" ASC
196
+  (13.9ms) ALTER TABLE "other_advice_methods" ADD "order" integer DEFAULT 0 NOT NULL
197
+ OtherAdviceMethod Load (1.9ms) SELECT "other_advice_methods".* FROM "other_advice_methods" ORDER BY "other_advice_methods"."id" ASC
198
+  (15.1ms) ALTER TABLE "professional_bodies" ADD "order" integer DEFAULT 0 NOT NULL
199
+ ProfessionalBody Load (2.3ms) SELECT "professional_bodies".* FROM "professional_bodies" ORDER BY "professional_bodies"."id" ASC
200
+  (2.8ms) ALTER TABLE "professional_standings" ADD "order" integer DEFAULT 0 NOT NULL
201
+ ProfessionalStanding Load (1.8ms) SELECT "professional_standings".* FROM "professional_standings" ORDER BY "professional_standings"."id" ASC
202
+  (2.8ms) ALTER TABLE "qualifications" ADD "order" integer DEFAULT 0 NOT NULL
203
+ Qualification Load (1.7ms) SELECT "qualifications".* FROM "qualifications" ORDER BY "qualifications"."id" ASC
204
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150127084858"]]
205
+  (24.2ms) COMMIT
206
+ Migrating to RemoveCoversWholeOfUkFromAdvisers (20150209144836)
207
+  (0.5ms) BEGIN
208
+ Adviser Load (1.7ms) SELECT "advisers".* FROM "advisers" WHERE "advisers"."covers_whole_of_uk" = 't' ORDER BY "advisers"."id" ASC LIMIT 1000
209
+  (0.3ms) ALTER TABLE "advisers" DROP "covers_whole_of_uk"
210
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209144836"]]
211
+  (6.3ms) COMMIT
212
+ Migrating to AddLatitudeAndLongitudeToFirm (20150210113610)
213
+  (0.2ms) BEGIN
214
+  (0.3ms) ALTER TABLE "firms" ADD "latitude" float
215
+  (0.2ms) ALTER TABLE "firms" ADD "longitude" float
216
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150210113610"]]
217
+  (5.9ms) COMMIT
218
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
219
+  (1.7ms) 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 = 'accreditations'
228
+ AND t3.nspname = ANY (current_schemas(false))
229
+ ORDER BY c.conname
230
+ 
231
+  (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
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 = 'accreditations_advisers'
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 = 'advisers'
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 = 'advisers_professional_bodies'
264
+ AND t3.nspname = ANY (current_schemas(false))
265
+ ORDER BY c.conname
266
+
267
+  (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
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 = 'advisers_professional_standings'
276
+ AND t3.nspname = ANY (current_schemas(false))
277
+ ORDER BY c.conname
278
+ 
279
+  (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
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 = 'advisers_qualifications'
288
+ AND t3.nspname = ANY (current_schemas(false))
289
+ ORDER BY c.conname
290
+
291
+  (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
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 = 'allowed_payment_methods'
300
+ AND t3.nspname = ANY (current_schemas(false))
301
+ ORDER BY c.conname
302
+ 
303
+  (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
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 = 'allowed_payment_methods_firms'
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 = 'firms'
324
+ AND t3.nspname = ANY (current_schemas(false))
325
+ ORDER BY c.conname
326
+ 
327
+  (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
328
+ FROM pg_constraint c
329
+ JOIN pg_class t1 ON c.conrelid = t1.oid
330
+ JOIN pg_class t2 ON c.confrelid = t2.oid
331
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
332
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
333
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
334
+ WHERE c.contype = 'f'
335
+ AND t1.relname = 'firms_in_person_advice_methods'
336
+ AND t3.nspname = ANY (current_schemas(false))
337
+ ORDER BY c.conname
338
+
339
+  (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
340
+ FROM pg_constraint c
341
+ JOIN pg_class t1 ON c.conrelid = t1.oid
342
+ JOIN pg_class t2 ON c.confrelid = t2.oid
343
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
344
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
345
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
346
+ WHERE c.contype = 'f'
347
+ AND t1.relname = 'firms_initial_advice_fee_structures'
348
+ AND t3.nspname = ANY (current_schemas(false))
349
+ ORDER BY c.conname
350
+ 
351
+  (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
352
+ FROM pg_constraint c
353
+ JOIN pg_class t1 ON c.conrelid = t1.oid
354
+ JOIN pg_class t2 ON c.confrelid = t2.oid
355
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
356
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
357
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
358
+ WHERE c.contype = 'f'
359
+ AND t1.relname = 'firms_investment_sizes'
360
+ AND t3.nspname = ANY (current_schemas(false))
361
+ ORDER BY c.conname
362
+
363
+  (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
364
+ FROM pg_constraint c
365
+ JOIN pg_class t1 ON c.conrelid = t1.oid
366
+ JOIN pg_class t2 ON c.confrelid = t2.oid
367
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
368
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
369
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
370
+ WHERE c.contype = 'f'
371
+ AND t1.relname = 'firms_ongoing_advice_fee_structures'
372
+ AND t3.nspname = ANY (current_schemas(false))
373
+ ORDER BY c.conname
374
+ 
375
+  (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
376
+ FROM pg_constraint c
377
+ JOIN pg_class t1 ON c.conrelid = t1.oid
378
+ JOIN pg_class t2 ON c.confrelid = t2.oid
379
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
380
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
381
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
382
+ WHERE c.contype = 'f'
383
+ AND t1.relname = 'firms_other_advice_methods'
384
+ AND t3.nspname = ANY (current_schemas(false))
385
+ ORDER BY c.conname
386
+
387
+  (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
388
+ FROM pg_constraint c
389
+ JOIN pg_class t1 ON c.conrelid = t1.oid
390
+ JOIN pg_class t2 ON c.confrelid = t2.oid
391
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
392
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
393
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
394
+ WHERE c.contype = 'f'
395
+ AND t1.relname = 'in_person_advice_methods'
396
+ AND t3.nspname = ANY (current_schemas(false))
397
+ ORDER BY c.conname
398
+ 
399
+  (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
400
+ FROM pg_constraint c
401
+ JOIN pg_class t1 ON c.conrelid = t1.oid
402
+ JOIN pg_class t2 ON c.confrelid = t2.oid
403
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
404
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
405
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
406
+ WHERE c.contype = 'f'
407
+ AND t1.relname = 'initial_advice_fee_structures'
408
+ AND t3.nspname = ANY (current_schemas(false))
409
+ ORDER BY c.conname
410
+
411
+  (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
412
+ FROM pg_constraint c
413
+ JOIN pg_class t1 ON c.conrelid = t1.oid
414
+ JOIN pg_class t2 ON c.confrelid = t2.oid
415
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
416
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
417
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
418
+ WHERE c.contype = 'f'
419
+ AND t1.relname = 'initial_meeting_durations'
420
+ AND t3.nspname = ANY (current_schemas(false))
421
+ ORDER BY c.conname
422
+ 
423
+  (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
424
+ FROM pg_constraint c
425
+ JOIN pg_class t1 ON c.conrelid = t1.oid
426
+ JOIN pg_class t2 ON c.confrelid = t2.oid
427
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
428
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
429
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
430
+ WHERE c.contype = 'f'
431
+ AND t1.relname = 'investment_sizes'
432
+ AND t3.nspname = ANY (current_schemas(false))
433
+ ORDER BY c.conname
434
+
435
+  (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
436
+ FROM pg_constraint c
437
+ JOIN pg_class t1 ON c.conrelid = t1.oid
438
+ JOIN pg_class t2 ON c.confrelid = t2.oid
439
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
440
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
441
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
442
+ WHERE c.contype = 'f'
443
+ AND t1.relname = 'lookup_advisers'
444
+ AND t3.nspname = ANY (current_schemas(false))
445
+ ORDER BY c.conname
446
+ 
447
+  (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
448
+ FROM pg_constraint c
449
+ JOIN pg_class t1 ON c.conrelid = t1.oid
450
+ JOIN pg_class t2 ON c.confrelid = t2.oid
451
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
452
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
453
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
454
+ WHERE c.contype = 'f'
455
+ AND t1.relname = 'lookup_firms'
456
+ AND t3.nspname = ANY (current_schemas(false))
457
+ ORDER BY c.conname
458
+
459
+  (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
460
+ FROM pg_constraint c
461
+ JOIN pg_class t1 ON c.conrelid = t1.oid
462
+ JOIN pg_class t2 ON c.confrelid = t2.oid
463
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
464
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
465
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
466
+ WHERE c.contype = 'f'
467
+ AND t1.relname = 'lookup_subsidiaries'
468
+ AND t3.nspname = ANY (current_schemas(false))
469
+ ORDER BY c.conname
470
+ 
471
+  (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
472
+ FROM pg_constraint c
473
+ JOIN pg_class t1 ON c.conrelid = t1.oid
474
+ JOIN pg_class t2 ON c.confrelid = t2.oid
475
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
476
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
477
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
478
+ WHERE c.contype = 'f'
479
+ AND t1.relname = 'ongoing_advice_fee_structures'
480
+ AND t3.nspname = ANY (current_schemas(false))
481
+ ORDER BY c.conname
482
+
483
+  (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
484
+ FROM pg_constraint c
485
+ JOIN pg_class t1 ON c.conrelid = t1.oid
486
+ JOIN pg_class t2 ON c.confrelid = t2.oid
487
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
488
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
489
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
490
+ WHERE c.contype = 'f'
491
+ AND t1.relname = 'other_advice_methods'
492
+ AND t3.nspname = ANY (current_schemas(false))
493
+ ORDER BY c.conname
494
+ 
495
+  (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
496
+ FROM pg_constraint c
497
+ JOIN pg_class t1 ON c.conrelid = t1.oid
498
+ JOIN pg_class t2 ON c.confrelid = t2.oid
499
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
500
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
501
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
502
+ WHERE c.contype = 'f'
503
+ AND t1.relname = 'principals'
504
+ AND t3.nspname = ANY (current_schemas(false))
505
+ ORDER BY c.conname
506
+
507
+  (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
508
+ FROM pg_constraint c
509
+ JOIN pg_class t1 ON c.conrelid = t1.oid
510
+ JOIN pg_class t2 ON c.confrelid = t2.oid
511
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
512
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
513
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
514
+ WHERE c.contype = 'f'
515
+ AND t1.relname = 'professional_bodies'
516
+ AND t3.nspname = ANY (current_schemas(false))
517
+ ORDER BY c.conname
518
+ 
519
+  (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
520
+ FROM pg_constraint c
521
+ JOIN pg_class t1 ON c.conrelid = t1.oid
522
+ JOIN pg_class t2 ON c.confrelid = t2.oid
523
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
524
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
525
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
526
+ WHERE c.contype = 'f'
527
+ AND t1.relname = 'professional_standings'
528
+ AND t3.nspname = ANY (current_schemas(false))
529
+ ORDER BY c.conname
530
+
531
+  (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
532
+ FROM pg_constraint c
533
+ JOIN pg_class t1 ON c.conrelid = t1.oid
534
+ JOIN pg_class t2 ON c.confrelid = t2.oid
535
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
536
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
537
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
538
+ WHERE c.contype = 'f'
539
+ AND t1.relname = 'qualifications'
540
+ AND t3.nspname = ANY (current_schemas(false))
541
+ ORDER BY c.conname
542
+