coalescing_panda 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/coalescing_panda/assignment.rb +3 -0
  3. data/app/models/coalescing_panda/course.rb +3 -0
  4. data/app/models/coalescing_panda/enrollment.rb +4 -0
  5. data/app/models/coalescing_panda/lti_account.rb +2 -0
  6. data/app/models/coalescing_panda/section.rb +3 -0
  7. data/app/models/coalescing_panda/submission.rb +4 -0
  8. data/app/models/coalescing_panda/term.rb +2 -0
  9. data/app/models/coalescing_panda/user.rb +3 -0
  10. data/app/models/coalescing_panda/workers/course_miner.rb +1 -0
  11. data/db/migrate/20131118211442_create_coalescing_panda_lti_accounts.rb +2 -0
  12. data/db/migrate/20141119225319_create_coalescing_panda_terms.rb +3 -3
  13. data/db/migrate/20141119225721_create_coalescing_panda_courses.rb +4 -5
  14. data/db/migrate/20141120151432_create_coalescing_panda_sections.rb +3 -4
  15. data/db/migrate/20141120151940_create_coalescing_panda_assignments.rb +3 -6
  16. data/db/migrate/20141120152458_create_coalescing_panda_users.rb +3 -4
  17. data/db/migrate/20141120152546_create_coalescing_panda_submissions.rb +4 -4
  18. data/db/migrate/20141120153135_create_coalescing_panda_enrollments.rb +5 -5
  19. data/lib/coalescing_panda/version.rb +1 -1
  20. data/spec/dummy/app/models/account.rb +7 -0
  21. data/spec/dummy/db/development.sqlite3 +0 -0
  22. data/spec/dummy/db/schema.rb +28 -35
  23. data/spec/dummy/db/test.sqlite3 +0 -0
  24. data/spec/dummy/log/development.log +513 -92
  25. data/spec/dummy/log/test.log +62415 -0
  26. data/spec/factories/accounts.rb +5 -0
  27. data/spec/factories/courses.rb +5 -1
  28. data/spec/factories/enrollments.rb +5 -2
  29. data/spec/factories/sections.rb +4 -1
  30. data/spec/factories/submissions.rb +3 -2
  31. data/spec/factories/terms.rb +9 -0
  32. data/spec/factories/users.rb +1 -0
  33. data/spec/helpers/coalescing_panda/canvas_batches_helper_spec.rb +17 -0
  34. data/spec/models/coalescing_panda/assignment_spec.rb +20 -0
  35. data/spec/models/coalescing_panda/course_spec.rb +26 -0
  36. data/spec/models/coalescing_panda/enrollment_spec.rb +32 -0
  37. data/spec/models/coalescing_panda/lti_account_spec.rb +6 -0
  38. data/spec/models/coalescing_panda/section_spec.rb +20 -0
  39. data/spec/models/coalescing_panda/submission_spec.rb +31 -0
  40. data/spec/models/coalescing_panda/term_spec.rb +12 -0
  41. data/spec/models/coalescing_panda/user_spec.rb +20 -0
  42. data/spec/models/coalescing_panda/workers/course_miner_spec.rb +7 -2
  43. metadata +11 -5
  44. data/db/migrate/20140722210735_add_settings_to_coalescing_panda_lti_account.rb +0 -5
  45. data/db/migrate/20141120205729_add_canvas_account_id_to_lti_account.rb +0 -5
  46. data/db/migrate/20141125185516_add_type_to_enrollments.rb +0 -5
Binary file
@@ -1,63 +1,363 @@
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")
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"
3
137
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
138
  Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)
5
139
   (0.0ms) begin transaction
6
140
   (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) 
7
141
  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"]]
8
190
   (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
9
222
  Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)
10
223
   (0.0ms) begin transaction
11
224
   (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
225
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]
13
-  (0.6ms) commit transaction
226
+  (0.8ms) commit transaction
14
227
  Migrating to CreateCoalescingPandaLtiNonces (20131119165343)
