mas-rad_core 0.0.106 → 0.0.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc0f61c01050bd2ad31b882d030d3110392169e9
4
- data.tar.gz: db3f90ac78b05b2a95231aad2abd0c5740e4d0ad
3
+ metadata.gz: f1c3d7120522c80135a7272819287c30fe169ed1
4
+ data.tar.gz: bd417037e164145da5e8a3103e3c87b2a49f5330
5
5
  SHA512:
6
- metadata.gz: 82343f3c11ba8655b3f1575c3d1be8ac7d475135125b969e405a6d5e94f1e612e35bd75303cb7a7287b00c2e2d950fccdb6ccd539a568ec8a8e7f109cd87dda3
7
- data.tar.gz: 002acd2c27cc787f6ea7a9bd65e564834ecd7c7558f4f50f8a018ef7292a5bc7d0d254d768528485d59545d21bbaa1ba862f235f8304a6489cbfea75d8396306
6
+ metadata.gz: 3fd67127e8b475f92ef247c853f7577eefccdce829445463b8a2c70e31c3288c22da61d987df3870e109776b7e14eef5359822e24e760a320fbaa999fe603adb
7
+ data.tar.gz: 0054eb981b9772059cde07342b9123aad3e06ef9e820d2193bb8d62a502898bce9cdf695b8a1c33cf6cfacddc00fa7ac0433cfb216dca5a352c86a57b0792190
@@ -0,0 +1,12 @@
1
+ class AddSessionsTable < ActiveRecord::Migration
2
+ def change
3
+ create_table :rad_consumer_sessions do |t|
4
+ t.string :session_id, :null => false
5
+ t.text :data
6
+ t.timestamps
7
+ end
8
+
9
+ add_index :rad_consumer_sessions, :session_id, :unique => true
10
+ add_index :rad_consumer_sessions, :updated_at
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  module MAS
2
2
  module RadCore
3
- VERSION = '0.0.106'
3
+ VERSION = '0.0.107'
4
4
  end
5
5
  end
@@ -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: 20160222091312) do
14
+ ActiveRecord::Schema.define(version: 20160317103053) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -261,6 +261,16 @@ ActiveRecord::Schema.define(version: 20160222091312) do
261
261
  t.integer "order", default: 0, null: false
262
262
  end
263
263
 
264
+ create_table "rad_consumer_sessions", force: :cascade do |t|
265
+ t.string "session_id", null: false
266
+ t.text "data"
267
+ t.datetime "created_at"
268
+ t.datetime "updated_at"
269
+ end
270
+
271
+ add_index "rad_consumer_sessions", ["session_id"], name: "index_rad_consumer_sessions_on_session_id", unique: true, using: :btree
272
+ add_index "rad_consumer_sessions", ["updated_at"], name: "index_rad_consumer_sessions_on_updated_at", using: :btree
273
+
264
274
  create_table "snapshots", force: :cascade do |t|
265
275
  t.integer "firms_with_no_minimum_fee"
266
276
  t.integer "integer"
@@ -699,3 +699,1125 @@ WHERE c.contype = 'f'
699
699
  AND t3.nspname = ANY (current_schemas(false))
700
700
  ORDER BY c.conname
701
701
 
