canvas_sync 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1489eac6e822527f27f73828fbe9bcccad401e55
4
- data.tar.gz: e91a8c75620d6006dc935a2f7774e2cce04b4922
3
+ metadata.gz: 792fd9d830f8f82a41f33582487638b3bbb2dbf5
4
+ data.tar.gz: dda6faccb4e9c3377a74d182ac9538ae7bc5ed27
5
5
  SHA512:
6
- metadata.gz: 3a8bb596f0e3c59b5318c1cb79927ca74fc08733a0e4db1733dc9ba45b6c2613ae13d1732a3b79dd8c99e3ec0f55be69c0740b44a3beced935c1a0c390f8e9ba
7
- data.tar.gz: 163a3abc8abcba6f3406bcc0feb31fdb5b71fed6648d730bb716af112aa4fa8fddfd6487f1f4c860ed0117c9fad7f813400fb9bcfcb67601f05bf599eed7352c
6
+ metadata.gz: 5d48237b5c4de288a01cd4c4645c097b35175255c492de9e9729efde69d9adad1884e12f5a9c2b0a47c059c54885f940dff451299130562f8215722f0b682ee5
7
+ data.tar.gz: 0eaafea6e753ed585495fb0f2b049e8c0f4c9c67824c3e9ee84a61c7b6e119d1fa36f990f32f3fe94b78629fdf714be5ea960a3e491ec7f190bac1b8b8d5a7a4
data/README.md CHANGED
@@ -164,7 +164,9 @@ The provisioning report uses the `CanvasSync::Importers::BulkImporter` class to
164
164
 
165
165
  Re-running the generator when there's been a gem change will give you several choices if it detects conflicts between your local files and the updated generators. You can either view a diff or allow the generator to overwrite your local file. In most cases you may just want to add the code from the diff yourself so as not to break any of your customizations.
166
166
 
167
- TODO - if you make any breaking changes make sure you include upgrade instructions here.
167
+ Additionally, if there have been schema changes to an existing model you may have to run your own migration to bring it up to speed.
168
+
169
+ If you make updates to the gem please add any upgrade instructions here.
168
170
 
169
171
  ## Integrating with existing applications
170
172
 
@@ -7,6 +7,7 @@ class CreateCourses < ActiveRecord::Migration[5.1]
7
7
  t.string :sis_id
8
8
  t.string :short_name
9
9
  t.string :long_name
10
+ t.string :status
10
11
  t.integer :canvas_account_id
11
12
  t.integer :canvas_term_id
12
13
  t.integer :term_sis_id
@@ -25,7 +25,8 @@ module CanvasSync
25
25
  canvas_term_id: :canvas_term_id,
26
26
  term_id: :term_sis_id,
27
27
  start_date: :start_date,
28
- end_date: :end_date
28
+ end_date: :end_date,
29
+ status: :status
29
30
  }
30
31
 
31
32
  ENROLLMENTS_CSV_MAPPING = {
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -13,6 +13,7 @@ class CreateCourses < ActiveRecord::Migration[5.1]
13
13
  t.string :sis_id
14
14
  t.string :short_name
15
15
  t.string :long_name
16
+ t.string :status
16
17
  t.integer :canvas_account_id
17
18
  t.integer :canvas_term_id
18
19
  t.integer :term_sis_id
@@ -10,13 +10,14 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20170906203438) do
13
+ ActiveRecord::Schema.define(version: 20170914181345) do
14
14
 
15
15
  create_table "courses", force: :cascade do |t|
16
16
  t.bigint "canvas_course_id", null: false
17
17
  t.string "sis_id"
18
18
  t.string "short_name"
19
19
  t.string "long_name"
20
+ t.string "status"
20
21
  t.integer "canvas_account_id"
21
22
  t.integer "canvas_term_id"
22
23
  t.integer "term_sis_id"
Binary file
@@ -825,4 +825,2678 @@ Migrating to CreateSections (20170906203438)
825
825
  SELECT sql
826
826
  FROM sqlite_temp_master
827
827
  WHERE name='index_users_on_canvas_user_id' AND type='index'
