coalescing_panda 3.1.3 → 3.1.4

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: 2ffc19770d2233ac777721414cc57eac84a041ef
4
- data.tar.gz: 1024528490b36fa379e4651d8d563b4085c757f5
3
+ metadata.gz: 4f18d398d32a7166699f5cafcebca6ccbb35d0ca
4
+ data.tar.gz: 94285d0a4e50341365467f98418d5131b4a594fb
5
5
  SHA512:
6
- metadata.gz: 3a6f2c9cb1ceb6b9a7da2da3985d5c293ffe48e630155da889b017ce20d733f8f3d8ae5d137fbc434f8ae355885abe35239f271745b9bf33e27d1fc47013d1cd
7
- data.tar.gz: 60fc7bfc4751a238ede86fa85c1998b8b4216a4f64da7603d4fdb70f9770836179caeb157e89b985fd6a65da6819434be025912c3ed46c775f3f8d2140b0162e
6
+ metadata.gz: 067319e46cb04d23ec3733bd7094896276036381b50f0a7344c570da66ff750d3edd1d7e8cf2aed6310838a8a3dcfd36e9f6aa8921e9f4eb703cf74256a4890b
7
+ data.tar.gz: 95fbed62454dea53465765c965558088381fc16aeb24b9f42cc08ee7512065c7ec70dfbe16b77ac99324d1445c7f3dc1c2eaf73889368cc330e7800a92bfa544
@@ -16,6 +16,7 @@ class CanvasBatchProgress
16
16
  clearInterval(window.batchInterval)
17
17
  $('#batch-progress').html(data)
18
18
  clearBatchFromSession(batch.id)
19
+ window.location.reload() if $('#batch-container').data('refresh')
19
20
 
20
21
  error: (message) ->
21
22
  $('#batch-progress').html('Batch status request failed')
@@ -68,7 +68,11 @@ class CoalescingPanda::Workers::CourseMiner
68
68
  canvas_id_key = "canvas_#{model_key.to_s.singularize}_id"
69
69
  values[canvas_id_key] = values["id"]
70
70
  values['workflow_state'] = values["enrollment_state"] if values.has_key?('enrollment_state')
71
- record = course.send(model_key).where("#{canvas_id_key} = ?", values['id'].to_s).first_or_initialize
71
+ if model_key == :users
72
+ record = account.send(model_key).where("#{canvas_id_key} = ?", values['id'].to_s).first_or_initialize
73
+ else
74
+ record = course.send(model_key).where("#{canvas_id_key} = ?", values['id'].to_s).first_or_initialize
75
+ end
72
76
  record.coalescing_panda_lti_account_id = account.id if record.respond_to?(:coalescing_panda_lti_account_id)
73
77
  record.assign_attributes(standard_attributes(record, values))
74
78
  record.sis_id = sis_id(model_key, values) if record.respond_to?(:sis_id)
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '3.1.3'
2
+ VERSION = '3.1.4'
3
3
  end