702
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
703
+ Migrating to AddSessionsTable (20160317103053)
704
+  (0.2ms) BEGIN
705
+ DEPRECATION WARNING: `#timestamps` 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/peteraitken/code/cultivate/mas/mas-rad_core/db/migrate/20160317103053_add_sessions_table.rb:6)
706
+  (24.2ms) CREATE TABLE "rad_consumer_sessions" ("id" serial primary key, "session_id" character varying NOT NULL, "data" text, "created_at" timestamp, "updated_at" timestamp) 
707
+  (2.9ms) CREATE UNIQUE INDEX "index_sessions_on_session_id" ON "sessions" ("session_id")
708
+  (0.2ms) ROLLBACK
709
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
710
+ Migrating to AddSessionsTable (20160317103053)
711
+  (0.2ms) BEGIN
712
+ DEPRECATION WARNING: `#timestamps` 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/peteraitken/code/cultivate/mas/mas-rad_core/db/migrate/20160317103053_add_sessions_table.rb:6)
713
+  (10.8ms) CREATE TABLE "rad_consumer_sessions" ("id" serial primary key, "session_id" character varying NOT NULL, "data" text, "created_at" timestamp, "updated_at" timestamp) 
714
+  (2.1ms) CREATE UNIQUE INDEX "index_rad_consumer_sessions_on_session_id" ON "rad_consumer_sessions" ("session_id")
715
+  (1.9ms) CREATE INDEX "index_rad_consumer_sessions_on_updated_at" ON "rad_consumer_sessions" ("updated_at")
716
+ SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160317103053"]]
717
+  (1.4ms) COMMIT
718
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
719
+  (3.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
720
+ FROM pg_constraint c
721
+ JOIN pg_class t1 ON c.conrelid = t1.oid
722
+ JOIN pg_class t2 ON c.confrelid = t2.oid
723
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
724
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
725
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
726
+ WHERE c.contype = 'f'
727
+ AND t1.relname = 'accreditations'
728
+ AND t3.nspname = ANY (current_schemas(false))
729
+ ORDER BY c.conname
730
+ 
731
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
732
+ FROM pg_constraint c
733
+ JOIN pg_class t1 ON c.conrelid = t1.oid
734
+ JOIN pg_class t2 ON c.confrelid = t2.oid
735
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
736
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
737
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
738
+ WHERE c.contype = 'f'
739
+ AND t1.relname = 'accreditations_advisers'
740
+ AND t3.nspname = ANY (current_schemas(false))
741
+ ORDER BY c.conname
742
+
743
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
744
+ FROM pg_constraint c
745
+ JOIN pg_class t1 ON c.conrelid = t1.oid
746
+ JOIN pg_class t2 ON c.confrelid = t2.oid
747
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
748
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
749
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
750
+ WHERE c.contype = 'f'
751
+ AND t1.relname = 'advisers'
752
+ AND t3.nspname = ANY (current_schemas(false))
753
+ ORDER BY c.conname
754
+ 
755
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
756
+ FROM pg_constraint c
757
+ JOIN pg_class t1 ON c.conrelid = t1.oid
758
+ JOIN pg_class t2 ON c.confrelid = t2.oid
759
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
760
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
761
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
762
+ WHERE c.contype = 'f'
763
+ AND t1.relname = 'advisers_professional_bodies'
764
+ AND t3.nspname = ANY (current_schemas(false))
765
+ ORDER BY c.conname
766
+
767
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
768
+ FROM pg_constraint c
769
+ JOIN pg_class t1 ON c.conrelid = t1.oid
770
+ JOIN pg_class t2 ON c.confrelid = t2.oid
771
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
772
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
773
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
774
+ WHERE c.contype = 'f'
775
+ AND t1.relname = 'advisers_professional_standings'
776
+ AND t3.nspname = ANY (current_schemas(false))
777
+ ORDER BY c.conname
778
+ 
779
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
780
+ FROM pg_constraint c
781
+ JOIN pg_class t1 ON c.conrelid = t1.oid
782
+ JOIN pg_class t2 ON c.confrelid = t2.oid
783
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
784
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
785
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
786
+ WHERE c.contype = 'f'
787
+ AND t1.relname = 'advisers_qualifications'
788
+ AND t3.nspname = ANY (current_schemas(false))
789
+ ORDER BY c.conname
790
+
791
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
792
+ FROM pg_constraint c
793
+ JOIN pg_class t1 ON c.conrelid = t1.oid
794
+ JOIN pg_class t2 ON c.confrelid = t2.oid
795
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
796
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
797
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
798
+ WHERE c.contype = 'f'
799
+ AND t1.relname = 'allowed_payment_methods'
800
+ AND t3.nspname = ANY (current_schemas(false))
801
+ ORDER BY c.conname
802
+ 
803
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
804
+ FROM pg_constraint c
805
+ JOIN pg_class t1 ON c.conrelid = t1.oid
806
+ JOIN pg_class t2 ON c.confrelid = t2.oid
807
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
808
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
809
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
810
+ WHERE c.contype = 'f'
811
+ AND t1.relname = 'allowed_payment_methods_firms'
812
+ AND t3.nspname = ANY (current_schemas(false))
813
+ ORDER BY c.conname
814
+
815
+  (2.1ms) 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
816
+ FROM pg_constraint c
817
+ JOIN pg_class t1 ON c.conrelid = t1.oid
818
+ JOIN pg_class t2 ON c.confrelid = t2.oid
819
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
820
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
821
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
822
+ WHERE c.contype = 'f'
823
+ AND t1.relname = 'firms'
824
+ AND t3.nspname = ANY (current_schemas(false))
825
+ ORDER BY c.conname
826
+ 
827
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
828
+ FROM pg_constraint c
829
+ JOIN pg_class t1 ON c.conrelid = t1.oid
830
+ JOIN pg_class t2 ON c.confrelid = t2.oid
831
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
832
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
833
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
834
+ WHERE c.contype = 'f'
835
+ AND t1.relname = 'firms_in_person_advice_methods'
836
+ AND t3.nspname = ANY (current_schemas(false))
837
+ ORDER BY c.conname
838
+
839
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
840
+ FROM pg_constraint c
841
+ JOIN pg_class t1 ON c.conrelid = t1.oid
842
+ JOIN pg_class t2 ON c.confrelid = t2.oid
843
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
844
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
845
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
846
+ WHERE c.contype = 'f'
847
+ AND t1.relname = 'firms_initial_advice_fee_structures'
848
+ AND t3.nspname = ANY (current_schemas(false))
849
+ ORDER BY c.conname
850
+ 
851
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
852
+ FROM pg_constraint c
853
+ JOIN pg_class t1 ON c.conrelid = t1.oid
854
+ JOIN pg_class t2 ON c.confrelid = t2.oid
855
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
856
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
857
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
858
+ WHERE c.contype = 'f'
859
+ AND t1.relname = 'firms_investment_sizes'
860
+ AND t3.nspname = ANY (current_schemas(false))
861
+ ORDER BY c.conname
862
+
863
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
864
+ FROM pg_constraint c
865
+ JOIN pg_class t1 ON c.conrelid = t1.oid
866
+ JOIN pg_class t2 ON c.confrelid = t2.oid
867
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
868
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
869
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
870
+ WHERE c.contype = 'f'
871
+ AND t1.relname = 'firms_ongoing_advice_fee_structures'
872
+ AND t3.nspname = ANY (current_schemas(false))
873
+ ORDER BY c.conname
874
+ 
875
+  (3.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
876
+ FROM pg_constraint c
877
+ JOIN pg_class t1 ON c.conrelid = t1.oid
878
+ JOIN pg_class t2 ON c.confrelid = t2.oid
879
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
880
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
881
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
882
+ WHERE c.contype = 'f'
883
+ AND t1.relname = 'firms_other_advice_methods'
884
+ AND t3.nspname = ANY (current_schemas(false))
885
+ ORDER BY c.conname
886
+
887
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
888
+ FROM pg_constraint c
889
+ JOIN pg_class t1 ON c.conrelid = t1.oid
890
+ JOIN pg_class t2 ON c.confrelid = t2.oid
891
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
892
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
893
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
894
+ WHERE c.contype = 'f'
895
+ AND t1.relname = 'in_person_advice_methods'
896
+ AND t3.nspname = ANY (current_schemas(false))
897
+ ORDER BY c.conname
898
+ 
899
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
900
+ FROM pg_constraint c
901
+ JOIN pg_class t1 ON c.conrelid = t1.oid
902
+ JOIN pg_class t2 ON c.confrelid = t2.oid
903
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
904
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
905
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
906
+ WHERE c.contype = 'f'
907
+ AND t1.relname = 'initial_advice_fee_structures'
908
+ AND t3.nspname = ANY (current_schemas(false))
909
+ ORDER BY c.conname
910
+
911
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
912
+ FROM pg_constraint c
913
+ JOIN pg_class t1 ON c.conrelid = t1.oid
914
+ JOIN pg_class t2 ON c.confrelid = t2.oid
915
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
916
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
917
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
918
+ WHERE c.contype = 'f'
919
+ AND t1.relname = 'initial_meeting_durations'
920
+ AND t3.nspname = ANY (current_schemas(false))
921
+ ORDER BY c.conname
922
+ 
923
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
924
+ FROM pg_constraint c
925
+ JOIN pg_class t1 ON c.conrelid = t1.oid
926
+ JOIN pg_class t2 ON c.confrelid = t2.oid
927
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
928
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
929
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
930
+ WHERE c.contype = 'f'
931
+ AND t1.relname = 'investment_sizes'
932
+ AND t3.nspname = ANY (current_schemas(false))
933
+ ORDER BY c.conname
934
+
935
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
936
+ FROM pg_constraint c
937
+ JOIN pg_class t1 ON c.conrelid = t1.oid
938
+ JOIN pg_class t2 ON c.confrelid = t2.oid
939
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
940
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
941
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
942
+ WHERE c.contype = 'f'
943
+ AND t1.relname = 'lookup_advisers'
944
+ AND t3.nspname = ANY (current_schemas(false))
945
+ ORDER BY c.conname
946
+ 
947
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
948
+ FROM pg_constraint c
949
+ JOIN pg_class t1 ON c.conrelid = t1.oid
950
+ JOIN pg_class t2 ON c.confrelid = t2.oid
951
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
952
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
953
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
954
+ WHERE c.contype = 'f'
955
+ AND t1.relname = 'lookup_firms'
956
+ AND t3.nspname = ANY (current_schemas(false))
957
+ ORDER BY c.conname
958
+
959
+  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
960
+ FROM pg_constraint c
961
+ JOIN pg_class t1 ON c.conrelid = t1.oid
962
+ JOIN pg_class t2 ON c.confrelid = t2.oid
963
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
964
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
965
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
966
+ WHERE c.contype = 'f'
967
+ AND t1.relname = 'lookup_subsidiaries'
968
+ AND t3.nspname = ANY (current_schemas(false))
969
+ ORDER BY c.conname
970
+ 
971
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
972
+ FROM pg_constraint c
973
+ JOIN pg_class t1 ON c.conrelid = t1.oid
974
+ JOIN pg_class t2 ON c.confrelid = t2.oid
975
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
976
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
977
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
978
+ WHERE c.contype = 'f'
979
+ AND t1.relname = 'offices'
980
+ AND t3.nspname = ANY (current_schemas(false))
981
+ ORDER BY c.conname
982
+
983
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
984
+ FROM pg_constraint c
985
+ JOIN pg_class t1 ON c.conrelid = t1.oid
986
+ JOIN pg_class t2 ON c.confrelid = t2.oid
987
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
988
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
989
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
990
+ WHERE c.contype = 'f'
991
+ AND t1.relname = 'old_passwords'
992
+ AND t3.nspname = ANY (current_schemas(false))
993
+ ORDER BY c.conname
994
+ 
995
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
996
+ FROM pg_constraint c
997
+ JOIN pg_class t1 ON c.conrelid = t1.oid
998
+ JOIN pg_class t2 ON c.confrelid = t2.oid
999
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1000
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1001
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1002
+ WHERE c.contype = 'f'
1003
+ AND t1.relname = 'ongoing_advice_fee_structures'
1004
+ AND t3.nspname = ANY (current_schemas(false))
1005
+ ORDER BY c.conname
1006
+
1007
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1008
+ FROM pg_constraint c
1009
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1010
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1011
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1012
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1013
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1014
+ WHERE c.contype = 'f'
1015
+ AND t1.relname = 'other_advice_methods'
1016
+ AND t3.nspname = ANY (current_schemas(false))
1017
+ ORDER BY c.conname
1018
+ 
1019
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1020
+ FROM pg_constraint c
1021
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1022
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1023
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1024
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1025
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1026
+ WHERE c.contype = 'f'
1027
+ AND t1.relname = 'principals'
1028
+ AND t3.nspname = ANY (current_schemas(false))
1029
+ ORDER BY c.conname
1030
+
1031
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1032
+ FROM pg_constraint c
1033
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1034
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1035
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1036
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1037
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1038
+ WHERE c.contype = 'f'
1039
+ AND t1.relname = 'professional_bodies'
1040
+ AND t3.nspname = ANY (current_schemas(false))
1041
+ ORDER BY c.conname
1042
+ 
1043
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1044
+ FROM pg_constraint c
1045
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1046
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1047
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1048
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1049
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1050
+ WHERE c.contype = 'f'
1051
+ AND t1.relname = 'professional_standings'
1052
+ AND t3.nspname = ANY (current_schemas(false))
1053
+ ORDER BY c.conname
1054
+
1055
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1056
+ FROM pg_constraint c
1057
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1058
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1059
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1060
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1061
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1062
+ WHERE c.contype = 'f'
1063
+ AND t1.relname = 'qualifications'
1064
+ AND t3.nspname = ANY (current_schemas(false))
1065
+ ORDER BY c.conname
1066
+ 
1067
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1068
+ FROM pg_constraint c
1069
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1070
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1071
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1072
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1073
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1074
+ WHERE c.contype = 'f'
1075
+ AND t1.relname = 'rad_consumer_sessions'
1076
+ AND t3.nspname = ANY (current_schemas(false))
1077
+ ORDER BY c.conname
1078
+
1079
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1080
+ FROM pg_constraint c
1081
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1082
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1083
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1084
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1085
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1086
+ WHERE c.contype = 'f'
1087
+ AND t1.relname = 'snapshots'
1088
+ AND t3.nspname = ANY (current_schemas(false))
1089
+ ORDER BY c.conname
1090
+ 
1091
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1092
+ FROM pg_constraint c
1093
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1094
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1095
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1096
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1097
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1098
+ WHERE c.contype = 'f'
1099
+ AND t1.relname = 'users'
1100
+ AND t3.nspname = ANY (current_schemas(false))
1101
+ ORDER BY c.conname
1102
+
1103
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1104
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1105
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1106
+ Migrating to CreateLookupFirms (20141211110031)
1107
+  (0.2ms) BEGIN
1108
+ DEPRECATION WARNING: `#timestamps` 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/peteraitken/code/cultivate/mas/mas-rad_core/db/migrate/20141211110031_create_lookup_firms.rb:8)
1109
+  (6.3ms) CREATE TABLE "lookup_firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying DEFAULT '' NOT NULL, "created_at" timestamp, "updated_at" timestamp) 
1110
+  (1.8ms) CREATE UNIQUE INDEX "index_lookup_firms_on_fca_number" ON "lookup_firms" ("fca_number")
1111
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141211110031"]]
1112
+  (1.3ms) COMMIT
1113
+ Migrating to CreatePrincipals (20141221140208)
1114
+  (0.2ms) BEGIN
1115
+ DEPRECATION WARNING: `#timestamps` 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/peteraitken/code/cultivate/mas/mas-rad_core/db/migrate/20141221140208_create_principals.rb:19)
1116
+  (5.3ms) 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)
1117
+  (1.9ms) CREATE UNIQUE INDEX "index_principals_on_fca_number" ON "principals" ("fca_number")
1118
+  (1.8ms) CREATE UNIQUE INDEX "index_principals_on_token" ON "principals" ("token")
1119
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141221140208"]]
1120
+  (1.6ms) COMMIT
1121
+ Migrating to AddLastSignInAtToPrincipal (20141222150416)
1122
+  (0.3ms) BEGIN
1123
+  (0.3ms) ALTER TABLE "principals" ADD "last_sign_in_at" timestamp
1124
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141222150416"]]
1125
+  (1.9ms) COMMIT
1126
+ Migrating to CreateLookupSubsidiaries (20141230112136)
1127
+  (0.3ms) BEGIN
1128
+  (5.3ms) 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)
1129
+  (1.9ms) CREATE INDEX "index_lookup_subsidiaries_on_fca_number" ON "lookup_subsidiaries" ("fca_number")
1130
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141230112136"]]
1131
+  (1.4ms) COMMIT
1132
+ Migrating to RemoveLastSignInAtFromPrincipals (20150106115732)
1133
+  (0.3ms) BEGIN
1134
+  (0.7ms) ALTER TABLE "principals" DROP "last_sign_in_at"
1135
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150106115732"]]
1136
+  (1.1ms) COMMIT
1137
+ Migrating to CreateLookupAdvisers (20150114144343)
1138
+  (0.2ms) BEGIN
1139
+  (5.0ms) CREATE TABLE "lookup_advisers" ("id" serial primary key, "reference_number" character varying NOT NULL, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
1140
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150114144343"]]
1141
+  (1.3ms) COMMIT
1142
+ Migrating to CreateFirms (20150114151447)
1143
+  (0.3ms) BEGIN
1144
+  (5.4ms) CREATE TABLE "firms" ("id" serial primary key, "fca_number" integer NOT NULL, "registered_name" character varying NOT NULL, "email_address" character varying, "telephone_number" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
1145
+  (2.0ms) CREATE UNIQUE INDEX "index_firms_on_fca_number" ON "firms" ("fca_number")
1146
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150114151447"]]
1147
+  (1.4ms) COMMIT
1148
+ Migrating to AddAddressToFirm (20150115130949)
1149
+  (0.5ms) BEGIN
1150
+  (1.1ms) ALTER TABLE "firms" ADD "address_line_one" character varying
1151
+  (1.5ms) ALTER TABLE "firms" ADD "address_line_two" character varying
1152
+  (0.7ms) ALTER TABLE "firms" ADD "address_town" character varying
1153
+  (0.8ms) ALTER TABLE "firms" ADD "address_county" character varying
1154
+  (0.3ms) ALTER TABLE "firms" ADD "address_postcode" character varying
1155
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150115130949"]]
1156
+  (1.2ms) COMMIT
1157
+ Migrating to CreateInPersonAdviceMethods (20150119102735)
1158
+  (0.2ms) BEGIN
1159
+  (4.4ms) 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)
1160
+  (0.7ms) CREATE TABLE "firms_in_person_advice_methods" ("firm_id" integer NOT NULL, "in_person_advice_method_id" integer NOT NULL) 
1161
+  (1.9ms) CREATE UNIQUE INDEX "firms_in_person_advice_methods_index" ON "firms_in_person_advice_methods" ("firm_id", "in_person_advice_method_id")
1162
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119102735"]]
1163
+  (1.4ms) COMMIT
1164
+ Migrating to CreateOtherAdviceMethods (20150119111754)
1165
+  (0.4ms) BEGIN
1166
+  (5.3ms) CREATE TABLE "other_advice_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1167
+  (1.1ms) CREATE TABLE "firms_other_advice_methods" ("firm_id" integer NOT NULL, "other_advice_method_id" integer NOT NULL) 
1168
+  (2.5ms) CREATE UNIQUE INDEX "firms_other_advice_methods_index" ON "firms_other_advice_methods" ("firm_id", "other_advice_method_id")
1169
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119111754"]]
1170
+  (1.8ms) COMMIT
1171
+ Migrating to AddFreeInitialMeetingToFirm (20150119114218)
1172
+  (0.4ms) BEGIN
1173
+  (0.4ms) ALTER TABLE "firms" ADD "free_initial_meeting" boolean
1174
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119114218"]]
1175
+  (2.1ms) COMMIT
1176
+ Migrating to CreateInitialMeetingDurations (20150119125208)
1177
+  (2.2ms) BEGIN
1178
+  (9.0ms) CREATE TABLE "initial_meeting_durations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1179
+  (0.5ms) ALTER TABLE "firms" ADD "initial_meeting_duration_id" integer
1180
+  (1.7ms) CREATE INDEX "index_firms_on_initial_meeting_duration_id" ON "firms" ("initial_meeting_duration_id")
1181
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119125208"]]
1182
+  (1.4ms) COMMIT
1183
+ Migrating to CreateInitialAdviceFeeStructures (20150119152325)
1184
+  (0.3ms) BEGIN
1185
+  (5.0ms) 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)
1186
+  (1.0ms) CREATE TABLE "firms_initial_advice_fee_structures" ("firm_id" integer NOT NULL, "initial_advice_fee_structure_id" integer NOT NULL) 
1187
+  (2.6ms) CREATE UNIQUE INDEX "firms_initial_advice_fee_structures_index" ON "firms_initial_advice_fee_structures" ("firm_id", "initial_advice_fee_structure_id")
1188
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119152325"]]
1189
+  (1.4ms) COMMIT
1190
+ Migrating to CreateOngoingAdviceFeeStructures (20150119152336)
1191
+  (0.4ms) BEGIN
1192
+  (7.0ms) 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)
1193
+  (0.6ms) CREATE TABLE "firms_ongoing_advice_fee_structures" ("firm_id" integer NOT NULL, "ongoing_advice_fee_structure_id" integer NOT NULL) 
1194
+  (1.9ms) CREATE UNIQUE INDEX "firms_ongoing_advice_fee_structures_index" ON "firms_ongoing_advice_fee_structures" ("firm_id", "ongoing_advice_fee_structure_id")
1195
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150119152336"]]
1196
+  (1.2ms) COMMIT
1197
+ Migrating to CreateAllowedPaymentMethods (20150120133717)
1198
+  (0.4ms) BEGIN
1199
+  (10.0ms) CREATE TABLE "allowed_payment_methods" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1200
+  (1.1ms) CREATE TABLE "allowed_payment_methods_firms" ("firm_id" integer NOT NULL, "allowed_payment_method_id" integer NOT NULL) 
1201
+  (2.4ms) CREATE UNIQUE INDEX "firms_allowed_payment_methods_index" ON "allowed_payment_methods_firms" ("firm_id", "allowed_payment_method_id")
1202
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150120133717"]]
1203
+  (1.3ms) COMMIT
1204
+ Migrating to AddMinimumFixedFeeToFirm (20150120141928)
1205
+  (0.3ms) BEGIN
1206
+  (0.3ms) ALTER TABLE "firms" ADD "minimum_fixed_fee" integer
1207
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150120141928"]]
1208
+  (1.3ms) COMMIT
1209
+ Migrating to CreateInvestmentSizes (20150120150738)
1210
+  (0.1ms) BEGIN
1211
+  (6.6ms) CREATE TABLE "investment_sizes" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1212
+  (0.8ms) CREATE TABLE "firms_investment_sizes" ("firm_id" integer NOT NULL, "investment_size_id" integer NOT NULL) 
1213
+  (1.8ms) CREATE UNIQUE INDEX "firms_investment_sizes_index" ON "firms_investment_sizes" ("firm_id", "investment_size_id")
1214
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150120150738"]]
1215
+  (2.0ms) COMMIT
1216
+ Migrating to CreateAdvisers (20150121110757)
1217
+  (0.4ms) BEGIN
1218
+  (7.0ms) 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)
1219
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121110757"]]
1220
+  (1.3ms) COMMIT
1221
+ Migrating to AddBusinessIncomeBreakdownFieldsToFirm (20150121123437)
1222
+  (0.4ms) BEGIN
1223
+  (0.6ms) ALTER TABLE "firms" ADD "retirement_income_products_percent" integer
1224
+  (0.6ms) ALTER TABLE "firms" ADD "pension_transfer_percent" integer
1225
+  (0.5ms) ALTER TABLE "firms" ADD "long_term_care_percent" integer
1226
+  (0.4ms) ALTER TABLE "firms" ADD "equity_release_percent" integer
1227
+  (0.3ms) ALTER TABLE "firms" ADD "inheritance_tax_and_estate_planning_percent" integer
1228
+  (0.3ms) ALTER TABLE "firms" ADD "wills_and_probate_percent" integer
1229
+  (0.2ms) ALTER TABLE "firms" ADD "other_percent" integer
1230
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121123437"]]
1231
+  (1.0ms) COMMIT
1232
+ Migrating to CreateQualifications (20150121134845)
1233
+  (0.1ms) BEGIN
1234
+  (6.9ms) CREATE TABLE "qualifications" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1235
+  (2.3ms) CREATE TABLE "advisers_qualifications" ("adviser_id" integer NOT NULL, "qualification_id" integer NOT NULL) 
1236
+  (4.4ms) CREATE UNIQUE INDEX "advisers_qualifications_index" ON "advisers_qualifications" ("adviser_id", "qualification_id")
1237
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121134845"]]
1238
+  (16.4ms) COMMIT
1239
+ Migrating to CreateAccreditations (20150121154458)
1240
+  (0.6ms) BEGIN
1241
+  (6.2ms) CREATE TABLE "accreditations" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1242
+  (1.3ms) CREATE TABLE "accreditations_advisers" ("adviser_id" integer NOT NULL, "accreditation_id" integer NOT NULL) 
1243
+  (2.0ms) CREATE UNIQUE INDEX "advisers_accreditations_index" ON "accreditations_advisers" ("adviser_id", "accreditation_id")
1244
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121154458"]]
1245
+  (1.7ms) COMMIT
1246
+ Migrating to CreateProfessionalStandings (20150121173015)
1247
+  (0.7ms) BEGIN
1248
+  (11.1ms) CREATE TABLE "professional_standings" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1249
+  (1.4ms) CREATE TABLE "advisers_professional_standings" ("adviser_id" integer NOT NULL, "professional_standing_id" integer NOT NULL) 
1250
+  (1.6ms) CREATE UNIQUE INDEX "advisers_professional_standings_index" ON "advisers_professional_standings" ("adviser_id", "professional_standing_id")
1251
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121173015"]]
1252
+  (1.2ms) COMMIT
1253
+ Migrating to CreateProfessionalBodies (20150121181341)
1254
+  (0.4ms) BEGIN
1255
+  (6.3ms) CREATE TABLE "professional_bodies" ("id" serial primary key, "name" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1256
+  (1.2ms) CREATE TABLE "advisers_professional_bodies" ("adviser_id" integer NOT NULL, "professional_body_id" integer NOT NULL) 
1257
+  (4.1ms) CREATE UNIQUE INDEX "advisers_professional_bodies_index" ON "advisers_professional_bodies" ("adviser_id", "professional_body_id")
1258
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121181341"]]
1259
+  (1.5ms) COMMIT
1260
+ Migrating to AddConfirmedDisclaimerToAdvisers (20150121183728)
1261
+  (0.4ms) BEGIN
1262
+  (0.5ms) ALTER TABLE "advisers" ADD "confirmed_disclaimer" boolean NOT NULL
1263
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150121183728"]]
1264
+  (1.7ms) COMMIT
1265
+ Migrating to AddGeographicalFieldsToAdviser (20150124124350)
1266
+  (0.2ms) BEGIN
1267
+  (5.1ms) ALTER TABLE "advisers" ADD "postcode" character varying DEFAULT '' NOT NULL
1268
+  (6.5ms) ALTER TABLE "advisers" ADD "travel_distance" integer DEFAULT 0 NOT NULL
1269
+  (9.3ms) ALTER TABLE "advisers" ADD "covers_whole_of_uk" boolean DEFAULT 'f' NOT NULL
1270
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150124124350"]]
1271
+  (2.2ms) COMMIT
1272
+ Migrating to AddParentIdToFirms (20150125145457)
1273
+  (0.3ms) BEGIN
1274
+  (0.4ms) ALTER TABLE "firms" ADD "parent_id" integer
1275
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150125145457"]]
1276
+  (1.1ms) COMMIT
1277
+ Migrating to RemoveUniqueConstraintFromFirmsFcaNumber (20150125164156)
1278
+  (0.3ms) BEGIN
1279
+  (0.5ms) DROP INDEX "index_firms_on_fca_number"
1280
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150125164156"]]
1281
+  (1.6ms) COMMIT
1282
+ Migrating to AddOrderingOnReferenceData (20150127084858)
1283
+  (0.3ms) BEGIN
1284
+  (10.1ms) ALTER TABLE "accreditations" ADD "order" integer DEFAULT 0 NOT NULL
1285
+ Accreditation Load (1.1ms) SELECT "accreditations".* FROM "accreditations" ORDER BY "accreditations"."id" ASC
1286
+  (7.5ms) ALTER TABLE "allowed_payment_methods" ADD "order" integer DEFAULT 0 NOT NULL
1287
+ AllowedPaymentMethod Load (0.6ms) SELECT "allowed_payment_methods".* FROM "allowed_payment_methods" ORDER BY "allowed_payment_methods"."id" ASC
1288
+  (5.5ms) ALTER TABLE "in_person_advice_methods" ADD "order" integer DEFAULT 0 NOT NULL
1289
+ InPersonAdviceMethod Load (1.0ms) SELECT "in_person_advice_methods".* FROM "in_person_advice_methods" ORDER BY "in_person_advice_methods"."id" ASC
1290
+  (10.5ms) ALTER TABLE "initial_advice_fee_structures" ADD "order" integer DEFAULT 0 NOT NULL
1291
+ InitialAdviceFeeStructure Load (0.4ms) SELECT "initial_advice_fee_structures".* FROM "initial_advice_fee_structures" ORDER BY "initial_advice_fee_structures"."id" ASC
1292
+  (4.5ms) ALTER TABLE "initial_meeting_durations" ADD "order" integer DEFAULT 0 NOT NULL
1293
+ InitialMeetingDuration Load (0.4ms) SELECT "initial_meeting_durations".* FROM "initial_meeting_durations" ORDER BY "initial_meeting_durations"."id" ASC
1294
+  (5.5ms) ALTER TABLE "investment_sizes" ADD "order" integer DEFAULT 0 NOT NULL
1295
+ InvestmentSize Load (0.6ms) SELECT "investment_sizes".* FROM "investment_sizes" ORDER BY "investment_sizes"."id" ASC
1296
+  (5.5ms) ALTER TABLE "ongoing_advice_fee_structures" ADD "order" integer DEFAULT 0 NOT NULL
1297
+ OngoingAdviceFeeStructure Load (0.8ms) SELECT "ongoing_advice_fee_structures".* FROM "ongoing_advice_fee_structures" ORDER BY "ongoing_advice_fee_structures"."id" ASC
1298
+  (10.3ms) ALTER TABLE "other_advice_methods" ADD "order" integer DEFAULT 0 NOT NULL
1299
+ OtherAdviceMethod Load (0.5ms) SELECT "other_advice_methods".* FROM "other_advice_methods" ORDER BY "other_advice_methods"."id" ASC
1300
+  (5.7ms) ALTER TABLE "professional_bodies" ADD "order" integer DEFAULT 0 NOT NULL
1301
+ ProfessionalBody Load (0.4ms) SELECT "professional_bodies".* FROM "professional_bodies" ORDER BY "professional_bodies"."id" ASC
1302
+  (5.2ms) ALTER TABLE "professional_standings" ADD "order" integer DEFAULT 0 NOT NULL
1303
+ ProfessionalStanding Load (0.9ms) SELECT "professional_standings".* FROM "professional_standings" ORDER BY "professional_standings"."id" ASC
1304
+  (32.0ms) ALTER TABLE "qualifications" ADD "order" integer DEFAULT 0 NOT NULL
1305
+ Qualification Load (0.8ms) SELECT "qualifications".* FROM "qualifications" ORDER BY "qualifications"."id" ASC
1306
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150127084858"]]
1307
+  (4.7ms) COMMIT
1308
+ Migrating to RemoveCoversWholeOfUkFromAdvisers (20150209144836)
1309
+  (0.5ms) BEGIN
1310
+ Adviser Load (1.3ms) SELECT "advisers".* FROM "advisers" WHERE "advisers"."covers_whole_of_uk" = $1 ORDER BY "advisers"."id" ASC LIMIT 1000 [["covers_whole_of_uk", "t"]]
1311
+  (1.1ms) ALTER TABLE "advisers" DROP "covers_whole_of_uk"
1312
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209144836"]]
1313
+  (1.2ms) COMMIT
1314
+ Migrating to AddLatitudeAndLongitudeToFirm (20150210113610)
1315
+  (0.3ms) BEGIN
1316
+  (0.5ms) ALTER TABLE "firms" ADD "latitude" float
1317
+  (0.5ms) ALTER TABLE "firms" ADD "longitude" float
1318
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150210113610"]]
1319
+  (1.2ms) COMMIT
1320
+ Migrating to AddLatitudeAndLongitudeToAdvisers (20150222092417)
1321
+  (0.2ms) BEGIN
1322
+  (0.3ms) ALTER TABLE "advisers" ADD "latitude" float
1323
+  (0.3ms) ALTER TABLE "advisers" ADD "longitude" float
1324
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222092417"]]
1325
+  (1.2ms) COMMIT
1326
+ Migrating to AddCyNameToOtherAdviceMethods (20150228095315)
1327
+  (0.2ms) BEGIN
1328
+  (0.3ms) ALTER TABLE "other_advice_methods" ADD "cy_name" character varying
1329
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150228095315"]]
1330
+  (2.3ms) COMMIT
1331
+ Migrating to AddCyNameToInvestmentSize (20150305150719)
1332
+  (0.3ms) BEGIN
1333
+  (0.6ms) ALTER TABLE "investment_sizes" ADD "cy_name" character varying
1334
+ InvestmentSize Load (0.5ms) SELECT "investment_sizes".* FROM "investment_sizes" ORDER BY "investment_sizes"."order" ASC
1335
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150305150719"]]
1336
+  (1.8ms) COMMIT
1337
+ Migrating to AddIndexOnLookupAdvisersReferenceNumber (20150423154732)
1338
+  (0.2ms) BEGIN
1339
+  (2.5ms) CREATE UNIQUE INDEX "index_lookup_advisers_on_reference_number" ON "lookup_advisers" ("reference_number")
1340
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423154732"]]
1341
+  (1.1ms) COMMIT
1342
+ Migrating to ChangePercentageFieldsToBooleanFieldsOnFirm (20150630143001)
1343
+  (0.2ms) BEGIN
1344
+  (8.5ms) ALTER TABLE "firms" ADD "retirement_income_products_flag" boolean DEFAULT 'f' NOT NULL
1345
+ SQL (1.9ms) UPDATE "firms" SET "retirement_income_products_flag" = 't' WHERE (retirement_income_products_percent > 0)
1346
+  (1.0ms) ALTER TABLE "firms" DROP "retirement_income_products_percent"
1347
+  (31.6ms) ALTER TABLE "firms" ADD "pension_transfer_flag" boolean DEFAULT 'f' NOT NULL
1348
+ SQL (0.5ms) UPDATE "firms" SET "pension_transfer_flag" = 't' WHERE (pension_transfer_percent > 0)
1349
+  (0.4ms) ALTER TABLE "firms" DROP "pension_transfer_percent"
1350
+  (8.8ms) ALTER TABLE "firms" ADD "long_term_care_flag" boolean DEFAULT 'f' NOT NULL
1351
+ SQL (1.2ms) UPDATE "firms" SET "long_term_care_flag" = 't' WHERE (long_term_care_percent > 0)
1352
+  (0.7ms) ALTER TABLE "firms" DROP "long_term_care_percent"
1353
+  (9.8ms) ALTER TABLE "firms" ADD "equity_release_flag" boolean DEFAULT 'f' NOT NULL
1354
+ SQL (0.8ms) UPDATE "firms" SET "equity_release_flag" = 't' WHERE (equity_release_percent > 0)
1355
+  (0.4ms) ALTER TABLE "firms" DROP "equity_release_percent"
1356
+  (15.4ms) ALTER TABLE "firms" ADD "inheritance_tax_and_estate_planning_flag" boolean DEFAULT 'f' NOT NULL
1357
+ SQL (0.5ms) UPDATE "firms" SET "inheritance_tax_and_estate_planning_flag" = 't' WHERE (inheritance_tax_and_estate_planning_percent > 0)
1358
+  (0.6ms) ALTER TABLE "firms" DROP "inheritance_tax_and_estate_planning_percent"
1359
+  (7.7ms) ALTER TABLE "firms" ADD "wills_and_probate_flag" boolean DEFAULT 'f' NOT NULL
1360
+ SQL (0.5ms) UPDATE "firms" SET "wills_and_probate_flag" = 't' WHERE (wills_and_probate_percent > 0)
1361
+  (0.6ms) ALTER TABLE "firms" DROP "wills_and_probate_percent"
1362
+  (9.1ms) ALTER TABLE "firms" ADD "other_flag" boolean DEFAULT 'f' NOT NULL
1363
+ SQL (0.4ms) UPDATE "firms" SET "other_flag" = 't' WHERE (other_percent > 0)
1364
+  (0.4ms) ALTER TABLE "firms" DROP "other_percent"
1365
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150630143001"]]
1366
+  (4.8ms) COMMIT
1367
+ Migrating to MoveWebsiteFromPrincipalsToFirms (20150706102943)
1368
+  (0.7ms) BEGIN
1369
+  (0.7ms) ALTER TABLE "firms" ADD "website_address" character varying
1370
+ Principal Load (0.8ms) SELECT "principals".* FROM "principals"
1371
+  (0.6ms) ALTER TABLE "principals" DROP "website_address"
1372
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150706102943"]]
1373
+  (1.5ms) COMMIT
1374
+ Migrating to RemoveOtherFlagFromFirms (20150716123032)
1375
+  (0.6ms) BEGIN
1376
+  (1.2ms) ALTER TABLE "firms" DROP "other_flag"
1377
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716123032"]]
1378
+  (1.5ms) COMMIT
1379
+ Migrating to AddInvestingCheckboxesToFirms (20150806143047)
1380
+  (0.2ms) BEGIN
1381
+  (8.6ms) ALTER TABLE "firms" ADD "ethical_investing_flag" boolean DEFAULT 'f' NOT NULL
1382
+  (8.7ms) ALTER TABLE "firms" ADD "sharia_investing_flag" boolean DEFAULT 'f' NOT NULL
1383
+ SQL (2.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150806143047"]]
1384
+  (16.7ms) COMMIT
1385
+ Migrating to AddLanguagesToFirm (20150807134551)
1386
+  (0.4ms) BEGIN
1387
+  (11.4ms) ALTER TABLE "firms" ADD "languages" text[] DEFAULT '{}' NOT NULL
1388
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150807134551"]]
1389
+  (2.3ms) COMMIT
1390
+ Migrating to CreateOffices (20150812140642)
1391
+  (0.4ms) BEGIN
1392
+  (6.4ms) 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)
1393
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150812140642"]]
1394
+  (1.4ms) COMMIT
1395
+ Migrating to RemoveConfirmedDisclaimerFromAdvisers (20150813103046)
1396
+  (0.3ms) BEGIN
1397
+  (0.5ms) ALTER TABLE "advisers" DROP "confirmed_disclaimer"
1398
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150813103046"]]
1399
+  (1.2ms) COMMIT
1400
+ Migrating to AddStatusToFirms (20150817141257)
1401
+  (0.2ms) BEGIN
1402
+  (0.4ms) ALTER TABLE "firms" ADD "status" integer
1403
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150817141257"]]
1404
+  (1.3ms) COMMIT
1405
+ Migrating to MoveFirmAddressToOffice (20150825090822)
1406
+  (0.2ms) BEGIN
1407
+ MoveFirmAddressToOffice::Firm Load (1.0ms) SELECT "firms".* FROM "firms" WHERE ("firms"."address_line_one" IS NOT NULL)
1408
+  (0.4ms) ALTER TABLE "firms" DROP "address_line_one"
1409
+  (0.4ms) ALTER TABLE "firms" DROP "address_line_two"
1410
+  (1.1ms) ALTER TABLE "firms" DROP "address_town"
1411
+  (0.3ms) ALTER TABLE "firms" DROP "address_county"
1412
+  (1.1ms) ALTER TABLE "firms" DROP "address_postcode"
1413
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150825090822"]]
1414
+  (1.3ms) COMMIT
1415
+ Migrating to RemoveFirmEmailAndPhone (20150930140851)
1416
+  (0.2ms) BEGIN
1417
+  (0.4ms) ALTER TABLE "firms" DROP "email_address"
1418
+  (0.2ms) ALTER TABLE "firms" DROP "telephone_number"
1419
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150930140851"]]
1420
+  (2.2ms) COMMIT
1421
+ Migrating to AddDefaultValueToMinimumFixedFee (20151102113518)
1422
+  (0.2ms) BEGIN
1423
+ AddDefaultValueToMinimumFixedFee::Firm Load (0.5ms) SELECT "firms".* FROM "firms" WHERE "firms"."minimum_fixed_fee" IS NULL
1424
+  (0.7ms) ALTER TABLE "firms" ALTER COLUMN "minimum_fixed_fee" SET DEFAULT 0
1425
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151102113518"]]
1426
+  (2.7ms) COMMIT
1427
+ Migrating to AddLatitudeAndLongitudeToOffice (20151103161642)
1428
+  (0.4ms) BEGIN
1429
+  (0.4ms) ALTER TABLE "offices" ADD "latitude" float
1430
+  (0.4ms) ALTER TABLE "offices" ADD "longitude" float
1431
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151103161642"]]
1432
+  (1.2ms) COMMIT
1433
+ Migrating to RemoveLatitudeAndLongitudeFromFirm (20151111132037)
1434
+  (0.2ms) BEGIN
1435
+ RemoveLatitudeAndLongitudeFromFirm::Firm Load (0.5ms) SELECT "firms".* FROM "firms" WHERE ("firms"."latitude" IS NOT NULL) AND ("firms"."longitude" IS NOT NULL) ORDER BY "firms"."id" ASC LIMIT 1000
1436
+  (0.4ms) ALTER TABLE "firms" DROP "latitude"
1437
+  (0.4ms) ALTER TABLE "firms" DROP "longitude"
1438
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20151111132037"]]
1439
+  (1.0ms) COMMIT
1440
+ Migrating to AddBypassReferenceNumberCheckToAdvisers (20160205150033)
1441
+  (0.2ms) BEGIN
1442
+  (5.8ms) ALTER TABLE "advisers" ADD "bypass_reference_number_check" boolean DEFAULT 'f'
1443
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160205150033"]]
1444
+  (2.0ms) COMMIT
1445
+ Migrating to CreateSnapshots (20160211161127)
1446
+  (0.3ms) BEGIN
1447
+  (5.5ms) CREATE TABLE "snapshots" ("id" serial primary key, "firms_with_no_minimum_fee" integer, "integer" integer, "firms_with_min_fee_between_1_500" integer, "firms_with_min_fee_between_501_1000" integer, "firms_any_pot_size" integer, "firms_any_pot_size_min_fee_less_than_500" integer, "registered_firms" integer, "published_firms" integer, "firms_offering_face_to_face_advice" integer, "firms_offering_remote_advice" integer, "firms_in_england" integer, "firms_in_scotland" integer, "firms_in_wales" integer, "firms_in_northern_ireland" integer, "firms_providing_retirement_income_products" integer, "firms_providing_pension_transfer" integer, "firms_providing_long_term_care" integer, "firms_providing_equity_release" integer, "firms_providing_inheritance_tax_and_estate_planning" integer, "firms_providing_wills_and_probate" integer, "firms_providing_ethical_investing" integer, "firms_providing_sharia_investing" integer, "firms_offering_languages_other_than_english" integer, "offices_with_disabled_access" integer, "registered_advisers" integer, "advisers_in_england" integer, "advisers_in_scotland" integer, "advisers_in_wales" integer, "advisers_in_northern_ireland" integer, "advisers_who_travel_5_miles" integer, "advisers_who_travel_10_miles" integer, "advisers_who_travel_25_miles" integer, "advisers_who_travel_50_miles" integer, "advisers_who_travel_100_miles" integer, "advisers_who_travel_150_miles" integer, "advisers_who_travel_200_miles" integer, "advisers_who_travel_250_miles" integer, "advisers_who_travel_uk_wide" integer, "advisers_accredited_in_solla" integer, "advisers_accredited_in_later_life_academy" integer, "advisers_accredited_in_iso22222" integer, "advisers_accredited_in_bs8577" integer, "advisers_with_qualification_in_level_4" integer, "advisers_with_qualification_in_level_6" integer, "advisers_with_qualification_in_chartered_financial_planner" integer, "advisers_with_qualification_in_certified_financial_planner" integer, "advisers_with_qualification_in_pension_transfer" integer, "advisers_with_qualification_in_equity_release" integer, "advisers_with_qualification_in_long_term_care_planning" integer, "advisers_with_qualification_in_tep" integer, "advisers_with_qualification_in_fcii" integer, "advisers_part_of_personal_finance_society" integer, "advisers_part_of_institute_financial_planning" integer, "advisers_part_of_institute_financial_services" integer, "advisers_part_of_ci_bankers_scotland" integer, "advisers_part_of_ci_securities_and_investments" integer, "advisers_part_of_cfa_institute" integer, "advisers_part_of_chartered_accountants" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1448
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160211161127"]]
1449
+  (3.6ms) COMMIT
1450
+ Migrating to RemoveOtherAccreditation (20160222091312)
1451
+  (0.5ms) BEGIN
1452
+ RemoveOtherAccreditation::Accreditation Load (0.4ms) SELECT "accreditations".* FROM "accreditations" WHERE "accreditations"."name" = $1 [["name", "Other"]]
1453
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160222091312"]]
1454
+  (1.7ms) COMMIT
1455
+ Migrating to AddSessionsTable (20160317103053)
1456
+  (0.2ms) BEGIN
1457
+ DEPRECATION WARNING: `#timestamps` 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/peteraitken/code/cultivate/mas/mas-rad_core/db/migrate/20160317103053_add_sessions_table.rb:6)
1458
+  (8.3ms) CREATE TABLE "rad_consumer_sessions" ("id" serial primary key, "session_id" character varying NOT NULL, "data" text, "created_at" timestamp, "updated_at" timestamp)
1459
+  (14.4ms) CREATE UNIQUE INDEX "index_rad_consumer_sessions_on_session_id" ON "rad_consumer_sessions" ("session_id")
1460
+  (2.2ms) CREATE INDEX "index_rad_consumer_sessions_on_updated_at" ON "rad_consumer_sessions" ("updated_at")
1461
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160317103053"]]
1462
+  (1.3ms) COMMIT
1463
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
1464
+  (15.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1465
+ FROM pg_constraint c
1466
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1467
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1468
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1469
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1470
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1471
+ WHERE c.contype = 'f'
1472
+ AND t1.relname = 'accreditations'
1473
+ AND t3.nspname = ANY (current_schemas(false))
1474
+ ORDER BY c.conname
1475
+
1476
+  (3.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1477
+ FROM pg_constraint c
1478
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1479
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1480
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1481
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1482
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1483
+ WHERE c.contype = 'f'
1484
+ AND t1.relname = 'accreditations_advisers'
1485
+ AND t3.nspname = ANY (current_schemas(false))
1486
+ ORDER BY c.conname
1487
+ 
1488
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1489
+ FROM pg_constraint c
1490
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1491
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1492
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1493
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1494
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1495
+ WHERE c.contype = 'f'
1496
+ AND t1.relname = 'advisers'
1497
+ AND t3.nspname = ANY (current_schemas(false))
1498
+ ORDER BY c.conname
1499
+
1500
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1501
+ FROM pg_constraint c
1502
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1503
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1504
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1505
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1506
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1507
+ WHERE c.contype = 'f'
1508
+ AND t1.relname = 'advisers_professional_bodies'
1509
+ AND t3.nspname = ANY (current_schemas(false))
1510
+ ORDER BY c.conname
1511
+ 
1512
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1513
+ FROM pg_constraint c
1514
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1515
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1516
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1517
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1518
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1519
+ WHERE c.contype = 'f'
1520
+ AND t1.relname = 'advisers_professional_standings'
1521
+ AND t3.nspname = ANY (current_schemas(false))
1522
+ ORDER BY c.conname
1523
+
1524
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1525
+ FROM pg_constraint c
1526
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1527
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1528
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1529
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1530
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1531
+ WHERE c.contype = 'f'
1532
+ AND t1.relname = 'advisers_qualifications'
1533
+ AND t3.nspname = ANY (current_schemas(false))
1534
+ ORDER BY c.conname
1535
+ 
1536
+  (2.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1537
+ FROM pg_constraint c
1538
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1539
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1540
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1541
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1542
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1543
+ WHERE c.contype = 'f'
1544
+ AND t1.relname = 'allowed_payment_methods'
1545
+ AND t3.nspname = ANY (current_schemas(false))
1546
+ ORDER BY c.conname
1547
+
1548
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1549
+ FROM pg_constraint c
1550
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1551
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1552
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1553
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1554
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1555
+ WHERE c.contype = 'f'
1556
+ AND t1.relname = 'allowed_payment_methods_firms'
1557
+ AND t3.nspname = ANY (current_schemas(false))
1558
+ ORDER BY c.conname
1559
+ 
1560
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1561
+ FROM pg_constraint c
1562
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1563
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1564
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1565
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1566
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1567
+ WHERE c.contype = 'f'
1568
+ AND t1.relname = 'firms'
1569
+ AND t3.nspname = ANY (current_schemas(false))
1570
+ ORDER BY c.conname
1571
+
1572
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1573
+ FROM pg_constraint c
1574
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1575
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1576
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1577
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1578
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1579
+ WHERE c.contype = 'f'
1580
+ AND t1.relname = 'firms_in_person_advice_methods'
1581
+ AND t3.nspname = ANY (current_schemas(false))
1582
+ ORDER BY c.conname
1583
+ 
1584
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1585
+ FROM pg_constraint c
1586
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1587
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1588
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1589
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1590
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1591
+ WHERE c.contype = 'f'
1592
+ AND t1.relname = 'firms_initial_advice_fee_structures'
1593
+ AND t3.nspname = ANY (current_schemas(false))
1594
+ ORDER BY c.conname
1595
+
1596
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1597
+ FROM pg_constraint c
1598
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1599
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1600
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1601
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1602
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1603
+ WHERE c.contype = 'f'
1604
+ AND t1.relname = 'firms_investment_sizes'
1605
+ AND t3.nspname = ANY (current_schemas(false))
1606
+ ORDER BY c.conname
1607
+ 
1608
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1609
+ FROM pg_constraint c
1610
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1611
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1612
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1613
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1614
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1615
+ WHERE c.contype = 'f'
1616
+ AND t1.relname = 'firms_ongoing_advice_fee_structures'
1617
+ AND t3.nspname = ANY (current_schemas(false))
1618
+ ORDER BY c.conname
1619
+
1620
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1621
+ FROM pg_constraint c
1622
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1623
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1624
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1625
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1626
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1627
+ WHERE c.contype = 'f'
1628
+ AND t1.relname = 'firms_other_advice_methods'
1629
+ AND t3.nspname = ANY (current_schemas(false))
1630
+ ORDER BY c.conname
1631
+ 
1632
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1633
+ FROM pg_constraint c
1634
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1635
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1636
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1637
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1638
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1639
+ WHERE c.contype = 'f'
1640
+ AND t1.relname = 'in_person_advice_methods'
1641
+ AND t3.nspname = ANY (current_schemas(false))
1642
+ ORDER BY c.conname
1643
+
1644
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1645
+ FROM pg_constraint c
1646
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1647
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1648
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1649
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1650
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1651
+ WHERE c.contype = 'f'
1652
+ AND t1.relname = 'initial_advice_fee_structures'
1653
+ AND t3.nspname = ANY (current_schemas(false))
1654
+ ORDER BY c.conname
1655
+ 
1656
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1657
+ FROM pg_constraint c
1658
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1659
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1660
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1661
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1662
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1663
+ WHERE c.contype = 'f'
1664
+ AND t1.relname = 'initial_meeting_durations'
1665
+ AND t3.nspname = ANY (current_schemas(false))
1666
+ ORDER BY c.conname
1667
+
1668
+  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1669
+ FROM pg_constraint c
1670
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1671
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1672
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1673
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1674
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1675
+ WHERE c.contype = 'f'
1676
+ AND t1.relname = 'investment_sizes'
1677
+ AND t3.nspname = ANY (current_schemas(false))
1678
+ ORDER BY c.conname
1679
+ 
1680
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1681
+ FROM pg_constraint c
1682
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1683
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1684
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1685
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1686
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1687
+ WHERE c.contype = 'f'
1688
+ AND t1.relname = 'lookup_advisers'
1689
+ AND t3.nspname = ANY (current_schemas(false))
1690
+ ORDER BY c.conname
1691
+
1692
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1693
+ FROM pg_constraint c
1694
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1695
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1696
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1697
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1698
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1699
+ WHERE c.contype = 'f'
1700
+ AND t1.relname = 'lookup_firms'
1701
+ AND t3.nspname = ANY (current_schemas(false))
1702
+ ORDER BY c.conname
1703
+ 
1704
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1705
+ FROM pg_constraint c
1706
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1707
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1708
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1709
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1710
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1711
+ WHERE c.contype = 'f'
1712
+ AND t1.relname = 'lookup_subsidiaries'
1713
+ AND t3.nspname = ANY (current_schemas(false))
1714
+ ORDER BY c.conname
1715
+
1716
+  (3.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1717
+ FROM pg_constraint c
1718
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1719
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1720
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1721
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1722
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1723
+ WHERE c.contype = 'f'
1724
+ AND t1.relname = 'offices'
1725
+ AND t3.nspname = ANY (current_schemas(false))
1726
+ ORDER BY c.conname
1727
+ 
1728
+  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1729
+ FROM pg_constraint c
1730
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1731
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1732
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1733
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1734
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1735
+ WHERE c.contype = 'f'
1736
+ AND t1.relname = 'ongoing_advice_fee_structures'
1737
+ AND t3.nspname = ANY (current_schemas(false))
1738
+ ORDER BY c.conname
1739
+
1740
+  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1741
+ FROM pg_constraint c
1742
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1743
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1744
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1745
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1746
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1747
+ WHERE c.contype = 'f'
1748
+ AND t1.relname = 'other_advice_methods'
1749
+ AND t3.nspname = ANY (current_schemas(false))
1750
+ ORDER BY c.conname
1751
+ 
1752
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1753
+ FROM pg_constraint c
1754
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1755
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1756
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1757
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1758
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1759
+ WHERE c.contype = 'f'
1760
+ AND t1.relname = 'principals'
1761
+ AND t3.nspname = ANY (current_schemas(false))
1762
+ ORDER BY c.conname
1763
+
1764
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1765
+ FROM pg_constraint c
1766
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1767
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1768
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1769
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1770
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1771
+ WHERE c.contype = 'f'
1772
+ AND t1.relname = 'professional_bodies'
1773
+ AND t3.nspname = ANY (current_schemas(false))
1774
+ ORDER BY c.conname
1775
+ 
1776
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1777
+ FROM pg_constraint c
1778
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1779
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1780
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1781
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1782
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1783
+ WHERE c.contype = 'f'
1784
+ AND t1.relname = 'professional_standings'
1785
+ AND t3.nspname = ANY (current_schemas(false))
1786
+ ORDER BY c.conname
1787
+
1788
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1789
+ FROM pg_constraint c
1790
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1791
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1792
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1793
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1794
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1795
+ WHERE c.contype = 'f'
1796
+ AND t1.relname = 'qualifications'
1797
+ AND t3.nspname = ANY (current_schemas(false))
1798
+ ORDER BY c.conname
1799
+ 
1800
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1801
+ FROM pg_constraint c
1802
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1803
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1804
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1805
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1806
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1807
+ WHERE c.contype = 'f'
1808
+ AND t1.relname = 'rad_consumer_sessions'
1809
+ AND t3.nspname = ANY (current_schemas(false))
1810
+ ORDER BY c.conname
1811
+
1812
+  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1813
+ FROM pg_constraint c
1814
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1815
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1816
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1817
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1818
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1819
+ WHERE c.contype = 'f'
1820
+ AND t1.relname = 'snapshots'
1821
+ AND t3.nspname = ANY (current_schemas(false))
1822
+ ORDER BY c.conname
1823
+