15
228
   (0.0ms) 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) 
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) 
17
230
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]
18
-  (0.5ms) commit transaction
231
+  (0.6ms) commit transaction
19
232
  Migrating to AddSettingsToCoalescingPandaLtiAccount (20140722210735)
20
233
   (0.0ms) begin transaction
21
234
   (0.3ms) ALTER TABLE "coalescing_panda_lti_accounts" ADD "settings" text
22
235
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140722210735"]]
23
-  (0.4ms) commit transaction
236
+  (0.7ms) commit transaction
24
237
  Migrating to CreateCoalescingPandaSessions (20140904223159)
25
238
   (0.1ms) begin transaction
26
239
   (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) 
27
240
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]
28
-  (0.5ms) commit transaction
241
+  (0.8ms) commit transaction
29
242
  Migrating to CreateCoalescingPandaTerms (20141119225319)
30
243
   (0.0ms) begin transaction
31
244
   (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) 
32
245
   (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_canvas_term_id" ON "coalescing_panda_terms" ("canvas_term_id")
33
246
   (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")
34
247
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]]
35
-  (0.5ms) commit transaction
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"
36
254
  Migrating to CreateCoalescingPandaCourses (20141119225721)
37
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
38
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) 
39
273
   (0.1ms) CREATE INDEX "index_courses_account" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
40
274
   (0.1ms) CREATE INDEX "index_courses_term" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
41
275
   (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
42
276
   (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")
43
277
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]
44
-  (0.5ms) commit transaction
278
+  (0.9ms) commit transaction
45
279
  Migrating to CreateCoalescingPandaSections (20141120151432)
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")
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")
49
283
   (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
50
284
   (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
51
285
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]
52
-  (0.6ms) commit transaction
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
326
+ Migrating to CreateCoalescingPandaCourses (20141119225721)
327
+  (0.0ms) begin transaction
328
+  (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) 
329
+  (0.1ms) CREATE INDEX "index_courses_account" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
330
+  (0.1ms) CREATE INDEX "index_courses_term" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
331
+  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_canvas_course_id" ON "coalescing_panda_courses" ("canvas_course_id")
332
+  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")
333
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]
334
+  (0.7ms) commit transaction
335
+ 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")
339
+  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_canvas_section_id" ON "coalescing_panda_sections" ("canvas_section_id")
340
+  (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id")
341
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]
342
+  (0.8ms) commit transaction
53
343
  Migrating to CreateCoalescingPandaAssignments (20141120151940)
54
344
   (0.0ms) begin transaction
55
345
   (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)
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
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"
61
361
  Migrating to CreateCoalescingPandaUsers (20141120152458)
62
362
   (0.0ms) begin transaction
63
363
   (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) 
@@ -65,90 +365,211 @@ Migrating to CreateCoalescingPandaUsers (20141120152458)
65
365
   (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_canvas_user_id" ON "coalescing_panda_users" ("canvas_user_id")
66
366
   (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id")
67
367
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152458"]]
68
-  (0.5ms) commit transaction
368
+  (7.2ms) commit transaction
69
369
  Migrating to CreateCoalescingPandaSubmissions (20141120152546)
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
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"
374
+ 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
76
381
  Migrating to CreateCoalescingPandaEnrollments (20141120153135)
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
84
- Migrating to AddCanvasAccountIdToLtiAccount (20141120205729)
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"
386
+ 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
85
396
   (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
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"
540
+ 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
89
545
  Migrating to CreateCoalescingPandaCanvasBatches (20141121174846)
90
546
   (0.0ms) begin transaction
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) 
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) 
92
548
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141121174846"]]
93
-  (0.5ms) commit transaction
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"
94
556
  Migrating to CreateDelayedJobs (20141124160857)
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) 
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) 
97
559
   (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")
98
560
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141124160857"]]
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"
561
+  (0.9ms) commit transaction
149
562
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
150
563
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
151
- 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
152
569
  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
153
575
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
154
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"