Binary file
Binary file
@@ -1,328 +1,38 @@
1
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
5
-  (0.1ms) begin transaction
6
-  (0.3ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]
8
-  (0.7ms) commit transaction
9
- Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
10
-  (0.1ms) begin transaction
11
-  (0.3ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime) 
12
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
13
-  (0.8ms) commit transaction
14
- Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
15
-  (0.1ms) begin transaction
16
-  (0.3ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
17
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
18
-  (0.8ms) commit transaction
19
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
- Migrating to AddSettingsToCoalescingPandaLtiAccount (20140722210735)
22
-  (0.1ms) begin transaction
23
-  (0.4ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "settings" text
24
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722210735"]]
25
-  (0.8ms) commit transaction
26
- Migrating to CreateCoalescingPandaSessions (20140904223159)
27
-  (0.0ms) begin transaction
28
-  (0.2ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "data" text, "created_at" datetime, "updated_at" datetime) 
29
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]
30
-  (0.7ms) commit transaction
31
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
- Migrating to CreateCoalescingPandaTerms (20141119225319)
34
-  (0.1ms) begin transaction
35
-  (0.3ms) CREATE TABLE "coalescing_panda_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "code" varchar(255), "sis_id" varchar(255), "canvas_term_id" varchar(255), "start_at" datetime, "end_at" datetime, "workflow_state" varchar(255), "created_at" datetime, "updated_at" datetime) 
36
-  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_canvas_term_id" ON "coalescing_panda_terms" ("canvas_term_id")
37
-  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]]
39
-  (0.8ms) commit transaction
40
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
42
- Migrating to CreateCoalescingPandaCourses (20141119225721)
43
-  (0.0ms) begin transaction
44
-  (0.4ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
45
-  (0.2ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
46
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]
47
-  (0.9ms) commit transaction
48
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
49
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
- Migrating to CreateCoalescingPandaSections (20141120151432)
51
-  (0.1ms) begin transaction
52
-  (0.5ms) CREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "canvas_section_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
53
-  (0.2ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
54
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
55
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]
56
-  (0.8ms) commit transaction
57
- Migrating to CreateCoalescingPandaAssignments (20141120151940)
58
-  (0.0ms) begin transaction
59
-  (0.3ms) CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "description" varchar(255), "canvas_assignment_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime) 
60
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_canvas_assignment_id" ON "coalescing_panda_assignments" ("canvas_assignment_id")
61
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_sis_id" ON "coalescing_panda_assignments" ("sis_id")
62
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151940"]]
63
-  (0.8ms) commit transaction
64
- Migrating to CreateCoalescingPandaUsers (20141120152458)
65
-  (0.0ms) begin transaction
66
-  (0.3ms) CREATE TABLE "coalescing_panda_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email" varchar(255), "roles" varchar(255), "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_user_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
67
-  (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_canvas_user_id" ON "coalescing_panda_users" ("canvas_user_id")
68
-  (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id")
69
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152458"]]
70
-  (0.7ms) commit transaction
71
- Migrating to CreateCoalescingPandaSubmissions (20141120152546)
72
-  (0.0ms) begin transaction
73
-  (0.3ms) CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_assignment_id" integer, "url" varchar(255), "grade" varchar(255), "score" varchar(255), "submitted_at" datetime, "workflow_state" varchar(255), "canvas_submission_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
74
-  (0.1ms) CREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id")
75
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152546"]]
76
-  (0.7ms) commit transaction
77
- Migrating to CreateCoalescingPandaEnrollments (20141120153135)
78
-  (0.0ms) begin transaction
79
-  (0.3ms) CREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_section_id" integer, "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_enrollment_id" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime)
80
-  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_canvas_enrollment_id" ON "coalescing_panda_enrollments" ("canvas_enrollment_id")
81
-  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id")
82
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120153135"]]
83
-  (0.8ms) commit transaction
84
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
85
-  (0.1ms) begin transaction
86
- CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'test' LIMIT 1
87
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
88
-  (0.1ms) rollback transaction
89
-  (0.1ms) begin transaction
90
- CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'test' LIMIT 1
91
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'k' LIMIT 1
92
- SQL (1.5ms) INSERT INTO "coalescing_panda_lti_accounts" ("created_at", "key", "name", "secret", "settings", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 20 Nov 2014 17:33:45 UTC +00:00], ["key", "k"], ["name", "test"], ["secret", "s"], ["settings", nil], ["updated_at", Thu, 20 Nov 2014 17:33:45 UTC +00:00]]
93
-  (7.0ms) commit transaction
94
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" ORDER BY "coalescing_panda_lti_accounts"."id" DESC LIMIT 1
95
- CoalescingPanda::Course Load (2.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 1]]
96
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" ORDER BY "coalescing_panda_lti_accounts"."id" DESC LIMIT 1
97
- CoalescingPanda::Course Load (1.6ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 1]]
98
-  (0.1ms) begin transaction
99
- SQL (1.3ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["created_at", Thu, 20 Nov 2014 17:36:53 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 17:36:53 UTC +00:00]]
100
-  (6.6ms) commit transaction
101
-  (0.1ms) begin transaction
102
- SQL (0.6ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["created_at", Thu, 20 Nov 2014 17:37:06 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 17:37:06 UTC +00:00]]
103
-  (7.0ms) commit transaction
104
- CoalescingPanda::Term Load (0.3ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 1]]
105
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" ORDER BY "coalescing_panda_lti_accounts"."id" DESC LIMIT 1
106
- CoalescingPanda::Course Load (1.5ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 1]]
107
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
108
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
109
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
110
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_term_id" = ? [[nil, 1]]
111
- SQLite3::SQLException: no such column: coalescing_panda_courses.coalescing_panda_lti_term_id: SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_term_id" = ?
112
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" ORDER BY "coalescing_panda_lti_accounts"."id" DESC LIMIT 1
113
- CoalescingPanda::Term Load (1.6ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
114
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
115
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_term_id" = ? [["coalescing_panda_term_id", 1]]
116
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
117
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? ORDER BY "coalescing_panda_terms"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]
118
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
119
-  (0.1ms) begin transaction
120
- SQL (1.2ms) UPDATE "coalescing_panda_courses" SET "coalescing_panda_term_id" = ?, "updated_at" = ? WHERE "coalescing_panda_courses"."id" = 1 [["coalescing_panda_term_id", 1], ["updated_at", Thu, 20 Nov 2014 17:41:41 UTC +00:00]]
121
-  (0.8ms) commit transaction
122
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_term_id" = ? [["coalescing_panda_term_id", 1]]
123
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
124
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" ORDER BY "coalescing_panda_terms"."id" DESC LIMIT 1
125
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 1]]
126
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
127
- CoalescingPanda::Term Load (1.6ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."id" = ? LIMIT 1 [["id", 1]]
128
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 1]]
129
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
130
- CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_course_id" = ? [[nil, 1]]
131
- SQLite3::SQLException: no such column: coalescing_panda_enrollments.coalescing_panda_course_id: SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_course_id" = ?
132
-  (7.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
133
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
134
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
135
- CoalescingPanda::LtiAccount Load (0.3ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts"
136
- SQLite3::SQLException: no such table: coalescing_panda_lti_accounts: SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts"
1
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
137
3
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
138
4
  Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
139
5
   (0.0ms) begin transaction
140
6
   (0.4ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
141
7
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]
142
-  (6.9ms) commit transaction
143
- Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
144
-  (0.1ms) begin transaction
145
-  (0.4ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime) 
146
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
147
-  (0.8ms) commit transaction
148
- Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
149
-  (0.1ms) begin transaction
150
-  (0.4ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
151
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
152
-  (0.8ms) commit transaction
153
- Migrating to AddSettingsToCoalescingPandaLtiAccount (20140722210735)
154
-  (0.0ms) begin transaction
155
-  (0.3ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "settings" text
156
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722210735"]]
157
-  (0.7ms) commit transaction
158
- Migrating to CreateCoalescingPandaSessions (20140904223159)
159
-  (0.0ms) begin transaction
160
-  (0.3ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "data" text, "created_at" datetime, "updated_at" datetime) 
161
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]
162
-  (0.6ms) commit transaction
163
- Migrating to CreateCoalescingPandaTerms (20141119225319)
164
-  (0.0ms) begin transaction
165
-  (0.3ms) CREATE TABLE "coalescing_panda_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "code" varchar(255), "sis_id" varchar(255), "canvas_term_id" varchar(255), "start_at" datetime, "end_at" datetime, "workflow_state" varchar(255), "created_at" datetime, "updated_at" datetime) 
166
-  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_canvas_term_id" ON "coalescing_panda_terms" ("canvas_term_id")
167
-  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")
168
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]]
169
-  (0.8ms) commit transaction
170
- Migrating to CreateCoalescingPandaCourses (20141119225721)
171
-  (0.0ms) begin transaction
172
-  (0.3ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
173
-  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
174
-  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")
175
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]
176
-  (0.8ms) commit transaction
177
- Migrating to CreateCoalescingPandaSections (20141120151432)
178
-  (0.1ms) begin transaction
179
-  (0.6ms) CREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "canvas_section_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
180
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
181
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
182
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]
183
-  (0.6ms) commit transaction
184
- Migrating to CreateCoalescingPandaAssignments (20141120151940)
185
-  (0.1ms) begin transaction
186
-  (0.3ms) CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "description" varchar(255), "canvas_assignment_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime) 
187
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_canvas_assignment_id" ON "coalescing_panda_assignments" ("canvas_assignment_id")
188
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_sis_id" ON "coalescing_panda_assignments" ("sis_id")
189
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151940"]]
190
8
   (0.7ms) commit transaction
