mas-rad_core 0.0.95 → 0.0.96
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/adviser.rb +3 -3
- data/db/migrate/20160205150033_add_bypass_reference_number_check_to_advisers.rb +5 -0
- data/lib/mas/rad_core/version.rb +1 -1
- data/spec/dummy/config/database.yml +1 -1
- data/spec/dummy/db/schema.rb +9 -8
- data/spec/dummy/log/development.log +1121 -0
- data/spec/dummy/log/test.log +199113 -0
- data/spec/factories/adviser.rb +1 -0
- data/spec/models/adviser_spec.rb +48 -32
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faeb68ce40e5a78b0271d13ca8781ba500612d12
|
4
|
+
data.tar.gz: c1d22f48fb0af550af797da593dbee649b1f11ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3875ada843c8ea3f078bc7da5d5d83604a928a1b2b4e95922d8bfc2a5f59961b0b047d1eb68ba726c3b37a9632abb660b8fc6fecc328f042875e8207ced3cd
|
7
|
+
data.tar.gz: ec84cbe93bcee8222680069ecf9c3bdd3dd63c1fbefd58aca06fa773815c28f837ef30f144365d99051263d39bedff771480cfcc07584ccce53d02c86feaac93
|
data/app/models/adviser.rb
CHANGED
@@ -27,9 +27,9 @@ class Adviser < ActiveRecord::Base
|
|
27
27
|
uniqueness: true,
|
28
28
|
format: {
|
29
29
|
with: /\A[A-Z]{3}[0-9]{5}\z/
|
30
|
-
}
|
30
|
+
}, unless: :bypass_reference_number_check?
|
31
31
|
|
32
|
-
validate :match_reference_number
|
32
|
+
validate :match_reference_number, unless: :bypass_reference_number_check?
|
33
33
|
|
34
34
|
scope :sorted_by_name, -> { order(:name) }
|
35
35
|
|
@@ -93,7 +93,7 @@ class Adviser < ActiveRecord::Base
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def assign_name
|
96
|
-
self.name = Lookup::Adviser.find_by(
|
96
|
+
self.name = self.name || Lookup::Adviser.find_by(
|
97
97
|
reference_number: reference_number
|
98
98
|
).try(:name)
|
99
99
|
end
|
data/lib/mas/rad_core/version.rb
CHANGED
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160205150033) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|
@@ -31,15 +31,16 @@ ActiveRecord::Schema.define(version: 20151111132037) do
|
|
31
31
|
add_index "accreditations_advisers", ["adviser_id", "accreditation_id"], name: "advisers_accreditations_index", unique: true, using: :btree
|
32
32
|
|
33
33
|
create_table "advisers", force: :cascade do |t|
|
34
|
-
t.string "reference_number",
|
35
|
-
t.string "name",
|
36
|
-
t.integer "firm_id",
|
37
|
-
t.datetime "created_at",
|
38
|
-
t.datetime "updated_at",
|
39
|
-
t.string "postcode",
|
40
|
-
t.integer "travel_distance",
|
34
|
+
t.string "reference_number", null: false
|
35
|
+
t.string "name", null: false
|
36
|
+
t.integer "firm_id", null: false
|
37
|
+
t.datetime "created_at", null: false
|
38
|
+
t.datetime "updated_at", null: false
|
39
|
+
t.string "postcode", default: "", null: false
|
40
|
+
t.integer "travel_distance", default: 0, null: false
|
41
41
|
t.float "latitude"
|
42
42
|
t.float "longitude"
|
43
|
+
t.boolean "bypass_reference_number_check", default: false
|
43
44
|
end
|
44
45
|
|
45
46
|
create_table "advisers_professional_bodies", id: false, force: :cascade do |t|
|
@@ -0,0 +1,1121 @@
|
|
1
|
+
[1m[36m (25.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
2
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateLookupFirms (20141211110031)
|
5
|
+
[1m[35m (0.2ms)[0m 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/cazrin/code/cultivate/rad_core/db/migrate/20141211110031_create_lookup_firms.rb:8)
|
7
|
+
[1m[36m (19.9ms)[0m [1mCREATE TABLE "lookup_firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying DEFAULT '' NOT NULL, "created_at" timestamp, "updated_at" timestamp) [0m
|
8
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" ("fca_number")
|
9
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141211110031"]]
|
10
|
+
[1m[35m (6.2ms)[0m COMMIT
|
11
|
+
Migrating to CreatePrincipals (20141221140208)
|
12
|
+
[1m[36m (6.0ms)[0m [1mBEGIN[0m
|
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/cazrin/code/cultivate/rad_core/db/migrate/20141221140208_create_principals.rb:19)
|
14
|
+
[1m[35m (14.8ms)[0m CREATE TABLE "principals" ("id" serial primary key, "fca_number" integer, "token" character varying, "website_address" character varying, "first_name" character varying, "last_name" character varying, "job_title" character varying, "email_address" character varying, "telephone_number" character varying, "confirmed_disclaimer" boolean DEFAULT 'f', "created_at" timestamp, "updated_at" timestamp)
|
15
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" ("fca_number")[0m
|
16
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" ("token")
|
17
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141221140208"]]
|
18
|
+
[1m[35m (0.4ms)[0m COMMIT
|
19
|
+
Migrating to AddLastSignInAtToPrincipal (20141222150416)
|
20
|
+
[1m[36m (6.1ms)[0m [1mBEGIN[0m
|
21
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "principals" ADD "last_sign_in_at" timestamp
|
22
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20141222150416"]]
|
23
|
+
[1m[35m (5.8ms)[0m COMMIT
|
24
|
+
Migrating to CreateLookupSubsidiaries (20141230112136)
|
25
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
26
|
+
[1m[35m (14.1ms)[0m CREATE TABLE "lookup_subsidiaries" ("id" serial primary key, "fca_number" integer NOT NULL, "name" character varying DEFAULT '' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
27
|
+
[1m[36m (6.4ms)[0m [1mCREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" ("fca_number")[0m
|
28
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141230112136"]]
|
29
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
30
|
+
Migrating to RemoveLastSignInAtFromPrincipals (20150106115732)
|
31
|
+
[1m[35m (6.1ms)[0m BEGIN
|
32
|
+
[1m[36m (6.4ms)[0m [1mALTER TABLE "principals" DROP "last_sign_in_at"[0m
|
33
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150106115732"]]
|
34
|
+
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
|
35
|
+
Migrating to CreateLookupAdvisers (20150114144343)
|
36
|
+
[1m[35m (0.2ms)[0m BEGIN
|
37
|
+
[1m[36m (14.4ms)[0m [1mCREATE TABLE "lookup_advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
38
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150114144343"]]
|
39
|
+
[1m[36m (11.3ms)[0m [1mCOMMIT[0m
|
40
|
+
Migrating to CreateFirms (20150114151447)
|
41
|
+
[1m[35m (6.0ms)[0m BEGIN
|
42
|
+
[1m[36m (13.8ms)[0m [1mCREATE TABLE "firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying NOT NULL, "email_address" character varying, "telephone_number" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
43
|
+
[1m[35m (5.0ms)[0m CREATE UNIQUE INDEX "index_firms_on_fca_number" ON "firms" ("fca_number")
|
44
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150114151447"]]
|
45
|
+
[1m[35m (0.6ms)[0m COMMIT
|
46
|
+
Migrating to AddAddressToFirm (20150115130949)
|
47
|
+
[1m[36m (6.7ms)[0m [1mBEGIN[0m
|
48
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" ADD "address_line_one" character varying
|
49
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "firms" ADD "address_line_two" character varying[0m
|
50
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "firms" ADD "address_town" character varying
|
51
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "firms" ADD "address_county" character varying[0m
|
52
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "firms" ADD "address_postcode" character varying
|
53
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150115130949"]]
|
54
|
+
[1m[35m (5.8ms)[0m COMMIT
|
55
|
+
Migrating to CreateInPersonAdviceMethods (20150119102735)
|
56
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
57
|
+
[1m[35m (14.4ms)[0m CREATE TABLE "in_person_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
58
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL) [0m
|
59
|
+
[1m[35m (6.7ms)[0m CREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" ("firm_id", "in_person_advice_method_id")
|
60
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150119102735"]]
|
61
|
+
[1m[35m (0.5ms)[0m COMMIT
|
62
|
+
Migrating to CreateOtherAdviceMethods (20150119111754)
|
63
|
+
[1m[36m (5.5ms)[0m [1mBEGIN[0m
|
64
|
+
[1m[35m (18.6ms)[0m CREATE TABLE "other_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
65
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL) [0m
|
66
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" ("firm_id", "other_advice_method_id")
|
67
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150119111754"]]
|
68
|
+
[1m[35m (0.6ms)[0m COMMIT
|
69
|
+
Migrating to AddFreeInitialMeetingToFirm (20150119114218)
|
70
|
+
[1m[36m (5.9ms)[0m [1mBEGIN[0m
|
71
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "firms" ADD "free_initial_meeting" boolean
|
72
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150119114218"]]
|
73
|
+
[1m[35m (5.7ms)[0m COMMIT
|
74
|
+
Migrating to CreateInitialMeetingDurations (20150119125208)
|
75
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
76
|
+
[1m[35m (14.0ms)[0m CREATE TABLE "initial_meeting_durations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
77
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" ADD "initial_meeting_duration_id" integer[0m
|
78
|
+
[1m[35m (6.8ms)[0m CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" ("initial_meeting_duration_id")
|
79
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150119125208"]]
|
80
|
+
[1m[35m (0.4ms)[0m COMMIT
|
81
|
+
Migrating to CreateInitialAdviceFeeStructures (20150119152325)
|
82
|
+
[1m[36m (5.8ms)[0m [1mBEGIN[0m
|
83
|
+
[1m[35m (15.4ms)[0m CREATE TABLE "initial_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
84
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL) [0m
|
85
|
+
[1m[35m (1.4ms)[0m CREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" ("firm_id", "initial_advice_fee_structure_id")
|
86
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150119152325"]]
|
87
|
+
[1m[35m (0.4ms)[0m COMMIT
|
88
|
+
Migrating to CreateOngoingAdviceFeeStructures (20150119152336)
|
89
|
+
[1m[36m (5.9ms)[0m [1mBEGIN[0m
|
90
|
+
[1m[35m (14.5ms)[0m CREATE TABLE "ongoing_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
91
|
+
[1m[36m (151.9ms)[0m [1mCREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL) [0m
|
92
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" ("firm_id", "ongoing_advice_fee_structure_id")
|
93
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150119152336"]]
|
94
|
+
[1m[35m (0.6ms)[0m COMMIT
|
95
|
+
Migrating to CreateAllowedPaymentMethods (20150120133717)
|
96
|
+
[1m[36m (9.8ms)[0m [1mBEGIN[0m
|
97
|
+
[1m[35m (14.3ms)[0m CREATE TABLE "allowed_payment_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
98
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL) [0m
|
99
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" ("firm_id", "allowed_payment_method_id")
|
100
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150120133717"]]
|
101
|
+
[1m[35m (0.5ms)[0m COMMIT
|
102
|
+
Migrating to AddMinimumFixedFeeToFirm (20150120141928)
|
103
|
+
[1m[36m (5.7ms)[0m [1mBEGIN[0m
|
104
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" ADD "minimum_fixed_fee" integer
|
105
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150120141928"]]
|
106
|
+
[1m[35m (5.8ms)[0m COMMIT
|
107
|
+
Migrating to CreateInvestmentSizes (20150120150738)
|
108
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
109
|
+
[1m[35m (14.9ms)[0m CREATE TABLE "investment_sizes" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
110
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL) [0m
|
111
|
+
[1m[35m (5.0ms)[0m CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" ("firm_id", "investment_size_id")
|
112
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150120150738"]]
|
113
|
+
[1m[35m (0.4ms)[0m COMMIT
|
114
|
+
Migrating to CreateAdvisers (20150121110757)
|
115
|
+
[1m[36m (6.2ms)[0m [1mBEGIN[0m
|
116
|
+
[1m[35m (15.8ms)[0m CREATE TABLE "advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "firm_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
117
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121110757"]]
|
118
|
+
[1m[35m (0.5ms)[0m COMMIT
|
119
|
+
Migrating to AddBusinessIncomeBreakdownFieldsToFirm (20150121123437)
|
120
|
+
[1m[36m (6.3ms)[0m [1mBEGIN[0m
|
121
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" ADD "retirement_income_products_percent" integer
|
122
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "firms" ADD "pension_transfer_percent" integer[0m
|
123
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "firms" ADD "long_term_care_percent" integer
|
124
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "firms" ADD "equity_release_percent" integer[0m
|
125
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "firms" ADD "inheritance_tax_and_estate_planning_percent" integer
|
126
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "firms" ADD "wills_and_probate_percent" integer[0m
|
127
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "firms" ADD "other_percent" integer
|
128
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121123437"]]
|
129
|
+
[1m[35m (6.0ms)[0m COMMIT
|
130
|
+
Migrating to CreateQualifications (20150121134845)
|
131
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
132
|
+
[1m[35m (14.1ms)[0m CREATE TABLE "qualifications" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
133
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL) [0m
|
134
|
+
[1m[35m (6.7ms)[0m CREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" ("adviser_id", "qualification_id")
|
135
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121134845"]]
|
136
|
+
[1m[35m (0.5ms)[0m COMMIT
|
137
|
+
Migrating to CreateAccreditations (20150121154458)
|
138
|
+
[1m[36m (5.6ms)[0m [1mBEGIN[0m
|
139
|
+
[1m[35m (15.3ms)[0m CREATE TABLE "accreditations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
140
|
+
[1m[36m (1.5ms)[0m [1mCREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL) [0m
|
141
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" ("adviser_id", "accreditation_id")
|
142
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121154458"]]
|
143
|
+
[1m[35m (1.4ms)[0m COMMIT
|
144
|
+
Migrating to CreateProfessionalStandings (20150121173015)
|
145
|
+
[1m[36m (5.5ms)[0m [1mBEGIN[0m
|
146
|
+
[1m[35m (14.7ms)[0m CREATE TABLE "professional_standings" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
147
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL) [0m
|
148
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" ("adviser_id", "professional_standing_id")
|
149
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121173015"]]
|
150
|
+
[1m[35m (0.4ms)[0m COMMIT
|
151
|
+
Migrating to CreateProfessionalBodies (20150121181341)
|
152
|
+
[1m[36m (5.7ms)[0m [1mBEGIN[0m
|
153
|
+
[1m[35m (15.2ms)[0m CREATE TABLE "professional_bodies" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
154
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL) [0m
|
155
|
+
[1m[35m (1.9ms)[0m CREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" ("adviser_id", "professional_body_id")
|
156
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121181341"]]
|
157
|
+
[1m[35m (0.5ms)[0m COMMIT
|
158
|
+
Migrating to AddConfirmedDisclaimerToAdvisers (20150121183728)
|
159
|
+
[1m[36m (5.6ms)[0m [1mBEGIN[0m
|
160
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "advisers" ADD "confirmed_disclaimer" boolean NOT NULL
|
161
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150121183728"]]
|
162
|
+
[1m[35m (6.0ms)[0m COMMIT
|
163
|
+
Migrating to AddGeographicalFieldsToAdviser (20150124124350)
|
164
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
165
|
+
[1m[35m (14.7ms)[0m ALTER TABLE "advisers" ADD "postcode" character varying DEFAULT '' NOT NULL
|
166
|
+
[1m[36m (8.8ms)[0m [1mALTER TABLE "advisers" ADD "travel_distance" integer DEFAULT 0 NOT NULL[0m
|
167
|
+
[1m[35m (4.0ms)[0m ALTER TABLE "advisers" ADD "covers_whole_of_uk" boolean DEFAULT 'f' NOT NULL
|
168
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150124124350"]]
|
169
|
+
[1m[35m (1.4ms)[0m COMMIT
|
170
|
+
Migrating to AddParentIdToFirms (20150125145457)
|
171
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
172
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" ADD "parent_id" integer
|
173
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150125145457"]]
|
174
|
+
[1m[35m (6.0ms)[0m COMMIT
|
175
|
+
Migrating to RemoveUniqueConstraintFromFirmsFcaNumber (20150125164156)
|
176
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
177
|
+
[1m[35m (0.3ms)[0m DROP INDEX "index_firms_on_fca_number"
|
178
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150125164156"]]
|
179
|
+
[1m[35m (6.1ms)[0m COMMIT
|
180
|
+
Migrating to AddOrderingOnReferenceData (20150127084858)
|
181
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
182
|
+
[1m[35m (14.8ms)[0m ALTER TABLE "accreditations" ADD "order" integer DEFAULT 0 NOT NULL
|
183
|
+
[1m[36mAccreditation Load (0.5ms)[0m [1mSELECT "accreditations".* FROM "accreditations" ORDER BY "accreditations"."id" ASC[0m
|
184
|
+
[1m[35m (7.3ms)[0m ALTER TABLE "allowed_payment_methods" ADD "order" integer DEFAULT 0 NOT NULL
|
185
|
+
[1m[36mAllowedPaymentMethod Load (0.4ms)[0m [1mSELECT "allowed_payment_methods".* FROM "allowed_payment_methods" ORDER BY "allowed_payment_methods"."id" ASC[0m
|
186
|
+
[1m[35m (3.1ms)[0m ALTER TABLE "in_person_advice_methods" ADD "order" integer DEFAULT 0 NOT NULL
|
187
|
+
[1m[36mInPersonAdviceMethod Load (0.5ms)[0m [1mSELECT "in_person_advice_methods".* FROM "in_person_advice_methods" ORDER BY "in_person_advice_methods"."id" ASC[0m
|
188
|
+
[1m[35m (7.6ms)[0m ALTER TABLE "initial_advice_fee_structures" ADD "order" integer DEFAULT 0 NOT NULL
|
189
|
+
[1m[36mInitialAdviceFeeStructure Load (0.6ms)[0m [1mSELECT "initial_advice_fee_structures".* FROM "initial_advice_fee_structures" ORDER BY "initial_advice_fee_structures"."id" ASC[0m
|
190
|
+
[1m[35m (4.0ms)[0m ALTER TABLE "initial_meeting_durations" ADD "order" integer DEFAULT 0 NOT NULL
|
191
|
+
[1m[36mInitialMeetingDuration Load (0.5ms)[0m [1mSELECT "initial_meeting_durations".* FROM "initial_meeting_durations" ORDER BY "initial_meeting_durations"."id" ASC[0m
|
192
|
+
[1m[35m (3.6ms)[0m ALTER TABLE "investment_sizes" ADD "order" integer DEFAULT 0 NOT NULL
|
193
|
+
[1m[36mInvestmentSize Load (0.5ms)[0m [1mSELECT "investment_sizes".* FROM "investment_sizes" ORDER BY "investment_sizes"."id" ASC[0m
|
194
|
+
[1m[35m (3.2ms)[0m ALTER TABLE "ongoing_advice_fee_structures" ADD "order" integer DEFAULT 0 NOT NULL
|
195
|
+
[1m[36mOngoingAdviceFeeStructure Load (0.4ms)[0m [1mSELECT "ongoing_advice_fee_structures".* FROM "ongoing_advice_fee_structures" ORDER BY "ongoing_advice_fee_structures"."id" ASC[0m
|
196
|
+
[1m[35m (4.1ms)[0m ALTER TABLE "other_advice_methods" ADD "order" integer DEFAULT 0 NOT NULL
|
197
|
+
[1m[36mOtherAdviceMethod Load (0.5ms)[0m [1mSELECT "other_advice_methods".* FROM "other_advice_methods" ORDER BY "other_advice_methods"."id" ASC[0m
|
198
|
+
[1m[35m (3.7ms)[0m ALTER TABLE "professional_bodies" ADD "order" integer DEFAULT 0 NOT NULL
|
199
|
+
[1m[36mProfessionalBody Load (0.6ms)[0m [1mSELECT "professional_bodies".* FROM "professional_bodies" ORDER BY "professional_bodies"."id" ASC[0m
|
200
|
+
[1m[35m (15.4ms)[0m ALTER TABLE "professional_standings" ADD "order" integer DEFAULT 0 NOT NULL
|
201
|
+
[1m[36mProfessionalStanding Load (0.8ms)[0m [1mSELECT "professional_standings".* FROM "professional_standings" ORDER BY "professional_standings"."id" ASC[0m
|
202
|
+
[1m[35m (14.4ms)[0m ALTER TABLE "qualifications" ADD "order" integer DEFAULT 0 NOT NULL
|
203
|
+
[1m[36mQualification Load (0.4ms)[0m [1mSELECT "qualifications".* FROM "qualifications" ORDER BY "qualifications"."id" ASC[0m
|
204
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150127084858"]]
|
205
|
+
[1m[36m (8.8ms)[0m [1mCOMMIT[0m
|
206
|
+
Migrating to RemoveCoversWholeOfUkFromAdvisers (20150209144836)
|
207
|
+
[1m[35m (0.5ms)[0m BEGIN
|
208
|
+
[1m[36mAdviser Load (0.5ms)[0m [1mSELECT "advisers".* FROM "advisers" WHERE "advisers"."covers_whole_of_uk" = 't' ORDER BY "advisers"."id" ASC LIMIT 1000[0m
|
209
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "advisers" DROP "covers_whole_of_uk"
|
210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150209144836"]]
|
211
|
+
[1m[35m (5.6ms)[0m COMMIT
|
212
|
+
Migrating to AddLatitudeAndLongitudeToFirm (20150210113610)
|
213
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
214
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" ADD "latitude" float
|
215
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "firms" ADD "longitude" float[0m
|
216
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150210113610"]]
|
217
|
+
[1m[36m (5.7ms)[0m [1mCOMMIT[0m
|
218
|
+
Migrating to AddLatitudeAndLongitudeToAdvisers (20150222092417)
|
219
|
+
[1m[35m (0.2ms)[0m BEGIN
|
220
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "advisers" ADD "latitude" float[0m
|
221
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "advisers" ADD "longitude" float
|
222
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150222092417"]]
|
223
|
+
[1m[35m (6.0ms)[0m COMMIT
|
224
|
+
Migrating to AddCyNameToOtherAdviceMethods (20150228095315)
|
225
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
226
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "other_advice_methods" ADD "cy_name" character varying
|
227
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150228095315"]]
|
228
|
+
[1m[35m (6.0ms)[0m COMMIT
|
229
|
+
Migrating to AddCyNameToInvestmentSize (20150305150719)
|
230
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
231
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "investment_sizes" ADD "cy_name" character varying
|
232
|
+
[1m[36mInvestmentSize Load (0.5ms)[0m [1mSELECT "investment_sizes".* FROM "investment_sizes" ORDER BY "investment_sizes"."order" ASC[0m
|
233
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150305150719"]]
|
234
|
+
[1m[36m (6.0ms)[0m [1mCOMMIT[0m
|
235
|
+
Migrating to AddIndexOnLookupAdvisersReferenceNumber (20150423154732)
|
236
|
+
[1m[35m (0.5ms)[0m BEGIN
|
237
|
+
[1m[36m (7.0ms)[0m [1mCREATE UNIQUE INDEX "index_lookup_advisers_on_reference_number" ON "lookup_advisers" ("reference_number")[0m
|
238
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423154732"]]
|
239
|
+
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
|
240
|
+
Migrating to ChangePercentageFieldsToBooleanFieldsOnFirm (20150630143001)
|
241
|
+
[1m[35m (0.2ms)[0m BEGIN
|
242
|
+
[1m[36m (21.0ms)[0m [1mALTER TABLE "firms" ADD "retirement_income_products_flag" boolean DEFAULT 'f' NOT NULL[0m
|
243
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "firms" SET "retirement_income_products_flag" = 't' WHERE (retirement_income_products_percent > 0)
|
244
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" DROP "retirement_income_products_percent"[0m
|
245
|
+
[1m[35m (6.0ms)[0m ALTER TABLE "firms" ADD "pension_transfer_flag" boolean DEFAULT 'f' NOT NULL
|
246
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "firms" SET "pension_transfer_flag" = 't' WHERE (pension_transfer_percent > 0)[0m
|
247
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "firms" DROP "pension_transfer_percent"
|
248
|
+
[1m[36m (4.3ms)[0m [1mALTER TABLE "firms" ADD "long_term_care_flag" boolean DEFAULT 'f' NOT NULL[0m
|
249
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "firms" SET "long_term_care_flag" = 't' WHERE (long_term_care_percent > 0)
|
250
|
+
[1m[36m (0.7ms)[0m [1mALTER TABLE "firms" DROP "long_term_care_percent"[0m
|
251
|
+
[1m[35m (8.2ms)[0m ALTER TABLE "firms" ADD "equity_release_flag" boolean DEFAULT 'f' NOT NULL
|
252
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "firms" SET "equity_release_flag" = 't' WHERE (equity_release_percent > 0)[0m
|
253
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" DROP "equity_release_percent"
|
254
|
+
[1m[36m (5.0ms)[0m [1mALTER TABLE "firms" ADD "inheritance_tax_and_estate_planning_flag" boolean DEFAULT 'f' NOT NULL[0m
|
255
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "firms" SET "inheritance_tax_and_estate_planning_flag" = 't' WHERE (inheritance_tax_and_estate_planning_percent > 0)
|
256
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" DROP "inheritance_tax_and_estate_planning_percent"[0m
|
257
|
+
[1m[35m (5.5ms)[0m ALTER TABLE "firms" ADD "wills_and_probate_flag" boolean DEFAULT 'f' NOT NULL
|
258
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "firms" SET "wills_and_probate_flag" = 't' WHERE (wills_and_probate_percent > 0)[0m
|
259
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "firms" DROP "wills_and_probate_percent"
|
260
|
+
[1m[36m (7.4ms)[0m [1mALTER TABLE "firms" ADD "other_flag" boolean DEFAULT 'f' NOT NULL[0m
|
261
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "firms" SET "other_flag" = 't' WHERE (other_percent > 0)
|
262
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" DROP "other_percent"[0m
|
263
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150630143001"]]
|
264
|
+
[1m[36m (7.5ms)[0m [1mCOMMIT[0m
|
265
|
+
Migrating to MoveWebsiteFromPrincipalsToFirms (20150706102943)
|
266
|
+
[1m[35m (1.9ms)[0m BEGIN
|
267
|
+
[1m[36m (1.3ms)[0m [1mALTER TABLE "firms" ADD "website_address" character varying[0m
|
268
|
+
[1m[35mPrincipal Load (0.8ms)[0m SELECT "principals".* FROM "principals"
|
269
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "principals" DROP "website_address"[0m
|
270
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150706102943"]]
|
271
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
272
|
+
Migrating to RemoveOtherFlagFromFirms (20150716123032)
|
273
|
+
[1m[35m (0.2ms)[0m BEGIN
|
274
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "firms" DROP "other_flag"[0m
|
275
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716123032"]]
|
276
|
+
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
|
277
|
+
Migrating to AddInvestingCheckboxesToFirms (20150806143047)
|
278
|
+
[1m[35m (0.3ms)[0m BEGIN
|
279
|
+
[1m[36m (22.1ms)[0m [1mALTER TABLE "firms" ADD "ethical_investing_flag" boolean DEFAULT 'f' NOT NULL[0m
|
280
|
+
[1m[35m (6.2ms)[0m ALTER TABLE "firms" ADD "sharia_investing_flag" boolean DEFAULT 'f' NOT NULL
|
281
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150806143047"]]
|
282
|
+
[1m[35m (1.6ms)[0m COMMIT
|
283
|
+
Migrating to AddLanguagesToFirm (20150807134551)
|
284
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
285
|
+
[1m[35m (23.5ms)[0m ALTER TABLE "firms" ADD "languages" text[] DEFAULT '{}' NOT NULL
|
286
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150807134551"]]
|
287
|
+
[1m[35m (1.1ms)[0m COMMIT
|
288
|
+
Migrating to CreateOffices (20150812140642)
|
289
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
290
|
+
[1m[35m (14.2ms)[0m CREATE TABLE "offices" ("id" serial primary key, "address_line_one" character varying NOT NULL, "address_line_two" character varying, "address_town" character varying NOT NULL, "address_county" character varying, "address_postcode" character varying NOT NULL, "email_address" character varying, "telephone_number" character varying, "disabled_access" boolean DEFAULT 'f' NOT NULL, "firm_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
291
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150812140642"]]
|
292
|
+
[1m[35m (5.9ms)[0m COMMIT
|
293
|
+
Migrating to RemoveConfirmedDisclaimerFromAdvisers (20150813103046)
|
294
|
+
[1m[36m (5.7ms)[0m [1mBEGIN[0m
|
295
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "advisers" DROP "confirmed_disclaimer"
|
296
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150813103046"]]
|
297
|
+
[1m[35m (5.6ms)[0m COMMIT
|
298
|
+
Migrating to AddStatusToFirms (20150817141257)
|
299
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
300
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" ADD "status" integer
|
301
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150817141257"]]
|
302
|
+
[1m[35m (6.5ms)[0m COMMIT
|
303
|
+
Migrating to MoveFirmAddressToOffice (20150825090822)
|
304
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
305
|
+
[1m[35mMoveFirmAddressToOffice::Firm Load (0.5ms)[0m SELECT "firms".* FROM "firms" WHERE ("firms"."address_line_one" IS NOT NULL)
|
306
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" DROP "address_line_one"[0m
|
307
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "firms" DROP "address_line_two"
|
308
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "firms" DROP "address_town"[0m
|
309
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "firms" DROP "address_county"
|
310
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "firms" DROP "address_postcode"[0m
|
311
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150825090822"]]
|
312
|
+
[1m[36m (5.9ms)[0m [1mCOMMIT[0m
|
313
|
+
Migrating to RemoveFirmEmailAndPhone (20150930140851)
|
314
|
+
[1m[35m (0.2ms)[0m BEGIN
|
315
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" DROP "email_address"[0m
|
316
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "firms" DROP "telephone_number"
|
317
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20150930140851"]]
|
318
|
+
[1m[35m (6.2ms)[0m COMMIT
|
319
|
+
Migrating to AddDefaultValueToMinimumFixedFee (20151102113518)
|
320
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
321
|
+
[1m[35mAddDefaultValueToMinimumFixedFee::Firm Load (0.5ms)[0m SELECT "firms".* FROM "firms" WHERE "firms"."minimum_fixed_fee" IS NULL
|
322
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "firms" ALTER COLUMN "minimum_fixed_fee" SET DEFAULT 0[0m
|
323
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102113518"]]
|
324
|
+
[1m[36m (5.8ms)[0m [1mCOMMIT[0m
|
325
|
+
Migrating to AddLatitudeAndLongitudeToOffice (20151103161642)
|
326
|
+
[1m[35m (0.2ms)[0m BEGIN
|
327
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "offices" ADD "latitude" float[0m
|
328
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "offices" ADD "longitude" float
|
329
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20151103161642"]]
|
330
|
+
[1m[35m (5.8ms)[0m COMMIT
|
331
|
+
Migrating to RemoveLatitudeAndLongitudeFromFirm (20151111132037)
|
332
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
333
|
+
[1m[35mRemoveLatitudeAndLongitudeFromFirm::Firm Load (1.5ms)[0m SELECT "firms".* FROM "firms" WHERE ("firms"."latitude" IS NOT NULL) AND ("firms"."longitude" IS NOT NULL) ORDER BY "firms"."id" ASC LIMIT 1000
|
334
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "firms" DROP "latitude"[0m
|
335
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "firms" DROP "longitude"
|
336
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20151111132037"]]
|
337
|
+
[1m[35m (5.7ms)[0m COMMIT
|
338
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
339
|
+
[1m[35m (2.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'accreditations'
|
348
|
+
AND t3.nspname = ANY (current_schemas(false))
|
349
|
+
ORDER BY c.conname
|
350
|
+
|
351
|
+
[1m[36m (2.1ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'accreditations_advisers'
|
360
|
+
AND t3.nspname = ANY (current_schemas(false))
|
361
|
+
ORDER BY c.conname
|
362
|
+
[0m
|
363
|
+
[1m[35m (2.1ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'advisers'
|
372
|
+
AND t3.nspname = ANY (current_schemas(false))
|
373
|
+
ORDER BY c.conname
|
374
|
+
|
375
|
+
[1m[36m (2.0ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'advisers_professional_bodies'
|
384
|
+
AND t3.nspname = ANY (current_schemas(false))
|
385
|
+
ORDER BY c.conname
|
386
|
+
[0m
|
387
|
+
[1m[35m (1.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'advisers_professional_standings'
|
396
|
+
AND t3.nspname = ANY (current_schemas(false))
|
397
|
+
ORDER BY c.conname
|
398
|
+
|
399
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'advisers_qualifications'
|
408
|
+
AND t3.nspname = ANY (current_schemas(false))
|
409
|
+
ORDER BY c.conname
|
410
|
+
[0m
|
411
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'allowed_payment_methods'
|
420
|
+
AND t3.nspname = ANY (current_schemas(false))
|
421
|
+
ORDER BY c.conname
|
422
|
+
|
423
|
+
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'allowed_payment_methods_firms'
|
432
|
+
AND t3.nspname = ANY (current_schemas(false))
|
433
|
+
ORDER BY c.conname
|
434
|
+
[0m
|
435
|
+
[1m[35m (1.8ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'firms'
|
444
|
+
AND t3.nspname = ANY (current_schemas(false))
|
445
|
+
ORDER BY c.conname
|
446
|
+
|
447
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'firms_in_person_advice_methods'
|
456
|
+
AND t3.nspname = ANY (current_schemas(false))
|
457
|
+
ORDER BY c.conname
|
458
|
+
[0m
|
459
|
+
[1m[35m (2.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'firms_initial_advice_fee_structures'
|
468
|
+
AND t3.nspname = ANY (current_schemas(false))
|
469
|
+
ORDER BY c.conname
|
470
|
+
|
471
|
+
[1m[36m (2.0ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'firms_investment_sizes'
|
480
|
+
AND t3.nspname = ANY (current_schemas(false))
|
481
|
+
ORDER BY c.conname
|
482
|
+
[0m
|
483
|
+
[1m[35m (1.8ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'firms_ongoing_advice_fee_structures'
|
492
|
+
AND t3.nspname = ANY (current_schemas(false))
|
493
|
+
ORDER BY c.conname
|
494
|
+
|
495
|
+
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'firms_other_advice_methods'
|
504
|
+
AND t3.nspname = ANY (current_schemas(false))
|
505
|
+
ORDER BY c.conname
|
506
|
+
[0m
|
507
|
+
[1m[35m (2.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'in_person_advice_methods'
|
516
|
+
AND t3.nspname = ANY (current_schemas(false))
|
517
|
+
ORDER BY c.conname
|
518
|
+
|
519
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'initial_advice_fee_structures'
|
528
|
+
AND t3.nspname = ANY (current_schemas(false))
|
529
|
+
ORDER BY c.conname
|
530
|
+
[0m
|
531
|
+
[1m[35m (1.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
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 = 'initial_meeting_durations'
|
540
|
+
AND t3.nspname = ANY (current_schemas(false))
|
541
|
+
ORDER BY c.conname
|
542
|
+
|
543
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
544
|
+
FROM pg_constraint c
|
545
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
546
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
547
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
548
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
549
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
550
|
+
WHERE c.contype = 'f'
|
551
|
+
AND t1.relname = 'investment_sizes'
|
552
|
+
AND t3.nspname = ANY (current_schemas(false))
|
553
|
+
ORDER BY c.conname
|
554
|
+
[0m
|
555
|
+
[1m[35m (2.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
556
|
+
FROM pg_constraint c
|
557
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
558
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
559
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
560
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
561
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
562
|
+
WHERE c.contype = 'f'
|
563
|
+
AND t1.relname = 'lookup_advisers'
|
564
|
+
AND t3.nspname = ANY (current_schemas(false))
|
565
|
+
ORDER BY c.conname
|
566
|
+
|
567
|
+
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
568
|
+
FROM pg_constraint c
|
569
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
570
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
571
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
572
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
573
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
574
|
+
WHERE c.contype = 'f'
|
575
|
+
AND t1.relname = 'lookup_firms'
|
576
|
+
AND t3.nspname = ANY (current_schemas(false))
|
577
|
+
ORDER BY c.conname
|
578
|
+
[0m
|
579
|
+
[1m[35m (2.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
580
|
+
FROM pg_constraint c
|
581
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
582
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
583
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
584
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
585
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
586
|
+
WHERE c.contype = 'f'
|
587
|
+
AND t1.relname = 'lookup_subsidiaries'
|
588
|
+
AND t3.nspname = ANY (current_schemas(false))
|
589
|
+
ORDER BY c.conname
|
590
|
+
|
591
|
+
[1m[36m (1.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
592
|
+
FROM pg_constraint c
|
593
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
594
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
595
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
596
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
597
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
598
|
+
WHERE c.contype = 'f'
|
599
|
+
AND t1.relname = 'offices'
|
600
|
+
AND t3.nspname = ANY (current_schemas(false))
|
601
|
+
ORDER BY c.conname
|
602
|
+
[0m
|
603
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
604
|
+
FROM pg_constraint c
|
605
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
606
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
607
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
608
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
609
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
610
|
+
WHERE c.contype = 'f'
|
611
|
+
AND t1.relname = 'ongoing_advice_fee_structures'
|
612
|
+
AND t3.nspname = ANY (current_schemas(false))
|
613
|
+
ORDER BY c.conname
|
614
|
+
|
615
|
+
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
616
|
+
FROM pg_constraint c
|
617
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
618
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
619
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
620
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
621
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
622
|
+
WHERE c.contype = 'f'
|
623
|
+
AND t1.relname = 'other_advice_methods'
|
624
|
+
AND t3.nspname = ANY (current_schemas(false))
|
625
|
+
ORDER BY c.conname
|
626
|
+
[0m
|
627
|
+
[1m[35m (1.8ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
628
|
+
FROM pg_constraint c
|
629
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
630
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
631
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
632
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
633
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
634
|
+
WHERE c.contype = 'f'
|
635
|
+
AND t1.relname = 'principals'
|
636
|
+
AND t3.nspname = ANY (current_schemas(false))
|
637
|
+
ORDER BY c.conname
|
638
|
+
|
639
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
640
|
+
FROM pg_constraint c
|
641
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
642
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
643
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
644
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
645
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
646
|
+
WHERE c.contype = 'f'
|
647
|
+
AND t1.relname = 'professional_bodies'
|
648
|
+
AND t3.nspname = ANY (current_schemas(false))
|
649
|
+
ORDER BY c.conname
|
650
|
+
[0m
|
651
|
+
[1m[35m (2.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
652
|
+
FROM pg_constraint c
|
653
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
654
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
655
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
656
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
657
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
658
|
+
WHERE c.contype = 'f'
|
659
|
+
AND t1.relname = 'professional_standings'
|
660
|
+
AND t3.nspname = ANY (current_schemas(false))
|
661
|
+
ORDER BY c.conname
|
662
|
+
|
663
|
+
[1m[36m (2.1ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
664
|
+
FROM pg_constraint c
|
665
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
666
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
667
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
668
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
669
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
670
|
+
WHERE c.contype = 'f'
|
671
|
+
AND t1.relname = 'qualifications'
|
672
|
+
AND t3.nspname = ANY (current_schemas(false))
|
673
|
+
ORDER BY c.conname
|
674
|
+
[0m
|
675
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
676
|
+
Migrating to AddBypassReferenceNumberCheckToAdvisers (20160205150033)
|
677
|
+
[1m[35m (0.2ms)[0m BEGIN
|
678
|
+
[1m[36m (29.1ms)[0m [1mALTER TABLE "advisers" ADD "bypass_reference_number_check" boolean DEFAULT 'f'[0m
|
679
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160205150033"]]
|
680
|
+
[1m[36m (1.4ms)[0m [1mCOMMIT[0m
|
681
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
682
|
+
[1m[36m (2.6ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
683
|
+
FROM pg_constraint c
|
684
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
685
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
686
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
687
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
688
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
689
|
+
WHERE c.contype = 'f'
|
690
|
+
AND t1.relname = 'accreditations'
|
691
|
+
AND t3.nspname = ANY (current_schemas(false))
|
692
|
+
ORDER BY c.conname
|
693
|
+
[0m
|
694
|
+
[1m[35m (1.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
695
|
+
FROM pg_constraint c
|
696
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
697
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
698
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
699
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
700
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
701
|
+
WHERE c.contype = 'f'
|
702
|
+
AND t1.relname = 'accreditations_advisers'
|
703
|
+
AND t3.nspname = ANY (current_schemas(false))
|
704
|
+
ORDER BY c.conname
|
705
|
+
|
706
|
+
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
707
|
+
FROM pg_constraint c
|
708
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
709
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
710
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
711
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
712
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
713
|
+
WHERE c.contype = 'f'
|
714
|
+
AND t1.relname = 'advisers'
|
715
|
+
AND t3.nspname = ANY (current_schemas(false))
|
716
|
+
ORDER BY c.conname
|
717
|
+
[0m
|
718
|
+
[1m[35m (1.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
719
|
+
FROM pg_constraint c
|
720
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
721
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
722
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
723
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
724
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
725
|
+
WHERE c.contype = 'f'
|
726
|
+
AND t1.relname = 'advisers_professional_bodies'
|
727
|
+
AND t3.nspname = ANY (current_schemas(false))
|
728
|
+
ORDER BY c.conname
|
729
|
+
|
730
|
+
[1m[36m (1.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
731
|
+
FROM pg_constraint c
|
732
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
733
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
734
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
735
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
736
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
737
|
+
WHERE c.contype = 'f'
|
738
|
+
AND t1.relname = 'advisers_professional_standings'
|
739
|
+
AND t3.nspname = ANY (current_schemas(false))
|
740
|
+
ORDER BY c.conname
|
741
|
+
[0m
|
742
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
743
|
+
FROM pg_constraint c
|
744
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
745
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
746
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
747
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
748
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
749
|
+
WHERE c.contype = 'f'
|
750
|
+
AND t1.relname = 'advisers_qualifications'
|
751
|
+
AND t3.nspname = ANY (current_schemas(false))
|
752
|
+
ORDER BY c.conname
|
753
|
+
|
754
|
+
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
755
|
+
FROM pg_constraint c
|
756
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
757
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
758
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
759
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
760
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
761
|
+
WHERE c.contype = 'f'
|
762
|
+
AND t1.relname = 'allowed_payment_methods'
|
763
|
+
AND t3.nspname = ANY (current_schemas(false))
|
764
|
+
ORDER BY c.conname
|
765
|
+
[0m
|
766
|
+
[1m[35m (1.7ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
767
|
+
FROM pg_constraint c
|
768
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
769
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
770
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
771
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
772
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
773
|
+
WHERE c.contype = 'f'
|
774
|
+
AND t1.relname = 'allowed_payment_methods_firms'
|
775
|
+
AND t3.nspname = ANY (current_schemas(false))
|
776
|
+
ORDER BY c.conname
|
777
|
+
|
778
|
+
[1m[36m (1.6ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
779
|
+
FROM pg_constraint c
|
780
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
781
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
782
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
783
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
784
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
785
|
+
WHERE c.contype = 'f'
|
786
|
+
AND t1.relname = 'firms'
|
787
|
+
AND t3.nspname = ANY (current_schemas(false))
|
788
|
+
ORDER BY c.conname
|
789
|
+
[0m
|
790
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
791
|
+
FROM pg_constraint c
|
792
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
793
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
794
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
795
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
796
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
797
|
+
WHERE c.contype = 'f'
|
798
|
+
AND t1.relname = 'firms_in_person_advice_methods'
|
799
|
+
AND t3.nspname = ANY (current_schemas(false))
|
800
|
+
ORDER BY c.conname
|
801
|
+
|
802
|
+
[1m[36m (1.7ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
803
|
+
FROM pg_constraint c
|
804
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
805
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
806
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
807
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
808
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
809
|
+
WHERE c.contype = 'f'
|
810
|
+
AND t1.relname = 'firms_initial_advice_fee_structures'
|
811
|
+
AND t3.nspname = ANY (current_schemas(false))
|
812
|
+
ORDER BY c.conname
|
813
|
+
[0m
|
814
|
+
[1m[35m (7.6ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
815
|
+
FROM pg_constraint c
|
816
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
817
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
818
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
819
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
820
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
821
|
+
WHERE c.contype = 'f'
|
822
|
+
AND t1.relname = 'firms_investment_sizes'
|
823
|
+
AND t3.nspname = ANY (current_schemas(false))
|
824
|
+
ORDER BY c.conname
|
825
|
+
|
826
|
+
[1m[36m (4.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
827
|
+
FROM pg_constraint c
|
828
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
829
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
830
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
831
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
832
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
833
|
+
WHERE c.contype = 'f'
|
834
|
+
AND t1.relname = 'firms_ongoing_advice_fee_structures'
|
835
|
+
AND t3.nspname = ANY (current_schemas(false))
|
836
|
+
ORDER BY c.conname
|
837
|
+
[0m
|
838
|
+
[1m[35m (3.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
839
|
+
FROM pg_constraint c
|
840
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
841
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
842
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
843
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
844
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
845
|
+
WHERE c.contype = 'f'
|
846
|
+
AND t1.relname = 'firms_other_advice_methods'
|
847
|
+
AND t3.nspname = ANY (current_schemas(false))
|
848
|
+
ORDER BY c.conname
|
849
|
+
|
850
|
+
[1m[36m (4.0ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
851
|
+
FROM pg_constraint c
|
852
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
853
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
854
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
855
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
856
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
857
|
+
WHERE c.contype = 'f'
|
858
|
+
AND t1.relname = 'in_person_advice_methods'
|
859
|
+
AND t3.nspname = ANY (current_schemas(false))
|
860
|
+
ORDER BY c.conname
|
861
|
+
[0m
|
862
|
+
[1m[35m (3.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
863
|
+
FROM pg_constraint c
|
864
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
865
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
866
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
867
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
868
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
869
|
+
WHERE c.contype = 'f'
|
870
|
+
AND t1.relname = 'initial_advice_fee_structures'
|
871
|
+
AND t3.nspname = ANY (current_schemas(false))
|
872
|
+
ORDER BY c.conname
|
873
|
+
|
874
|
+
[1m[36m (3.4ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
875
|
+
FROM pg_constraint c
|
876
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
877
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
878
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
879
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
880
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
881
|
+
WHERE c.contype = 'f'
|
882
|
+
AND t1.relname = 'initial_meeting_durations'
|
883
|
+
AND t3.nspname = ANY (current_schemas(false))
|
884
|
+
ORDER BY c.conname
|
885
|
+
[0m
|
886
|
+
[1m[35m (3.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
887
|
+
FROM pg_constraint c
|
888
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
889
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
890
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
891
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
892
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
893
|
+
WHERE c.contype = 'f'
|
894
|
+
AND t1.relname = 'investment_sizes'
|
895
|
+
AND t3.nspname = ANY (current_schemas(false))
|
896
|
+
ORDER BY c.conname
|
897
|
+
|
898
|
+
[1m[36m (3.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
899
|
+
FROM pg_constraint c
|
900
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
901
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
902
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
903
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
904
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
905
|
+
WHERE c.contype = 'f'
|
906
|
+
AND t1.relname = 'lookup_advisers'
|
907
|
+
AND t3.nspname = ANY (current_schemas(false))
|
908
|
+
ORDER BY c.conname
|
909
|
+
[0m
|
910
|
+
[1m[35m (5.3ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
911
|
+
FROM pg_constraint c
|
912
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
913
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
914
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
915
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
916
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
917
|
+
WHERE c.contype = 'f'
|
918
|
+
AND t1.relname = 'lookup_firms'
|
919
|
+
AND t3.nspname = ANY (current_schemas(false))
|
920
|
+
ORDER BY c.conname
|
921
|
+
|
922
|
+
[1m[36m (4.8ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
923
|
+
FROM pg_constraint c
|
924
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
925
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
926
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
927
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
928
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
929
|
+
WHERE c.contype = 'f'
|
930
|
+
AND t1.relname = 'lookup_subsidiaries'
|
931
|
+
AND t3.nspname = ANY (current_schemas(false))
|
932
|
+
ORDER BY c.conname
|
933
|
+
[0m
|
934
|
+
[1m[35m (3.5ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
935
|
+
FROM pg_constraint c
|
936
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
937
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
938
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
939
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
940
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
941
|
+
WHERE c.contype = 'f'
|
942
|
+
AND t1.relname = 'offices'
|
943
|
+
AND t3.nspname = ANY (current_schemas(false))
|
944
|
+
ORDER BY c.conname
|
945
|
+
|
946
|
+
[1m[36m (3.5ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
947
|
+
FROM pg_constraint c
|
948
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
949
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
950
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
951
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
952
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
953
|
+
WHERE c.contype = 'f'
|
954
|
+
AND t1.relname = 'ongoing_advice_fee_structures'
|
955
|
+
AND t3.nspname = ANY (current_schemas(false))
|
956
|
+
ORDER BY c.conname
|
957
|
+
[0m
|
958
|
+
[1m[35m (2.4ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
959
|
+
FROM pg_constraint c
|
960
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
961
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
962
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
963
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
964
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
965
|
+
WHERE c.contype = 'f'
|
966
|
+
AND t1.relname = 'other_advice_methods'
|
967
|
+
AND t3.nspname = ANY (current_schemas(false))
|
968
|
+
ORDER BY c.conname
|
969
|
+
|
970
|
+
[1m[36m (2.0ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
971
|
+
FROM pg_constraint c
|
972
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
973
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
974
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
975
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
976
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
977
|
+
WHERE c.contype = 'f'
|
978
|
+
AND t1.relname = 'principals'
|
979
|
+
AND t3.nspname = ANY (current_schemas(false))
|
980
|
+
ORDER BY c.conname
|
981
|
+
[0m
|
982
|
+
[1m[35m (1.9ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
983
|
+
FROM pg_constraint c
|
984
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
985
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
986
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
987
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
988
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
989
|
+
WHERE c.contype = 'f'
|
990
|
+
AND t1.relname = 'professional_bodies'
|
991
|
+
AND t3.nspname = ANY (current_schemas(false))
|
992
|
+
ORDER BY c.conname
|
993
|
+
|
994
|
+
[1m[36m (3.9ms)[0m [1mSELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
995
|
+
FROM pg_constraint c
|
996
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
997
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
998
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
999
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1000
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1001
|
+
WHERE c.contype = 'f'
|
1002
|
+
AND t1.relname = 'professional_standings'
|
1003
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1004
|
+
ORDER BY c.conname
|
1005
|
+
[0m
|
1006
|
+
[1m[35m (3.0ms)[0m SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
|
1007
|
+
FROM pg_constraint c
|
1008
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
1009
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
1010
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
1011
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
1012
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
1013
|
+
WHERE c.contype = 'f'
|
1014
|
+
AND t1.relname = 'qualifications'
|
1015
|
+
AND t3.nspname = ANY (current_schemas(false))
|
1016
|
+
ORDER BY c.conname
|
1017
|
+
|
1018
|
+
[1m[36m (124.7ms)[0m [1mDROP DATABASE IF EXISTS "rad_core_test"[0m
|
1019
|
+
[1m[35m (348.9ms)[0m CREATE DATABASE "rad_core_test" ENCODING = 'utf8'
|
1020
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1021
|
+
[1m[35m (4.4ms)[0m CREATE TABLE "accreditations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
1022
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL) [0m
|
1023
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" USING btree ("adviser_id", "accreditation_id")
|
1024
|
+
[1m[36m (3.4ms)[0m [1mCREATE TABLE "advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "firm_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "postcode" character varying DEFAULT '' NOT NULL, "travel_distance" integer DEFAULT 0 NOT NULL, "latitude" float, "longitude" float, "bypass_reference_number_check" boolean DEFAULT 'f') [0m
|
1025
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL)
|
1026
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" USING btree ("adviser_id", "professional_body_id")[0m
|
1027
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL)
|
1028
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" USING btree ("adviser_id", "professional_standing_id")[0m
|
1029
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL)
|
1030
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" USING btree ("adviser_id", "qualification_id")[0m
|
1031
|
+
[1m[35m (2.9ms)[0m CREATE TABLE "allowed_payment_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
1032
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL) [0m
|
1033
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" USING btree ("firm_id", "allowed_payment_method_id")
|
1034
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "free_initial_meeting" boolean, "initial_meeting_duration_id" integer, "minimum_fixed_fee" integer DEFAULT 0, "parent_id" integer, "retirement_income_products_flag" boolean DEFAULT 'f' NOT NULL, "pension_transfer_flag" boolean DEFAULT 'f' NOT NULL, "long_term_care_flag" boolean DEFAULT 'f' NOT NULL, "equity_release_flag" boolean DEFAULT 'f' NOT NULL, "inheritance_tax_and_estate_planning_flag" boolean DEFAULT 'f' NOT NULL, "wills_and_probate_flag" boolean DEFAULT 'f' NOT NULL, "website_address" character varying, "ethical_investing_flag" boolean DEFAULT 'f' NOT NULL, "sharia_investing_flag" boolean DEFAULT 'f' NOT NULL, "languages" text[] DEFAULT '{}' NOT NULL, "status" integer) [0m
|
1035
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" USING btree ("initial_meeting_duration_id")
|
1036
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL) [0m
|
1037
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" USING btree ("firm_id", "in_person_advice_method_id")
|
1038
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL) [0m
|
1039
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" USING btree ("firm_id", "initial_advice_fee_structure_id")
|
1040
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL) [0m
|
1041
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" USING btree ("firm_id", "investment_size_id")
|
1042
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL) [0m
|
1043
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" USING btree ("firm_id", "ongoing_advice_fee_structure_id")
|
1044
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL) [0m
|
1045
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" USING btree ("firm_id", "other_advice_method_id")
|
1046
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "in_person_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
1047
|
+
[1m[35m (3.2ms)[0m CREATE TABLE "initial_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
1048
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "initial_meeting_durations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
1049
|
+
[1m[35m (3.9ms)[0m CREATE TABLE "investment_sizes" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL, "cy_name" character varying)
|
1050
|
+
[1m[36m (3.1ms)[0m [1mCREATE TABLE "lookup_advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1051
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "index_lookup_advisers_on_reference_number" ON "lookup_advisers" USING btree ("reference_number")
|
1052
|
+
[1m[36m (3.5ms)[0m [1mCREATE TABLE "lookup_firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying DEFAULT '' NOT NULL, "created_at" timestamp, "updated_at" timestamp) [0m
|
1053
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" USING btree ("fca_number")
|
1054
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "lookup_subsidiaries" ("id" serial primary key, "fca_number" integer NOT NULL, "name" character varying DEFAULT '' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
1055
|
+
[1m[35m (1.2ms)[0m CREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" USING btree ("fca_number")
|
1056
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "offices" ("id" serial primary key, "address_line_one" character varying NOT NULL, "address_line_two" character varying, "address_town" character varying NOT NULL, "address_county" character varying, "address_postcode" character varying NOT NULL, "email_address" character varying, "telephone_number" character varying, "disabled_access" boolean DEFAULT 'f' NOT NULL, "firm_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "latitude" float, "longitude" float) [0m
|
1057
|
+
[1m[35m (2.8ms)[0m CREATE TABLE "ongoing_advice_fee_structures" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
1058
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "other_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL, "cy_name" character varying) [0m
|
1059
|
+
[1m[35m (3.1ms)[0m CREATE TABLE "principals" ("id" serial primary key, "fca_number" integer, "token" 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)
|
1060
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" USING btree ("fca_number")[0m
|
1061
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" USING btree ("token")
|
1062
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "professional_bodies" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
1063
|
+
[1m[35m (3.1ms)[0m CREATE TABLE "professional_standings" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL)
|
1064
|
+
[1m[36m (2.5ms)[0m [1mCREATE TABLE "qualifications" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "order" integer DEFAULT 0 NOT NULL) [0m
|
1065
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
1066
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1067
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
1068
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160205150033')[0m
|
1069
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141211110031')
|
1070
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141221140208')[0m
|
1071
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141222150416')
|
1072
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141230112136')[0m
|
1073
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150106115732')
|
1074
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150114144343')[0m
|
1075
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150114151447')
|
1076
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150115130949')[0m
|
1077
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119102735')
|
1078
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119111754')[0m
|
1079
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119114218')
|
1080
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119125208')[0m
|
1081
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150119152325')
|
1082
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150119152336')[0m
|
1083
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150120133717')
|
1084
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150120141928')[0m
|
1085
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150120150738')
|
1086
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121110757')[0m
|
1087
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121123437')
|
1088
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121134845')[0m
|
1089
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121154458')
|
1090
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121173015')[0m
|
1091
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150121181341')
|
1092
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150121183728')[0m
|
1093
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150124124350')
|
1094
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150125145457')[0m
|
1095
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150125164156')
|
1096
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150127084858')[0m
|
1097
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150209144836')
|
1098
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150210113610')[0m
|
1099
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150222092417')
|
1100
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150228095315')[0m
|
1101
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150305150719')
|
1102
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150423154732')[0m
|
1103
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150630143001')
|
1104
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150706102943')[0m
|
1105
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150716123032')
|
1106
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150806143047')[0m
|
1107
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150807134551')
|
1108
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150812140642')[0m
|
1109
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150813103046')
|
1110
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150817141257')[0m
|
1111
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150825090822')
|
1112
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150930140851')[0m
|
1113
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151102113518')
|
1114
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151103161642')[0m
|
1115
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151111132037')
|
1116
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1117
|
+
[1m[35mAdviser Exists (7.1ms)[0m SELECT 1 AS one FROM "advisers" WHERE "advisers"."reference_number" IS NULL LIMIT 1
|
1118
|
+
[1m[36mLookup::Adviser Exists (24.7ms)[0m [1mSELECT 1 AS one FROM "lookup_advisers" WHERE "lookup_advisers"."reference_number" IS NULL LIMIT 1[0m
|
1119
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1120
|
+
[1m[36mAdviser Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "advisers" WHERE "advisers"."reference_number" IS NULL LIMIT 1[0m
|
1121
|
+
[1m[35mLookup::Adviser Exists (0.4ms)[0m SELECT 1 AS one FROM "lookup_advisers" WHERE "lookup_advisers"."reference_number" IS NULL LIMIT 1
|