canvas_sync 0.2.1 → 0.2.2

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: 85b4c05691a7952c43cb41502a994849d8d8e4df
4
- data.tar.gz: 0bb2ad31d57f5dab79f9ee45a089b09382bf696f
3
+ metadata.gz: a0780224f72afc0ad3ea1f5cafa3646b46bd4fb4
4
+ data.tar.gz: 2ca1592e6775e66eba9dc6f6c827db826f800014
5
5
  SHA512:
6
- metadata.gz: 1c6dbc184a4aa04349c6b45d2ef9976396754fb81aa35c74f3e59f1b243d0aff54be6508f7e3a0709801ffb911400abe35ba63a9d79f82d7ac4b669c523716b7
7
- data.tar.gz: 0b5d818adb723daa929e4562d71654f5267bcb275a45a562a73fd0b4fadbf8f4e181e71a7d0dd28540ca220161dc44732ba8184fa9ce2eee0e4a7dd035b6d115
6
+ metadata.gz: 9c0467c8a2e272692cf978f70abb24372caef8a5c7b1684a0906ff0c5e2d63a98e3232e587d3663dc828cb2786a72d79ed04605243041e4a95adf782a8214cc1
7
+ data.tar.gz: 4bd4a204f5186bb38614846297b5ae74eb59ba0b6c520f303f4a550a69d160365c839cbf92e7e9a31bba4b0b1334afbcd50b53973d5d6632f99be2d45dbe574e
@@ -8,6 +8,8 @@ module CanvasSync
8
8
  config.paths["db/migrate"].expanded.each do |expanded_path|
9
9
  app.config.paths["db/migrate"] << expanded_path
10
10
  end
11
+ # Apartment will modify this, but it doesn't fully support engine migrations, so we'll reset it here
12
+ ActiveRecord::Migrator.migrations_paths = Rails.application.paths['db/migrate'].to_a
11
13
  end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -0,0 +1,431 @@