191
- Migrating to CreateCoalescingPandaUsers (20141120152458)
192
-  (0.0ms) begin transaction
193
-  (0.3ms) CREATE TABLE "coalescing_panda_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "email" varchar(255), "roles" varchar(255), "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_user_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
194
-  (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_canvas_user_id" ON "coalescing_panda_users" ("canvas_user_id")
195
-  (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id")
196
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152458"]]
197
-  (0.7ms) commit transaction
198
- Migrating to CreateCoalescingPandaSubmissions (20141120152546)
199
-  (0.1ms) begin transaction
200
-  (0.3ms) CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_assignment_id" integer, "url" varchar(255), "grade" varchar(255), "score" varchar(255), "submitted_at" datetime, "workflow_state" varchar(255), "canvas_submission_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
201
-  (0.1ms) CREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id")
202
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152546"]]
203
-  (0.7ms) commit transaction
204
- Migrating to CreateCoalescingPandaEnrollments (20141120153135)
205
-  (0.0ms) begin transaction
206
-  (0.3ms) CREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_section_id" integer, "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_enrollment_id" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime)
207
-  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_canvas_enrollment_id" ON "coalescing_panda_enrollments" ("canvas_enrollment_id")
208
-  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id")
209
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120153135"]]
210
-  (0.6ms) commit transaction
211
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
212
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
213
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
214
-  (7.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
215
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
216
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
217
- Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
218
-  (0.1ms) begin transaction
219
-  (0.4ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
220
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]
221
-  (0.8ms) commit transaction
222
9
  Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
223
10
   (0.0ms) begin transaction
224
11
   (0.3ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime) 
225
12
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
226
-  (0.8ms) commit transaction
13
+  (0.6ms) commit transaction
227
14
  Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
228
15
   (0.0ms) begin transaction
229
-  (0.2ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
16
+  (0.3ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
230
17
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
231
-  (0.6ms) commit transaction
18
+  (0.5ms) commit transaction
232
19
  Migrating to AddSettingsToCoalescingPandaLtiAccount (20140722210735)
233
20
   (0.0ms) begin transaction
234
21
   (0.3ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "settings" text
235
22
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722210735"]]
236
-  (0.7ms) commit transaction
23
+  (0.4ms) commit transaction
237
24
  Migrating to CreateCoalescingPandaSessions (20140904223159)
238
25
   (0.1ms) begin transaction
239
26
   (0.3ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "data" text, "created_at" datetime, "updated_at" datetime) 
240
27
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]
241
-  (0.8ms) commit transaction
28
+  (0.5ms) commit transaction
242
29
  Migrating to CreateCoalescingPandaTerms (20141119225319)
243
30
   (0.0ms) begin transaction
244
31
   (0.3ms) CREATE TABLE "coalescing_panda_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "code" varchar(255), "sis_id" varchar(255), "canvas_term_id" varchar(255), "start_at" datetime, "end_at" datetime, "workflow_state" varchar(255), "created_at" datetime, "updated_at" datetime) 
245
32
   (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_canvas_term_id" ON "coalescing_panda_terms" ("canvas_term_id")
246
33
   (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")
247
34
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]]
248
-  (0.6ms) commit transaction
249
- Migrating to CreateCoalescingPandaCourses (20141119225721)
250
-  (0.0ms) begin transaction
251
-  (0.2ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
252
-  (0.3ms) rollback transaction
253
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
254
- Migrating to CreateCoalescingPandaCourses (20141119225721)
255
-  (0.0ms) begin transaction
256
-  (0.4ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
257
-  (0.1ms) CREATE INDEX "index_panda_courses_on_panda_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
258
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_coalescing_panda_term_id" ON "coalescing_panda_assignments" ("coalescing_panda_term_id")
259
- SQLite3::SQLException: no such table: main.coalescing_panda_assignments: CREATE INDEX "index_coalescing_panda_assignments_on_coalescing_panda_term_id" ON "coalescing_panda_assignments" ("coalescing_panda_term_id")
260
-  (6.4ms) rollback transaction
261
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
262
- Migrating to CreateCoalescingPandaCourses (20141119225721)
263
-  (0.1ms) begin transaction
264
-  (0.4ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
265
-  (0.1ms) CREATE INDEX "index_panda_courses_on_panda_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
266
-  (0.1ms) CREATE INDEX "index_panda_assignments_on_panda_term_id" ON "coalescing_panda_assignments" ("coalescing_panda_term_id")
267
- SQLite3::SQLException: no such table: main.coalescing_panda_assignments: CREATE INDEX "index_panda_assignments_on_panda_term_id" ON "coalescing_panda_assignments" ("coalescing_panda_term_id")
268
-  (6.3ms) rollback transaction
269
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
270
- Migrating to CreateCoalescingPandaCourses (20141119225721)
271
-  (0.1ms) begin transaction
272
-  (0.3ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
273
-  (0.1ms) CREATE INDEX "index_courses_account" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
274
-  (0.1ms) CREATE INDEX "index_courses_term" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
275
-  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
276
-  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")
277
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]
278
-  (0.9ms) commit transaction
279
- Migrating to CreateCoalescingPandaSections (20141120151432)
280
-  (0.0ms) begin transaction
281
-  (0.3ms) CREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "canvas_section_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
282
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_coalescing_panda_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
283
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
284
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
285
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]
286
-  (0.8ms) commit transaction
287
- Migrating to CreateCoalescingPandaAssignments (20141120151940)
288
-  (0.1ms) begin transaction
289
-  (0.4ms) CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "description" varchar(255), "canvas_assignment_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime)
290
-  (0.3ms) rollback transaction
291
-  (6.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
292
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
293
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
294
- Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
295
-  (0.0ms) begin transaction
296
-  (0.3ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
297
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]
298
-  (0.9ms) commit transaction
299
- Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
300
-  (0.0ms) begin transaction
301
-  (0.3ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime) 
302
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
303
-  (0.7ms) commit transaction
304
- Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
305
-  (0.0ms) begin transaction
306
-  (0.2ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime) 
307
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
308
-  (0.6ms) commit transaction
309
- Migrating to AddSettingsToCoalescingPandaLtiAccount (20140722210735)
310
-  (0.0ms) begin transaction
311
-  (0.2ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "settings" text
312
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722210735"]]
313
-  (0.6ms) commit transaction
314
- Migrating to CreateCoalescingPandaSessions (20140904223159)
315
-  (0.0ms) begin transaction
316
-  (0.2ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "data" text, "created_at" datetime, "updated_at" datetime) 
317
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]
318
-  (0.7ms) commit transaction
319
- Migrating to CreateCoalescingPandaTerms (20141119225319)
320
-  (0.0ms) begin transaction
321
-  (0.2ms) CREATE TABLE "coalescing_panda_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "code" varchar(255), "sis_id" varchar(255), "canvas_term_id" varchar(255), "start_at" datetime, "end_at" datetime, "workflow_state" varchar(255), "created_at" datetime, "updated_at" datetime) 
322
-  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_canvas_term_id" ON "coalescing_panda_terms" ("canvas_term_id")
323
-  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")
324
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]]
325
-  (0.6ms) commit transaction
35
+  (0.5ms) commit transaction
326
36
  Migrating to CreateCoalescingPandaCourses (20141119225721)
327
37
   (0.0ms) begin transaction
328
38
   (0.3ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
@@ -331,33 +41,23 @@ Migrating to CreateCoalescingPandaCourses (20141119225721)
331
41
   (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
332
42
   (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")
333
43
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]
334
-  (0.7ms) commit transaction
44
+  (0.5ms) commit transaction
335
45
  Migrating to CreateCoalescingPandaSections (20141120151432)
336
-  (0.0ms) begin transaction
337
-  (0.2ms) CREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "canvas_section_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
338
-  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_coalescing_panda_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
46
+  (0.1ms) begin transaction
47
+  (0.5ms) CREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "canvas_section_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
48
+  (0.2ms) CREATE INDEX "index_coalescing_panda_sections_on_coalescing_panda_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
339
49
   (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
340
50
   (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
341
51
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]
342
-  (0.8ms) commit transaction
52
+  (0.6ms) commit transaction
343
53
  Migrating to CreateCoalescingPandaAssignments (20141120151940)
344
54
   (0.0ms) begin transaction
345
55
   (0.3ms) CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "description" varchar(255), "canvas_assignment_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime)
346
-  (0.4ms) rollback transaction
347
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
348
- Migrating to CreateCoalescingPandaAssignments (20141120151940)
349
-  (0.1ms) begin transaction
350
-  (0.4ms) CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "description" varchar(255), "canvas_assignment_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime) 
351
-  (0.1ms) CREATE INDEX "index_assignments_course" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
352
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_canvas_assignment_id" ON "coalescing_panda_assignments" ("canvas_assignment_id")
353
-  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_sis_id" ON "coalescing_panda_assignments" ("sis_id")
354
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151940"]]
355
-  (6.7ms) commit transaction
356
- Migrating to CreateCoalescingPandaUsers (20141120152458)
357
-  (0.1ms) begin transaction
358
-  (0.3ms) CREATE TABLE "coalescing_panda_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "email" varchar(255), "roles" varchar(255), "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_user_id" varchar(255), "created_at" datetime, "updated_at" datetime)
359
-  (0.4ms) rollback transaction
360
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+  (0.1ms) CREATE INDEX "index_assignments_course" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
57
+  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_canvas_assignment_id" ON "coalescing_panda_assignments" ("canvas_assignment_id")
58
+  (0.1ms) CREATE INDEX "index_coalescing_panda_assignments_on_sis_id" ON "coalescing_panda_assignments" ("sis_id")
59
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151940"]]
60
+  (0.5ms) commit transaction
361
61
  Migrating to CreateCoalescingPandaUsers (20141120152458)
362
62
   (0.0ms) begin transaction
363
63
   (0.3ms) CREATE TABLE "coalescing_panda_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "email" varchar(255), "roles" varchar(255), "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_user_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
@@ -365,211 +65,90 @@ Migrating to CreateCoalescingPandaUsers (20141120152458)
365
65
   (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_canvas_user_id" ON "coalescing_panda_users" ("canvas_user_id")
366
66
   (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id")
367
67
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152458"]]
368
-  (7.2ms) commit transaction
369
- Migrating to CreateCoalescingPandaSubmissions (20141120152546)
370
-  (0.1ms) begin transaction
371
-  (0.5ms) CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_assignment_id" integer, "url" varchar(255), "grade" varchar(255), "score" varchar(255), "submitted_at" datetime, "workflow_state" varchar(255), "canvas_submission_id" varchar(255), "created_at" datetime, "updated_at" datetime)
372
-  (0.5ms) rollback transaction
373
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
68
+  (0.5ms) commit transaction
374
69
  Migrating to CreateCoalescingPandaSubmissions (20141120152546)
375
-  (0.1ms) begin transaction
376
-  (0.4ms) CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_assignment_id" integer, "url" varchar(255), "grade" varchar(255), "score" varchar(255), "submitted_at" datetime, "workflow_state" varchar(255), "canvas_submission_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
377
-  (0.1ms) CREATE INDEX "index_submissions_user_and_assignment" ON "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id")
378
-  (0.1ms) CREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id")
379
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152546"]]
380
-  (0.9ms) commit transaction
381
- Migrating to CreateCoalescingPandaEnrollments (20141120153135)
382
-  (0.0ms) begin transaction
383
-  (0.3ms) CREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_section_id" integer, "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_enrollment_id" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
384
-  (0.4ms) rollback transaction
385
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
70
+  (0.0ms) begin transaction
71
+  (0.3ms) CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_assignment_id" integer, "url" varchar(255), "grade" varchar(255), "score" varchar(255), "submitted_at" datetime, "workflow_state" varchar(255), "canvas_submission_id" varchar(255), "created_at" datetime, "updated_at" datetime)
72
+  (0.1ms) CREATE INDEX "index_submissions_user_and_assignment" ON "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id")
73
+  (0.1ms) CREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id")
74
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152546"]]
75
+  (0.6ms) commit transaction
386
76
  Migrating to CreateCoalescingPandaEnrollments (20141120153135)
387
-  (0.0ms) begin transaction
388
-  (0.4ms) CREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_section_id" integer, "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_enrollment_id" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
389
-  (0.1ms) CREATE INDEX "index_enrollments_user_and_assignment" ON "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id")
390
-  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_canvas_enrollment_id" ON "coalescing_panda_enrollments" ("canvas_enrollment_id")
391
-  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id")
392
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120153135"]]
393
-  (7.1ms) commit transaction
394
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
395
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" ORDER BY "coalescing_panda_lti_accounts"."id" ASC LIMIT 1
396
-  (0.1ms) begin transaction
397
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" IS NULL LIMIT 1
398
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'a
399
- ' LIMIT 1
400
-  (0.1ms) rollback transaction
401
-  (0.1ms) begin transaction
402
- CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'test:
403
- a' LIMIT 1
404
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'a
405
- ' LIMIT 1
406
- SQL (1.4ms) INSERT INTO "coalescing_panda_lti_accounts" ("created_at", "key", "name", "secret", "settings", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 20 Nov 2014 18:04:55 UTC +00:00], ["key", "a\n"], ["name", "test:\na"], ["secret", "a"], ["settings", nil], ["updated_at", Thu, 20 Nov 2014 18:04:55 UTC +00:00]]
407
-  (6.7ms) commit transaction
408
-  (0.1ms) begin transaction
409
- SQL (0.5ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["created_at", Thu, 20 Nov 2014 18:05:05 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:05:05 UTC +00:00]]
410
-  (6.9ms) commit transaction
411
-  (0.1ms) begin transaction
412
- SQL (0.6ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["created_at", Thu, 20 Nov 2014 18:05:14 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:05:14 UTC +00:00]]
413
-  (6.8ms) commit transaction
414
- CoalescingPanda::Section Load (0.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
415
- CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
416
- CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_course_id" = ? [[nil, 1]]
417
- SQLite3::SQLException: no such column: coalescing_panda_enrollments.coalescing_panda_course_id: SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_course_id" = ?
418
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
419
-  (0.1ms) begin transaction
420
- SQL (3.3ms) INSERT INTO "coalescing_panda_sections" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 20 Nov 2014 18:11:52 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:11:52 UTC +00:00]]
421
-  (7.1ms) commit transaction
422
- CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_lti_section_id" = ? [[nil, 1]]
423
- SQLite3::SQLException: no such column: coalescing_panda_enrollments.coalescing_panda_lti_section_id: SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_lti_section_id" = ?
424
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses"
425
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
426
- CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" ORDER BY "coalescing_panda_sections"."id" DESC LIMIT 1
427
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
428
- CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" ORDER BY "coalescing_panda_sections"."id" DESC LIMIT 1
429
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
430
-  (0.1ms) begin transaction
431
- SQL (3.1ms) UPDATE "coalescing_panda_sections" SET "coalescing_panda_course_id" = ?, "updated_at" = ? WHERE "coalescing_panda_sections"."id" = 1 [["coalescing_panda_course_id", 1], ["updated_at", Thu, 20 Nov 2014 18:15:23 UTC +00:00]]
432
-  (6.8ms) commit transaction
433
- CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? [["coalescing_panda_section_id", 1]]
434
- CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"
435
-  (0.1ms) begin transaction
436
- SQL (0.6ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_section_id", 1], ["created_at", Thu, 20 Nov 2014 18:15:59 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:15:59 UTC +00:00]]
437
-  (6.8ms) commit transaction
438
-  (0.1ms) begin transaction
439
- SQL (0.5ms) INSERT INTO "coalescing_panda_users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 20 Nov 2014 18:17:01 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:17:01 UTC +00:00]]
440
-  (0.8ms) commit transaction
441
-  (0.1ms) begin transaction
442
- SQL (0.5ms) UPDATE "coalescing_panda_enrollments" SET "coalescing_panda_user_id" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = 1 [["coalescing_panda_user_id", 1], ["updated_at", Thu, 20 Nov 2014 18:17:15 UTC +00:00]]
443
-  (0.8ms) commit transaction
444
-  (0.1ms) begin transaction
445
- SQL (0.5ms) INSERT INTO "coalescing_panda_terms" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 20 Nov 2014 18:17:54 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:17:54 UTC +00:00]]
446
-  (6.8ms) commit transaction
447
-  (0.1ms) begin transaction
448
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" IS NULL LIMIT 1
449
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
450
-  (0.1ms) commit transaction
451
-  (0.1ms) begin transaction
452
- CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" IS NULL LIMIT 1
453
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" IS NULL LIMIT 1
454
-  (0.1ms) rollback transaction
455
-  (0.1ms) begin transaction
456
- CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'akdsgh' LIMIT 1
457
- CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'ate' LIMIT 1
458
- SQL (0.5ms) INSERT INTO "coalescing_panda_lti_accounts" ("created_at", "key", "name", "secret", "settings", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 20 Nov 2014 18:18:47 UTC +00:00], ["key", "ate"], ["name", "akdsgh"], ["secret", "alskjdg"], ["settings", nil], ["updated_at", Thu, 20 Nov 2014 18:18:47 UTC +00:00]]
459
-  (6.8ms) commit transaction
460
- CoalescingPanda::Course Load (0.3ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 2]]
461
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
462
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 1]]
463
-  (0.1ms) begin transaction
464
- SQL (0.4ms) DELETE FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? [["id", 1]]
465
-  (6.8ms) commit transaction
466
-  (0.1ms) begin transaction
467
- SQL (0.5ms) UPDATE "coalescing_panda_courses" SET "coalescing_panda_lti_account_id" = ?, "updated_at" = ? WHERE "coalescing_panda_courses"."id" = 1 [["coalescing_panda_lti_account_id", 2], ["updated_at", Thu, 20 Nov 2014 18:19:34 UTC +00:00]]
468
-  (6.8ms) commit transaction
469
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 2]]
470
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 2]]
471
-  (0.1ms) begin transaction
472
- SQL (0.5ms) UPDATE "coalescing_panda_users" SET "coalescing_panda_lti_account_id" = ?, "updated_at" = ? WHERE "coalescing_panda_users"."id" = 1 [["coalescing_panda_lti_account_id", 2], ["updated_at", Thu, 20 Nov 2014 18:20:37 UTC +00:00]]
473
-  (6.8ms) commit transaction
474
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" ORDER BY "coalescing_panda_lti_accounts"."id" DESC LIMIT 1
475
- CoalescingPanda::Term Load (1.6ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 2]]
476
- CoalescingPanda::Term Load (0.1ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" ORDER BY "coalescing_panda_terms"."id" DESC LIMIT 1
477
-  (0.1ms) begin transaction
478
- SQL (1.3ms) UPDATE "coalescing_panda_terms" SET "coalescing_panda_lti_account_id" = ?, "updated_at" = ? WHERE "coalescing_panda_terms"."id" = 2 [["coalescing_panda_lti_account_id", 2], ["updated_at", Thu, 20 Nov 2014 18:24:53 UTC +00:00]]
479
-  (6.7ms) commit transaction
480
- CoalescingPanda::LtiAccount Load (0.3ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 2]]
481
- CoalescingPanda::Term Load (0.2ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 2]]
482
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? [["coalescing_panda_lti_account_id", 2]]
483
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 2]]
484
-  (0.1ms) begin transaction
485
- SQL (0.5ms) UPDATE "coalescing_panda_courses" SET "coalescing_panda_term_id" = ?, "updated_at" = ? WHERE "coalescing_panda_courses"."id" = 1 [["coalescing_panda_term_id", 2], ["updated_at", Thu, 20 Nov 2014 18:25:59 UTC +00:00]]
486
-  (6.8ms) commit transaction
487
- CoalescingPanda::Course Load (0.3ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."id" = ? LIMIT 1 [["id", 1]]
488
- CoalescingPanda::Term Load (0.3ms) SELECT "coalescing_panda_terms".* FROM "coalescing_panda_terms" WHERE "coalescing_panda_terms"."id" = ? LIMIT 1 [["id", 2]]
489
- CoalescingPanda::Section Load (0.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
490
- CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
491
-  (0.1ms) begin transaction
492
- SQL (0.6ms) INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_course_id", 1], ["created_at", Thu, 20 Nov 2014 18:26:23 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:26:23 UTC +00:00]]
493
-  (6.8ms) commit transaction
494
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."id" = ? LIMIT 1 [["id", 1]]
495
- CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
496
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
497
- CoalescingPanda::User Load (2.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
498
- CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1]]
499
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."id" = ? LIMIT 1 [["id", 1]]
500
- CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? [["coalescing_panda_section_id", 1]]
501
- CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? [["coalescing_panda_section_id", 1]]
502
- CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]]
503
- CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."id" = ? LIMIT 1 [["id", 1]]
504
- CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 2]]
505
- CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]]
506
- CoalescingPanda::Submission Load (0.2ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]]
507
-  (0.1ms) begin transaction
508
- SQL (1.5ms) INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["coalescing_panda_user_id", 1], ["created_at", Thu, 20 Nov 2014 18:29:38 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:29:38 UTC +00:00]]
509
-  (7.0ms) commit transaction
510
- CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]]
511
- CoalescingPanda::Submission Load (0.2ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]]
512
- CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_sections"."id" = "coalescing_panda_enrollments"."coalescing_panda_section_id" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]]
513
- CoalescingPanda::Course Load (0.3ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_courses"."id" = "coalescing_panda_sections"."coalescing_panda_course_id" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_sections"."id" = "coalescing_panda_enrollments"."coalescing_panda_section_id" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]]
514
-  (0.1ms) begin transaction
515
- SQL (0.5ms) INSERT INTO "coalescing_panda_assignments" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 20 Nov 2014 18:31:07 UTC +00:00], ["updated_at", Thu, 20 Nov 2014 18:31:07 UTC +00:00]]
516
-  (6.9ms) commit transaction
517
- CoalescingPanda::Submission Load (0.3ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."id" = ? LIMIT 1 [["id", 1]]
518
- CoalescingPanda::Assignment Load (0.3ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" ORDER BY "coalescing_panda_assignments"."id" DESC LIMIT 1
519
-  (0.1ms) begin transaction
520
- SQL (0.5ms) UPDATE "coalescing_panda_assignments" SET "coalescing_panda_course_id" = ?, "updated_at" = ? WHERE "coalescing_panda_assignments"."id" = 2 [["coalescing_panda_course_id", 1], ["updated_at", Thu, 20 Nov 2014 18:31:57 UTC +00:00]]
521
-  (6.8ms) commit transaction
522
-  (0.1ms) begin transaction
523
- SQL (0.5ms) UPDATE "coalescing_panda_submissions" SET "coalescing_panda_assignment_id" = ?, "updated_at" = ? WHERE "coalescing_panda_submissions"."id" = 1 [["coalescing_panda_assignment_id", 2], ["updated_at", Thu, 20 Nov 2014 18:32:12 UTC +00:00]]
524
-  (6.8ms) commit transaction
525
- CoalescingPanda::Submission Load (0.2ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."id" = ? LIMIT 1 [["id", 1]]
526
- CoalescingPanda::Assignment Load (0.3ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."id" = ? LIMIT 1 [["id", 2]]
527
- CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."id" = ? LIMIT 1 [["id", 2]]
528
- CoalescingPanda::Course Load (0.2ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."id" = ? LIMIT 1 [["id", 1]]
529
- CoalescingPanda::Submission Load (0.2ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_assignment_id" = ? [["coalescing_panda_assignment_id", 2]]
530
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" ORDER BY "coalescing_panda_courses"."id" DESC LIMIT 1
531
- CoalescingPanda::Enrollment Load (1.7ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]
532
- CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" ORDER BY "coalescing_panda_assignments"."id" DESC LIMIT 1
533
- CoalescingPanda::Course Load (1.5ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."id" = ? LIMIT 1 [["id", 1]]
534
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 2]]
535
- CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" ORDER BY "coalescing_panda_submissions"."id" DESC LIMIT 1
536
- CoalescingPanda::Assignment Load (0.3ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."id" = ? LIMIT 1 [["id", 2]]
537
- CoalescingPanda::Course Load (0.1ms) SELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."id" = ? LIMIT 1 [["id", 1]]
538
- CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."id" = ? LIMIT 1 [["id", 2]]
539
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
77
+  (0.0ms) begin transaction
78
+  (0.3ms) CREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_section_id" integer, "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_enrollment_id" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime)
79
+  (0.1ms) CREATE INDEX "index_enrollments_user_and_assignment" ON "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id")
80
+  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_canvas_enrollment_id" ON "coalescing_panda_enrollments" ("canvas_enrollment_id")
81
+  (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id")
82
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120153135"]]
83
+  (0.5ms) commit transaction
540
84
  Migrating to AddCanvasAccountIdToLtiAccount (20141120205729)
541
-  (0.0ms) begin transaction
542
-  (0.4ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "canvas_account_id" varchar(255)
543
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120205729"]]
544
-  (0.8ms) commit transaction
85
+  (0.1ms) begin transaction
86
+  (0.3ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "canvas_account_id" varchar(255)
87
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120205729"]]
88
+  (0.5ms) commit transaction
545
89
  Migrating to CreateCoalescingPandaCanvasBatches (20141121174846)
546
90
   (0.0ms) begin transaction
547
-  (0.3ms) CREATE TABLE "coalescing_panda_canvas_batches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "percent_complete" float DEFAULT 0.0, "status" varchar(255), "message" text, "created_at" datetime, "updated_at" datetime) 
91
+  (0.4ms) CREATE TABLE "coalescing_panda_canvas_batches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "percent_complete" float DEFAULT 0.0, "status" varchar(255), "message" text, "created_at" datetime, "updated_at" datetime) 
548
92
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141121174846"]]
549
-  (0.8ms) commit transaction
550
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
551
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
552
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
553
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
554
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
555
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
93
+  (0.5ms) commit transaction
556
94
  Migrating to CreateDelayedJobs (20141124160857)
557
-  (0.1ms) begin transaction
558
-  (0.4ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
95
+  (0.0ms) begin transaction
96
+  (0.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime) 
559
97
   (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
560
98
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141124160857"]]
561
-  (0.9ms) commit transaction
99
+  (0.5ms) commit transaction
100
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
101
+  (1.5ms) DROP TABLE "coalescing_panda_assignments"
102
+  (1.1ms) CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "description" varchar(255), "canvas_assignment_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime)
103
+  (0.9ms) CREATE INDEX "index_coalescing_panda_assignments_on_canvas_assignment_id" ON "coalescing_panda_assignments" ("canvas_assignment_id")
104
+  (1.2ms) CREATE INDEX "index_assignments_course" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
105
+  (0.9ms) CREATE INDEX "index_coalescing_panda_assignments_on_sis_id" ON "coalescing_panda_assignments" ("sis_id")
106
+  (0.8ms) DROP TABLE "coalescing_panda_canvas_api_auths"
107
+  (1.0ms) CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar(255), "api_domain" varchar(255), "api_token" varchar(255), "created_at" datetime, "updated_at" datetime) 
108
+  (0.7ms) DROP TABLE "coalescing_panda_canvas_batches"
109
+  (0.9ms) CREATE TABLE "coalescing_panda_canvas_batches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "percent_complete" float DEFAULT 0.0, "status" varchar(255), "message" text, "created_at" datetime, "updated_at" datetime) 
110
+  (0.9ms) DROP TABLE "coalescing_panda_courses"
111
+  (0.8ms) CREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "coalescing_panda_term_id" integer, "name" varchar(255), "canvas_course_id" varchar(255), "sis_id" varchar(255), "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar(255), "course_code" varchar(255), "created_at" datetime, "updated_at" datetime) 
112
+  (0.8ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
113
+  (1.0ms) CREATE INDEX "index_courses_account" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
114
+  (0.9ms) CREATE INDEX "index_courses_term" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
115
+  (0.8ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")
116
+  (0.8ms) DROP TABLE "coalescing_panda_enrollments"
117
+  (0.7ms) CREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_section_id" integer, "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_enrollment_id" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) 
118
+  (0.6ms) CREATE INDEX "index_coalescing_panda_enrollments_on_canvas_enrollment_id" ON "coalescing_panda_enrollments" ("canvas_enrollment_id")
119
+  (0.7ms) CREATE INDEX "index_enrollments_user_and_assignment" ON "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id")
120
+  (0.7ms) CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id")
121
+  (0.7ms) DROP TABLE "coalescing_panda_lti_accounts"
122
+  (0.8ms) CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "key" varchar(255), "secret" varchar(255), "oauth2_client_id" varchar(255), "oauth2_client_key" varchar(255), "created_at" datetime, "updated_at" datetime, "settings" text, "canvas_account_id" varchar(255))
123
+  (0.7ms) DROP TABLE "coalescing_panda_lti_nonces"
124
+  (0.8ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar(255), "timestamp" datetime)
125
+  (0.8ms) DROP TABLE "coalescing_panda_sections"
126
+  (0.8ms) CREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer, "name" varchar(255), "canvas_section_id" varchar(255), "sis_id" varchar(255), "workflow_state" varchar(255), "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime)
127
+  (0.7ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
128
+  (0.7ms) CREATE INDEX "index_coalescing_panda_sections_on_coalescing_panda_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
129
+  (0.7ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
130
+  (0.6ms) DROP TABLE "coalescing_panda_sessions"
131
+  (0.8ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "data" text, "created_at" datetime, "updated_at" datetime) 
132
+  (0.7ms) DROP TABLE "coalescing_panda_submissions"
133
+  (0.7ms) CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer, "coalescing_panda_assignment_id" integer, "url" varchar(255), "grade" varchar(255), "score" varchar(255), "submitted_at" datetime, "workflow_state" varchar(255), "canvas_submission_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
134
+  (1.2ms) CREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id")
135
+  (1.1ms) CREATE INDEX "index_submissions_user_and_assignment" ON "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id")
136
+  (1.2ms) DROP TABLE "coalescing_panda_terms"
137
+  (1.1ms) CREATE TABLE "coalescing_panda_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "code" varchar(255), "sis_id" varchar(255), "canvas_term_id" varchar(255), "start_at" datetime, "end_at" datetime, "workflow_state" varchar(255), "created_at" datetime, "updated_at" datetime) 
138
+  (0.9ms) CREATE INDEX "index_coalescing_panda_terms_on_canvas_term_id" ON "coalescing_panda_terms" ("canvas_term_id")
139
+  (1.0ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")
140
+  (1.2ms) DROP TABLE "coalescing_panda_users"
141
+  (0.8ms) CREATE TABLE "coalescing_panda_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "name" varchar(255), "email" varchar(255), "roles" varchar(255), "workflow_state" varchar(255), "sis_id" varchar(255), "canvas_user_id" varchar(255), "created_at" datetime, "updated_at" datetime) 
142
+  (0.8ms) CREATE INDEX "index_coalescing_panda_users_on_canvas_user_id" ON "coalescing_panda_users" ("canvas_user_id")
143
+  (0.8ms) CREATE INDEX "index_users_account" ON "coalescing_panda_users" ("coalescing_panda_lti_account_id")
144
+  (0.7ms) CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id")
145
+  (0.7ms) DROP TABLE "delayed_jobs"
146
+  (0.8ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar(255), "queue" varchar(255), "created_at" datetime, "updated_at" datetime)
147
+  (0.7ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
148
+  (0.1ms) SELECT version FROM "schema_migrations"
562
149
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
563
150
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
564
- Migrating to AddTypeToEnrollments (20141125185516)
565
-  (0.1ms) begin transaction
566
-  (0.2ms) ALTER TABLE "enrollments" ADD "type" varchar(255)
567
- SQLite3::SQLException: no such table: enrollments: ALTER TABLE "enrollments" ADD "type" varchar(255)
568
-  (0.0ms) rollback transaction
151
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
569
152
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
570
- Migrating to AddTypeToEnrollments (20141125185516)
571
-  (0.1ms) begin transaction
572
-  (0.5ms) ALTER TABLE "coalescing_panda_enrollments" ADD "type" varchar(255)
573
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141125185516"]]
574
-  (0.8ms) commit transaction
575
153
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"