828
+ 
829
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
830
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
831
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
832
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
833
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
834
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
835
+  (0.1ms) SELECT sqlite_version(*)
836
+  (6.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
837
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
838
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
839
+ Migrating to CreateCourses (20170831220702)
840
+  (0.1ms) begin transaction
841
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
842
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
843
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
844
+  (1.1ms) commit transaction
845
+ Migrating to CreateUsers (20170831221129)
846
+  (0.1ms) begin transaction
847
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
848
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
849
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
850
+  (0.9ms) commit transaction
851
+ Migrating to CreateEnrollments (20170905192509)
852
+  (0.1ms) begin transaction
853
+  (0.5ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
854
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
855
+  (0.1ms)  SELECT sql
856
+ FROM sqlite_master
857
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
858
+ UNION ALL
859
+ SELECT sql
860
+ FROM sqlite_temp_master
861
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
862
+ 
863
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
864
+  (0.1ms)  SELECT sql
865
+ FROM sqlite_master
866
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
867
+ UNION ALL
868
+ SELECT sql
869
+ FROM sqlite_temp_master
870
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
871
+ 
872
+  (0.1ms)  SELECT sql
873
+ FROM sqlite_master
874
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
875
+ UNION ALL
876
+ SELECT sql
877
+ FROM sqlite_temp_master
878
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
879
+ 
880
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
881
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
882
+  (0.8ms) commit transaction
883
+ Migrating to CreateTerms (20170906193506)
884
+  (0.6ms) begin transaction
885
+  (0.5ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
886
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
887
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
888
+  (1.0ms) commit transaction
889
+ Migrating to CreateSections (20170906203438)
890
+  (0.5ms) begin transaction
891
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
892
+  (0.2ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
893
+  (0.1ms)  SELECT sql
894
+ FROM sqlite_master
895
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
896
+ UNION ALL
897
+ SELECT sql
898
+ FROM sqlite_temp_master
899
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
900
+ 
901
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
902
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
903
+  (1.0ms) commit transaction
904
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
905
+  (0.1ms) begin transaction
906
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:20:31.608205"], ["updated_at", "2017-09-13 18:20:31.608205"]]
907
+  (0.8ms) commit transaction
908
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
909
+  (0.1ms)  SELECT sql
910
+ FROM sqlite_master
911
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
912
+ UNION ALL
913
+ SELECT sql
914
+ FROM sqlite_temp_master
915
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
916
+ 
917
+  (0.1ms)  SELECT sql
918
+ FROM sqlite_master
919
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
920
+ UNION ALL
921
+ SELECT sql
922
+ FROM sqlite_temp_master
923
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
924
+ 
925
+  (0.1ms)  SELECT sql
926
+ FROM sqlite_master
927
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
928
+ UNION ALL
929
+ SELECT sql
930
+ FROM sqlite_temp_master
931
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
932
+ 
933
+  (0.1ms)  SELECT sql
934
+ FROM sqlite_master
935
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
936
+ UNION ALL
937
+ SELECT sql
938
+ FROM sqlite_temp_master
939
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
940
+ 
941
+  (0.1ms)  SELECT sql
942
+ FROM sqlite_master
943
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
944
+ UNION ALL
945
+ SELECT sql
946
+ FROM sqlite_temp_master
947
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
948
+ 
949
+  (0.1ms)  SELECT sql
950
+ FROM sqlite_master
951
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
952
+ UNION ALL
953
+ SELECT sql
954
+ FROM sqlite_temp_master
955
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
956
+ 
957
+  (0.1ms)  SELECT sql
958
+ FROM sqlite_master
959
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
960
+ UNION ALL
961
+ SELECT sql
962
+ FROM sqlite_temp_master
963
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
964
+ 
965
+  (0.1ms)  SELECT sql
966
+ FROM sqlite_master
967
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
968
+ UNION ALL
969
+ SELECT sql
970
+ FROM sqlite_temp_master
971
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
972
+ 
973
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
974
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
975
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
976
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
977
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
978
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
979
+  (0.1ms) SELECT sqlite_version(*)
980
+  (7.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
981
+  (1.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
982
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
983
+ Migrating to CreateCourses (20170831220702)
984
+  (0.1ms) begin transaction
985
+  (0.5ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
986
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
987
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
988
+  (1.2ms) commit transaction
989
+ Migrating to CreateUsers (20170831221129)
990
+  (0.1ms) begin transaction
991
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
992
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
993
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
994
+  (0.9ms) commit transaction
995
+ Migrating to CreateEnrollments (20170905192509)
996
+  (0.1ms) begin transaction
997
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
998
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
999
+  (0.1ms)  SELECT sql
1000
+ FROM sqlite_master
1001
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1002
+ UNION ALL
1003
+ SELECT sql
1004
+ FROM sqlite_temp_master
1005
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1006
+ 
1007
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1008
+  (0.1ms)  SELECT sql
1009
+ FROM sqlite_master
1010
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1011
+ UNION ALL
1012
+ SELECT sql
1013
+ FROM sqlite_temp_master
1014
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1015
+ 
1016
+  (0.1ms)  SELECT sql
1017
+ FROM sqlite_master
1018
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1019
+ UNION ALL
1020
+ SELECT sql
1021
+ FROM sqlite_temp_master
1022
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1023
+ 
1024
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1025
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1026
+  (0.9ms) commit transaction
1027
+ Migrating to CreateTerms (20170906193506)
1028
+  (0.1ms) begin transaction
1029
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1030
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1031
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1032
+  (0.8ms) commit transaction
1033
+ Migrating to CreateSections (20170906203438)
1034
+  (0.0ms) begin transaction
1035
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1036
+  (0.2ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1037
+  (0.1ms)  SELECT sql
1038
+ FROM sqlite_master
1039
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1040
+ UNION ALL
1041
+ SELECT sql
1042
+ FROM sqlite_temp_master
1043
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1044
+ 
1045
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1046
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1047
+  (1.4ms) commit transaction
1048
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1049
+  (0.0ms) begin transaction
1050
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:22:08.317678"], ["updated_at", "2017-09-13 18:22:08.317678"]]
1051
+  (0.6ms) commit transaction
1052
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1053
+  (0.1ms)  SELECT sql
1054
+ FROM sqlite_master
1055
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1056
+ UNION ALL
1057
+ SELECT sql
1058
+ FROM sqlite_temp_master
1059
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1060
+ 
1061
+  (0.1ms)  SELECT sql
1062
+ FROM sqlite_master
1063
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1064
+ UNION ALL
1065
+ SELECT sql
1066
+ FROM sqlite_temp_master
1067
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1068
+ 
1069
+  (0.1ms)  SELECT sql
1070
+ FROM sqlite_master
1071
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1072
+ UNION ALL
1073
+ SELECT sql
1074
+ FROM sqlite_temp_master
1075
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1076
+ 
1077
+  (0.1ms)  SELECT sql
1078
+ FROM sqlite_master
1079
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1080
+ UNION ALL
1081
+ SELECT sql
1082
+ FROM sqlite_temp_master
1083
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1084
+ 
1085
+  (0.1ms)  SELECT sql
1086
+ FROM sqlite_master
1087
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1088
+ UNION ALL
1089
+ SELECT sql
1090
+ FROM sqlite_temp_master
1091
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1092
+ 
1093
+  (0.1ms)  SELECT sql
1094
+ FROM sqlite_master
1095
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1096
+ UNION ALL
1097
+ SELECT sql
1098
+ FROM sqlite_temp_master
1099
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1100
+ 
1101
+  (0.1ms)  SELECT sql
1102
+ FROM sqlite_master
1103
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1104
+ UNION ALL
1105
+ SELECT sql
1106
+ FROM sqlite_temp_master
1107
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1108
+ 
1109
+  (0.1ms)  SELECT sql
1110
+ FROM sqlite_master
1111
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1112
+ UNION ALL
1113
+ SELECT sql
1114
+ FROM sqlite_temp_master
1115
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1116
+ 
1117
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1118
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1119
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1120
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1121
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1122
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1123
+  (0.1ms) SELECT sqlite_version(*)
1124
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1125
+  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1126
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1127
+ Migrating to CreateCourses (20170831220702)
1128
+  (0.0ms) begin transaction
1129
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1130
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
1131
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
1132
+  (1.1ms) commit transaction
1133
+ Migrating to CreateUsers (20170831221129)
1134
+  (0.1ms) begin transaction
1135
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1136
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
1137
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
1138
+  (1.2ms) commit transaction
1139
+ Migrating to CreateEnrollments (20170905192509)
1140
+  (0.1ms) begin transaction
1141
+  (0.4ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1142
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
1143
+  (0.1ms)  SELECT sql
1144
+ FROM sqlite_master
1145
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1146
+ UNION ALL
1147
+ SELECT sql
1148
+ FROM sqlite_temp_master
1149
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1150
+ 
1151
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1152
+  (0.1ms)  SELECT sql
1153
+ FROM sqlite_master
1154
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1155
+ UNION ALL
1156
+ SELECT sql
1157
+ FROM sqlite_temp_master
1158
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1159
+ 
1160
+  (0.1ms)  SELECT sql
1161
+ FROM sqlite_master
1162
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1163
+ UNION ALL
1164
+ SELECT sql
1165
+ FROM sqlite_temp_master
1166
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1167
+ 
1168
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1169
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1170
+  (0.9ms) commit transaction
1171
+ Migrating to CreateTerms (20170906193506)
1172
+  (0.1ms) begin transaction
1173
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1174
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1175
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1176
+  (0.6ms) commit transaction
1177
+ Migrating to CreateSections (20170906203438)
1178
+  (0.1ms) begin transaction
1179
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1180
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1181
+  (0.1ms)  SELECT sql
1182
+ FROM sqlite_master
1183
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1184
+ UNION ALL
1185
+ SELECT sql
1186
+ FROM sqlite_temp_master
1187
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1188
+ 
1189
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1190
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1191
+  (1.2ms) commit transaction
1192
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1193
+  (0.1ms) begin transaction
1194
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:31:53.114033"], ["updated_at", "2017-09-13 18:31:53.114033"]]
1195
+  (0.8ms) commit transaction
1196
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1197
+  (0.1ms)  SELECT sql
1198
+ FROM sqlite_master
1199
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1200
+ UNION ALL
1201
+ SELECT sql
1202
+ FROM sqlite_temp_master
1203
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1204
+ 
1205
+  (0.1ms)  SELECT sql
1206
+ FROM sqlite_master
1207
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1208
+ UNION ALL
1209
+ SELECT sql
1210
+ FROM sqlite_temp_master
1211
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1212
+ 
1213
+  (0.1ms)  SELECT sql
1214
+ FROM sqlite_master
1215
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1216
+ UNION ALL
1217
+ SELECT sql
1218
+ FROM sqlite_temp_master
1219
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1220
+ 
1221
+  (0.1ms)  SELECT sql
1222
+ FROM sqlite_master
1223
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1224
+ UNION ALL
1225
+ SELECT sql
1226
+ FROM sqlite_temp_master
1227
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1228
+ 
1229
+  (0.1ms)  SELECT sql
1230
+ FROM sqlite_master
1231
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1232
+ UNION ALL
1233
+ SELECT sql
1234
+ FROM sqlite_temp_master
1235
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1236
+ 
1237
+  (0.1ms)  SELECT sql
1238
+ FROM sqlite_master
1239
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1240
+ UNION ALL
1241
+ SELECT sql
1242
+ FROM sqlite_temp_master
1243
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1244
+ 
1245
+  (0.1ms)  SELECT sql
1246
+ FROM sqlite_master
1247
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1248
+ UNION ALL
1249
+ SELECT sql
1250
+ FROM sqlite_temp_master
1251
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1252
+ 
1253
+  (0.1ms)  SELECT sql
1254
+ FROM sqlite_master
1255
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1256
+ UNION ALL
1257
+ SELECT sql
1258
+ FROM sqlite_temp_master
1259
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1260
+ 
1261
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1262
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1263
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1264
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1265
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1266
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1267
+  (0.1ms) SELECT sqlite_version(*)
1268
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1269
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1270
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1271
+ Migrating to CreateCourses (20170831220702)
1272
+  (0.0ms) begin transaction
1273
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1274
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
1275
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
1276
+  (1.1ms) commit transaction
1277
+ Migrating to CreateUsers (20170831221129)
1278
+  (0.1ms) begin transaction
1279
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1280
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
1281
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
1282
+  (0.8ms) commit transaction
1283
+ Migrating to CreateEnrollments (20170905192509)
1284
+  (0.1ms) begin transaction
1285
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1286
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
1287
+  (0.1ms)  SELECT sql
1288
+ FROM sqlite_master
1289
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1290
+ UNION ALL
1291
+ SELECT sql
1292
+ FROM sqlite_temp_master
1293
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1294
+ 
1295
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1296
+  (0.1ms)  SELECT sql
1297
+ FROM sqlite_master
1298
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1299
+ UNION ALL
1300
+ SELECT sql
1301
+ FROM sqlite_temp_master
1302
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1303
+ 
1304
+  (0.1ms)  SELECT sql
1305
+ FROM sqlite_master
1306
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1307
+ UNION ALL
1308
+ SELECT sql
1309
+ FROM sqlite_temp_master
1310
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1311
+ 
1312
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1313
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1314
+  (1.1ms) commit transaction
1315
+ Migrating to CreateTerms (20170906193506)
1316
+  (0.1ms) begin transaction
1317
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1318
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1319
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1320
+  (1.1ms) commit transaction
1321
+ Migrating to CreateSections (20170906203438)
1322
+  (0.1ms) begin transaction
1323
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1324
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1325
+  (0.1ms)  SELECT sql
1326
+ FROM sqlite_master
1327
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1328
+ UNION ALL
1329
+ SELECT sql
1330
+ FROM sqlite_temp_master
1331
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1332
+ 
1333
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1334
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1335
+  (0.9ms) commit transaction
1336
+ Migrating to CreateTasks (20170913183322)
1337
+  (0.1ms) begin transaction
1338
+  (0.0ms) rollback transaction
1339
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1340
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1341
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1342
+ Migrating to CreateTasks (20170913183322)
1343
+  (0.0ms) begin transaction
1344
+  (0.1ms) rollback transaction
1345
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1346
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1347
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1348
+ Migrating to CreateTasks (20170913183456)
1349
+  (0.1ms) begin transaction
1350
+  (0.1ms) SELECT sqlite_version(*)
1351
+  (0.4ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1352
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183456"]]
1353
+  (2.2ms) commit transaction
1354
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1355
+  (0.1ms) begin transaction
1356
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:35:01.384963"], ["updated_at", "2017-09-13 18:35:01.384963"]]
1357
+  (0.6ms) commit transaction
1358
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1359
+  (0.1ms)  SELECT sql
1360
+ FROM sqlite_master
1361
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1362
+ UNION ALL
1363
+ SELECT sql
1364
+ FROM sqlite_temp_master
1365
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1366
+ 
1367
+  (0.1ms)  SELECT sql
1368
+ FROM sqlite_master
1369
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1370
+ UNION ALL
1371
+ SELECT sql
1372
+ FROM sqlite_temp_master
1373
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1374
+ 
1375
+  (0.1ms)  SELECT sql
1376
+ FROM sqlite_master
1377
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1378
+ UNION ALL
1379
+ SELECT sql
1380
+ FROM sqlite_temp_master
1381
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1382
+ 
1383
+  (0.1ms)  SELECT sql
1384
+ FROM sqlite_master
1385
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1386
+ UNION ALL
1387
+ SELECT sql
1388
+ FROM sqlite_temp_master
1389
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1390
+ 
1391
+  (0.1ms)  SELECT sql
1392
+ FROM sqlite_master
1393
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1394
+ UNION ALL
1395
+ SELECT sql
1396
+ FROM sqlite_temp_master
1397
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1398
+ 
1399
+  (0.1ms)  SELECT sql
1400
+ FROM sqlite_master
1401
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1402
+ UNION ALL
1403
+ SELECT sql
1404
+ FROM sqlite_temp_master
1405
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1406
+ 
1407
+  (0.1ms)  SELECT sql
1408
+ FROM sqlite_master
1409
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1410
+ UNION ALL
1411
+ SELECT sql
1412
+ FROM sqlite_temp_master
1413
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1414
+ 
1415
+  (0.1ms)  SELECT sql
1416
+ FROM sqlite_master
1417
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1418
+ UNION ALL
1419
+ SELECT sql
1420
+ FROM sqlite_temp_master
1421
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1422
+ 
1423
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1424
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1425
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1426
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1427
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1428
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1429
+  (0.1ms) SELECT sqlite_version(*)
1430
+  (6.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1431
+  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1432
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1433
+ Migrating to CreateCourses (20170831220702)
1434
+  (0.1ms) begin transaction
1435
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1436
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
1437
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
1438
+  (1.3ms) commit transaction
1439
+ Migrating to CreateUsers (20170831221129)
1440
+  (0.1ms) begin transaction
1441
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1442
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
1443
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
1444
+  (0.6ms) commit transaction
1445
+ Migrating to CreateEnrollments (20170905192509)
1446
+  (0.0ms) begin transaction
1447
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1448
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
1449
+  (0.1ms)  SELECT sql
1450
+ FROM sqlite_master
1451
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1452
+ UNION ALL
1453
+ SELECT sql
1454
+ FROM sqlite_temp_master
1455
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1456
+ 
1457
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1458
+  (0.1ms)  SELECT sql
1459
+ FROM sqlite_master
1460
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1461
+ UNION ALL
1462
+ SELECT sql
1463
+ FROM sqlite_temp_master
1464
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1465
+ 
1466
+  (0.1ms)  SELECT sql
1467
+ FROM sqlite_master
1468
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1469
+ UNION ALL
1470
+ SELECT sql
1471
+ FROM sqlite_temp_master
1472
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1473
+ 
1474
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1475
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1476
+  (1.1ms) commit transaction
1477
+ Migrating to CreateTerms (20170906193506)
1478
+  (0.1ms) begin transaction
1479
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1480
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1481
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1482
+  (0.8ms) commit transaction
1483
+ Migrating to CreateSections (20170906203438)
1484
+  (0.0ms) begin transaction
1485
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1486
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1487
+  (0.1ms)  SELECT sql
1488
+ FROM sqlite_master
1489
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1490
+ UNION ALL
1491
+ SELECT sql
1492
+ FROM sqlite_temp_master
1493
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1494
+ 
1495
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1496
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1497
+  (0.9ms) commit transaction
1498
+ Migrating to CreateTasks (20170913183456)
1499
+  (0.0ms) begin transaction
1500
+  (0.3ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1501
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183456"]]
1502
+  (1.1ms) commit transaction
1503
+ Migrating to CreateJobsWrappers (20170913183717)
1504
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1505
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1506
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1507
+ Migrating to CreateJobsWrappers (20170913183717)
1508
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1509
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1510
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1511
+ Migrating to CreateJobsWrappers (20170913183823)
1512
+  (0.1ms) begin transaction
1513
+  (0.1ms) SELECT sqlite_version(*)
1514
+  (0.4ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1515
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
1516
+  (7.1ms) commit transaction
1517
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1518
+  (0.0ms) begin transaction
1519
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:38:28.752865"], ["updated_at", "2017-09-13 18:38:28.752865"]]
1520
+  (1.2ms) commit transaction
1521
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1522
+  (0.1ms)  SELECT sql
1523
+ FROM sqlite_master
1524
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1525
+ UNION ALL
1526
+ SELECT sql
1527
+ FROM sqlite_temp_master
1528
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1529
+ 
1530
+  (0.1ms)  SELECT sql
1531
+ FROM sqlite_master
1532
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1533
+ UNION ALL
1534
+ SELECT sql
1535
+ FROM sqlite_temp_master
1536
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1537
+ 
1538
+  (0.1ms)  SELECT sql
1539
+ FROM sqlite_master
1540
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1541
+ UNION ALL
1542
+ SELECT sql
1543
+ FROM sqlite_temp_master
1544
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1545
+ 
1546
+  (0.1ms)  SELECT sql
1547
+ FROM sqlite_master
1548
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1549
+ UNION ALL
1550
+ SELECT sql
1551
+ FROM sqlite_temp_master
1552
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1553
+ 
1554
+  (0.1ms)  SELECT sql
1555
+ FROM sqlite_master
1556
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1557
+ UNION ALL
1558
+ SELECT sql
1559
+ FROM sqlite_temp_master
1560
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1561
+ 
1562
+  (0.1ms)  SELECT sql
1563
+ FROM sqlite_master
1564
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1565
+ UNION ALL
1566
+ SELECT sql
1567
+ FROM sqlite_temp_master
1568
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1569
+ 
1570
+  (0.1ms)  SELECT sql
1571
+ FROM sqlite_master
1572
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1573
+ UNION ALL
1574
+ SELECT sql
1575
+ FROM sqlite_temp_master
1576
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1577
+ 
1578
+  (0.1ms)  SELECT sql
1579
+ FROM sqlite_master
1580
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1581
+ UNION ALL
1582
+ SELECT sql
1583
+ FROM sqlite_temp_master
1584
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1585
+ 
1586
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1587
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1588
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1589
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1590
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1591
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1592
+  (0.1ms) SELECT sqlite_version(*)
1593
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1594
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1595
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1596
+ Migrating to CreateCourses (20170831220702)
1597
+  (0.1ms) begin transaction
1598
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1599
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
1600
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
1601
+  (0.9ms) commit transaction
1602
+ Migrating to CreateUsers (20170831221129)
1603
+  (0.0ms) begin transaction
1604
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1605
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
1606
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
1607
+  (0.9ms) commit transaction
1608
+ Migrating to CreateEnrollments (20170905192509)
1609
+  (0.0ms) begin transaction
1610
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1611
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
1612
+  (0.1ms)  SELECT sql
1613
+ FROM sqlite_master
1614
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1615
+ UNION ALL
1616
+ SELECT sql
1617
+ FROM sqlite_temp_master
1618
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1619
+ 
1620
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1621
+  (0.1ms)  SELECT sql
1622
+ FROM sqlite_master
1623
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1624
+ UNION ALL
1625
+ SELECT sql
1626
+ FROM sqlite_temp_master
1627
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1628
+ 
1629
+  (0.1ms)  SELECT sql
1630
+ FROM sqlite_master
1631
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1632
+ UNION ALL
1633
+ SELECT sql
1634
+ FROM sqlite_temp_master
1635
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1636
+ 
1637
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1638
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1639
+  (1.2ms) commit transaction
1640
+ Migrating to CreateTerms (20170906193506)
1641
+  (0.1ms) begin transaction
1642
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1643
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1644
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1645
+  (0.7ms) commit transaction
1646
+ Migrating to CreateSections (20170906203438)
1647
+  (0.1ms) begin transaction
1648
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1649
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1650
+  (0.1ms)  SELECT sql
1651
+ FROM sqlite_master
1652
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1653
+ UNION ALL
1654
+ SELECT sql
1655
+ FROM sqlite_temp_master
1656
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1657
+ 
1658
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1659
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1660
+  (0.9ms) commit transaction
1661
+ Migrating to CreateJobsWrappers (20170913183823)
1662
+  (0.1ms) begin transaction
1663
+  (0.3ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1664
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
1665
+  (0.8ms) commit transaction
1666
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1667
+  (0.0ms) begin transaction
1668
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:42:22.239000"], ["updated_at", "2017-09-13 18:42:22.239000"]]
1669
+  (0.6ms) commit transaction
1670
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1671
+  (0.1ms)  SELECT sql
1672
+ FROM sqlite_master
1673
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1674
+ UNION ALL
1675
+ SELECT sql
1676
+ FROM sqlite_temp_master
1677
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1678
+ 
1679
+  (0.1ms)  SELECT sql
1680
+ FROM sqlite_master
1681
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1682
+ UNION ALL
1683
+ SELECT sql
1684
+ FROM sqlite_temp_master
1685
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1686
+ 
1687
+  (0.1ms)  SELECT sql
1688
+ FROM sqlite_master
1689
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1690
+ UNION ALL
1691
+ SELECT sql
1692
+ FROM sqlite_temp_master
1693
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1694
+ 
1695
+  (0.1ms)  SELECT sql
1696
+ FROM sqlite_master
1697
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1698
+ UNION ALL
1699
+ SELECT sql
1700
+ FROM sqlite_temp_master
1701
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1702
+ 
1703
+  (0.1ms)  SELECT sql
1704
+ FROM sqlite_master
1705
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1706
+ UNION ALL
1707
+ SELECT sql
1708
+ FROM sqlite_temp_master
1709
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1710
+ 
1711
+  (0.1ms)  SELECT sql
1712
+ FROM sqlite_master
1713
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1714
+ UNION ALL
1715
+ SELECT sql
1716
+ FROM sqlite_temp_master
1717
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1718
+ 
1719
+  (0.1ms)  SELECT sql
1720
+ FROM sqlite_master
1721
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1722
+ UNION ALL
1723
+ SELECT sql
1724
+ FROM sqlite_temp_master
1725
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1726
+ 
1727
+  (0.1ms)  SELECT sql
1728
+ FROM sqlite_master
1729
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1730
+ UNION ALL
1731
+ SELECT sql
1732
+ FROM sqlite_temp_master
1733
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1734
+ 
1735
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1736
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1737
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1738
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1739
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1740
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1741
+  (0.1ms) SELECT sqlite_version(*)
1742
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1743
+  (1.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1744
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1745
+ Migrating to CreateCourses (20170831220702)
1746
+  (0.0ms) begin transaction
1747
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1748
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
1749
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
1750
+  (1.1ms) commit transaction
1751
+ Migrating to CreateUsers (20170831221129)
1752
+  (0.0ms) begin transaction
1753
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1754
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
1755
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
1756
+  (0.9ms) commit transaction
1757
+ Migrating to CreateEnrollments (20170905192509)
1758
+  (0.1ms) begin transaction
1759
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1760
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
1761
+  (0.1ms)  SELECT sql
1762
+ FROM sqlite_master
1763
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1764
+ UNION ALL
1765
+ SELECT sql
1766
+ FROM sqlite_temp_master
1767
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1768
+ 
1769
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1770
+  (0.1ms)  SELECT sql
1771
+ FROM sqlite_master
1772
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1773
+ UNION ALL
1774
+ SELECT sql
1775
+ FROM sqlite_temp_master
1776
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1777
+ 
1778
+  (0.1ms)  SELECT sql
1779
+ FROM sqlite_master
1780
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1781
+ UNION ALL
1782
+ SELECT sql
1783
+ FROM sqlite_temp_master
1784
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1785
+ 
1786
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1787
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1788
+  (0.9ms) commit transaction
1789
+ Migrating to CreateTerms (20170906193506)
1790
+  (0.0ms) begin transaction
1791
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1792
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1793
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1794
+  (0.8ms) commit transaction
1795
+ Migrating to CreateSections (20170906203438)
1796
+  (0.0ms) begin transaction
1797
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1798
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1799
+  (0.1ms)  SELECT sql
1800
+ FROM sqlite_master
1801
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1802
+ UNION ALL
1803
+ SELECT sql
1804
+ FROM sqlite_temp_master
1805
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1806
+ 
1807
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1808
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1809
+  (0.9ms) commit transaction
1810
+ Migrating to CreateJobsWrappers (20170913183823)
1811
+  (0.0ms) begin transaction
1812
+  (0.3ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1813
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
1814
+  (0.9ms) commit transaction
1815
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1816
+  (0.0ms) begin transaction
1817
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:55:54.899243"], ["updated_at", "2017-09-13 18:55:54.899243"]]
1818
+  (1.0ms) commit transaction
1819
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1820
+  (0.1ms)  SELECT sql
1821
+ FROM sqlite_master
1822
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1823
+ UNION ALL
1824
+ SELECT sql
1825
+ FROM sqlite_temp_master
1826
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1827
+ 
1828
+  (0.1ms)  SELECT sql
1829
+ FROM sqlite_master
1830
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1831
+ UNION ALL
1832
+ SELECT sql
1833
+ FROM sqlite_temp_master
1834
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1835
+ 
1836
+  (0.1ms)  SELECT sql
1837
+ FROM sqlite_master
1838
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1839
+ UNION ALL
1840
+ SELECT sql
1841
+ FROM sqlite_temp_master
1842
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1843
+ 
1844
+  (0.1ms)  SELECT sql
1845
+ FROM sqlite_master
1846
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1847
+ UNION ALL
1848
+ SELECT sql
1849
+ FROM sqlite_temp_master
1850
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1851
+ 
1852
+  (0.1ms)  SELECT sql
1853
+ FROM sqlite_master
1854
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1855
+ UNION ALL
1856
+ SELECT sql
1857
+ FROM sqlite_temp_master
1858
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
1859
+ 
1860
+  (0.1ms)  SELECT sql
1861
+ FROM sqlite_master
1862
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1863
+ UNION ALL
1864
+ SELECT sql
1865
+ FROM sqlite_temp_master
1866
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1867
+ 
1868
+  (0.1ms)  SELECT sql
1869
+ FROM sqlite_master
1870
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1871
+ UNION ALL
1872
+ SELECT sql
1873
+ FROM sqlite_temp_master
1874
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
1875
+ 
1876
+  (0.1ms)  SELECT sql
1877
+ FROM sqlite_master
1878
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1879
+ UNION ALL
1880
+ SELECT sql
1881
+ FROM sqlite_temp_master
1882
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
1883
+ 
1884
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1885
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1886
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1887
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1888
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1889
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1890
+  (0.1ms) SELECT sqlite_version(*)
1891
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1892
+  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1893
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1894
+ Migrating to CreateCourses (20170831220702)
1895
+  (0.0ms) begin transaction
1896
+  (0.3ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1897
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
1898
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
1899
+  (0.8ms) commit transaction
1900
+ Migrating to CreateUsers (20170831221129)
1901
+  (0.0ms) begin transaction
1902
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1903
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
1904
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
1905
+  (0.8ms) commit transaction
1906
+ Migrating to CreateEnrollments (20170905192509)
1907
+  (0.0ms) begin transaction
1908
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1909
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
1910
+  (0.1ms)  SELECT sql
1911
+ FROM sqlite_master
1912
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1913
+ UNION ALL
1914
+ SELECT sql
1915
+ FROM sqlite_temp_master
1916
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1917
+ 
1918
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
1919
+  (0.0ms)  SELECT sql
1920
+ FROM sqlite_master
1921
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1922
+ UNION ALL
1923
+ SELECT sql
1924
+ FROM sqlite_temp_master
1925
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1926
+ 
1927
+  (0.0ms)  SELECT sql
1928
+ FROM sqlite_master
1929
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1930
+ UNION ALL
1931
+ SELECT sql
1932
+ FROM sqlite_temp_master
1933
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1934
+ 
1935
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
1936
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
1937
+  (1.0ms) commit transaction
1938
+ Migrating to CreateTerms (20170906193506)
1939
+  (0.0ms) begin transaction
1940
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1941
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
1942
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
1943
+  (0.6ms) commit transaction
1944
+ Migrating to CreateSections (20170906203438)
1945
+  (0.0ms) begin transaction
1946
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1947
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
1948
+  (0.1ms)  SELECT sql
1949
+ FROM sqlite_master
1950
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1951
+ UNION ALL
1952
+ SELECT sql
1953
+ FROM sqlite_temp_master
1954
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
1955
+ 
1956
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
1957
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
1958
+  (0.7ms) commit transaction
1959
+ Migrating to CreateJobsWrappers (20170913183823)
1960
+  (0.0ms) begin transaction
1961
+  (0.3ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1962
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
1963
+  (0.7ms) commit transaction
1964
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1965
+  (0.0ms) begin transaction
1966
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 18:59:27.018220"], ["updated_at", "2017-09-13 18:59:27.018220"]]
1967
+  (0.6ms) commit transaction
1968
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1969
+  (0.1ms)  SELECT sql
1970
+ FROM sqlite_master
1971
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1972
+ UNION ALL
1973
+ SELECT sql
1974
+ FROM sqlite_temp_master
1975
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
1976
+ 
1977
+  (0.1ms)  SELECT sql
1978
+ FROM sqlite_master
1979
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1980
+ UNION ALL
1981
+ SELECT sql
1982
+ FROM sqlite_temp_master
1983
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
1984
+ 
1985
+  (0.1ms)  SELECT sql
1986
+ FROM sqlite_master
1987
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1988
+ UNION ALL
1989
+ SELECT sql
1990
+ FROM sqlite_temp_master
1991
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
1992
+ 
1993
+  (0.1ms)  SELECT sql
1994
+ FROM sqlite_master
1995
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
1996
+ UNION ALL
1997
+ SELECT sql
1998
+ FROM sqlite_temp_master
1999
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2000
+ 
2001
+  (0.1ms)  SELECT sql
2002
+ FROM sqlite_master
2003
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2004
+ UNION ALL
2005
+ SELECT sql
2006
+ FROM sqlite_temp_master
2007
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2008
+ 
2009
+  (0.1ms)  SELECT sql
2010
+ FROM sqlite_master
2011
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2012
+ UNION ALL
2013
+ SELECT sql
2014
+ FROM sqlite_temp_master
2015
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2016
+ 
2017
+  (0.1ms)  SELECT sql
2018
+ FROM sqlite_master
2019
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2020
+ UNION ALL
2021
+ SELECT sql
2022
+ FROM sqlite_temp_master
2023
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2024
+ 
2025
+  (0.1ms)  SELECT sql
2026
+ FROM sqlite_master
2027
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2028
+ UNION ALL
2029
+ SELECT sql
2030
+ FROM sqlite_temp_master
2031
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2032
+ 
2033
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2034
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2035
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2036
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2037
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2038
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2039
+  (0.1ms) SELECT sqlite_version(*)
2040
+  (6.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2041
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2042
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2043
+ Migrating to CreateCourses (20170831220702)
2044
+  (0.0ms) begin transaction
2045
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2046
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2047
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2048
+  (1.6ms) commit transaction
2049
+ Migrating to CreateUsers (20170831221129)
2050
+  (0.1ms) begin transaction
2051
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2052
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2053
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2054
+  (1.2ms) commit transaction
2055
+ Migrating to CreateEnrollments (20170905192509)
2056
+  (0.1ms) begin transaction
2057
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2058
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2059
+  (0.1ms)  SELECT sql
2060
+ FROM sqlite_master
2061
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2062
+ UNION ALL
2063
+ SELECT sql
2064
+ FROM sqlite_temp_master
2065
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2066
+ 
2067
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2068
+  (0.1ms)  SELECT sql
2069
+ FROM sqlite_master
2070
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2071
+ UNION ALL
2072
+ SELECT sql
2073
+ FROM sqlite_temp_master
2074
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2075
+ 
2076
+  (0.1ms)  SELECT sql
2077
+ FROM sqlite_master
2078
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2079
+ UNION ALL
2080
+ SELECT sql
2081
+ FROM sqlite_temp_master
2082
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2083
+ 
2084
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2085
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2086
+  (0.9ms) commit transaction
2087
+ Migrating to CreateTerms (20170906193506)
2088
+  (0.0ms) begin transaction
2089
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2090
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2091
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2092
+  (0.8ms) commit transaction
2093
+ Migrating to CreateSections (20170906203438)
2094
+  (0.0ms) begin transaction
2095
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2096
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2097
+  (0.1ms)  SELECT sql
2098
+ FROM sqlite_master
2099
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2100
+ UNION ALL
2101
+ SELECT sql
2102
+ FROM sqlite_temp_master
2103
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2104
+ 
2105
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2106
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2107
+  (0.8ms) commit transaction
2108
+ Migrating to CreateJobsWrappers (20170913183823)
2109
+  (0.0ms) begin transaction
2110
+  (0.3ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2111
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
2112
+  (1.0ms) commit transaction
2113
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2114
+  (0.0ms) begin transaction
2115
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 19:20:43.856258"], ["updated_at", "2017-09-13 19:20:43.856258"]]
2116
+  (0.9ms) commit transaction
2117
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2118
+  (0.1ms)  SELECT sql
2119
+ FROM sqlite_master
2120
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2121
+ UNION ALL
2122
+ SELECT sql
2123
+ FROM sqlite_temp_master
2124
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2125
+ 
2126
+  (0.1ms)  SELECT sql
2127
+ FROM sqlite_master
2128
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2129
+ UNION ALL
2130
+ SELECT sql
2131
+ FROM sqlite_temp_master
2132
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2133
+ 
2134
+  (0.1ms)  SELECT sql
2135
+ FROM sqlite_master
2136
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2137
+ UNION ALL
2138
+ SELECT sql
2139
+ FROM sqlite_temp_master
2140
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2141
+ 
2142
+  (0.1ms)  SELECT sql
2143
+ FROM sqlite_master
2144
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2145
+ UNION ALL
2146
+ SELECT sql
2147
+ FROM sqlite_temp_master
2148
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2149
+ 
2150
+  (0.1ms)  SELECT sql
2151
+ FROM sqlite_master
2152
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2153
+ UNION ALL
2154
+ SELECT sql
2155
+ FROM sqlite_temp_master
2156
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2157
+ 
2158
+  (0.1ms)  SELECT sql
2159
+ FROM sqlite_master
2160
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2161
+ UNION ALL
2162
+ SELECT sql
2163
+ FROM sqlite_temp_master
2164
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2165
+ 
2166
+  (0.1ms)  SELECT sql
2167
+ FROM sqlite_master
2168
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2169
+ UNION ALL
2170
+ SELECT sql
2171
+ FROM sqlite_temp_master
2172
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2173
+ 
2174
+  (0.1ms)  SELECT sql
2175
+ FROM sqlite_master
2176
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2177
+ UNION ALL
2178
+ SELECT sql
2179
+ FROM sqlite_temp_master
2180
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2181
+ 
2182
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2183
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2184
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2185
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2186
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2187
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2188
+  (0.1ms) SELECT sqlite_version(*)
2189
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2190
+  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2191
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2192
+ Migrating to CreateCourses (20170831220702)
2193
+  (0.1ms) begin transaction
2194
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2195
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2196
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2197
+  (1.0ms) commit transaction
2198
+ Migrating to CreateUsers (20170831221129)
2199
+  (0.1ms) begin transaction
2200
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2201
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2202
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2203
+  (0.9ms) commit transaction
2204
+ Migrating to CreateEnrollments (20170905192509)
2205
+  (0.1ms) begin transaction
2206
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2207
+  (0.2ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2208
+  (0.1ms)  SELECT sql
2209
+ FROM sqlite_master
2210
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2211
+ UNION ALL
2212
+ SELECT sql
2213
+ FROM sqlite_temp_master
2214
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2215
+ 
2216
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2217
+  (0.1ms)  SELECT sql
2218
+ FROM sqlite_master
2219
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2220
+ UNION ALL
2221
+ SELECT sql
2222
+ FROM sqlite_temp_master
2223
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2224
+ 
2225
+  (0.1ms)  SELECT sql
2226
+ FROM sqlite_master
2227
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2228
+ UNION ALL
2229
+ SELECT sql
2230
+ FROM sqlite_temp_master
2231
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2232
+ 
2233
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2234
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2235
+  (0.8ms) commit transaction
2236
+ Migrating to CreateTerms (20170906193506)
2237
+  (0.1ms) begin transaction
2238
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2239
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2240
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2241
+  (0.8ms) commit transaction
2242
+ Migrating to CreateSections (20170906203438)
2243
+  (0.1ms) begin transaction
2244
+  (0.4ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2245
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2246
+  (0.1ms)  SELECT sql
2247
+ FROM sqlite_master
2248
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2249
+ UNION ALL
2250
+ SELECT sql
2251
+ FROM sqlite_temp_master
2252
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2253
+ 
2254
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2255
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2256
+  (0.8ms) commit transaction
2257
+ Migrating to CreateJobsWrappers (20170913183823)
2258
+  (0.1ms) begin transaction
2259
+  (0.4ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2260
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
2261
+  (0.7ms) commit transaction
2262
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2263
+  (0.1ms) begin transaction
2264
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 19:56:09.929767"], ["updated_at", "2017-09-13 19:56:09.929767"]]
2265
+  (0.7ms) commit transaction
2266
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2267
+  (0.1ms)  SELECT sql
2268
+ FROM sqlite_master
2269
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2270
+ UNION ALL
2271
+ SELECT sql
2272
+ FROM sqlite_temp_master
2273
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2274
+ 
2275
+  (0.1ms)  SELECT sql
2276
+ FROM sqlite_master
2277
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2278
+ UNION ALL
2279
+ SELECT sql
2280
+ FROM sqlite_temp_master
2281
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2282
+ 
2283
+  (0.2ms)  SELECT sql
2284
+ FROM sqlite_master
2285
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2286
+ UNION ALL
2287
+ SELECT sql
2288
+ FROM sqlite_temp_master
2289
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2290
+ 
2291
+  (0.1ms)  SELECT sql
2292
+ FROM sqlite_master
2293
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2294
+ UNION ALL
2295
+ SELECT sql
2296
+ FROM sqlite_temp_master
2297
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2298
+ 
2299
+  (0.1ms)  SELECT sql
2300
+ FROM sqlite_master
2301
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2302
+ UNION ALL
2303
+ SELECT sql
2304
+ FROM sqlite_temp_master
2305
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2306
+ 
2307
+  (0.1ms)  SELECT sql
2308
+ FROM sqlite_master
2309
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2310
+ UNION ALL
2311
+ SELECT sql
2312
+ FROM sqlite_temp_master
2313
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2314
+ 
2315
+  (0.1ms)  SELECT sql
2316
+ FROM sqlite_master
2317
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2318
+ UNION ALL
2319
+ SELECT sql
2320
+ FROM sqlite_temp_master
2321
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2322
+ 
2323
+  (0.1ms)  SELECT sql
2324
+ FROM sqlite_master
2325
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2326
+ UNION ALL
2327
+ SELECT sql
2328
+ FROM sqlite_temp_master
2329
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2330
+ 
2331
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2332
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2333
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2334
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2335
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2336
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2337
+  (0.1ms) SELECT sqlite_version(*)
2338
+  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2339
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2340
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2341
+ Migrating to CreateCourses (20170831220702)
2342
+  (0.1ms) begin transaction
2343
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2344
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2345
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2346
+  (1.0ms) commit transaction
2347
+ Migrating to CreateUsers (20170831221129)
2348
+  (0.0ms) begin transaction
2349
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2350
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2351
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2352
+  (1.0ms) commit transaction
2353
+ Migrating to CreateEnrollments (20170905192509)
2354
+  (0.1ms) begin transaction
2355
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2356
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2357
+  (0.1ms)  SELECT sql
2358
+ FROM sqlite_master
2359
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2360
+ UNION ALL
2361
+ SELECT sql
2362
+ FROM sqlite_temp_master
2363
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2364
+ 
2365
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2366
+  (0.1ms)  SELECT sql
2367
+ FROM sqlite_master
2368
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2369
+ UNION ALL
2370
+ SELECT sql
2371
+ FROM sqlite_temp_master
2372
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2373
+ 
2374
+  (0.1ms)  SELECT sql
2375
+ FROM sqlite_master
2376
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2377
+ UNION ALL
2378
+ SELECT sql
2379
+ FROM sqlite_temp_master
2380
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2381
+ 
2382
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2383
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2384
+  (1.0ms) commit transaction
2385
+ Migrating to CreateTerms (20170906193506)
2386
+  (0.1ms) begin transaction
2387
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2388
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2389
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2390
+  (0.9ms) commit transaction
2391
+ Migrating to CreateSections (20170906203438)
2392
+  (0.0ms) begin transaction
2393
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2394
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2395
+  (0.1ms)  SELECT sql
2396
+ FROM sqlite_master
2397
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2398
+ UNION ALL
2399
+ SELECT sql
2400
+ FROM sqlite_temp_master
2401
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2402
+ 
2403
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2404
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2405
+  (1.0ms) commit transaction
2406
+ Migrating to CreateJobsWrappers (20170913183823)
2407
+  (0.1ms) begin transaction
2408
+  (0.4ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2409
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
2410
+  (0.7ms) commit transaction
2411
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2412
+  (0.0ms) begin transaction
2413
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 19:59:10.949619"], ["updated_at", "2017-09-13 19:59:10.949619"]]
2414
+  (0.9ms) commit transaction
2415
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2416
+  (0.1ms)  SELECT sql
2417
+ FROM sqlite_master
2418
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2419
+ UNION ALL
2420
+ SELECT sql
2421
+ FROM sqlite_temp_master
2422
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2423
+ 
2424
+  (0.1ms)  SELECT sql
2425
+ FROM sqlite_master
2426
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2427
+ UNION ALL
2428
+ SELECT sql
2429
+ FROM sqlite_temp_master
2430
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2431
+ 
2432
+  (0.1ms)  SELECT sql
2433
+ FROM sqlite_master
2434
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2435
+ UNION ALL
2436
+ SELECT sql
2437
+ FROM sqlite_temp_master
2438
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2439
+ 
2440
+  (0.1ms)  SELECT sql
2441
+ FROM sqlite_master
2442
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2443
+ UNION ALL
2444
+ SELECT sql
2445
+ FROM sqlite_temp_master
2446
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2447
+ 
2448
+  (0.1ms)  SELECT sql
2449
+ FROM sqlite_master
2450
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2451
+ UNION ALL
2452
+ SELECT sql
2453
+ FROM sqlite_temp_master
2454
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2455
+ 
2456
+  (0.1ms)  SELECT sql
2457
+ FROM sqlite_master
2458
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2459
+ UNION ALL
2460
+ SELECT sql
2461
+ FROM sqlite_temp_master
2462
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2463
+ 
2464
+  (0.1ms)  SELECT sql
2465
+ FROM sqlite_master
2466
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2467
+ UNION ALL
2468
+ SELECT sql
2469
+ FROM sqlite_temp_master
2470
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2471
+ 
2472
+  (0.1ms)  SELECT sql
2473
+ FROM sqlite_master
2474
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2475
+ UNION ALL
2476
+ SELECT sql
2477
+ FROM sqlite_temp_master
2478
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2479
+ 
2480
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2481
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2482
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2483
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2484
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2485
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2486
+  (0.1ms) SELECT sqlite_version(*)
2487
+  (6.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2488
+  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2489
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2490
+ Migrating to CreateCourses (20170831220702)
2491
+  (0.1ms) begin transaction
2492
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2493
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2494
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2495
+  (1.3ms) commit transaction
2496
+ Migrating to CreateUsers (20170831221129)
2497
+  (0.1ms) begin transaction
2498
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2499
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2500
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2501
+  (1.0ms) commit transaction
2502
+ Migrating to CreateEnrollments (20170905192509)
2503
+  (0.1ms) begin transaction
2504
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2505
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2506
+  (0.1ms)  SELECT sql
2507
+ FROM sqlite_master
2508
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2509
+ UNION ALL
2510
+ SELECT sql
2511
+ FROM sqlite_temp_master
2512
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2513
+ 
2514
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2515
+  (0.1ms)  SELECT sql
2516
+ FROM sqlite_master
2517
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2518
+ UNION ALL
2519
+ SELECT sql
2520
+ FROM sqlite_temp_master
2521
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2522
+ 
2523
+  (0.1ms)  SELECT sql
2524
+ FROM sqlite_master
2525
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2526
+ UNION ALL
2527
+ SELECT sql
2528
+ FROM sqlite_temp_master
2529
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2530
+ 
2531
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2532
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2533
+  (1.4ms) commit transaction
2534
+ Migrating to CreateTerms (20170906193506)
2535
+  (0.1ms) begin transaction
2536
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2537
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2538
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2539
+  (1.1ms) commit transaction
2540
+ Migrating to CreateSections (20170906203438)
2541
+  (0.1ms) begin transaction
2542
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2543
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2544
+  (0.1ms)  SELECT sql
2545
+ FROM sqlite_master
2546
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2547
+ UNION ALL
2548
+ SELECT sql
2549
+ FROM sqlite_temp_master
2550
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2551
+ 
2552
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2553
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2554
+  (1.6ms) commit transaction
2555
+ Migrating to CreateJobsWrappers (20170913183823)
2556
+  (0.1ms) begin transaction
2557
+  (0.4ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2558
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
2559
+  (1.1ms) commit transaction
2560
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2561
+  (0.0ms) begin transaction
2562
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 20:00:11.360591"], ["updated_at", "2017-09-13 20:00:11.360591"]]
2563
+  (0.6ms) commit transaction
2564
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2565
+  (0.1ms)  SELECT sql
2566
+ FROM sqlite_master
2567
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2568
+ UNION ALL
2569
+ SELECT sql
2570
+ FROM sqlite_temp_master
2571
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2572
+ 
2573
+  (0.1ms)  SELECT sql
2574
+ FROM sqlite_master
2575
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2576
+ UNION ALL
2577
+ SELECT sql
2578
+ FROM sqlite_temp_master
2579
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2580
+ 
2581
+  (0.1ms)  SELECT sql
2582
+ FROM sqlite_master
2583
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2584
+ UNION ALL
2585
+ SELECT sql
2586
+ FROM sqlite_temp_master
2587
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2588
+ 
2589
+  (0.1ms)  SELECT sql
2590
+ FROM sqlite_master
2591
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2592
+ UNION ALL
2593
+ SELECT sql
2594
+ FROM sqlite_temp_master
2595
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2596
+ 
2597
+  (0.1ms)  SELECT sql
2598
+ FROM sqlite_master
2599
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2600
+ UNION ALL
2601
+ SELECT sql
2602
+ FROM sqlite_temp_master
2603
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2604
+ 
2605
+  (0.1ms)  SELECT sql
2606
+ FROM sqlite_master
2607
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2608
+ UNION ALL
2609
+ SELECT sql
2610
+ FROM sqlite_temp_master
2611
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2612
+ 
2613
+  (0.1ms)  SELECT sql
2614
+ FROM sqlite_master
2615
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2616
+ UNION ALL
2617
+ SELECT sql
2618
+ FROM sqlite_temp_master
2619
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2620
+ 
2621
+  (0.1ms)  SELECT sql
2622
+ FROM sqlite_master
2623
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2624
+ UNION ALL
2625
+ SELECT sql
2626
+ FROM sqlite_temp_master
2627
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2628
+ 
2629
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2630
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2631
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2632
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2633
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2634
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2635
+  (0.1ms) SELECT sqlite_version(*)
2636
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2637
+  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2638
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2639
+ Migrating to CreateCourses (20170831220702)
2640
+  (0.1ms) begin transaction
2641
+  (0.5ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2642
+  (0.2ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2643
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2644
+  (1.0ms) commit transaction
2645
+ Migrating to CreateUsers (20170831221129)
2646
+  (0.1ms) begin transaction
2647
+  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2648
+  (0.2ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2649
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2650
+  (0.9ms) commit transaction
2651
+ Migrating to CreateEnrollments (20170905192509)
2652
+  (0.1ms) begin transaction
2653
+  (0.4ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2654
+  (0.2ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2655
+  (0.1ms)  SELECT sql
2656
+ FROM sqlite_master
2657
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2658
+ UNION ALL
2659
+ SELECT sql
2660
+ FROM sqlite_temp_master
2661
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2662
+ 
2663
+  (0.2ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2664
+  (0.1ms)  SELECT sql
2665
+ FROM sqlite_master
2666
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2667
+ UNION ALL
2668
+ SELECT sql
2669
+ FROM sqlite_temp_master
2670
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2671
+ 
2672
+  (0.1ms)  SELECT sql
2673
+ FROM sqlite_master
2674
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2675
+ UNION ALL
2676
+ SELECT sql
2677
+ FROM sqlite_temp_master
2678
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2679
+ 
2680
+  (0.2ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2681
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2682
+  (0.9ms) commit transaction
2683
+ Migrating to CreateTerms (20170906193506)
2684
+  (0.1ms) begin transaction
2685
+  (0.5ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2686
+  (0.2ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2687
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2688
+  (1.0ms) commit transaction
2689
+ Migrating to CreateSections (20170906203438)
2690
+  (0.1ms) begin transaction
2691
+  (0.6ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2692
+  (0.2ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2693
+  (0.1ms)  SELECT sql
2694
+ FROM sqlite_master
2695
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2696
+ UNION ALL
2697
+ SELECT sql
2698
+ FROM sqlite_temp_master
2699
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2700
+ 
2701
+  (0.2ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2702
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2703
+  (0.9ms) commit transaction
2704
+ Migrating to CreateJobsWrappers (20170913183823)
2705
+  (0.1ms) begin transaction
2706
+  (0.5ms) CREATE TABLE "jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2707
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
2708
+  (0.7ms) commit transaction
2709
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2710
+  (0.1ms) begin transaction
2711
+ SQL (5.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 20:22:36.757684"], ["updated_at", "2017-09-13 20:22:36.757684"]]
2712
+  (0.7ms) commit transaction
2713
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2714
+  (0.1ms)  SELECT sql
2715
+ FROM sqlite_master
2716
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2717
+ UNION ALL
2718
+ SELECT sql
2719
+ FROM sqlite_temp_master
2720
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2721
+ 
2722
+  (0.1ms)  SELECT sql
2723
+ FROM sqlite_master
2724
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2725
+ UNION ALL
2726
+ SELECT sql
2727
+ FROM sqlite_temp_master
2728
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2729
+ 
2730
+  (0.1ms)  SELECT sql
2731
+ FROM sqlite_master
2732
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2733
+ UNION ALL
2734
+ SELECT sql
2735
+ FROM sqlite_temp_master
2736
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2737
+ 
2738
+  (0.1ms)  SELECT sql
2739
+ FROM sqlite_master
2740
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2741
+ UNION ALL
2742
+ SELECT sql
2743
+ FROM sqlite_temp_master
2744
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2745
+ 
2746
+  (0.1ms)  SELECT sql
2747
+ FROM sqlite_master
2748
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2749
+ UNION ALL
2750
+ SELECT sql
2751
+ FROM sqlite_temp_master
2752
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2753
+ 
2754
+  (0.1ms)  SELECT sql
2755
+ FROM sqlite_master
2756
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2757
+ UNION ALL
2758
+ SELECT sql
2759
+ FROM sqlite_temp_master
2760
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2761
+ 
2762
+  (0.1ms)  SELECT sql
2763
+ FROM sqlite_master
2764
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2765
+ UNION ALL
2766
+ SELECT sql
2767
+ FROM sqlite_temp_master
2768
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2769
+ 
2770
+  (0.2ms)  SELECT sql
2771
+ FROM sqlite_master
2772
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2773
+ UNION ALL
2774
+ SELECT sql
2775
+ FROM sqlite_temp_master
2776
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2777
+ 
2778
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2779
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2780
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2781
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2782
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2783
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2784
+  (0.1ms) SELECT sqlite_version(*)
2785
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2786
+  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2787
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2788
+ Migrating to CreateCourses (20170831220702)
2789
+  (0.1ms) begin transaction
2790
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2791
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2792
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2793
+  (1.1ms) commit transaction
2794
+ Migrating to CreateUsers (20170831221129)
2795
+  (0.1ms) begin transaction
2796
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2797
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2798
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2799
+  (1.0ms) commit transaction
2800
+ Migrating to CreateEnrollments (20170905192509)
2801
+  (0.0ms) begin transaction
2802
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2803
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2804
+  (0.1ms)  SELECT sql
2805
+ FROM sqlite_master
2806
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2807
+ UNION ALL
2808
+ SELECT sql
2809
+ FROM sqlite_temp_master
2810
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2811
+ 
2812
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2813
+  (0.1ms)  SELECT sql
2814
+ FROM sqlite_master
2815
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2816
+ UNION ALL
2817
+ SELECT sql
2818
+ FROM sqlite_temp_master
2819
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2820
+ 
2821
+  (0.1ms)  SELECT sql
2822
+ FROM sqlite_master
2823
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2824
+ UNION ALL
2825
+ SELECT sql
2826
+ FROM sqlite_temp_master
2827
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2828
+ 
2829
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2830
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2831
+  (1.0ms) commit transaction
2832
+ Migrating to CreateTerms (20170906193506)
2833
+  (0.0ms) begin transaction
2834
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2835
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2836
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2837
+  (0.8ms) commit transaction
2838
+ Migrating to CreateSections (20170906203438)
2839
+  (0.0ms) begin transaction
2840
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2841
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2842
+  (0.1ms)  SELECT sql
2843
+ FROM sqlite_master
2844
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2845
+ UNION ALL
2846
+ SELECT sql
2847
+ FROM sqlite_temp_master
2848
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2849
+ 
2850
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2851
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2852
+  (0.9ms) commit transaction
2853
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2854
+  (0.0ms) begin transaction
2855
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 21:02:28.553380"], ["updated_at", "2017-09-13 21:02:28.553380"]]
2856
+  (0.9ms) commit transaction
2857
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2858
+  (0.1ms)  SELECT sql
2859
+ FROM sqlite_master
2860
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2861
+ UNION ALL
2862
+ SELECT sql
2863
+ FROM sqlite_temp_master
2864
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
2865
+ 
2866
+  (0.1ms)  SELECT sql
2867
+ FROM sqlite_master
2868
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2869
+ UNION ALL
2870
+ SELECT sql
2871
+ FROM sqlite_temp_master
2872
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
2873
+ 
2874
+  (0.1ms)  SELECT sql
2875
+ FROM sqlite_master
2876
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2877
+ UNION ALL
2878
+ SELECT sql
2879
+ FROM sqlite_temp_master
2880
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2881
+ 
2882
+  (0.1ms)  SELECT sql
2883
+ FROM sqlite_master
2884
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2885
+ UNION ALL
2886
+ SELECT sql
2887
+ FROM sqlite_temp_master
2888
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2889
+ 
2890
+  (0.1ms)  SELECT sql
2891
+ FROM sqlite_master
2892
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2893
+ UNION ALL
2894
+ SELECT sql
2895
+ FROM sqlite_temp_master
2896
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
2897
+ 
2898
+  (0.1ms)  SELECT sql
2899
+ FROM sqlite_master
2900
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2901
+ UNION ALL
2902
+ SELECT sql
2903
+ FROM sqlite_temp_master
2904
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2905
+ 
2906
+  (0.1ms)  SELECT sql
2907
+ FROM sqlite_master
2908
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2909
+ UNION ALL
2910
+ SELECT sql
2911
+ FROM sqlite_temp_master
2912
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
2913
+ 
2914
+  (0.1ms)  SELECT sql
2915
+ FROM sqlite_master
2916
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2917
+ UNION ALL
2918
+ SELECT sql
2919
+ FROM sqlite_temp_master
2920
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
2921
+ 
2922
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2923
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2924
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2925
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2926
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2927
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
2928
+  (0.1ms) SELECT sqlite_version(*)
2929
+  (7.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2930
+  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2931
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2932
+ Migrating to CreateCourses (20170831220702)
2933
+  (0.0ms) begin transaction
2934
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2935
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
2936
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
2937
+  (1.0ms) commit transaction
2938
+ Migrating to CreateUsers (20170831221129)
2939
+  (0.1ms) begin transaction
2940
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2941
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
2942
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
2943
+  (1.2ms) commit transaction
2944
+ Migrating to CreateEnrollments (20170905192509)
2945
+  (0.1ms) begin transaction
2946
+  (0.4ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2947
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
2948
+  (0.1ms)  SELECT sql
2949
+ FROM sqlite_master
2950
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2951
+ UNION ALL
2952
+ SELECT sql
2953
+ FROM sqlite_temp_master
2954
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2955
+ 
2956
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
2957
+  (0.1ms)  SELECT sql
2958
+ FROM sqlite_master
2959
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2960
+ UNION ALL
2961
+ SELECT sql
2962
+ FROM sqlite_temp_master
2963
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
2964
+ 
2965
+  (0.1ms)  SELECT sql
2966
+ FROM sqlite_master
2967
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2968
+ UNION ALL
2969
+ SELECT sql
2970
+ FROM sqlite_temp_master
2971
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
2972
+ 
2973
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
2974
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
2975
+  (1.1ms) commit transaction
2976
+ Migrating to CreateTerms (20170906193506)
2977
+  (0.1ms) begin transaction
2978
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2979
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
2980
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
2981
+  (1.0ms) commit transaction
2982
+ Migrating to CreateSections (20170906203438)
2983
+  (0.1ms) begin transaction
2984
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2985
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
2986
+  (0.1ms)  SELECT sql
2987
+ FROM sqlite_master
2988
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2989
+ UNION ALL
2990
+ SELECT sql
2991
+ FROM sqlite_temp_master
2992
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
2993
+ 
2994
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
2995
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
2996
+  (0.8ms) commit transaction
2997
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
2998
+  (0.0ms) begin transaction
2999
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 21:03:32.061881"], ["updated_at", "2017-09-13 21:03:32.061881"]]
3000
+  (0.9ms) commit transaction
3001
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3002
+  (0.1ms)  SELECT sql
3003
+ FROM sqlite_master
3004
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3005
+ UNION ALL
3006
+ SELECT sql
3007
+ FROM sqlite_temp_master
3008
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3009
+ 
3010
+  (0.1ms)  SELECT sql
3011
+ FROM sqlite_master
3012
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3013
+ UNION ALL
3014
+ SELECT sql
3015
+ FROM sqlite_temp_master
3016
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3017
+ 
3018
+  (0.1ms)  SELECT sql
3019
+ FROM sqlite_master
3020
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3021
+ UNION ALL
3022
+ SELECT sql
3023
+ FROM sqlite_temp_master
3024
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3025
+ 
3026
+  (0.1ms)  SELECT sql
3027
+ FROM sqlite_master
3028
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3029
+ UNION ALL
3030
+ SELECT sql
3031
+ FROM sqlite_temp_master
3032
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3033
+ 
3034
+  (0.1ms)  SELECT sql
3035
+ FROM sqlite_master
3036
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3037
+ UNION ALL
3038
+ SELECT sql
3039
+ FROM sqlite_temp_master
3040
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3041
+ 
3042
+  (0.1ms)  SELECT sql
3043
+ FROM sqlite_master
3044
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3045
+ UNION ALL
3046
+ SELECT sql
3047
+ FROM sqlite_temp_master
3048
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3049
+ 
3050
+  (0.1ms)  SELECT sql
3051
+ FROM sqlite_master
3052
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3053
+ UNION ALL
3054
+ SELECT sql
3055
+ FROM sqlite_temp_master
3056
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3057
+ 
3058
+  (0.1ms)  SELECT sql
3059
+ FROM sqlite_master
3060
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3061
+ UNION ALL
3062
+ SELECT sql
3063
+ FROM sqlite_temp_master
3064
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3065
+ 
3066
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3067
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3068
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3069
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3070
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3071
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3072
+  (0.1ms) SELECT sqlite_version(*)
3073
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3074
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3075
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3076
+ Migrating to CreateCourses (20170831220702)
3077
+  (0.1ms) begin transaction
3078
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3079
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
3080
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
3081
+  (1.4ms) commit transaction
3082
+ Migrating to CreateUsers (20170831221129)
3083
+  (0.1ms) begin transaction
3084
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3085
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
3086
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
3087
+  (0.8ms) commit transaction
3088
+ Migrating to CreateEnrollments (20170905192509)
3089
+  (0.0ms) begin transaction
3090
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3091
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
3092
+  (0.1ms)  SELECT sql
3093
+ FROM sqlite_master
3094
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3095
+ UNION ALL
3096
+ SELECT sql
3097
+ FROM sqlite_temp_master
3098
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3099
+ 
3100
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
3101
+  (0.1ms)  SELECT sql
3102
+ FROM sqlite_master
3103
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3104
+ UNION ALL
3105
+ SELECT sql
3106
+ FROM sqlite_temp_master
3107
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3108
+ 
3109
+  (0.1ms)  SELECT sql
3110
+ FROM sqlite_master
3111
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3112
+ UNION ALL
3113
+ SELECT sql
3114
+ FROM sqlite_temp_master
3115
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3116
+ 
3117
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
3118
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
3119
+  (1.4ms) commit transaction
3120
+ Migrating to CreateTerms (20170906193506)
3121
+  (0.1ms) begin transaction
3122
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3123
+  (0.2ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
3124
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
3125
+  (1.5ms) commit transaction
3126
+ Migrating to CreateSections (20170906203438)
3127
+  (0.1ms) begin transaction
3128
+  (0.4ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3129
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
3130
+  (0.1ms)  SELECT sql
3131
+ FROM sqlite_master
3132
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3133
+ UNION ALL
3134
+ SELECT sql
3135
+ FROM sqlite_temp_master
3136
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3137
+ 
3138
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
3139
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
3140
+  (1.0ms) commit transaction
3141
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3142
+  (0.0ms) begin transaction
3143
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 21:05:48.420882"], ["updated_at", "2017-09-13 21:05:48.420882"]]
3144
+  (0.8ms) commit transaction
3145
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3146
+  (0.1ms)  SELECT sql
3147
+ FROM sqlite_master
3148
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3149
+ UNION ALL
3150
+ SELECT sql
3151
+ FROM sqlite_temp_master
3152
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3153
+ 
3154
+  (0.1ms)  SELECT sql
3155
+ FROM sqlite_master
3156
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3157
+ UNION ALL
3158
+ SELECT sql
3159
+ FROM sqlite_temp_master
3160
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3161
+ 
3162
+  (0.1ms)  SELECT sql
3163
+ FROM sqlite_master
3164
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3165
+ UNION ALL
3166
+ SELECT sql
3167
+ FROM sqlite_temp_master
3168
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3169
+ 
3170
+  (0.1ms)  SELECT sql
3171
+ FROM sqlite_master
3172
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3173
+ UNION ALL
3174
+ SELECT sql
3175
+ FROM sqlite_temp_master
3176
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3177
+ 
3178
+  (0.1ms)  SELECT sql
3179
+ FROM sqlite_master
3180
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3181
+ UNION ALL
3182
+ SELECT sql
3183
+ FROM sqlite_temp_master
3184
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3185
+ 
3186
+  (0.1ms)  SELECT sql
3187
+ FROM sqlite_master
3188
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3189
+ UNION ALL
3190
+ SELECT sql
3191
+ FROM sqlite_temp_master
3192
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3193
+ 
3194
+  (0.1ms)  SELECT sql
3195
+ FROM sqlite_master
3196
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3197
+ UNION ALL
3198
+ SELECT sql
3199
+ FROM sqlite_temp_master
3200
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3201
+ 
3202
+  (0.1ms)  SELECT sql
3203
+ FROM sqlite_master
3204
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3205
+ UNION ALL
3206
+ SELECT sql
3207
+ FROM sqlite_temp_master
3208
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3209
+ 
3210
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3211
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3212
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3213
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3214
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3215
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3216
+  (0.5ms) SELECT sqlite_version(*)
3217
+  (6.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3218
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3219
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3220
+ Migrating to CreateCourses (20170831220702)
3221
+  (0.1ms) begin transaction
3222
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3223
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
3224
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831220702"]]
3225
+  (1.0ms) commit transaction
3226
+ Migrating to CreateUsers (20170831221129)
3227
+  (0.7ms) begin transaction
3228
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3229
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
3230
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
3231
+  (1.4ms) commit transaction
3232
+ Migrating to CreateEnrollments (20170905192509)
3233
+  (0.0ms) begin transaction
3234
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3235
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
3236
+  (0.1ms)  SELECT sql
3237
+ FROM sqlite_master
3238
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3239
+ UNION ALL
3240
+ SELECT sql
3241
+ FROM sqlite_temp_master
3242
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3243
+ 
3244
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
3245
+  (0.1ms)  SELECT sql
3246
+ FROM sqlite_master
3247
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3248
+ UNION ALL
3249
+ SELECT sql
3250
+ FROM sqlite_temp_master
3251
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3252
+ 
3253
+  (0.1ms)  SELECT sql
3254
+ FROM sqlite_master
3255
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3256
+ UNION ALL
3257
+ SELECT sql
3258
+ FROM sqlite_temp_master
3259
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3260
+ 
3261
+  (0.6ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
3262
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
3263
+  (1.2ms) commit transaction
3264
+ Migrating to CreateTerms (20170906193506)
3265
+  (0.0ms) begin transaction
3266
+  (0.4ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3267
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
3268
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
3269
+  (0.9ms) commit transaction
3270
+ Migrating to CreateSections (20170906203438)
3271
+  (0.1ms) begin transaction
3272
+  (0.3ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3273
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
3274
+  (0.1ms)  SELECT sql
3275
+ FROM sqlite_master
3276
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3277
+ UNION ALL
3278
+ SELECT sql
3279
+ FROM sqlite_temp_master
3280
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3281
+ 
3282
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
3283
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
3284
+  (0.8ms) commit transaction
3285
+ Migrating to CreateCanvasSyncJobsWrappers (20170913183823)
3286
+  (0.1ms) begin transaction
3287
+  (0.4ms) CREATE TABLE "canvas_sync_jobs_wrappers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "ended_at" datetime, "full_job_chain" text, "current_job_chain" text, "status" varchar, "exception" varchar, "backtrace" text, "metadata" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3288
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170913183823"]]
3289
+  (0.9ms) commit transaction
3290
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3291
+  (0.1ms) begin transaction
3292
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-13 21:09:31.266381"], ["updated_at", "2017-09-13 21:09:31.266381"]]
3293
+  (1.1ms) commit transaction
3294
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3295
+  (0.2ms)  SELECT sql
3296
+ FROM sqlite_master
3297
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3298
+ UNION ALL
3299
+ SELECT sql
3300
+ FROM sqlite_temp_master
3301
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3302
+ 
3303
+  (0.1ms)  SELECT sql
3304
+ FROM sqlite_master
3305
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3306
+ UNION ALL
3307
+ SELECT sql
3308
+ FROM sqlite_temp_master
3309
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3310
+ 
3311
+  (0.1ms)  SELECT sql
3312
+ FROM sqlite_master
3313
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3314
+ UNION ALL
3315
+ SELECT sql
3316
+ FROM sqlite_temp_master
3317
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3318
+ 
3319
+  (0.2ms)  SELECT sql
3320
+ FROM sqlite_master
3321
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3322
+ UNION ALL
3323
+ SELECT sql
3324
+ FROM sqlite_temp_master
3325
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3326
+ 
3327
+  (0.1ms)  SELECT sql
3328
+ FROM sqlite_master
3329
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3330
+ UNION ALL
3331
+ SELECT sql
3332
+ FROM sqlite_temp_master
3333
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3334
+ 
3335
+  (0.1ms)  SELECT sql
3336
+ FROM sqlite_master
3337
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3338
+ UNION ALL
3339
+ SELECT sql
3340
+ FROM sqlite_temp_master
3341
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3342
+ 
3343
+  (0.1ms)  SELECT sql
3344
+ FROM sqlite_master
3345
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3346
+ UNION ALL
3347
+ SELECT sql
3348
+ FROM sqlite_temp_master
3349
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3350
+ 
3351
+  (0.1ms)  SELECT sql
3352
+ FROM sqlite_master
3353
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3354
+ UNION ALL
3355
+ SELECT sql
3356
+ FROM sqlite_temp_master
3357
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3358
+ 
3359
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3360
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3361
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3362
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3363
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3364
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
3365
+  (5.7ms) SELECT sqlite_version(*)
3366
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3367
+  (0.7ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3368
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3369
+ Migrating to CreateUsers (20170831221129)
3370
+  (0.1ms) begin transaction
3371
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3372
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
3373
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170831221129"]]
3374
+  (0.7ms) commit transaction
3375
+ Migrating to CreateEnrollments (20170905192509)
3376
+  (0.0ms) begin transaction
3377
+  (0.3ms) CREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3378
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
3379
+  (0.1ms)  SELECT sql
3380
+ FROM sqlite_master
3381
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3382
+ UNION ALL
3383
+ SELECT sql
3384
+ FROM sqlite_temp_master
3385
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3386
+ 
3387
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
3388
+  (0.1ms)  SELECT sql
3389
+ FROM sqlite_master
3390
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3391
+ UNION ALL
3392
+ SELECT sql
3393
+ FROM sqlite_temp_master
3394
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3395
+ 
3396
+  (0.1ms)  SELECT sql
3397
+ FROM sqlite_master
3398
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3399
+ UNION ALL
3400
+ SELECT sql
3401
+ FROM sqlite_temp_master
3402
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3403
+ 
3404
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
3405
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
3406
+  (0.9ms) commit transaction
3407
+ Migrating to CreateTerms (20170906193506)
3408
+  (0.0ms) begin transaction
3409
+  (0.3ms) CREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3410
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
3411
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
3412
+  (1.3ms) commit transaction
3413
+ Migrating to CreateSections (20170906203438)
3414
+  (0.1ms) begin transaction
3415
+  (0.4ms) CREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3416
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
3417
+  (0.1ms)  SELECT sql
3418
+ FROM sqlite_master
3419
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3420
+ UNION ALL
3421
+ SELECT sql
3422
+ FROM sqlite_temp_master
3423
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3424
+ 
3425
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
3426
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
3427
+  (1.2ms) commit transaction
3428
+ Migrating to CreateCourses (20170914181345)
3429
+  (0.1ms) begin transaction
3430
+  (0.4ms) CREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "status" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3431
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
3432
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170914181345"]]
3433
+  (0.9ms) commit transaction
3434
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
3435
+  (0.0ms) begin transaction
3436
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-09-14 18:13:50.287279"], ["updated_at", "2017-09-14 18:13:50.287279"]]
3437
+  (0.7ms) commit transaction
3438
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
3439
+  (0.1ms)  SELECT sql
3440
+ FROM sqlite_master
3441
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3442
+ UNION ALL
3443
+ SELECT sql
3444
+ FROM sqlite_temp_master
3445
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
3446
+ 
3447
+  (0.2ms)  SELECT sql
3448
+ FROM sqlite_master
3449
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3450
+ UNION ALL
3451
+ SELECT sql
3452
+ FROM sqlite_temp_master
3453
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
3454
+ 
3455
+  (0.1ms)  SELECT sql
3456
+ FROM sqlite_master
3457
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3458
+ UNION ALL
3459
+ SELECT sql
3460
+ FROM sqlite_temp_master
3461
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
3462
+ 
3463
+  (0.1ms)  SELECT sql
3464
+ FROM sqlite_master
3465
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3466
+ UNION ALL
3467
+ SELECT sql
3468
+ FROM sqlite_temp_master
3469
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
3470
+ 
3471
+  (0.1ms)  SELECT sql
3472
+ FROM sqlite_master
3473
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3474
+ UNION ALL
3475
+ SELECT sql
3476
+ FROM sqlite_temp_master
3477
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
3478
+ 
3479
+  (0.1ms)  SELECT sql
3480
+ FROM sqlite_master
3481
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3482
+ UNION ALL
3483
+ SELECT sql
3484
+ FROM sqlite_temp_master
3485
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
3486
+ 
3487
+  (0.1ms)  SELECT sql
3488
+ FROM sqlite_master
3489
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3490
+ UNION ALL
3491
+ SELECT sql
3492
+ FROM sqlite_temp_master
3493
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
3494
+ 
3495
+  (0.1ms)  SELECT sql
3496
+ FROM sqlite_master
3497
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
3498
+ UNION ALL
3499
+ SELECT sql
3500
+ FROM sqlite_temp_master
3501
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
828
3502