1
+  (0.1ms) SELECT sqlite_version(*)
2
+  (7.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3
+  (1.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
4
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
5
+ Migrating to CreateEnrollments (20170905192509)
6
+  (0.1ms) begin transaction
7
+  (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)
8
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
9
+  (0.1ms)  SELECT sql
10
+ FROM sqlite_master
11
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
12
+ UNION ALL
13
+ SELECT sql
14
+ FROM sqlite_temp_master
15
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
16
+ 
17
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
18
+  (0.1ms)  SELECT sql
19
+ FROM sqlite_master
20
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
21
+ UNION ALL
22
+ SELECT sql
23
+ FROM sqlite_temp_master
24
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
25
+ 
26
+  (0.0ms)  SELECT sql
27
+ FROM sqlite_master
28
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
29
+ UNION ALL
30
+ SELECT sql
31
+ FROM sqlite_temp_master
32
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
33
+ 
34
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
35
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
36
+  (0.9ms) commit transaction
37
+ Migrating to CreateTerms (20170906193506)
38
+  (0.1ms) begin transaction
39
+  (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)
40
+  (0.2ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
41
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
42
+  (1.6ms) commit transaction
43
+ Migrating to CreateSections (20170906203438)
44
+  (0.1ms) begin transaction
45
+  (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)
46
+  (0.2ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
47
+  (0.1ms)  SELECT sql
48
+ FROM sqlite_master
49
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
50
+ UNION ALL
51
+ SELECT sql
52
+ FROM sqlite_temp_master
53
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
54
+ 
55
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
56
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
57
+  (1.2ms) commit transaction
58
+ Migrating to CreateCourses (20170914181345)
59
+  (0.0ms) begin transaction
60
+  (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, "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)
61
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
62
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170914181345"]]
63
+  (1.4ms) commit transaction
64
+ Migrating to CreateUsers (20170918221413)
65
+  (0.1ms) begin transaction
66
+  (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, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
67
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
68
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170918221413"]]
69
+  (1.0ms) commit transaction
70
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
71
+  (0.0ms) begin transaction
72
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:22:48.791273"], ["updated_at", "2017-11-02 21:22:48.791273"]]
73
+  (0.6ms) commit transaction
74
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
75
+  (0.1ms)  SELECT sql
76
+ FROM sqlite_master
77
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
78
+ UNION ALL
79
+ SELECT sql
80
+ FROM sqlite_temp_master
81
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
82
+ 
83
+  (0.1ms)  SELECT sql
84
+ FROM sqlite_master
85
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
86
+ UNION ALL
87
+ SELECT sql
88
+ FROM sqlite_temp_master
89
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
90
+ 
91
+  (0.1ms)  SELECT sql
92
+ FROM sqlite_master
93
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
94
+ UNION ALL
95
+ SELECT sql
96
+ FROM sqlite_temp_master
97
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
98
+ 
99
+  (0.1ms)  SELECT sql
100
+ FROM sqlite_master
101
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
102
+ UNION ALL
103
+ SELECT sql
104
+ FROM sqlite_temp_master
105
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
106
+ 
107
+  (0.1ms)  SELECT sql
108
+ FROM sqlite_master
109
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
110
+ UNION ALL
111
+ SELECT sql
112
+ FROM sqlite_temp_master
113
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
114
+ 
115
+  (0.1ms)  SELECT sql
116
+ FROM sqlite_master
117
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
118
+ UNION ALL
119
+ SELECT sql
120
+ FROM sqlite_temp_master
121
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
122
+ 
123
+  (0.1ms)  SELECT sql
124
+ FROM sqlite_master
125
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
126
+ UNION ALL
127
+ SELECT sql
128
+ FROM sqlite_temp_master
129
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
130
+ 
131
+  (0.1ms)  SELECT sql
132
+ FROM sqlite_master
133
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
134
+ UNION ALL
135
+ SELECT sql
136
+ FROM sqlite_temp_master
137
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
138
+ 
139
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
140
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
141
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
142
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
143
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
144
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
145
+  (0.1ms) SELECT sqlite_version(*)
146
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
147
+  (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)
148
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
149
+ Migrating to CreateEnrollments (20170905192509)
150
+  (0.1ms) begin transaction
151
+  (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)
152
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
153
+  (0.1ms)  SELECT sql
154
+ FROM sqlite_master
155
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
156
+ UNION ALL
157
+ SELECT sql
158
+ FROM sqlite_temp_master
159
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
160
+ 
161
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
162
+  (0.1ms)  SELECT sql
163
+ FROM sqlite_master
164
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
165
+ UNION ALL
166
+ SELECT sql
167
+ FROM sqlite_temp_master
168
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
169
+ 
170
+  (0.1ms)  SELECT sql
171
+ FROM sqlite_master
172
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
173
+ UNION ALL
174
+ SELECT sql
175
+ FROM sqlite_temp_master
176
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
177
+ 
178
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
179
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
180
+  (0.7ms) commit transaction
181
+ Migrating to CreateTerms (20170906193506)
182
+  (0.0ms) begin transaction
183
+  (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)
184
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
185
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
186
+  (0.5ms) commit transaction
187
+ Migrating to CreateSections (20170906203438)
188
+  (0.0ms) begin transaction
189
+  (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)
190
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
191
+  (0.1ms)  SELECT sql
192
+ FROM sqlite_master
193
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
194
+ UNION ALL
195
+ SELECT sql
196
+ FROM sqlite_temp_master
197
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
198
+ 
199
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
200
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
201
+  (1.3ms) commit transaction
202
+ Migrating to CreateCourses (20170914181345)
203
+  (0.1ms) begin transaction
204
+  (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)
205
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
206
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170914181345"]]
207
+  (1.0ms) commit transaction
208
+ Migrating to CreateUsers (20170918221413)
209
+  (0.1ms) begin transaction
210
+  (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, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
211
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
212
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170918221413"]]
213
+  (0.7ms) commit transaction
214
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
215
+  (0.0ms) begin transaction
216
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:23:44.534031"], ["updated_at", "2017-11-02 21:23:44.534031"]]
217
+  (0.6ms) commit transaction
218
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
219
+  (0.1ms)  SELECT sql
220
+ FROM sqlite_master
221
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
222
+ UNION ALL
223
+ SELECT sql
224
+ FROM sqlite_temp_master
225
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
226
+ 
227
+  (0.1ms)  SELECT sql
228
+ FROM sqlite_master
229
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
230
+ UNION ALL
231
+ SELECT sql
232
+ FROM sqlite_temp_master
233
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
234
+ 
235
+  (0.1ms)  SELECT sql
236
+ FROM sqlite_master
237
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
238
+ UNION ALL
239
+ SELECT sql
240
+ FROM sqlite_temp_master
241
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
242
+ 
243
+  (0.1ms)  SELECT sql
244
+ FROM sqlite_master
245
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
246
+ UNION ALL
247
+ SELECT sql
248
+ FROM sqlite_temp_master
249
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
250
+ 
251
+  (0.1ms)  SELECT sql
252
+ FROM sqlite_master
253
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
254
+ UNION ALL
255
+ SELECT sql
256
+ FROM sqlite_temp_master
257
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
258
+ 
259
+  (0.1ms)  SELECT sql
260
+ FROM sqlite_master
261
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
262
+ UNION ALL
263
+ SELECT sql
264
+ FROM sqlite_temp_master
265
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
266
+ 
267
+  (0.1ms)  SELECT sql
268
+ FROM sqlite_master
269
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
270
+ UNION ALL
271
+ SELECT sql
272
+ FROM sqlite_temp_master
273
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
274
+ 
275
+  (0.1ms)  SELECT sql
276
+ FROM sqlite_master
277
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
278
+ UNION ALL
279
+ SELECT sql
280
+ FROM sqlite_temp_master
281
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
282
+ 
283
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
284
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
285
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
286
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
287
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
288
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
289
+  (0.1ms) SELECT sqlite_version(*)
290
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
291
+  (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)
292
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
293
+ Migrating to CreateEnrollments (20170905192509)
294
+  (0.0ms) begin transaction
295
+  (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)
296
+  (0.1ms) CREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")
297
+  (0.1ms)  SELECT sql
298
+ FROM sqlite_master
299
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
300
+ UNION ALL
301
+ SELECT sql
302
+ FROM sqlite_temp_master
303
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
304
+ 
305
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")
306
+  (0.1ms)  SELECT sql
307
+ FROM sqlite_master
308
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
309
+ UNION ALL
310
+ SELECT sql
311
+ FROM sqlite_temp_master
312
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
313
+ 
314
+  (0.1ms)  SELECT sql
315
+ FROM sqlite_master
316
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
317
+ UNION ALL
318
+ SELECT sql
319
+ FROM sqlite_temp_master
320
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
321
+ 
322
+  (0.1ms) CREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")
323
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170905192509"]]
324
+  (1.3ms) commit transaction
325
+ Migrating to CreateTerms (20170906193506)
326
+  (0.0ms) begin transaction
327
+  (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)
328
+  (0.1ms) CREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")
329
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906193506"]]
330
+  (1.5ms) commit transaction
331
+ Migrating to CreateSections (20170906203438)
332
+  (0.1ms) begin transaction
333
+  (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)
334
+  (0.1ms) CREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")
335
+  (0.1ms)  SELECT sql
336
+ FROM sqlite_master
337
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
338
+ UNION ALL
339
+ SELECT sql
340
+ FROM sqlite_temp_master
341
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
342
+ 
343
+  (0.1ms) CREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")
344
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170906203438"]]
345
+  (1.3ms) commit transaction
346
+ Migrating to CreateCourses (20170914181345)
347
+  (0.1ms) begin transaction
348
+  (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)
349
+  (0.1ms) CREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")
350
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170914181345"]]
351
+  (1.1ms) commit transaction
352
+ Migrating to CreateCanvasSyncJobLog (20170915210836)
353
+  (0.1ms) begin transaction
354
+  (0.4ms) CREATE TABLE "canvas_sync_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "completed_at" datetime, "exception" varchar, "backtrace" text, "job_class" varchar, "status" varchar, "metadata" text, "job_arguments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
355
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170915210836"]]
356
+  (1.0ms) commit transaction
357
+ Migrating to CreateUsers (20170918221413)
358
+  (0.1ms) begin transaction
359
+  (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, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
360
+  (0.1ms) CREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")
361
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170918221413"]]
362
+  (0.9ms) commit transaction
363
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
364
+  (0.0ms) begin transaction
365
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:24:18.830692"], ["updated_at", "2017-11-02 21:24:18.830692"]]
366
+  (0.8ms) commit transaction
367
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
368
+  (0.1ms)  SELECT sql
369
+ FROM sqlite_master
370
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
371
+ UNION ALL
372
+ SELECT sql
373
+ FROM sqlite_temp_master
374
+ WHERE name='index_courses_on_canvas_course_id' AND type='index'
375
+ 
376
+  (0.5ms)  SELECT sql
377
+ FROM sqlite_master
378
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
379
+ UNION ALL
380
+ SELECT sql
381
+ FROM sqlite_temp_master
382
+ WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
383
+ 
384
+  (0.1ms)  SELECT sql
385
+ FROM sqlite_master
386
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
387
+ UNION ALL
388
+ SELECT sql
389
+ FROM sqlite_temp_master
390
+ WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
391
+ 
392
+  (0.1ms)  SELECT sql
393
+ FROM sqlite_master
394
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
395
+ UNION ALL
396
+ SELECT sql
397
+ FROM sqlite_temp_master
398
+ WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
399
+ 
400
+  (0.1ms)  SELECT sql
401
+ FROM sqlite_master
402
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
403
+ UNION ALL
404
+ SELECT sql
405
+ FROM sqlite_temp_master
406
+ WHERE name='index_sections_on_canvas_course_id' AND type='index'
407
+ 
408
+  (0.1ms)  SELECT sql
409
+ FROM sqlite_master
410
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
411
+ UNION ALL
412
+ SELECT sql
413
+ FROM sqlite_temp_master
414
+ WHERE name='index_sections_on_canvas_section_id' AND type='index'
415
+ 
416
+  (0.1ms)  SELECT sql
417
+ FROM sqlite_master
418
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
419
+ UNION ALL
420
+ SELECT sql
421
+ FROM sqlite_temp_master
422
+ WHERE name='index_terms_on_canvas_term_id' AND type='index'
423
+ 
424
+  (0.1ms)  SELECT sql
425
+ FROM sqlite_master
426
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
427
+ UNION ALL
428
+ SELECT sql
429
+ FROM sqlite_temp_master
430
+ WHERE name='index_users_on_canvas_user_id' AND type='index'
431
+