[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m [1m[35m (0.0ms)[0m select sqlite_version(*) [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m CREATE TABLE "coalescing_panda_canvas_api_auths" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" varchar, "api_domain" varchar, "api_token" varchar, "created_at" datetime, "updated_at" datetime) [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131114150001"]] [1m[35m (1.0ms)[0m commit transaction Migrating to CreateCoalescingPandaLtiAccounts (20131118211442) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "coalescing_panda_lti_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "key" varchar, "secret" varchar, "oauth2_client_id" varchar, "oauth2_client_key" varchar, "canvas_account_id" varchar, "settings" text, "created_at" datetime, "updated_at" datetime) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131118211442"]] [1m[35m (0.7ms)[0m commit transaction Migrating to CreateCoalescingPandaLtiNonces (20131119165343) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar, "timestamp" datetime) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131119165343"]] [1m[35m (0.7ms)[0m commit transaction Migrating to CreateCoalescingPandaSessions (20140904223159) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar, "data" text, "created_at" datetime, "updated_at" datetime) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140904223159"]] [1m[35m (0.6ms)[0m commit transaction Migrating to CreateCoalescingPandaTerms (20141119225319) [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m CREATE TABLE "coalescing_panda_terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer NOT NULL, "name" varchar, "code" varchar, "sis_id" varchar, "canvas_term_id" varchar NOT NULL, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "created_at" datetime, "updated_at" datetime) [1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_terms_account" ON "coalescing_panda_terms" ("canvas_term_id", "coalescing_panda_lti_account_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_terms_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_terms_account' AND type='index' [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m Migrating to CreateCoalescingPandaCourses (20141119225721) [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mCREATE TABLE "coalescing_panda_courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer NOT NULL, "coalescing_panda_term_id" integer, "name" varchar, "canvas_course_id" varchar NOT NULL, "sis_id" varchar, "start_at" datetime, "conclude_at" datetime, "workflow_state" varchar, "course_code" varchar, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_courses_account" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_courses_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_courses_account' AND type='index' [0m [1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_courses_term" ON "coalescing_panda_courses" ("coalescing_panda_term_id", "canvas_course_id") [1m[36m (0.0ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_courses_term' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_courses_term' AND type='index' [0m [1m[35m (0.0ms)[0m SELECT sql FROM sqlite_master WHERE name='index_courses_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_courses_account' AND type='index' [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m Migrating to CreateCoalescingPandaSections (20141120151432) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mCREATE TABLE "coalescing_panda_sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer NOT NULL, "name" varchar, "canvas_section_id" varchar NOT NULL, "sis_id" varchar, "workflow_state" varchar, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_sections_course" ON "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_sections_course' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_sections_course' AND type='index' [0m [1m[35m (0.1ms)[0m CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id") [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141120151432"]] [1m[35m (0.9ms)[0m commit transaction Migrating to CreateCoalescingPandaAssignments (20141120151940) [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m CREATE TABLE "coalescing_panda_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer NOT NULL, "name" varchar, "description" text, "canvas_assignment_id" varchar NOT NULL, "workflow_state" varchar, "points_possible" float, "due_at" datetime, "unlock_at" datetime, "lock_at" datetime, "created_at" datetime, "updated_at" datetime) [1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_assignments_course" ON "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151940"]] [1m[36m (1.0ms)[0m [1mcommit transaction[0m Migrating to CreateCoalescingPandaUsers (20141120152458) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.5ms)[0m [1mCREATE TABLE "coalescing_panda_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer NOT NULL, "name" varchar, "email" varchar, "roles" varchar, "workflow_state" varchar, "sis_id" varchar, "canvas_user_id" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_users_account" ON "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_users_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_account' AND type='index' [0m [1m[35m (0.1ms)[0m CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id") [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141120152458"]] [1m[35m (1.0ms)[0m commit transaction Migrating to CreateCoalescingPandaSubmissions (20141120152546) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "coalescing_panda_submissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer NOT NULL, "coalescing_panda_assignment_id" integer NOT NULL, "url" varchar, "grade" varchar, "score" varchar, "submitted_at" datetime, "workflow_state" varchar, "canvas_submission_id" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) [1m[36m (0.5ms)[0m [1mCREATE UNIQUE INDEX "index_submissions_user_and_assignment" ON "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id")[0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_submissions_user_and_assignment' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_submissions_user_and_assignment' AND type='index' [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152546"]] [1m[36m (0.8ms)[0m [1mcommit transaction[0m Migrating to CreateCoalescingPandaEnrollments (20141120153135) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mCREATE TABLE "coalescing_panda_enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_user_id" integer NOT NULL, "coalescing_panda_section_id" integer NOT NULL, "workflow_state" varchar, "sis_id" varchar, "canvas_enrollment_id" varchar NOT NULL, "enrollment_type" varchar, "start_at" datetime, "end_at" datetime, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.3ms)[0m CREATE UNIQUE INDEX "index_enrollments_user_and_section" ON "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "enrollment_type") [1m[36m (0.0ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_enrollments_user_and_section' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_enrollments_user_and_section' AND type='index' [0m [1m[35m (0.1ms)[0m CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id") [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141120153135"]] [1m[35m (1.0ms)[0m commit transaction Migrating to CreateCoalescingPandaCanvasBatches (20141121174846) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "coalescing_panda_canvas_batches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "percent_complete" float DEFAULT 0.0, "status" varchar, "message" text, "created_at" datetime, "updated_at" datetime) [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20141121174846"]] [1m[35m (0.5ms)[0m commit transaction Migrating to CreateDelayedJobs (20141124160857) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m 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, "queue" varchar, "created_at" datetime, "updated_at" datetime) [1m[36m (0.1ms)[0m [1mCREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141124160857"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m Migrating to AddSubmissionTypesToAssignments (20141208221740) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.5ms)[0m [1mALTER TABLE "coalescing_panda_assignments" ADD "submission_types" text[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141208221740"]] [1m[36m (0.5ms)[0m [1mcommit transaction[0m Migrating to AddGroupCategoryIdToAssignment (20150106175418) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mALTER TABLE "coalescing_panda_assignments" ADD "group_category_id" integer[0m [1m[35m (0.1ms)[0m ALTER TABLE "coalescing_panda_assignments" ADD "grade_group_students_individually" boolean [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150106175418"]] [1m[35m (0.6ms)[0m commit transaction Migrating to AddPublishedToAssignments (20150106180131) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m ALTER TABLE "coalescing_panda_assignments" ADD "published" boolean [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150106180131"]] [1m[35m (0.6ms)[0m commit transaction Migrating to CreateCoalescingPandaGroups (20150107205405) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m CREATE TABLE "coalescing_panda_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "context_id" integer, "context_type" varchar, "description" varchar, "group_category_id" varchar, "canvas_group_id" varchar, "name" varchar, "members_count" integer, "created_at" datetime, "updated_at" datetime) [1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_groups_context_and_group_id" ON "coalescing_panda_groups" ("context_id", "canvas_group_id")[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150107205405"]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m Migrating to CreateCoalescingPandaGroupMemberships (20150107205413) [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.5ms)[0m [1mCREATE TABLE "coalescing_panda_group_memberships" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_group_id" integer, "coalescing_panda_user_id" integer, "canvas_group_membership_id" varchar, "workflow_state" varchar, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.5ms)[0m CREATE UNIQUE INDEX "index_group_memberships_user_and_group" ON "coalescing_panda_group_memberships" ("coalescing_panda_group_id", "coalescing_panda_user_id") [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150107205413"]] [1m[35m (1.0ms)[0m commit transaction Migrating to AddContextToCanvasBatch (20150210180516) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m ALTER TABLE "coalescing_panda_canvas_batches" ADD "context_id" integer [1m[36m (0.1ms)[0m [1mALTER TABLE "coalescing_panda_canvas_batches" ADD "context_type" varchar[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150210180516"]] [1m[36m (0.6ms)[0m [1mcommit transaction[0m Migrating to CreateCoalescingPandaAssignmentGroups (20150506183335) [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.4ms)[0m [1mCREATE TABLE "coalescing_panda_assignment_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_course_id" integer NOT NULL, "context_id" integer, "context_type" varchar, "canvas_assignment_group_id" varchar, "name" varchar, "position" integer, "group_weight" float, "workflow_state" varchar, "created_at" datetime, "updated_at" datetime) [0m [1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_assignment_group_course" ON "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id") [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_assignment_group_course' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assignment_group_course' AND type='index' [0m [1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_assignment_group_context" ON "coalescing_panda_assignment_groups" ("canvas_assignment_group_id", "context_id", "context_type") [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150506183335"]] [1m[35m (0.8ms)[0m commit transaction Migrating to AddAssignmentGroupIdToAssignments (20150506192717) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m ALTER TABLE "coalescing_panda_assignments" ADD "coalescing_panda_assignment_group_id" integer [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150506192717"]] [1m[35m (0.5ms)[0m commit transaction Migrating to AddAccountToCanvasBatches (20150526144713) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m ALTER TABLE "coalescing_panda_canvas_batches" ADD "coalescing_panda_lti_account_id" integer [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150526144713"]] [1m[35m (0.6ms)[0m commit transaction Migrating to AddOptionToCanvasBatches (20150602205257) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.6ms)[0m ALTER TABLE "coalescing_panda_canvas_batches" ADD "options" text [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150602205257"]] [1m[35m (0.6ms)[0m commit transaction Migrating to AddGroupModeratorToGroupMemberships (20150708192717) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m ALTER TABLE "coalescing_panda_group_memberships" ADD "moderator" boolean [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150708192717"]] [1m[35m (0.5ms)[0m commit transaction Migrating to AddLeaderIdToGroups (20150709192717) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m ALTER TABLE "coalescing_panda_groups" ADD "leader_id" integer [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150709192717"]] [1m[35m (0.5ms)[0m commit transaction Migrating to CreateCoalescingPandaGroupCategories (20150714205405) [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.5ms)[0m CREATE TABLE "coalescing_panda_group_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "context_id" integer, "context_type" varchar, "canvas_group_category_id" integer, "name" varchar, "created_at" datetime, "updated_at" datetime) [1m[36m (0.1ms)[0m [1mCREATE INDEX "index_group_categories_context_and_context_type" ON "coalescing_panda_group_categories" ("context_id", "context_type")[0m [1m[35m (0.2ms)[0m ALTER TABLE "coalescing_panda_assignments" ADD "coalescing_panda_group_category_id" integer [1m[36m (0.1ms)[0m [1mALTER TABLE "coalescing_panda_groups" ADD "coalescing_panda_group_category_id" integer[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150714205405"]] [1m[36m (0.7ms)[0m [1mcommit transaction[0m Migrating to AddFieldsToUsers (20150811140030) [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mALTER TABLE "coalescing_panda_users" ADD "login_id" varchar[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150811140030"]] [1m[36m (0.5ms)[0m [1mcommit transaction[0m Migrating to AddRefreshSettingsToCanvasApiAuth (20151209155923) [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mALTER TABLE "coalescing_panda_canvas_api_auths" ADD "refresh_token" varchar[0m [1m[35m (0.1ms)[0m ALTER TABLE "coalescing_panda_canvas_api_auths" ADD "expires_at" datetime [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151209155923"]] [1m[35m (0.7ms)[0m commit transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.2ms)[0m SELECT sql FROM sqlite_master WHERE name='index_assignment_group_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assignment_group_context' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_assignment_group_course' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assignment_group_course' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_assignments_course' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assignments_course' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_coalescing_panda_courses_on_sis_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coalescing_panda_courses_on_sis_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_courses_term' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_courses_term' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_courses_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_courses_account' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_coalescing_panda_enrollments_on_sis_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coalescing_panda_enrollments_on_sis_id' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_enrollments_user_and_section' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_enrollments_user_and_section' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_group_categories_context_and_context_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_group_categories_context_and_context_type' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_group_memberships_user_and_group' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_group_memberships_user_and_group' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_groups_context_and_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_groups_context_and_group_id' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_coalescing_panda_sections_on_sis_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coalescing_panda_sections_on_sis_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_sections_course' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_sections_course' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_coalescing_panda_submissions_on_canvas_submission_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coalescing_panda_submissions_on_canvas_submission_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_submissions_user_and_assignment' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_submissions_user_and_assignment' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_coalescing_panda_terms_on_sis_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coalescing_panda_terms_on_sis_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_terms_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_terms_account' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='index_coalescing_panda_users_on_sis_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coalescing_panda_users_on_sis_id' AND type='index' [0m [1m[35m (0.1ms)[0m SELECT sql FROM sqlite_master WHERE name='index_users_account' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_account' AND type='index' [1m[36m (0.1ms)[0m [1m SELECT sql FROM sqlite_master WHERE name='delayed_jobs_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='delayed_jobs_priority' AND type='index' [0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2015-12-09 17:34:38.889127"], ["updated_at", "2015-12-09 17:34:38.889127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 17:34:38.948299"], ["updated_at", "2015-12-09 17:34:38.948299"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.1ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2015-12-09 17:34:38.978820"], ["updated_at", "2015-12-09 17:34:38.978820"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 42ms (Views: 14.4ms | ActiveRecord: 0.6ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.024755"], ["updated_at", "2015-12-09 17:34:39.024755"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.036305"], ["updated_at", "2015-12-09 17:34:39.036305"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2015-12-09 17:34:39.041580"], ["updated_at", "2015-12-09 17:34:39.041580"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 17:34:39.044166"], ["updated_at", "2015-12-09 17:34:39.044166"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.122642"], ["updated_at", "2015-12-09 17:34:39.122642"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.125585"], ["updated_at", "2015-12-09 17:34:39.125585"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2015-12-09 17:34:39.127264"], ["updated_at", "2015-12-09 17:34:39.127264"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2015-12-09 17:34:39.128613"], ["updated_at", "2015-12-09 17:34:39.128613"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.133919"], ["updated_at", "2015-12-09 17:34:39.133919"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.136598"], ["updated_at", "2015-12-09 17:34:39.136598"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2015-12-09 17:34:39.138276"], ["updated_at", "2015-12-09 17:34:39.138276"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2015-12-09 17:34:39.139354"], ["updated_at", "2015-12-09 17:34:39.139354"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.156374"], ["updated_at", "2015-12-09 17:34:39.156374"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.159562"], ["updated_at", "2015-12-09 17:34:39.159562"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2015-12-09 17:34:39.161369"], ["updated_at", "2015-12-09 17:34:39.161369"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2015-12-09 17:34:39.162527"], ["updated_at", "2015-12-09 17:34:39.162527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.168865"], ["updated_at", "2015-12-09 17:34:39.168865"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.173139"], ["updated_at", "2015-12-09 17:34:39.173139"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2015-12-09 17:34:39.175040"], ["updated_at", "2015-12-09 17:34:39.175040"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2015-12-09 17:34:39.176203"], ["updated_at", "2015-12-09 17:34:39.176203"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.180769"], ["updated_at", "2015-12-09 17:34:39.180769"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.183657"], ["updated_at", "2015-12-09 17:34:39.183657"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2015-12-09 17:34:39.185371"], ["updated_at", "2015-12-09 17:34:39.185371"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2015-12-09 17:34:39.186444"], ["updated_at", "2015-12-09 17:34:39.186444"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 17:34:39.188099"], ["updated_at", "2015-12-09 17:34:39.188099"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 17:34:39.194926"], ["updated_at", "2015-12-09 17:34:39.194926"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.200447"], ["updated_at", "2015-12-09 17:34:39.200447"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.203742"], ["updated_at", "2015-12-09 17:34:39.203742"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2015-12-09 17:34:39.205628"], ["updated_at", "2015-12-09 17:34:39.205628"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2015-12-09 17:34:39.206884"], ["updated_at", "2015-12-09 17:34:39.206884"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2015-12-09 17:34:39.212857"], ["updated_at", "2015-12-09 17:34:39.212857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 17:34:39.231864"], ["updated_at", "2015-12-09 17:34:39.231864"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2015-12-09 17:34:39.233721"], ["updated_at", "2015-12-09 17:34:39.233721"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 17:34:39.235133"], ["updated_at", "2015-12-09 17:34:39.235133"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.248215"], ["updated_at", "2015-12-09 17:34:39.248215"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.251292"], ["updated_at", "2015-12-09 17:34:39.251292"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2015-12-09 17:34:39.253035"], ["updated_at", "2015-12-09 17:34:39.253035"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.258729"], ["updated_at", "2015-12-09 17:34:39.258729"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.261882"], ["updated_at", "2015-12-09 17:34:39.261882"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2015-12-09 17:34:39.263698"], ["updated_at", "2015-12-09 17:34:39.263698"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.267930"], ["updated_at", "2015-12-09 17:34:39.267930"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.272968"], ["updated_at", "2015-12-09 17:34:39.272968"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2015-12-09 17:34:39.275127"], ["updated_at", "2015-12-09 17:34:39.275127"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 17:34:39.276277"], ["updated_at", "2015-12-09 17:34:39.276277"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.279290"], ["updated_at", "2015-12-09 17:34:39.279290"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2015-12-09 17:34:39.280884"], ["updated_at", "2015-12-09 17:34:39.280884"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 17:34:39.281962"], ["updated_at", "2015-12-09 17:34:39.281962"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.286297"], ["updated_at", "2015-12-09 17:34:39.286297"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2015-12-09 17:34:39.288026"], ["updated_at", "2015-12-09 17:34:39.288026"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.290903"], ["updated_at", "2015-12-09 17:34:39.290903"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 17:34:39.292680"], ["updated_at", "2015-12-09 17:34:39.292680"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.295322"], ["updated_at", "2015-12-09 17:34:39.295322"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 17:34:39.297265"], ["updated_at", "2015-12-09 17:34:39.297265"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.301874"], ["updated_at", "2015-12-09 17:34:39.301874"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.304959"], ["updated_at", "2015-12-09 17:34:39.304959"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2015-12-09 17:34:39.306778"], ["updated_at", "2015-12-09 17:34:39.306778"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.369981"], ["updated_at", "2015-12-09 17:34:39.369981"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2015-12-09 17:34:39.372487"], ["updated_at", "2015-12-09 17:34:39.372487"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.381220"], ["updated_at", "2015-12-09 17:34:39.381220"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.384895"], ["updated_at", "2015-12-09 17:34:39.384895"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2015-12-09 17:34:39.386413"], ["updated_at", "2015-12-09 17:34:39.386413"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2015-12-09 17:34:39.387605"], ["updated_at", "2015-12-09 17:34:39.387605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 17:34:39.389504"], ["updated_at", "2015-12-09 17:34:39.389504"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.396191"], ["updated_at", "2015-12-09 17:34:39.396191"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2015-12-09 17:34:39.398386"], ["updated_at", "2015-12-09 17:34:39.398386"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.401137"], ["updated_at", "2015-12-09 17:34:39.401137"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.405125"], ["updated_at", "2015-12-09 17:34:39.405125"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2015-12-09 17:34:39.406988"], ["updated_at", "2015-12-09 17:34:39.406988"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2015-12-09 17:34:39.408628"], ["updated_at", "2015-12-09 17:34:39.408628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2015-12-09 17:34:39.410216"], ["updated_at", "2015-12-09 17:34:39.410216"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.416373"], ["updated_at", "2015-12-09 17:34:39.416373"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2015-12-09 17:34:39.418440"], ["updated_at", "2015-12-09 17:34:39.418440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.421096"], ["updated_at", "2015-12-09 17:34:39.421096"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.424236"], ["updated_at", "2015-12-09 17:34:39.424236"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2015-12-09 17:34:39.425835"], ["updated_at", "2015-12-09 17:34:39.425835"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2015-12-09 17:34:39.427074"], ["updated_at", "2015-12-09 17:34:39.427074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2015-12-09 17:34:39.428494"], ["updated_at", "2015-12-09 17:34:39.428494"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.434169"], ["updated_at", "2015-12-09 17:34:39.434169"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2015-12-09 17:34:39.436113"], ["updated_at", "2015-12-09 17:34:39.436113"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.438657"], ["updated_at", "2015-12-09 17:34:39.438657"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.441568"], ["updated_at", "2015-12-09 17:34:39.441568"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2015-12-09 17:34:39.443360"], ["updated_at", "2015-12-09 17:34:39.443360"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2015-12-09 17:34:39.444675"], ["updated_at", "2015-12-09 17:34:39.444675"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2015-12-09 17:34:39.446309"], ["updated_at", "2015-12-09 17:34:39.446309"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 17:34:39.448552"], ["updated_at", "2015-12-09 17:34:39.448552"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 17:34:39.450744"], ["updated_at", "2015-12-09 17:34:39.450744"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.458363"], ["updated_at", "2015-12-09 17:34:39.458363"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2015-12-09 17:34:39.461060"], ["updated_at", "2015-12-09 17:34:39.461060"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.464035"], ["updated_at", "2015-12-09 17:34:39.464035"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.466820"], ["updated_at", "2015-12-09 17:34:39.466820"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2015-12-09 17:34:39.468314"], ["updated_at", "2015-12-09 17:34:39.468314"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2015-12-09 17:34:39.469440"], ["updated_at", "2015-12-09 17:34:39.469440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2015-12-09 17:34:39.470564"], ["updated_at", "2015-12-09 17:34:39.470564"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 17:34:39.472092"], ["updated_at", "2015-12-09 17:34:39.472092"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2015-12-09 17:34:39.473764"], ["updated_at", "2015-12-09 17:34:39.473764"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.478801"], ["updated_at", "2015-12-09 17:34:39.478801"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2015-12-09 17:34:39.480807"], ["updated_at", "2015-12-09 17:34:39.480807"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.484244"], ["updated_at", "2015-12-09 17:34:39.484244"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.487661"], ["updated_at", "2015-12-09 17:34:39.487661"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2015-12-09 17:34:39.489266"], ["updated_at", "2015-12-09 17:34:39.489266"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2015-12-09 17:34:39.490478"], ["updated_at", "2015-12-09 17:34:39.490478"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2015-12-09 17:34:39.491604"], ["updated_at", "2015-12-09 17:34:39.491604"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.505879"], ["updated_at", "2015-12-09 17:34:39.505879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.509064"], ["updated_at", "2015-12-09 17:34:39.509064"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2015-12-09 17:34:39.510808"], ["updated_at", "2015-12-09 17:34:39.510808"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2015-12-09 17:34:39.511951"], ["updated_at", "2015-12-09 17:34:39.511951"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.517122"], ["updated_at", "2015-12-09 17:34:39.517122"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.520859"], ["updated_at", "2015-12-09 17:34:39.520859"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2015-12-09 17:34:39.522914"], ["updated_at", "2015-12-09 17:34:39.522914"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2015-12-09 17:34:39.524316"], ["updated_at", "2015-12-09 17:34:39.524316"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.530204"], ["updated_at", "2015-12-09 17:34:39.530204"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.533401"], ["updated_at", "2015-12-09 17:34:39.533401"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2015-12-09 17:34:39.535174"], ["updated_at", "2015-12-09 17:34:39.535174"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2015-12-09 17:34:39.536692"], ["updated_at", "2015-12-09 17:34:39.536692"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 17:34:39.539306"], ["updated_at", "2015-12-09 17:34:39.539306"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 17:34:39.541501"], ["updated_at", "2015-12-09 17:34:39.541501"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.546949"], ["updated_at", "2015-12-09 17:34:39.546949"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.550223"], ["updated_at", "2015-12-09 17:34:39.550223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2015-12-09 17:34:39.552058"], ["updated_at", "2015-12-09 17:34:39.552058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2015-12-09 17:34:39.553212"], ["updated_at", "2015-12-09 17:34:39.553212"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.565825"], ["updated_at", "2015-12-09 17:34:39.565825"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2015-12-09 17:34:39.568204"], ["updated_at", "2015-12-09 17:34:39.568204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.573330"], ["updated_at", "2015-12-09 17:34:39.573330"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.576301"], ["updated_at", "2015-12-09 17:34:39.576301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2015-12-09 17:34:39.577810"], ["updated_at", "2015-12-09 17:34:39.577810"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2015-12-09 17:34:39.579013"], ["updated_at", "2015-12-09 17:34:39.579013"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2015-12-09 17:34:39.580132"], ["updated_at", "2015-12-09 17:34:39.580132"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.587611"], ["updated_at", "2015-12-09 17:34:39.587611"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2015-12-09 17:34:39.589742"], ["updated_at", "2015-12-09 17:34:39.589742"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.647183"], ["updated_at", "2015-12-09 17:34:39.647183"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.650541"], ["updated_at", "2015-12-09 17:34:39.650541"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2015-12-09 17:34:39.652592"], ["updated_at", "2015-12-09 17:34:39.652592"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2015-12-09 17:34:39.654933"], ["updated_at", "2015-12-09 17:34:39.654933"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2015-12-09 17:34:39.656738"], ["updated_at", "2015-12-09 17:34:39.656738"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.663902"], ["updated_at", "2015-12-09 17:34:39.663902"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2015-12-09 17:34:39.666315"], ["updated_at", "2015-12-09 17:34:39.666315"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.669038"], ["updated_at", "2015-12-09 17:34:39.669038"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.671824"], ["updated_at", "2015-12-09 17:34:39.671824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2015-12-09 17:34:39.673294"], ["updated_at", "2015-12-09 17:34:39.673294"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2015-12-09 17:34:39.674405"], ["updated_at", "2015-12-09 17:34:39.674405"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2015-12-09 17:34:39.675578"], ["updated_at", "2015-12-09 17:34:39.675578"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.680714"], ["updated_at", "2015-12-09 17:34:39.680714"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2015-12-09 17:34:39.682659"], ["updated_at", "2015-12-09 17:34:39.682659"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.685403"], ["updated_at", "2015-12-09 17:34:39.685403"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.688123"], ["updated_at", "2015-12-09 17:34:39.688123"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2015-12-09 17:34:39.689611"], ["updated_at", "2015-12-09 17:34:39.689611"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2015-12-09 17:34:39.690743"], ["updated_at", "2015-12-09 17:34:39.690743"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2015-12-09 17:34:39.691843"], ["updated_at", "2015-12-09 17:34:39.691843"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 17:34:39.693390"], ["updated_at", "2015-12-09 17:34:39.693390"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 17:34:39.695067"], ["updated_at", "2015-12-09 17:34:39.695067"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.700549"], ["updated_at", "2015-12-09 17:34:39.700549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2015-12-09 17:34:39.703122"], ["updated_at", "2015-12-09 17:34:39.703122"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.706968"], ["updated_at", "2015-12-09 17:34:39.706968"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.709801"], ["updated_at", "2015-12-09 17:34:39.709801"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2015-12-09 17:34:39.711267"], ["updated_at", "2015-12-09 17:34:39.711267"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2015-12-09 17:34:39.712353"], ["updated_at", "2015-12-09 17:34:39.712353"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2015-12-09 17:34:39.713488"], ["updated_at", "2015-12-09 17:34:39.713488"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 17:34:39.715047"], ["updated_at", "2015-12-09 17:34:39.715047"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2015-12-09 17:34:39.716678"], ["updated_at", "2015-12-09 17:34:39.716678"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.721537"], ["updated_at", "2015-12-09 17:34:39.721537"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2015-12-09 17:34:39.723996"], ["updated_at", "2015-12-09 17:34:39.723996"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.727510"], ["updated_at", "2015-12-09 17:34:39.727510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.730694"], ["updated_at", "2015-12-09 17:34:39.730694"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2015-12-09 17:34:39.732324"], ["updated_at", "2015-12-09 17:34:39.732324"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2015-12-09 17:34:39.733464"], ["updated_at", "2015-12-09 17:34:39.733464"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2015-12-09 17:34:39.734832"], ["updated_at", "2015-12-09 17:34:39.734832"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.741314"], ["updated_at", "2015-12-09 17:34:39.741314"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.746295"], ["updated_at", "2015-12-09 17:34:39.746295"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 17:34:39.748879"], ["updated_at", "2015-12-09 17:34:39.748879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 17:34:39.751366"], ["updated_at", "2015-12-09 17:34:39.751366"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.760802"], ["updated_at", "2015-12-09 17:34:39.760802"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.766825"], ["updated_at", "2015-12-09 17:34:39.766825"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.771507"], ["updated_at", "2015-12-09 17:34:39.771507"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 17:34:39.774530"], ["updated_at", "2015-12-09 17:34:39.774530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 17:34:39.777245"], ["updated_at", "2015-12-09 17:34:39.777245"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.782971"], ["updated_at", "2015-12-09 17:34:39.782971"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.791585"], ["updated_at", "2015-12-09 17:34:39.791585"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.826825"], ["updated_at", "2015-12-09 17:34:39.826825"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.828924"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.834982"], ["updated_at", "2015-12-09 17:34:39.834982"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.837968"], ["updated_at", "2015-12-09 17:34:39.837968"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.839485"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.844232"], ["updated_at", "2015-12-09 17:34:39.844232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.847178"], ["updated_at", "2015-12-09 17:34:39.847178"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.848623"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 17:34:39.860641"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:39.864821"], ["updated_at", "2015-12-09 17:34:39.864821"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:39.866711"], ["updated_at", "2015-12-09 17:34:39.866711"]] [1m[35m (51.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:39.920541"], ["updated_at", "2015-12-09 17:34:39.920541"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 17:34:39.922870"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 17:34:39.924027"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.929331"], ["updated_at", "2015-12-09 17:34:39.929331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.932457"], ["updated_at", "2015-12-09 17:34:39.932457"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.933897"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2015-12-09 17:34:39.937383"], ["updated_at", "2015-12-09 17:34:39.937383"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.0ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2015-12-09 17:34:39.939439"], ["updated_at", "2015-12-09 17:34:39.939439"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.945350"], ["updated_at", "2015-12-09 17:34:39.945350"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.948437"], ["updated_at", "2015-12-09 17:34:39.948437"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.949873"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:39.951824"], ["updated_at", "2015-12-09 17:34:39.951824"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:39.953518"], ["updated_at", "2015-12-09 17:34:39.953518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:39.954999"], ["updated_at", "2015-12-09 17:34:39.954999"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.960642"], ["updated_at", "2015-12-09 17:34:39.960642"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.964065"], ["updated_at", "2015-12-09 17:34:39.964065"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.965654"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.971243"], ["updated_at", "2015-12-09 17:34:39.971243"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.974893"], ["updated_at", "2015-12-09 17:34:39.974893"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.976376"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.982628"], ["updated_at", "2015-12-09 17:34:39.982628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:39.985499"], ["updated_at", "2015-12-09 17:34:39.985499"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:39.986842"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 17:34:39.989360"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:39.997291"], ["updated_at", "2015-12-09 17:34:39.997291"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.000344"], ["updated_at", "2015-12-09 17:34:40.000344"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2015-12-09 17:34:40.002313"], ["updated_at", "2015-12-09 17:34:40.002313"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2015-12-09 17:34:40.003616"], ["updated_at", "2015-12-09 17:34:40.003616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.006302"], ["updated_at", "2015-12-09 17:34:40.006302"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.007791"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.017743"], ["updated_at", "2015-12-09 17:34:40.017743"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.022136"], ["updated_at", "2015-12-09 17:34:40.022136"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2015-12-09 17:34:40.024996"], ["updated_at", "2015-12-09 17:34:40.024996"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2015-12-09 17:34:40.026535"], ["updated_at", "2015-12-09 17:34:40.026535"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.029632"], ["updated_at", "2015-12-09 17:34:40.029632"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.031221"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.038373"], ["updated_at", "2015-12-09 17:34:40.038373"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.041709"], ["updated_at", "2015-12-09 17:34:40.041709"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2015-12-09 17:34:40.043555"], ["updated_at", "2015-12-09 17:34:40.043555"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2015-12-09 17:34:40.044707"], ["updated_at", "2015-12-09 17:34:40.044707"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.047116"], ["updated_at", "2015-12-09 17:34:40.047116"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2015-12-09 17:34:40.048304"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.054841"], ["updated_at", "2015-12-09 17:34:40.054841"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.057858"], ["updated_at", "2015-12-09 17:34:40.057858"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2015-12-09 17:34:40.059623"], ["updated_at", "2015-12-09 17:34:40.059623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2015-12-09 17:34:40.060838"], ["updated_at", "2015-12-09 17:34:40.060838"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.063295"], ["updated_at", "2015-12-09 17:34:40.063295"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.064642"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.073082"], ["updated_at", "2015-12-09 17:34:40.073082"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.076164"], ["updated_at", "2015-12-09 17:34:40.076164"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2015-12-09 17:34:40.078146"], ["updated_at", "2015-12-09 17:34:40.078146"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2015-12-09 17:34:40.079435"], ["updated_at", "2015-12-09 17:34:40.079435"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.082102"], ["updated_at", "2015-12-09 17:34:40.082102"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.083468"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 17:34:40.090251"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.094296"], ["updated_at", "2015-12-09 17:34:40.094296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2015-12-09 17:34:40.096560"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.099431"], ["updated_at", "2015-12-09 17:34:40.099431"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.101161"], ["updated_at", "2015-12-09 17:34:40.101161"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.102683"], ["updated_at", "2015-12-09 17:34:40.102683"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2015-12-09 17:34:40.114194"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.2ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2015-12-09 17:34:40.198205"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.2ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 17:34:40.203230"], ["updated_at", "2015-12-09 17:34:40.203230"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2015-12-09 17:34:40.205696"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "
What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2015-12-09 17:34:40.223634"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2015-12-09 17:34:40.226452"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 17:34:40.238420"], ["updated_at", "2015-12-09 17:34:40.238420"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 17:34:40.240781"], ["updated_at", "2015-12-09 17:34:40.240781"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2015-12-09 17:34:40.242391"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 17:34:40.253020"], ["updated_at", "2015-12-09 17:34:40.253020"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 17:34:40.255739"], ["updated_at", "2015-12-09 17:34:40.255739"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 17:34:40.260802"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 17:34:40.261966"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.270235"], ["updated_at", "2015-12-09 17:34:40.270235"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.273225"], ["updated_at", "2015-12-09 17:34:40.273225"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2015-12-09 17:34:40.275080"], ["updated_at", "2015-12-09 17:34:40.275080"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2015-12-09 17:34:40.276288"], ["updated_at", "2015-12-09 17:34:40.276288"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.279128"], ["updated_at", "2015-12-09 17:34:40.279128"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.280742"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.282788"], ["updated_at", "2015-12-09 17:34:40.282788"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_sections"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.291434"], ["updated_at", "2015-12-09 17:34:40.291434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.295535"], ["updated_at", "2015-12-09 17:34:40.295535"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2015-12-09 17:34:40.297677"], ["updated_at", "2015-12-09 17:34:40.297677"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2015-12-09 17:34:40.298979"], ["updated_at", "2015-12-09 17:34:40.298979"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.301743"], ["updated_at", "2015-12-09 17:34:40.301743"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.303127"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.305312"], ["updated_at", "2015-12-09 17:34:40.305312"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.306889"], ["updated_at", "2015-12-09 17:34:40.306889"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.308535"], ["updated_at", "2015-12-09 17:34:40.308535"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.317378"], ["updated_at", "2015-12-09 17:34:40.317378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.322942"], ["updated_at", "2015-12-09 17:34:40.322942"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2015-12-09 17:34:40.325806"], ["updated_at", "2015-12-09 17:34:40.325806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2015-12-09 17:34:40.327332"], ["updated_at", "2015-12-09 17:34:40.327332"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.330272"], ["updated_at", "2015-12-09 17:34:40.330272"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.331816"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.333983"], ["updated_at", "2015-12-09 17:34:40.333983"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.336127"], ["updated_at", "2015-12-09 17:34:40.336127"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.337957"], ["updated_at", "2015-12-09 17:34:40.337957"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.339449"], ["updated_at", "2015-12-09 17:34:40.339449"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.359824"], ["updated_at", "2015-12-09 17:34:40.359824"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.364253"], ["updated_at", "2015-12-09 17:34:40.364253"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2015-12-09 17:34:40.427898"], ["updated_at", "2015-12-09 17:34:40.427898"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2015-12-09 17:34:40.429548"], ["updated_at", "2015-12-09 17:34:40.429548"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.432365"], ["updated_at", "2015-12-09 17:34:40.432365"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.433780"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 17:34:40.439668"], ["updated_at", "2015-12-09 17:34:40.439668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_categories"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.447132"], ["updated_at", "2015-12-09 17:34:40.447132"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.450170"], ["updated_at", "2015-12-09 17:34:40.450170"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2015-12-09 17:34:40.451946"], ["updated_at", "2015-12-09 17:34:40.451946"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2015-12-09 17:34:40.453150"], ["updated_at", "2015-12-09 17:34:40.453150"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.455578"], ["updated_at", "2015-12-09 17:34:40.455578"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.456900"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 17:34:40.459000"], ["updated_at", "2015-12-09 17:34:40.459000"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignments"[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.476652"], ["updated_at", "2015-12-09 17:34:40.476652"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.479898"], ["updated_at", "2015-12-09 17:34:40.479898"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2015-12-09 17:34:40.481856"], ["updated_at", "2015-12-09 17:34:40.481856"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2015-12-09 17:34:40.482988"], ["updated_at", "2015-12-09 17:34:40.482988"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.485382"], ["updated_at", "2015-12-09 17:34:40.485382"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.486953"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 17:34:40.490969"], ["updated_at", "2015-12-09 17:34:40.490969"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.499117"], ["updated_at", "2015-12-09 17:34:40.499117"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.502233"], ["updated_at", "2015-12-09 17:34:40.502233"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2015-12-09 17:34:40.504544"], ["updated_at", "2015-12-09 17:34:40.504544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2015-12-09 17:34:40.505771"], ["updated_at", "2015-12-09 17:34:40.505771"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.508469"], ["updated_at", "2015-12-09 17:34:40.508469"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.509893"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.512067"], ["updated_at", "2015-12-09 17:34:40.512067"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.514233"], ["updated_at", "2015-12-09 17:34:40.514233"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.515938"], ["updated_at", "2015-12-09 17:34:40.515938"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.517432"], ["updated_at", "2015-12-09 17:34:40.517432"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2015-12-09 17:34:40.546027"], ["updated_at", "2015-12-09 17:34:40.546027"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2015-12-09 17:34:40.549151"], ["updated_at", "2015-12-09 17:34:40.549151"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2015-12-09 17:34:40.552385"], ["updated_at", "2015-12-09 17:34:40.552385"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2015-12-09 17:34:40.555266"], ["updated_at", "2015-12-09 17:34:40.555266"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_submissions" [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.563146"], ["updated_at", "2015-12-09 17:34:40.563146"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.566225"], ["updated_at", "2015-12-09 17:34:40.566225"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2015-12-09 17:34:40.568338"], ["updated_at", "2015-12-09 17:34:40.568338"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2015-12-09 17:34:40.569492"], ["updated_at", "2015-12-09 17:34:40.569492"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.572693"], ["updated_at", "2015-12-09 17:34:40.572693"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.575268"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 17:34:40.578731"], ["updated_at", "2015-12-09 17:34:40.578731"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 17:34:40.583047"], ["updated_at", "2015-12-09 17:34:40.583047"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 17:34:40.586077"], ["updated_at", "2015-12-09 17:34:40.586077"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.595904"], ["updated_at", "2015-12-09 17:34:40.595904"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.598921"], ["updated_at", "2015-12-09 17:34:40.598921"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2015-12-09 17:34:40.600795"], ["updated_at", "2015-12-09 17:34:40.600795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2015-12-09 17:34:40.602778"], ["updated_at", "2015-12-09 17:34:40.602778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.605249"], ["updated_at", "2015-12-09 17:34:40.605249"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.606580"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.608877"], ["updated_at", "2015-12-09 17:34:40.608877"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.611125"], ["updated_at", "2015-12-09 17:34:40.611125"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.612693"], ["updated_at", "2015-12-09 17:34:40.612693"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.614212"], ["updated_at", "2015-12-09 17:34:40.614212"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 17:34:40.687508"], ["updated_at", "2015-12-09 17:34:40.687508"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 17:34:40.689702"], ["updated_at", "2015-12-09 17:34:40.689702"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.700441"], ["updated_at", "2015-12-09 17:34:40.700441"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.703328"], ["updated_at", "2015-12-09 17:34:40.703328"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2015-12-09 17:34:40.705176"], ["updated_at", "2015-12-09 17:34:40.705176"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2015-12-09 17:34:40.706275"], ["updated_at", "2015-12-09 17:34:40.706275"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.708560"], ["updated_at", "2015-12-09 17:34:40.708560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.709885"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 17:34:40.713286"], ["updated_at", "2015-12-09 17:34:40.713286"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.2ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 17:34:40.715806"], ["updated_at", "2015-12-09 17:34:40.715806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.722739"], ["updated_at", "2015-12-09 17:34:40.722739"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.725589"], ["updated_at", "2015-12-09 17:34:40.725589"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2015-12-09 17:34:40.727247"], ["updated_at", "2015-12-09 17:34:40.727247"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2015-12-09 17:34:40.728426"], ["updated_at", "2015-12-09 17:34:40.728426"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.731179"], ["updated_at", "2015-12-09 17:34:40.731179"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.733958"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.737059"], ["updated_at", "2015-12-09 17:34:40.737059"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.740751"], ["updated_at", "2015-12-09 17:34:40.740751"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.742533"], ["updated_at", "2015-12-09 17:34:40.742533"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.744150"], ["updated_at", "2015-12-09 17:34:40.744150"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 17:34:40.757908"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.774370"], ["updated_at", "2015-12-09 17:34:40.774370"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.778293"], ["updated_at", "2015-12-09 17:34:40.778293"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2015-12-09 17:34:40.780337"], ["updated_at", "2015-12-09 17:34:40.780337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2015-12-09 17:34:40.781600"], ["updated_at", "2015-12-09 17:34:40.781600"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.783985"], ["updated_at", "2015-12-09 17:34:40.783985"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.785278"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.787446"], ["updated_at", "2015-12-09 17:34:40.787446"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.789768"], ["updated_at", "2015-12-09 17:34:40.789768"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.791630"], ["updated_at", "2015-12-09 17:34:40.791630"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.793326"], ["updated_at", "2015-12-09 17:34:40.793326"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2015-12-09 17:34:40.807681"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.824874"], ["updated_at", "2015-12-09 17:34:40.824874"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.827867"], ["updated_at", "2015-12-09 17:34:40.827867"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2015-12-09 17:34:40.829911"], ["updated_at", "2015-12-09 17:34:40.829911"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2015-12-09 17:34:40.831018"], ["updated_at", "2015-12-09 17:34:40.831018"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.833369"], ["updated_at", "2015-12-09 17:34:40.833369"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.834694"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.836841"], ["updated_at", "2015-12-09 17:34:40.836841"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.838936"], ["updated_at", "2015-12-09 17:34:40.838936"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.840653"], ["updated_at", "2015-12-09 17:34:40.840653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.842151"], ["updated_at", "2015-12-09 17:34:40.842151"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 17:34:40.855886"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.2ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.929590"], ["updated_at", "2015-12-09 17:34:40.929590"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.933267"], ["updated_at", "2015-12-09 17:34:40.933267"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2015-12-09 17:34:40.935222"], ["updated_at", "2015-12-09 17:34:40.935222"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2015-12-09 17:34:40.936305"], ["updated_at", "2015-12-09 17:34:40.936305"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.940320"], ["updated_at", "2015-12-09 17:34:40.940320"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.942468"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 17:34:40.945332"], ["updated_at", "2015-12-09 17:34:40.945332"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.947943"], ["updated_at", "2015-12-09 17:34:40.947943"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.949683"], ["updated_at", "2015-12-09 17:34:40.949683"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 17:34:40.951252"], ["updated_at", "2015-12-09 17:34:40.951252"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 17:34:40.964921"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2015-12-09 17:34:40.971007"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.981127"], ["updated_at", "2015-12-09 17:34:40.981127"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.983955"], ["updated_at", "2015-12-09 17:34:40.983955"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2015-12-09 17:34:40.985907"], ["updated_at", "2015-12-09 17:34:40.985907"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2015-12-09 17:34:40.987041"], ["updated_at", "2015-12-09 17:34:40.987041"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:40.989787"], ["updated_at", "2015-12-09 17:34:40.989787"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:40.991650"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:40.999516"], ["updated_at", "2015-12-09 17:34:40.999516"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.002679"], ["updated_at", "2015-12-09 17:34:41.002679"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2015-12-09 17:34:41.004460"], ["updated_at", "2015-12-09 17:34:41.004460"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2015-12-09 17:34:41.005588"], ["updated_at", "2015-12-09 17:34:41.005588"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.008033"], ["updated_at", "2015-12-09 17:34:41.008033"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.009327"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.016518"], ["updated_at", "2015-12-09 17:34:41.016518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.019560"], ["updated_at", "2015-12-09 17:34:41.019560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2015-12-09 17:34:41.021462"], ["updated_at", "2015-12-09 17:34:41.021462"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2015-12-09 17:34:41.023793"], ["updated_at", "2015-12-09 17:34:41.023793"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.027286"], ["updated_at", "2015-12-09 17:34:41.027286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.029047"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.037123"], ["updated_at", "2015-12-09 17:34:41.037123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.039931"], ["updated_at", "2015-12-09 17:34:41.039931"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2015-12-09 17:34:41.041711"], ["updated_at", "2015-12-09 17:34:41.041711"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2015-12-09 17:34:41.042961"], ["updated_at", "2015-12-09 17:34:41.042961"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.045309"], ["updated_at", "2015-12-09 17:34:41.045309"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.046599"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.054338"], ["updated_at", "2015-12-09 17:34:41.054338"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.057290"], ["updated_at", "2015-12-09 17:34:41.057290"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2015-12-09 17:34:41.059028"], ["updated_at", "2015-12-09 17:34:41.059028"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2015-12-09 17:34:41.060355"], ["updated_at", "2015-12-09 17:34:41.060355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.063147"], ["updated_at", "2015-12-09 17:34:41.063147"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.064639"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.073218"], ["updated_at", "2015-12-09 17:34:41.073218"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.076291"], ["updated_at", "2015-12-09 17:34:41.076291"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2015-12-09 17:34:41.078147"], ["updated_at", "2015-12-09 17:34:41.078147"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2015-12-09 17:34:41.079242"], ["updated_at", "2015-12-09 17:34:41.079242"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.081604"], ["updated_at", "2015-12-09 17:34:41.081604"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.082869"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.090353"], ["updated_at", "2015-12-09 17:34:41.090353"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.093718"], ["updated_at", "2015-12-09 17:34:41.093718"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2015-12-09 17:34:41.095664"], ["updated_at", "2015-12-09 17:34:41.095664"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2015-12-09 17:34:41.096811"], ["updated_at", "2015-12-09 17:34:41.096811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.099352"], ["updated_at", "2015-12-09 17:34:41.099352"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.100705"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.110554"], ["updated_at", "2015-12-09 17:34:41.110554"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.115371"], ["updated_at", "2015-12-09 17:34:41.115371"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2015-12-09 17:34:41.117782"], ["updated_at", "2015-12-09 17:34:41.117782"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2015-12-09 17:34:41.119560"], ["updated_at", "2015-12-09 17:34:41.119560"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.122197"], ["updated_at", "2015-12-09 17:34:41.122197"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.123566"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.187595"], ["updated_at", "2015-12-09 17:34:41.187595"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 17:34:41.190839"], ["updated_at", "2015-12-09 17:34:41.190839"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2015-12-09 17:34:41.192836"], ["updated_at", "2015-12-09 17:34:41.192836"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2015-12-09 17:34:41.194157"], ["updated_at", "2015-12-09 17:34:41.194157"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 17:34:41.196618"], ["updated_at", "2015-12-09 17:34:41.196618"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 17:34:41.198506"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 17:34:41.202403"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2015-12-09 19:42:11.978180"], ["updated_at", "2015-12-09 19:42:11.978180"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:42:12.042995"], ["updated_at", "2015-12-09 19:42:12.042995"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.1ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.5ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-09 20:42:12.070647"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2015-12-09 19:42:12.072081"], ["updated_at", "2015-12-09 19:42:12.072081"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 35ms (Views: 10.2ms | ActiveRecord: 1.1ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.107400"], ["updated_at", "2015-12-09 19:42:12.107400"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.119584"], ["updated_at", "2015-12-09 19:42:12.119584"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:42:12.123126"], ["updated_at", "2015-12-09 19:42:12.123126"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:42:12.126548"], ["updated_at", "2015-12-09 19:42:12.126548"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.187979"], ["updated_at", "2015-12-09 19:42:12.187979"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.190991"], ["updated_at", "2015-12-09 19:42:12.190991"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2015-12-09 19:42:12.192682"], ["updated_at", "2015-12-09 19:42:12.192682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2015-12-09 19:42:12.193785"], ["updated_at", "2015-12-09 19:42:12.193785"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.199462"], ["updated_at", "2015-12-09 19:42:12.199462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.202378"], ["updated_at", "2015-12-09 19:42:12.202378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2015-12-09 19:42:12.204083"], ["updated_at", "2015-12-09 19:42:12.204083"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2015-12-09 19:42:12.205225"], ["updated_at", "2015-12-09 19:42:12.205225"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.221546"], ["updated_at", "2015-12-09 19:42:12.221546"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.224988"], ["updated_at", "2015-12-09 19:42:12.224988"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2015-12-09 19:42:12.226988"], ["updated_at", "2015-12-09 19:42:12.226988"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2015-12-09 19:42:12.228109"], ["updated_at", "2015-12-09 19:42:12.228109"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.234946"], ["updated_at", "2015-12-09 19:42:12.234946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.239280"], ["updated_at", "2015-12-09 19:42:12.239280"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2015-12-09 19:42:12.241146"], ["updated_at", "2015-12-09 19:42:12.241146"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2015-12-09 19:42:12.242258"], ["updated_at", "2015-12-09 19:42:12.242258"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.246708"], ["updated_at", "2015-12-09 19:42:12.246708"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.249794"], ["updated_at", "2015-12-09 19:42:12.249794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2015-12-09 19:42:12.252182"], ["updated_at", "2015-12-09 19:42:12.252182"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2015-12-09 19:42:12.253642"], ["updated_at", "2015-12-09 19:42:12.253642"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 19:42:12.255639"], ["updated_at", "2015-12-09 19:42:12.255639"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 19:42:12.261019"], ["updated_at", "2015-12-09 19:42:12.261019"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.266925"], ["updated_at", "2015-12-09 19:42:12.266925"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.269847"], ["updated_at", "2015-12-09 19:42:12.269847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2015-12-09 19:42:12.271823"], ["updated_at", "2015-12-09 19:42:12.271823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2015-12-09 19:42:12.273022"], ["updated_at", "2015-12-09 19:42:12.273022"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.2ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2015-12-09 19:42:12.279565"], ["updated_at", "2015-12-09 19:42:12.279565"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.2ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:42:12.302524"], ["updated_at", "2015-12-09 19:42:12.302524"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2015-12-09 19:42:12.304692"], ["updated_at", "2015-12-09 19:42:12.304692"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:42:12.305957"], ["updated_at", "2015-12-09 19:42:12.305957"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.315330"], ["updated_at", "2015-12-09 19:42:12.315330"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.318805"], ["updated_at", "2015-12-09 19:42:12.318805"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2015-12-09 19:42:12.320849"], ["updated_at", "2015-12-09 19:42:12.320849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.326451"], ["updated_at", "2015-12-09 19:42:12.326451"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.329658"], ["updated_at", "2015-12-09 19:42:12.329658"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2015-12-09 19:42:12.331432"], ["updated_at", "2015-12-09 19:42:12.331432"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.336802"], ["updated_at", "2015-12-09 19:42:12.336802"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.343149"], ["updated_at", "2015-12-09 19:42:12.343149"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2015-12-09 19:42:12.346530"], ["updated_at", "2015-12-09 19:42:12.346530"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:42:12.347906"], ["updated_at", "2015-12-09 19:42:12.347906"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.351598"], ["updated_at", "2015-12-09 19:42:12.351598"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2015-12-09 19:42:12.353651"], ["updated_at", "2015-12-09 19:42:12.353651"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:42:12.354850"], ["updated_at", "2015-12-09 19:42:12.354850"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.359311"], ["updated_at", "2015-12-09 19:42:12.359311"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2015-12-09 19:42:12.361007"], ["updated_at", "2015-12-09 19:42:12.361007"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.363877"], ["updated_at", "2015-12-09 19:42:12.363877"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:42:12.365683"], ["updated_at", "2015-12-09 19:42:12.365683"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.368513"], ["updated_at", "2015-12-09 19:42:12.368513"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:42:12.370585"], ["updated_at", "2015-12-09 19:42:12.370585"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.375229"], ["updated_at", "2015-12-09 19:42:12.375229"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.378916"], ["updated_at", "2015-12-09 19:42:12.378916"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2015-12-09 19:42:12.380870"], ["updated_at", "2015-12-09 19:42:12.380870"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.444352"], ["updated_at", "2015-12-09 19:42:12.444352"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2015-12-09 19:42:12.446531"], ["updated_at", "2015-12-09 19:42:12.446531"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.455459"], ["updated_at", "2015-12-09 19:42:12.455459"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.458731"], ["updated_at", "2015-12-09 19:42:12.458731"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2015-12-09 19:42:12.460388"], ["updated_at", "2015-12-09 19:42:12.460388"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2015-12-09 19:42:12.461568"], ["updated_at", "2015-12-09 19:42:12.461568"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:42:12.463503"], ["updated_at", "2015-12-09 19:42:12.463503"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.470630"], ["updated_at", "2015-12-09 19:42:12.470630"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2015-12-09 19:42:12.473004"], ["updated_at", "2015-12-09 19:42:12.473004"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.476160"], ["updated_at", "2015-12-09 19:42:12.476160"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.479739"], ["updated_at", "2015-12-09 19:42:12.479739"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2015-12-09 19:42:12.481371"], ["updated_at", "2015-12-09 19:42:12.481371"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2015-12-09 19:42:12.482670"], ["updated_at", "2015-12-09 19:42:12.482670"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2015-12-09 19:42:12.483799"], ["updated_at", "2015-12-09 19:42:12.483799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.488818"], ["updated_at", "2015-12-09 19:42:12.488818"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2015-12-09 19:42:12.490749"], ["updated_at", "2015-12-09 19:42:12.490749"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.493171"], ["updated_at", "2015-12-09 19:42:12.493171"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.495713"], ["updated_at", "2015-12-09 19:42:12.495713"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2015-12-09 19:42:12.497258"], ["updated_at", "2015-12-09 19:42:12.497258"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2015-12-09 19:42:12.498363"], ["updated_at", "2015-12-09 19:42:12.498363"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2015-12-09 19:42:12.499442"], ["updated_at", "2015-12-09 19:42:12.499442"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.504247"], ["updated_at", "2015-12-09 19:42:12.504247"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2015-12-09 19:42:12.506183"], ["updated_at", "2015-12-09 19:42:12.506183"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.508532"], ["updated_at", "2015-12-09 19:42:12.508532"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.511040"], ["updated_at", "2015-12-09 19:42:12.511040"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2015-12-09 19:42:12.513789"], ["updated_at", "2015-12-09 19:42:12.513789"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2015-12-09 19:42:12.515876"], ["updated_at", "2015-12-09 19:42:12.515876"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2015-12-09 19:42:12.517511"], ["updated_at", "2015-12-09 19:42:12.517511"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:42:12.520115"], ["updated_at", "2015-12-09 19:42:12.520115"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:42:12.523830"], ["updated_at", "2015-12-09 19:42:12.523830"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.530174"], ["updated_at", "2015-12-09 19:42:12.530174"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2015-12-09 19:42:12.532471"], ["updated_at", "2015-12-09 19:42:12.532471"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.535155"], ["updated_at", "2015-12-09 19:42:12.535155"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.537854"], ["updated_at", "2015-12-09 19:42:12.537854"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2015-12-09 19:42:12.539289"], ["updated_at", "2015-12-09 19:42:12.539289"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2015-12-09 19:42:12.540371"], ["updated_at", "2015-12-09 19:42:12.540371"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2015-12-09 19:42:12.541453"], ["updated_at", "2015-12-09 19:42:12.541453"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:42:12.543015"], ["updated_at", "2015-12-09 19:42:12.543015"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2015-12-09 19:42:12.544654"], ["updated_at", "2015-12-09 19:42:12.544654"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.549769"], ["updated_at", "2015-12-09 19:42:12.549769"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2015-12-09 19:42:12.551782"], ["updated_at", "2015-12-09 19:42:12.551782"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.554616"], ["updated_at", "2015-12-09 19:42:12.554616"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.557456"], ["updated_at", "2015-12-09 19:42:12.557456"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2015-12-09 19:42:12.558946"], ["updated_at", "2015-12-09 19:42:12.558946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2015-12-09 19:42:12.560042"], ["updated_at", "2015-12-09 19:42:12.560042"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2015-12-09 19:42:12.561377"], ["updated_at", "2015-12-09 19:42:12.561377"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.577678"], ["updated_at", "2015-12-09 19:42:12.577678"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.580850"], ["updated_at", "2015-12-09 19:42:12.580850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2015-12-09 19:42:12.582673"], ["updated_at", "2015-12-09 19:42:12.582673"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2015-12-09 19:42:12.583851"], ["updated_at", "2015-12-09 19:42:12.583851"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.589616"], ["updated_at", "2015-12-09 19:42:12.589616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.592873"], ["updated_at", "2015-12-09 19:42:12.592873"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2015-12-09 19:42:12.594687"], ["updated_at", "2015-12-09 19:42:12.594687"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2015-12-09 19:42:12.595821"], ["updated_at", "2015-12-09 19:42:12.595821"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.600377"], ["updated_at", "2015-12-09 19:42:12.600377"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.603817"], ["updated_at", "2015-12-09 19:42:12.603817"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2015-12-09 19:42:12.605717"], ["updated_at", "2015-12-09 19:42:12.605717"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2015-12-09 19:42:12.606820"], ["updated_at", "2015-12-09 19:42:12.606820"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:42:12.608357"], ["updated_at", "2015-12-09 19:42:12.608357"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:42:12.609846"], ["updated_at", "2015-12-09 19:42:12.609846"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.614352"], ["updated_at", "2015-12-09 19:42:12.614352"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.618435"], ["updated_at", "2015-12-09 19:42:12.618435"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2015-12-09 19:42:12.620554"], ["updated_at", "2015-12-09 19:42:12.620554"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2015-12-09 19:42:12.621738"], ["updated_at", "2015-12-09 19:42:12.621738"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.633857"], ["updated_at", "2015-12-09 19:42:12.633857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2015-12-09 19:42:12.636175"], ["updated_at", "2015-12-09 19:42:12.636175"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.639668"], ["updated_at", "2015-12-09 19:42:12.639668"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.642276"], ["updated_at", "2015-12-09 19:42:12.642276"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2015-12-09 19:42:12.643791"], ["updated_at", "2015-12-09 19:42:12.643791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2015-12-09 19:42:12.644892"], ["updated_at", "2015-12-09 19:42:12.644892"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2015-12-09 19:42:12.646154"], ["updated_at", "2015-12-09 19:42:12.646154"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.653795"], ["updated_at", "2015-12-09 19:42:12.653795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2015-12-09 19:42:12.656791"], ["updated_at", "2015-12-09 19:42:12.656791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.720816"], ["updated_at", "2015-12-09 19:42:12.720816"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.723627"], ["updated_at", "2015-12-09 19:42:12.723627"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2015-12-09 19:42:12.725060"], ["updated_at", "2015-12-09 19:42:12.725060"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2015-12-09 19:42:12.726135"], ["updated_at", "2015-12-09 19:42:12.726135"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2015-12-09 19:42:12.727289"], ["updated_at", "2015-12-09 19:42:12.727289"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.733058"], ["updated_at", "2015-12-09 19:42:12.733058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2015-12-09 19:42:12.735138"], ["updated_at", "2015-12-09 19:42:12.735138"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.737975"], ["updated_at", "2015-12-09 19:42:12.737975"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.740716"], ["updated_at", "2015-12-09 19:42:12.740716"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2015-12-09 19:42:12.742183"], ["updated_at", "2015-12-09 19:42:12.742183"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2015-12-09 19:42:12.743320"], ["updated_at", "2015-12-09 19:42:12.743320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2015-12-09 19:42:12.744443"], ["updated_at", "2015-12-09 19:42:12.744443"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.749578"], ["updated_at", "2015-12-09 19:42:12.749578"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2015-12-09 19:42:12.751565"], ["updated_at", "2015-12-09 19:42:12.751565"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.754209"], ["updated_at", "2015-12-09 19:42:12.754209"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.756987"], ["updated_at", "2015-12-09 19:42:12.756987"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2015-12-09 19:42:12.758468"], ["updated_at", "2015-12-09 19:42:12.758468"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2015-12-09 19:42:12.759566"], ["updated_at", "2015-12-09 19:42:12.759566"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2015-12-09 19:42:12.760676"], ["updated_at", "2015-12-09 19:42:12.760676"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:42:12.762287"], ["updated_at", "2015-12-09 19:42:12.762287"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:42:12.765810"], ["updated_at", "2015-12-09 19:42:12.765810"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.772613"], ["updated_at", "2015-12-09 19:42:12.772613"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2015-12-09 19:42:12.775043"], ["updated_at", "2015-12-09 19:42:12.775043"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.777851"], ["updated_at", "2015-12-09 19:42:12.777851"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.782239"], ["updated_at", "2015-12-09 19:42:12.782239"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2015-12-09 19:42:12.785360"], ["updated_at", "2015-12-09 19:42:12.785360"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2015-12-09 19:42:12.787069"], ["updated_at", "2015-12-09 19:42:12.787069"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2015-12-09 19:42:12.788482"], ["updated_at", "2015-12-09 19:42:12.788482"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:42:12.790373"], ["updated_at", "2015-12-09 19:42:12.790373"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2015-12-09 19:42:12.792081"], ["updated_at", "2015-12-09 19:42:12.792081"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.796609"], ["updated_at", "2015-12-09 19:42:12.796609"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2015-12-09 19:42:12.798469"], ["updated_at", "2015-12-09 19:42:12.798469"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.801214"], ["updated_at", "2015-12-09 19:42:12.801214"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.803779"], ["updated_at", "2015-12-09 19:42:12.803779"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2015-12-09 19:42:12.805427"], ["updated_at", "2015-12-09 19:42:12.805427"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2015-12-09 19:42:12.806540"], ["updated_at", "2015-12-09 19:42:12.806540"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2015-12-09 19:42:12.807639"], ["updated_at", "2015-12-09 19:42:12.807639"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.815414"], ["updated_at", "2015-12-09 19:42:12.815414"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.821976"], ["updated_at", "2015-12-09 19:42:12.821976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:42:12.824658"], ["updated_at", "2015-12-09 19:42:12.824658"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:42:12.826504"], ["updated_at", "2015-12-09 19:42:12.826504"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.832641"], ["updated_at", "2015-12-09 19:42:12.832641"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.841420"], ["updated_at", "2015-12-09 19:42:12.841420"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.846226"], ["updated_at", "2015-12-09 19:42:12.846226"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:42:12.848359"], ["updated_at", "2015-12-09 19:42:12.848359"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:42:12.850311"], ["updated_at", "2015-12-09 19:42:12.850311"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.854734"], ["updated_at", "2015-12-09 19:42:12.854734"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.862490"], ["updated_at", "2015-12-09 19:42:12.862490"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:12.878990"], ["updated_at", "2015-12-09 19:42:12.878990"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:12.881040"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.3ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.888149"], ["updated_at", "2015-12-09 19:42:12.888149"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:12.891452"], ["updated_at", "2015-12-09 19:42:12.891452"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:12.892914"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.898023"], ["updated_at", "2015-12-09 19:42:12.898023"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:12.901297"], ["updated_at", "2015-12-09 19:42:12.901297"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:12.902702"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:42:12.914773"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:12.918972"], ["updated_at", "2015-12-09 19:42:12.918972"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:12.921018"], ["updated_at", "2015-12-09 19:42:12.921018"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:12.979584"], ["updated_at", "2015-12-09 19:42:12.979584"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:42:12.982236"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 19:42:12.983356"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:12.988245"], ["updated_at", "2015-12-09 19:42:12.988245"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:12.991247"], ["updated_at", "2015-12-09 19:42:12.991247"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:12.992678"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2015-12-09 19:42:12.996114"], ["updated_at", "2015-12-09 19:42:12.996114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.0ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2015-12-09 19:42:12.998265"], ["updated_at", "2015-12-09 19:42:12.998265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.004290"], ["updated_at", "2015-12-09 19:42:13.004290"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.007479"], ["updated_at", "2015-12-09 19:42:13.007479"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:13.008930"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.010889"], ["updated_at", "2015-12-09 19:42:13.010889"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.012555"], ["updated_at", "2015-12-09 19:42:13.012555"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.014034"], ["updated_at", "2015-12-09 19:42:13.014034"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.020572"], ["updated_at", "2015-12-09 19:42:13.020572"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.023953"], ["updated_at", "2015-12-09 19:42:13.023953"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:13.025712"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.031050"], ["updated_at", "2015-12-09 19:42:13.031050"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.034543"], ["updated_at", "2015-12-09 19:42:13.034543"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:13.035952"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.042302"], ["updated_at", "2015-12-09 19:42:13.042302"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.045409"], ["updated_at", "2015-12-09 19:42:13.045409"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:13.046825"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:42:13.049597"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.057952"], ["updated_at", "2015-12-09 19:42:13.057952"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.061002"], ["updated_at", "2015-12-09 19:42:13.061002"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2015-12-09 19:42:13.062746"], ["updated_at", "2015-12-09 19:42:13.062746"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2015-12-09 19:42:13.063923"], ["updated_at", "2015-12-09 19:42:13.063923"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.066412"], ["updated_at", "2015-12-09 19:42:13.066412"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.067772"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.075223"], ["updated_at", "2015-12-09 19:42:13.075223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.078793"], ["updated_at", "2015-12-09 19:42:13.078793"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2015-12-09 19:42:13.081504"], ["updated_at", "2015-12-09 19:42:13.081504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2015-12-09 19:42:13.083011"], ["updated_at", "2015-12-09 19:42:13.083011"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.086543"], ["updated_at", "2015-12-09 19:42:13.086543"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.088163"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.094736"], ["updated_at", "2015-12-09 19:42:13.094736"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.097568"], ["updated_at", "2015-12-09 19:42:13.097568"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2015-12-09 19:42:13.099313"], ["updated_at", "2015-12-09 19:42:13.099313"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2015-12-09 19:42:13.100519"], ["updated_at", "2015-12-09 19:42:13.100519"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.103536"], ["updated_at", "2015-12-09 19:42:13.103536"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2015-12-09 19:42:13.105989"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.114169"], ["updated_at", "2015-12-09 19:42:13.114169"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.117179"], ["updated_at", "2015-12-09 19:42:13.117179"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2015-12-09 19:42:13.119204"], ["updated_at", "2015-12-09 19:42:13.119204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2015-12-09 19:42:13.120511"], ["updated_at", "2015-12-09 19:42:13.120511"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.122890"], ["updated_at", "2015-12-09 19:42:13.122890"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.124207"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.131108"], ["updated_at", "2015-12-09 19:42:13.131108"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.135156"], ["updated_at", "2015-12-09 19:42:13.135156"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2015-12-09 19:42:13.138097"], ["updated_at", "2015-12-09 19:42:13.138097"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2015-12-09 19:42:13.140408"], ["updated_at", "2015-12-09 19:42:13.140408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.143799"], ["updated_at", "2015-12-09 19:42:13.143799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.145504"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:42:13.153067"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.157870"], ["updated_at", "2015-12-09 19:42:13.157870"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2015-12-09 19:42:13.160173"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.162835"], ["updated_at", "2015-12-09 19:42:13.162835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.164505"], ["updated_at", "2015-12-09 19:42:13.164505"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.166260"], ["updated_at", "2015-12-09 19:42:13.166260"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2015-12-09 19:42:13.176408"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.3ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2015-12-09 19:42:13.252585"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.6ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.2ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 19:42:13.256773"], ["updated_at", "2015-12-09 19:42:13.256773"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2015-12-09 19:42:13.260326"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.4ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2015-12-09 19:42:13.277881"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2015-12-09 19:42:13.280589"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.4ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:42:13.293438"], ["updated_at", "2015-12-09 19:42:13.293438"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:42:13.296719"], ["updated_at", "2015-12-09 19:42:13.296719"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2015-12-09 19:42:13.298441"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.5ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:42:13.310494"], ["updated_at", "2015-12-09 19:42:13.310494"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:42:13.314147"], ["updated_at", "2015-12-09 19:42:13.314147"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:42:13.319299"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 19:42:13.320458"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.328446"], ["updated_at", "2015-12-09 19:42:13.328446"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.331419"], ["updated_at", "2015-12-09 19:42:13.331419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2015-12-09 19:42:13.333252"], ["updated_at", "2015-12-09 19:42:13.333252"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2015-12-09 19:42:13.334344"], ["updated_at", "2015-12-09 19:42:13.334344"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.336680"], ["updated_at", "2015-12-09 19:42:13.336680"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.337959"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.340094"], ["updated_at", "2015-12-09 19:42:13.340094"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_sections"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.347085"], ["updated_at", "2015-12-09 19:42:13.347085"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.349949"], ["updated_at", "2015-12-09 19:42:13.349949"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2015-12-09 19:42:13.351634"], ["updated_at", "2015-12-09 19:42:13.351634"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2015-12-09 19:42:13.352733"], ["updated_at", "2015-12-09 19:42:13.352733"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.355170"], ["updated_at", "2015-12-09 19:42:13.355170"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.356449"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.358564"], ["updated_at", "2015-12-09 19:42:13.358564"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.360331"], ["updated_at", "2015-12-09 19:42:13.360331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.361809"], ["updated_at", "2015-12-09 19:42:13.361809"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.371371"], ["updated_at", "2015-12-09 19:42:13.371371"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.374560"], ["updated_at", "2015-12-09 19:42:13.374560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2015-12-09 19:42:13.376599"], ["updated_at", "2015-12-09 19:42:13.376599"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2015-12-09 19:42:13.377910"], ["updated_at", "2015-12-09 19:42:13.377910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.380427"], ["updated_at", "2015-12-09 19:42:13.380427"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.381759"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.383927"], ["updated_at", "2015-12-09 19:42:13.383927"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.386085"], ["updated_at", "2015-12-09 19:42:13.386085"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.387830"], ["updated_at", "2015-12-09 19:42:13.387830"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.389336"], ["updated_at", "2015-12-09 19:42:13.389336"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.410195"], ["updated_at", "2015-12-09 19:42:13.410195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.413172"], ["updated_at", "2015-12-09 19:42:13.413172"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2015-12-09 19:42:13.471652"], ["updated_at", "2015-12-09 19:42:13.471652"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2015-12-09 19:42:13.473225"], ["updated_at", "2015-12-09 19:42:13.473225"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.475791"], ["updated_at", "2015-12-09 19:42:13.475791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.477277"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:42:13.483415"], ["updated_at", "2015-12-09 19:42:13.483415"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_categories"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.492365"], ["updated_at", "2015-12-09 19:42:13.492365"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.495474"], ["updated_at", "2015-12-09 19:42:13.495474"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2015-12-09 19:42:13.497321"], ["updated_at", "2015-12-09 19:42:13.497321"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2015-12-09 19:42:13.498504"], ["updated_at", "2015-12-09 19:42:13.498504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.500973"], ["updated_at", "2015-12-09 19:42:13.500973"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.502562"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:42:13.505429"], ["updated_at", "2015-12-09 19:42:13.505429"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignments"[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.524405"], ["updated_at", "2015-12-09 19:42:13.524405"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.527414"], ["updated_at", "2015-12-09 19:42:13.527414"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2015-12-09 19:42:13.529252"], ["updated_at", "2015-12-09 19:42:13.529252"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2015-12-09 19:42:13.530353"], ["updated_at", "2015-12-09 19:42:13.530353"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.532707"], ["updated_at", "2015-12-09 19:42:13.532707"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.534352"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 19:42:13.537545"], ["updated_at", "2015-12-09 19:42:13.537545"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.544868"], ["updated_at", "2015-12-09 19:42:13.544868"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.547643"], ["updated_at", "2015-12-09 19:42:13.547643"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2015-12-09 19:42:13.549334"], ["updated_at", "2015-12-09 19:42:13.549334"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2015-12-09 19:42:13.550561"], ["updated_at", "2015-12-09 19:42:13.550561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.553041"], ["updated_at", "2015-12-09 19:42:13.553041"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.554353"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.556395"], ["updated_at", "2015-12-09 19:42:13.556395"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.558511"], ["updated_at", "2015-12-09 19:42:13.558511"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.560124"], ["updated_at", "2015-12-09 19:42:13.560124"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.561556"], ["updated_at", "2015-12-09 19:42:13.561556"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.2ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:42:13.589046"], ["updated_at", "2015-12-09 19:42:13.589046"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:42:13.592141"], ["updated_at", "2015-12-09 19:42:13.592141"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:42:13.594903"], ["updated_at", "2015-12-09 19:42:13.594903"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:42:13.597647"], ["updated_at", "2015-12-09 19:42:13.597647"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_submissions" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.605020"], ["updated_at", "2015-12-09 19:42:13.605020"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.607952"], ["updated_at", "2015-12-09 19:42:13.607952"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2015-12-09 19:42:13.609644"], ["updated_at", "2015-12-09 19:42:13.609644"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2015-12-09 19:42:13.610879"], ["updated_at", "2015-12-09 19:42:13.610879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.613194"], ["updated_at", "2015-12-09 19:42:13.613194"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.614490"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:42:13.616524"], ["updated_at", "2015-12-09 19:42:13.616524"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:42:13.619831"], ["updated_at", "2015-12-09 19:42:13.619831"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:42:13.621989"], ["updated_at", "2015-12-09 19:42:13.621989"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.629937"], ["updated_at", "2015-12-09 19:42:13.629937"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.632862"], ["updated_at", "2015-12-09 19:42:13.632862"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2015-12-09 19:42:13.634534"], ["updated_at", "2015-12-09 19:42:13.634534"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2015-12-09 19:42:13.635919"], ["updated_at", "2015-12-09 19:42:13.635919"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.638759"], ["updated_at", "2015-12-09 19:42:13.638759"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.640579"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.643483"], ["updated_at", "2015-12-09 19:42:13.643483"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.646101"], ["updated_at", "2015-12-09 19:42:13.646101"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.647856"], ["updated_at", "2015-12-09 19:42:13.647856"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.649456"], ["updated_at", "2015-12-09 19:42:13.649456"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:42:13.721393"], ["updated_at", "2015-12-09 19:42:13.721393"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:42:13.723540"], ["updated_at", "2015-12-09 19:42:13.723540"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.733820"], ["updated_at", "2015-12-09 19:42:13.733820"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.736682"], ["updated_at", "2015-12-09 19:42:13.736682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2015-12-09 19:42:13.738505"], ["updated_at", "2015-12-09 19:42:13.738505"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2015-12-09 19:42:13.739588"], ["updated_at", "2015-12-09 19:42:13.739588"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.741933"], ["updated_at", "2015-12-09 19:42:13.741933"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.743195"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:42:13.746558"], ["updated_at", "2015-12-09 19:42:13.746558"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:42:13.748801"], ["updated_at", "2015-12-09 19:42:13.748801"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.755807"], ["updated_at", "2015-12-09 19:42:13.755807"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.758656"], ["updated_at", "2015-12-09 19:42:13.758656"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2015-12-09 19:42:13.760389"], ["updated_at", "2015-12-09 19:42:13.760389"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2015-12-09 19:42:13.761635"], ["updated_at", "2015-12-09 19:42:13.761635"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.764131"], ["updated_at", "2015-12-09 19:42:13.764131"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.765639"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.767935"], ["updated_at", "2015-12-09 19:42:13.767935"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.771364"], ["updated_at", "2015-12-09 19:42:13.771364"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.772919"], ["updated_at", "2015-12-09 19:42:13.772919"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.774408"], ["updated_at", "2015-12-09 19:42:13.774408"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 19:42:13.791657"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.807596"], ["updated_at", "2015-12-09 19:42:13.807596"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.810604"], ["updated_at", "2015-12-09 19:42:13.810604"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2015-12-09 19:42:13.812356"], ["updated_at", "2015-12-09 19:42:13.812356"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2015-12-09 19:42:13.813530"], ["updated_at", "2015-12-09 19:42:13.813530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.815826"], ["updated_at", "2015-12-09 19:42:13.815826"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.817101"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.819085"], ["updated_at", "2015-12-09 19:42:13.819085"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.821161"], ["updated_at", "2015-12-09 19:42:13.821161"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.823188"], ["updated_at", "2015-12-09 19:42:13.823188"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.824689"], ["updated_at", "2015-12-09 19:42:13.824689"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:42:13.838365"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.857310"], ["updated_at", "2015-12-09 19:42:13.857310"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.860146"], ["updated_at", "2015-12-09 19:42:13.860146"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2015-12-09 19:42:13.861817"], ["updated_at", "2015-12-09 19:42:13.861817"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2015-12-09 19:42:13.863036"], ["updated_at", "2015-12-09 19:42:13.863036"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.865287"], ["updated_at", "2015-12-09 19:42:13.865287"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.866632"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.868711"], ["updated_at", "2015-12-09 19:42:13.868711"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.870767"], ["updated_at", "2015-12-09 19:42:13.870767"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.872243"], ["updated_at", "2015-12-09 19:42:13.872243"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.873669"], ["updated_at", "2015-12-09 19:42:13.873669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:42:13.888979"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.3ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.963752"], ["updated_at", "2015-12-09 19:42:13.963752"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:13.966940"], ["updated_at", "2015-12-09 19:42:13.966940"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2015-12-09 19:42:13.969569"], ["updated_at", "2015-12-09 19:42:13.969569"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2015-12-09 19:42:13.971163"], ["updated_at", "2015-12-09 19:42:13.971163"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:13.974117"], ["updated_at", "2015-12-09 19:42:13.974117"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:13.975741"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:42:13.978642"], ["updated_at", "2015-12-09 19:42:13.978642"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.981036"], ["updated_at", "2015-12-09 19:42:13.981036"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.982619"], ["updated_at", "2015-12-09 19:42:13.982619"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:42:13.984308"], ["updated_at", "2015-12-09 19:42:13.984308"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:42:13.998906"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2015-12-09 19:42:14.007209"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.018054"], ["updated_at", "2015-12-09 19:42:14.018054"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.022129"], ["updated_at", "2015-12-09 19:42:14.022129"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2015-12-09 19:42:14.024597"], ["updated_at", "2015-12-09 19:42:14.024597"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2015-12-09 19:42:14.026398"], ["updated_at", "2015-12-09 19:42:14.026398"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.029110"], ["updated_at", "2015-12-09 19:42:14.029110"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.030469"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.037504"], ["updated_at", "2015-12-09 19:42:14.037504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.040283"], ["updated_at", "2015-12-09 19:42:14.040283"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2015-12-09 19:42:14.041968"], ["updated_at", "2015-12-09 19:42:14.041968"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2015-12-09 19:42:14.043092"], ["updated_at", "2015-12-09 19:42:14.043092"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.045452"], ["updated_at", "2015-12-09 19:42:14.045452"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.046875"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.054985"], ["updated_at", "2015-12-09 19:42:14.054985"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.057963"], ["updated_at", "2015-12-09 19:42:14.057963"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2015-12-09 19:42:14.059719"], ["updated_at", "2015-12-09 19:42:14.059719"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2015-12-09 19:42:14.060958"], ["updated_at", "2015-12-09 19:42:14.060958"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.063380"], ["updated_at", "2015-12-09 19:42:14.063380"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.064696"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.072165"], ["updated_at", "2015-12-09 19:42:14.072165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.075093"], ["updated_at", "2015-12-09 19:42:14.075093"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2015-12-09 19:42:14.076831"], ["updated_at", "2015-12-09 19:42:14.076831"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2015-12-09 19:42:14.078072"], ["updated_at", "2015-12-09 19:42:14.078072"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.080515"], ["updated_at", "2015-12-09 19:42:14.080515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.081822"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.090257"], ["updated_at", "2015-12-09 19:42:14.090257"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.093365"], ["updated_at", "2015-12-09 19:42:14.093365"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2015-12-09 19:42:14.095603"], ["updated_at", "2015-12-09 19:42:14.095603"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2015-12-09 19:42:14.096817"], ["updated_at", "2015-12-09 19:42:14.096817"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.099690"], ["updated_at", "2015-12-09 19:42:14.099690"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.101900"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.109632"], ["updated_at", "2015-12-09 19:42:14.109632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.112647"], ["updated_at", "2015-12-09 19:42:14.112647"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2015-12-09 19:42:14.114425"], ["updated_at", "2015-12-09 19:42:14.114425"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2015-12-09 19:42:14.115558"], ["updated_at", "2015-12-09 19:42:14.115558"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.120348"], ["updated_at", "2015-12-09 19:42:14.120348"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.122254"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.130295"], ["updated_at", "2015-12-09 19:42:14.130295"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.133129"], ["updated_at", "2015-12-09 19:42:14.133129"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2015-12-09 19:42:14.134923"], ["updated_at", "2015-12-09 19:42:14.134923"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2015-12-09 19:42:14.136605"], ["updated_at", "2015-12-09 19:42:14.136605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.139635"], ["updated_at", "2015-12-09 19:42:14.139635"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.141575"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.149376"], ["updated_at", "2015-12-09 19:42:14.149376"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.154105"], ["updated_at", "2015-12-09 19:42:14.154105"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2015-12-09 19:42:14.157221"], ["updated_at", "2015-12-09 19:42:14.157221"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2015-12-09 19:42:14.158701"], ["updated_at", "2015-12-09 19:42:14.158701"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.161983"], ["updated_at", "2015-12-09 19:42:14.161983"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.163665"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.232160"], ["updated_at", "2015-12-09 19:42:14.232160"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:42:14.235114"], ["updated_at", "2015-12-09 19:42:14.235114"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2015-12-09 19:42:14.236952"], ["updated_at", "2015-12-09 19:42:14.236952"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2015-12-09 19:42:14.238079"], ["updated_at", "2015-12-09 19:42:14.238079"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:42:14.240484"], ["updated_at", "2015-12-09 19:42:14.240484"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:42:14.241844"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:42:14.245731"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (1.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2015-12-09 19:45:20.935933"], ["updated_at", "2015-12-09 19:45:20.935933"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:45:20.954831"], ["updated_at", "2015-12-09 19:45:20.954831"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.1ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.4ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-09 20:45:20.977182"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2015-12-09 19:45:20.978565"], ["updated_at", "2015-12-09 19:45:20.978565"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 29ms (Views: 8.1ms | ActiveRecord: 0.9ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.012781"], ["updated_at", "2015-12-09 19:45:21.012781"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.022947"], ["updated_at", "2015-12-09 19:45:21.022947"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:45:21.026306"], ["updated_at", "2015-12-09 19:45:21.026306"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:21.029093"], ["updated_at", "2015-12-09 19:45:21.029093"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.091249"], ["updated_at", "2015-12-09 19:45:21.091249"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.095191"], ["updated_at", "2015-12-09 19:45:21.095191"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2015-12-09 19:45:21.096978"], ["updated_at", "2015-12-09 19:45:21.096978"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2015-12-09 19:45:21.098159"], ["updated_at", "2015-12-09 19:45:21.098159"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.103543"], ["updated_at", "2015-12-09 19:45:21.103543"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.107291"], ["updated_at", "2015-12-09 19:45:21.107291"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2015-12-09 19:45:21.109363"], ["updated_at", "2015-12-09 19:45:21.109363"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2015-12-09 19:45:21.110508"], ["updated_at", "2015-12-09 19:45:21.110508"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.126150"], ["updated_at", "2015-12-09 19:45:21.126150"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.129199"], ["updated_at", "2015-12-09 19:45:21.129199"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2015-12-09 19:45:21.131130"], ["updated_at", "2015-12-09 19:45:21.131130"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2015-12-09 19:45:21.132326"], ["updated_at", "2015-12-09 19:45:21.132326"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.140012"], ["updated_at", "2015-12-09 19:45:21.140012"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.144119"], ["updated_at", "2015-12-09 19:45:21.144119"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2015-12-09 19:45:21.146064"], ["updated_at", "2015-12-09 19:45:21.146064"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2015-12-09 19:45:21.147262"], ["updated_at", "2015-12-09 19:45:21.147262"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.151894"], ["updated_at", "2015-12-09 19:45:21.151894"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.154930"], ["updated_at", "2015-12-09 19:45:21.154930"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2015-12-09 19:45:21.156811"], ["updated_at", "2015-12-09 19:45:21.156811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2015-12-09 19:45:21.158008"], ["updated_at", "2015-12-09 19:45:21.158008"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 19:45:21.159681"], ["updated_at", "2015-12-09 19:45:21.159681"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 19:45:21.163961"], ["updated_at", "2015-12-09 19:45:21.163961"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.170413"], ["updated_at", "2015-12-09 19:45:21.170413"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.173655"], ["updated_at", "2015-12-09 19:45:21.173655"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2015-12-09 19:45:21.175567"], ["updated_at", "2015-12-09 19:45:21.175567"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2015-12-09 19:45:21.177056"], ["updated_at", "2015-12-09 19:45:21.177056"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2015-12-09 19:45:21.183041"], ["updated_at", "2015-12-09 19:45:21.183041"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.198273"], ["updated_at", "2015-12-09 19:45:21.198273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2015-12-09 19:45:21.200433"], ["updated_at", "2015-12-09 19:45:21.200433"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:45:21.210316"], ["updated_at", "2015-12-09 19:45:21.210316"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2015-12-09 19:45:21.213605"], ["updated_at", "2015-12-09 19:45:21.213605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:45:21.215368"], ["updated_at", "2015-12-09 19:45:21.215368"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.226604"], ["updated_at", "2015-12-09 19:45:21.226604"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.230013"], ["updated_at", "2015-12-09 19:45:21.230013"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2015-12-09 19:45:21.231789"], ["updated_at", "2015-12-09 19:45:21.231789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.237044"], ["updated_at", "2015-12-09 19:45:21.237044"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.241005"], ["updated_at", "2015-12-09 19:45:21.241005"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2015-12-09 19:45:21.244219"], ["updated_at", "2015-12-09 19:45:21.244219"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.249771"], ["updated_at", "2015-12-09 19:45:21.249771"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.253954"], ["updated_at", "2015-12-09 19:45:21.253954"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2015-12-09 19:45:21.256167"], ["updated_at", "2015-12-09 19:45:21.256167"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:21.258208"], ["updated_at", "2015-12-09 19:45:21.258208"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.262236"], ["updated_at", "2015-12-09 19:45:21.262236"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2015-12-09 19:45:21.264308"], ["updated_at", "2015-12-09 19:45:21.264308"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:21.265577"], ["updated_at", "2015-12-09 19:45:21.265577"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.272527"], ["updated_at", "2015-12-09 19:45:21.272527"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2015-12-09 19:45:21.275581"], ["updated_at", "2015-12-09 19:45:21.275581"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.279491"], ["updated_at", "2015-12-09 19:45:21.279491"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:21.281407"], ["updated_at", "2015-12-09 19:45:21.281407"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.284046"], ["updated_at", "2015-12-09 19:45:21.284046"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:21.285729"], ["updated_at", "2015-12-09 19:45:21.285729"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.289841"], ["updated_at", "2015-12-09 19:45:21.289841"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.342935"], ["updated_at", "2015-12-09 19:45:21.342935"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2015-12-09 19:45:21.345355"], ["updated_at", "2015-12-09 19:45:21.345355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.357253"], ["updated_at", "2015-12-09 19:45:21.357253"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2015-12-09 19:45:21.359257"], ["updated_at", "2015-12-09 19:45:21.359257"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.367740"], ["updated_at", "2015-12-09 19:45:21.367740"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.370823"], ["updated_at", "2015-12-09 19:45:21.370823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2015-12-09 19:45:21.372447"], ["updated_at", "2015-12-09 19:45:21.372447"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2015-12-09 19:45:21.373742"], ["updated_at", "2015-12-09 19:45:21.373742"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:45:21.375990"], ["updated_at", "2015-12-09 19:45:21.375990"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.383545"], ["updated_at", "2015-12-09 19:45:21.383545"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2015-12-09 19:45:21.385725"], ["updated_at", "2015-12-09 19:45:21.385725"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.388419"], ["updated_at", "2015-12-09 19:45:21.388419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.391722"], ["updated_at", "2015-12-09 19:45:21.391722"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2015-12-09 19:45:21.393479"], ["updated_at", "2015-12-09 19:45:21.393479"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2015-12-09 19:45:21.394631"], ["updated_at", "2015-12-09 19:45:21.394631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2015-12-09 19:45:21.395749"], ["updated_at", "2015-12-09 19:45:21.395749"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.401086"], ["updated_at", "2015-12-09 19:45:21.401086"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2015-12-09 19:45:21.403102"], ["updated_at", "2015-12-09 19:45:21.403102"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.405628"], ["updated_at", "2015-12-09 19:45:21.405628"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.408397"], ["updated_at", "2015-12-09 19:45:21.408397"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2015-12-09 19:45:21.410015"], ["updated_at", "2015-12-09 19:45:21.410015"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2015-12-09 19:45:21.411114"], ["updated_at", "2015-12-09 19:45:21.411114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2015-12-09 19:45:21.412193"], ["updated_at", "2015-12-09 19:45:21.412193"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.417080"], ["updated_at", "2015-12-09 19:45:21.417080"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2015-12-09 19:45:21.419045"], ["updated_at", "2015-12-09 19:45:21.419045"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.421497"], ["updated_at", "2015-12-09 19:45:21.421497"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.423991"], ["updated_at", "2015-12-09 19:45:21.423991"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2015-12-09 19:45:21.426536"], ["updated_at", "2015-12-09 19:45:21.426536"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2015-12-09 19:45:21.428740"], ["updated_at", "2015-12-09 19:45:21.428740"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2015-12-09 19:45:21.430265"], ["updated_at", "2015-12-09 19:45:21.430265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:21.432387"], ["updated_at", "2015-12-09 19:45:21.432387"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:21.435691"], ["updated_at", "2015-12-09 19:45:21.435691"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.443551"], ["updated_at", "2015-12-09 19:45:21.443551"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2015-12-09 19:45:21.446089"], ["updated_at", "2015-12-09 19:45:21.446089"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.449262"], ["updated_at", "2015-12-09 19:45:21.449262"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.452986"], ["updated_at", "2015-12-09 19:45:21.452986"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2015-12-09 19:45:21.455047"], ["updated_at", "2015-12-09 19:45:21.455047"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2015-12-09 19:45:21.456550"], ["updated_at", "2015-12-09 19:45:21.456550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2015-12-09 19:45:21.458039"], ["updated_at", "2015-12-09 19:45:21.458039"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:21.459942"], ["updated_at", "2015-12-09 19:45:21.459942"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2015-12-09 19:45:21.461851"], ["updated_at", "2015-12-09 19:45:21.461851"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.467079"], ["updated_at", "2015-12-09 19:45:21.467079"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2015-12-09 19:45:21.469145"], ["updated_at", "2015-12-09 19:45:21.469145"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.472006"], ["updated_at", "2015-12-09 19:45:21.472006"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 46"], ["key", "Key 46"], ["secret", "Account 46"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.475225"], ["updated_at", "2015-12-09 19:45:21.475225"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2015-12-09 19:45:21.477472"], ["updated_at", "2015-12-09 19:45:21.477472"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2015-12-09 19:45:21.478900"], ["updated_at", "2015-12-09 19:45:21.478900"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2015-12-09 19:45:21.480170"], ["updated_at", "2015-12-09 19:45:21.480170"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.493190"], ["updated_at", "2015-12-09 19:45:21.493190"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.497346"], ["updated_at", "2015-12-09 19:45:21.497346"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2015-12-09 19:45:21.499563"], ["updated_at", "2015-12-09 19:45:21.499563"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2015-12-09 19:45:21.500924"], ["updated_at", "2015-12-09 19:45:21.500924"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.506600"], ["updated_at", "2015-12-09 19:45:21.506600"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.509529"], ["updated_at", "2015-12-09 19:45:21.509529"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2015-12-09 19:45:21.511303"], ["updated_at", "2015-12-09 19:45:21.511303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2015-12-09 19:45:21.512409"], ["updated_at", "2015-12-09 19:45:21.512409"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.516976"], ["updated_at", "2015-12-09 19:45:21.516976"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.519984"], ["updated_at", "2015-12-09 19:45:21.519984"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2015-12-09 19:45:21.521786"], ["updated_at", "2015-12-09 19:45:21.521786"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2015-12-09 19:45:21.522951"], ["updated_at", "2015-12-09 19:45:21.522951"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:45:21.524549"], ["updated_at", "2015-12-09 19:45:21.524549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:45:21.526213"], ["updated_at", "2015-12-09 19:45:21.526213"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.531373"], ["updated_at", "2015-12-09 19:45:21.531373"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.534324"], ["updated_at", "2015-12-09 19:45:21.534324"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2015-12-09 19:45:21.536034"], ["updated_at", "2015-12-09 19:45:21.536034"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2015-12-09 19:45:21.537175"], ["updated_at", "2015-12-09 19:45:21.537175"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.550090"], ["updated_at", "2015-12-09 19:45:21.550090"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2015-12-09 19:45:21.552283"], ["updated_at", "2015-12-09 19:45:21.552283"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.555533"], ["updated_at", "2015-12-09 19:45:21.555533"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.558185"], ["updated_at", "2015-12-09 19:45:21.558185"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2015-12-09 19:45:21.611873"], ["updated_at", "2015-12-09 19:45:21.611873"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2015-12-09 19:45:21.613208"], ["updated_at", "2015-12-09 19:45:21.613208"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2015-12-09 19:45:21.614400"], ["updated_at", "2015-12-09 19:45:21.614400"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.623026"], ["updated_at", "2015-12-09 19:45:21.623026"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2015-12-09 19:45:21.625852"], ["updated_at", "2015-12-09 19:45:21.625852"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.629143"], ["updated_at", "2015-12-09 19:45:21.629143"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.632030"], ["updated_at", "2015-12-09 19:45:21.632030"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2015-12-09 19:45:21.633498"], ["updated_at", "2015-12-09 19:45:21.633498"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2015-12-09 19:45:21.634579"], ["updated_at", "2015-12-09 19:45:21.634579"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2015-12-09 19:45:21.635671"], ["updated_at", "2015-12-09 19:45:21.635671"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.641434"], ["updated_at", "2015-12-09 19:45:21.641434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2015-12-09 19:45:21.643509"], ["updated_at", "2015-12-09 19:45:21.643509"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.646078"], ["updated_at", "2015-12-09 19:45:21.646078"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.648714"], ["updated_at", "2015-12-09 19:45:21.648714"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2015-12-09 19:45:21.650205"], ["updated_at", "2015-12-09 19:45:21.650205"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2015-12-09 19:45:21.651357"], ["updated_at", "2015-12-09 19:45:21.651357"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2015-12-09 19:45:21.652520"], ["updated_at", "2015-12-09 19:45:21.652520"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.659597"], ["updated_at", "2015-12-09 19:45:21.659597"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2015-12-09 19:45:21.661677"], ["updated_at", "2015-12-09 19:45:21.661677"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.665078"], ["updated_at", "2015-12-09 19:45:21.665078"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.668491"], ["updated_at", "2015-12-09 19:45:21.668491"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2015-12-09 19:45:21.670204"], ["updated_at", "2015-12-09 19:45:21.670204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2015-12-09 19:45:21.671439"], ["updated_at", "2015-12-09 19:45:21.671439"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2015-12-09 19:45:21.672579"], ["updated_at", "2015-12-09 19:45:21.672579"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:45:21.674537"], ["updated_at", "2015-12-09 19:45:21.674537"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:45:21.677193"], ["updated_at", "2015-12-09 19:45:21.677193"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.682701"], ["updated_at", "2015-12-09 19:45:21.682701"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2015-12-09 19:45:21.684871"], ["updated_at", "2015-12-09 19:45:21.684871"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.687606"], ["updated_at", "2015-12-09 19:45:21.687606"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.690396"], ["updated_at", "2015-12-09 19:45:21.690396"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2015-12-09 19:45:21.692079"], ["updated_at", "2015-12-09 19:45:21.692079"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2015-12-09 19:45:21.693465"], ["updated_at", "2015-12-09 19:45:21.693465"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2015-12-09 19:45:21.694745"], ["updated_at", "2015-12-09 19:45:21.694745"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:45:21.696400"], ["updated_at", "2015-12-09 19:45:21.696400"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2015-12-09 19:45:21.697929"], ["updated_at", "2015-12-09 19:45:21.697929"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.702939"], ["updated_at", "2015-12-09 19:45:21.702939"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test14@test.com"], ["name", "Factory User 14"], ["canvas_user_id", "14"], ["created_at", "2015-12-09 19:45:21.704841"], ["updated_at", "2015-12-09 19:45:21.704841"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.707651"], ["updated_at", "2015-12-09 19:45:21.707651"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.712581"], ["updated_at", "2015-12-09 19:45:21.712581"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2015-12-09 19:45:21.714643"], ["updated_at", "2015-12-09 19:45:21.714643"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2015-12-09 19:45:21.716032"], ["updated_at", "2015-12-09 19:45:21.716032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2015-12-09 19:45:21.717398"], ["updated_at", "2015-12-09 19:45:21.717398"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.724940"], ["updated_at", "2015-12-09 19:45:21.724940"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.730972"], ["updated_at", "2015-12-09 19:45:21.730972"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:45:21.733235"], ["updated_at", "2015-12-09 19:45:21.733235"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:45:21.734945"], ["updated_at", "2015-12-09 19:45:21.734945"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.742796"], ["updated_at", "2015-12-09 19:45:21.742796"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.750458"], ["updated_at", "2015-12-09 19:45:21.750458"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.755126"], ["updated_at", "2015-12-09 19:45:21.755126"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:45:21.758851"], ["updated_at", "2015-12-09 19:45:21.758851"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test18@test.com"], ["name", "Factory User 18"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:45:21.761325"], ["updated_at", "2015-12-09 19:45:21.761325"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.765545"], ["updated_at", "2015-12-09 19:45:21.765545"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.771925"], ["updated_at", "2015-12-09 19:45:21.771925"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.786763"], ["updated_at", "2015-12-09 19:45:21.786763"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.788903"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.796177"], ["updated_at", "2015-12-09 19:45:21.796177"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.799631"], ["updated_at", "2015-12-09 19:45:21.799631"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.801052"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.805904"], ["updated_at", "2015-12-09 19:45:21.805904"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.810296"], ["updated_at", "2015-12-09 19:45:21.810296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.811991"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:21.880319"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:21.884832"], ["updated_at", "2015-12-09 19:45:21.884832"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:21.886641"], ["updated_at", "2015-12-09 19:45:21.886641"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:21.888167"], ["updated_at", "2015-12-09 19:45:21.888167"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:21.890323"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 19:45:21.891482"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.896620"], ["updated_at", "2015-12-09 19:45:21.896620"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.899645"], ["updated_at", "2015-12-09 19:45:21.899645"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.901046"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2015-12-09 19:45:21.904977"], ["updated_at", "2015-12-09 19:45:21.904977"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.0ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2015-12-09 19:45:21.908029"], ["updated_at", "2015-12-09 19:45:21.908029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.2ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.915079"], ["updated_at", "2015-12-09 19:45:21.915079"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.918920"], ["updated_at", "2015-12-09 19:45:21.918920"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.921302"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:21.924205"], ["updated_at", "2015-12-09 19:45:21.924205"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:21.926172"], ["updated_at", "2015-12-09 19:45:21.926172"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:21.927961"], ["updated_at", "2015-12-09 19:45:21.927961"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.933806"], ["updated_at", "2015-12-09 19:45:21.933806"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.936865"], ["updated_at", "2015-12-09 19:45:21.936865"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.938240"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.944118"], ["updated_at", "2015-12-09 19:45:21.944118"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.947227"], ["updated_at", "2015-12-09 19:45:21.947227"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.948615"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.954417"], ["updated_at", "2015-12-09 19:45:21.954417"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.957492"], ["updated_at", "2015-12-09 19:45:21.957492"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:21.958897"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:21.961923"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.970362"], ["updated_at", "2015-12-09 19:45:21.970362"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.973430"], ["updated_at", "2015-12-09 19:45:21.973430"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2015-12-09 19:45:21.975640"], ["updated_at", "2015-12-09 19:45:21.975640"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2015-12-09 19:45:21.977266"], ["updated_at", "2015-12-09 19:45:21.977266"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.979900"], ["updated_at", "2015-12-09 19:45:21.979900"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:21.981288"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.988349"], ["updated_at", "2015-12-09 19:45:21.988349"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:21.992300"], ["updated_at", "2015-12-09 19:45:21.992300"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2015-12-09 19:45:21.994482"], ["updated_at", "2015-12-09 19:45:21.994482"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2015-12-09 19:45:21.995729"], ["updated_at", "2015-12-09 19:45:21.995729"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:21.998816"], ["updated_at", "2015-12-09 19:45:21.998816"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.000324"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.006943"], ["updated_at", "2015-12-09 19:45:22.006943"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.012283"], ["updated_at", "2015-12-09 19:45:22.012283"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2015-12-09 19:45:22.015081"], ["updated_at", "2015-12-09 19:45:22.015081"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2015-12-09 19:45:22.017011"], ["updated_at", "2015-12-09 19:45:22.017011"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.020785"], ["updated_at", "2015-12-09 19:45:22.020785"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2015-12-09 19:45:22.022578"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.030623"], ["updated_at", "2015-12-09 19:45:22.030623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.033472"], ["updated_at", "2015-12-09 19:45:22.033472"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2015-12-09 19:45:22.035134"], ["updated_at", "2015-12-09 19:45:22.035134"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2015-12-09 19:45:22.036376"], ["updated_at", "2015-12-09 19:45:22.036376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.038629"], ["updated_at", "2015-12-09 19:45:22.038629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.040002"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.050945"], ["updated_at", "2015-12-09 19:45:22.050945"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.054561"], ["updated_at", "2015-12-09 19:45:22.054561"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2015-12-09 19:45:22.057407"], ["updated_at", "2015-12-09 19:45:22.057407"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2015-12-09 19:45:22.058953"], ["updated_at", "2015-12-09 19:45:22.058953"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.062200"], ["updated_at", "2015-12-09 19:45:22.062200"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.063910"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:22.072647"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.078254"], ["updated_at", "2015-12-09 19:45:22.078254"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2015-12-09 19:45:22.080925"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.083847"], ["updated_at", "2015-12-09 19:45:22.083847"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.085586"], ["updated_at", "2015-12-09 19:45:22.085586"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.9ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.087412"], ["updated_at", "2015-12-09 19:45:22.087412"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2015-12-09 19:45:22.100317"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2015-12-09 19:45:22.173349"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.6ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 19:45:22.178621"], ["updated_at", "2015-12-09 19:45:22.178621"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2015-12-09 19:45:22.182080"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.4ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2015-12-09 19:45:22.200097"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2015-12-09 19:45:22.202759"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.4ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:45:22.215462"], ["updated_at", "2015-12-09 19:45:22.215462"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:45:22.218491"], ["updated_at", "2015-12-09 19:45:22.218491"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2015-12-09 19:45:22.220187"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.5ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:22.232207"], ["updated_at", "2015-12-09 19:45:22.232207"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:22.235794"], ["updated_at", "2015-12-09 19:45:22.235794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:22.240966"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 19:45:22.242150"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.250164"], ["updated_at", "2015-12-09 19:45:22.250164"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.253145"], ["updated_at", "2015-12-09 19:45:22.253145"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2015-12-09 19:45:22.255187"], ["updated_at", "2015-12-09 19:45:22.255187"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2015-12-09 19:45:22.256294"], ["updated_at", "2015-12-09 19:45:22.256294"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.258990"], ["updated_at", "2015-12-09 19:45:22.258990"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.260817"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.263496"], ["updated_at", "2015-12-09 19:45:22.263496"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_sections"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.272332"], ["updated_at", "2015-12-09 19:45:22.272332"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.275497"], ["updated_at", "2015-12-09 19:45:22.275497"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2015-12-09 19:45:22.277373"], ["updated_at", "2015-12-09 19:45:22.277373"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2015-12-09 19:45:22.278496"], ["updated_at", "2015-12-09 19:45:22.278496"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.280981"], ["updated_at", "2015-12-09 19:45:22.280981"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.282427"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.284530"], ["updated_at", "2015-12-09 19:45:22.284530"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.286036"], ["updated_at", "2015-12-09 19:45:22.286036"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.287526"], ["updated_at", "2015-12-09 19:45:22.287526"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.296254"], ["updated_at", "2015-12-09 19:45:22.296254"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.299151"], ["updated_at", "2015-12-09 19:45:22.299151"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2015-12-09 19:45:22.301217"], ["updated_at", "2015-12-09 19:45:22.301217"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2015-12-09 19:45:22.302380"], ["updated_at", "2015-12-09 19:45:22.302380"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.304720"], ["updated_at", "2015-12-09 19:45:22.304720"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.306496"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.309304"], ["updated_at", "2015-12-09 19:45:22.309304"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.311839"], ["updated_at", "2015-12-09 19:45:22.311839"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.313593"], ["updated_at", "2015-12-09 19:45:22.313593"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.315191"], ["updated_at", "2015-12-09 19:45:22.315191"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.394669"], ["updated_at", "2015-12-09 19:45:22.394669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.397670"], ["updated_at", "2015-12-09 19:45:22.397670"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2015-12-09 19:45:22.399373"], ["updated_at", "2015-12-09 19:45:22.399373"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2015-12-09 19:45:22.400503"], ["updated_at", "2015-12-09 19:45:22.400503"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.402841"], ["updated_at", "2015-12-09 19:45:22.402841"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.404179"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:45:22.411200"], ["updated_at", "2015-12-09 19:45:22.411200"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_categories"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Assignment Load (0.2ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.421227"], ["updated_at", "2015-12-09 19:45:22.421227"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.424296"], ["updated_at", "2015-12-09 19:45:22.424296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2015-12-09 19:45:22.426158"], ["updated_at", "2015-12-09 19:45:22.426158"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2015-12-09 19:45:22.427339"], ["updated_at", "2015-12-09 19:45:22.427339"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.429718"], ["updated_at", "2015-12-09 19:45:22.429718"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.431014"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:45:22.433064"], ["updated_at", "2015-12-09 19:45:22.433064"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignments"[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.451476"], ["updated_at", "2015-12-09 19:45:22.451476"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.454683"], ["updated_at", "2015-12-09 19:45:22.454683"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2015-12-09 19:45:22.456636"], ["updated_at", "2015-12-09 19:45:22.456636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2015-12-09 19:45:22.457955"], ["updated_at", "2015-12-09 19:45:22.457955"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.461862"], ["updated_at", "2015-12-09 19:45:22.461862"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.463466"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 19:45:22.465566"], ["updated_at", "2015-12-09 19:45:22.465566"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.473067"], ["updated_at", "2015-12-09 19:45:22.473067"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.476382"], ["updated_at", "2015-12-09 19:45:22.476382"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2015-12-09 19:45:22.478480"], ["updated_at", "2015-12-09 19:45:22.478480"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2015-12-09 19:45:22.479680"], ["updated_at", "2015-12-09 19:45:22.479680"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.482170"], ["updated_at", "2015-12-09 19:45:22.482170"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.483528"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.485637"], ["updated_at", "2015-12-09 19:45:22.485637"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.487714"], ["updated_at", "2015-12-09 19:45:22.487714"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.489180"], ["updated_at", "2015-12-09 19:45:22.489180"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.490663"], ["updated_at", "2015-12-09 19:45:22.490663"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Submission Load (0.2ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:22.519937"], ["updated_at", "2015-12-09 19:45:22.519937"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:22.522893"], ["updated_at", "2015-12-09 19:45:22.522893"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:22.525722"], ["updated_at", "2015-12-09 19:45:22.525722"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:22.528370"], ["updated_at", "2015-12-09 19:45:22.528370"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_submissions" [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.537188"], ["updated_at", "2015-12-09 19:45:22.537188"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.541498"], ["updated_at", "2015-12-09 19:45:22.541498"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2015-12-09 19:45:22.544885"], ["updated_at", "2015-12-09 19:45:22.544885"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2015-12-09 19:45:22.546443"], ["updated_at", "2015-12-09 19:45:22.546443"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.549538"], ["updated_at", "2015-12-09 19:45:22.549538"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.551172"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:45:22.553826"], ["updated_at", "2015-12-09 19:45:22.553826"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:45:22.557696"], ["updated_at", "2015-12-09 19:45:22.557696"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:45:22.560808"], ["updated_at", "2015-12-09 19:45:22.560808"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.2ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.571635"], ["updated_at", "2015-12-09 19:45:22.571635"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.576452"], ["updated_at", "2015-12-09 19:45:22.576452"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2015-12-09 19:45:22.578751"], ["updated_at", "2015-12-09 19:45:22.578751"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2015-12-09 19:45:22.580157"], ["updated_at", "2015-12-09 19:45:22.580157"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.582820"], ["updated_at", "2015-12-09 19:45:22.582820"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.584200"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.638540"], ["updated_at", "2015-12-09 19:45:22.638540"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.641674"], ["updated_at", "2015-12-09 19:45:22.641674"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.643657"], ["updated_at", "2015-12-09 19:45:22.643657"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.645205"], ["updated_at", "2015-12-09 19:45:22.645205"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:45:22.660406"], ["updated_at", "2015-12-09 19:45:22.660406"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:45:22.662542"], ["updated_at", "2015-12-09 19:45:22.662542"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.673264"], ["updated_at", "2015-12-09 19:45:22.673264"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.676330"], ["updated_at", "2015-12-09 19:45:22.676330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2015-12-09 19:45:22.678739"], ["updated_at", "2015-12-09 19:45:22.678739"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2015-12-09 19:45:22.680576"], ["updated_at", "2015-12-09 19:45:22.680576"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.683775"], ["updated_at", "2015-12-09 19:45:22.683775"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.685441"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:22.689473"], ["updated_at", "2015-12-09 19:45:22.689473"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:22.691958"], ["updated_at", "2015-12-09 19:45:22.691958"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.698963"], ["updated_at", "2015-12-09 19:45:22.698963"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.701821"], ["updated_at", "2015-12-09 19:45:22.701821"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2015-12-09 19:45:22.703788"], ["updated_at", "2015-12-09 19:45:22.703788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2015-12-09 19:45:22.706222"], ["updated_at", "2015-12-09 19:45:22.706222"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.709594"], ["updated_at", "2015-12-09 19:45:22.709594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.711827"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.714381"], ["updated_at", "2015-12-09 19:45:22.714381"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.716498"], ["updated_at", "2015-12-09 19:45:22.716498"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.717981"], ["updated_at", "2015-12-09 19:45:22.717981"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.719417"], ["updated_at", "2015-12-09 19:45:22.719417"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 19:45:22.733886"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.752068"], ["updated_at", "2015-12-09 19:45:22.752068"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.755813"], ["updated_at", "2015-12-09 19:45:22.755813"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2015-12-09 19:45:22.757787"], ["updated_at", "2015-12-09 19:45:22.757787"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2015-12-09 19:45:22.758932"], ["updated_at", "2015-12-09 19:45:22.758932"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.761201"], ["updated_at", "2015-12-09 19:45:22.761201"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.762527"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.764568"], ["updated_at", "2015-12-09 19:45:22.764568"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.766559"], ["updated_at", "2015-12-09 19:45:22.766559"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.768388"], ["updated_at", "2015-12-09 19:45:22.768388"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.770846"], ["updated_at", "2015-12-09 19:45:22.770846"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:45:22.787843"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.805889"], ["updated_at", "2015-12-09 19:45:22.805889"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.809842"], ["updated_at", "2015-12-09 19:45:22.809842"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2015-12-09 19:45:22.811969"], ["updated_at", "2015-12-09 19:45:22.811969"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2015-12-09 19:45:22.813214"], ["updated_at", "2015-12-09 19:45:22.813214"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.815705"], ["updated_at", "2015-12-09 19:45:22.815705"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.817051"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.819166"], ["updated_at", "2015-12-09 19:45:22.819166"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.821216"], ["updated_at", "2015-12-09 19:45:22.821216"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.823058"], ["updated_at", "2015-12-09 19:45:22.823058"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.824543"], ["updated_at", "2015-12-09 19:45:22.824543"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:22.897794"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.914153"], ["updated_at", "2015-12-09 19:45:22.914153"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.917176"], ["updated_at", "2015-12-09 19:45:22.917176"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2015-12-09 19:45:22.919123"], ["updated_at", "2015-12-09 19:45:22.919123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2015-12-09 19:45:22.920268"], ["updated_at", "2015-12-09 19:45:22.920268"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.922684"], ["updated_at", "2015-12-09 19:45:22.922684"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.924551"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:22.927503"], ["updated_at", "2015-12-09 19:45:22.927503"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.930383"], ["updated_at", "2015-12-09 19:45:22.930383"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.932150"], ["updated_at", "2015-12-09 19:45:22.932150"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:22.933705"], ["updated_at", "2015-12-09 19:45:22.933705"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:45:22.949507"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2015-12-09 19:45:22.955124"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.965023"], ["updated_at", "2015-12-09 19:45:22.965023"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.968009"], ["updated_at", "2015-12-09 19:45:22.968009"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2015-12-09 19:45:22.969889"], ["updated_at", "2015-12-09 19:45:22.969889"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2015-12-09 19:45:22.971038"], ["updated_at", "2015-12-09 19:45:22.971038"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.973527"], ["updated_at", "2015-12-09 19:45:22.973527"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.975777"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.982626"], ["updated_at", "2015-12-09 19:45:22.982626"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:22.985963"], ["updated_at", "2015-12-09 19:45:22.985963"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2015-12-09 19:45:22.987784"], ["updated_at", "2015-12-09 19:45:22.987784"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2015-12-09 19:45:22.989082"], ["updated_at", "2015-12-09 19:45:22.989082"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:22.992464"], ["updated_at", "2015-12-09 19:45:22.992464"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:22.994343"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.004373"], ["updated_at", "2015-12-09 19:45:23.004373"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.008261"], ["updated_at", "2015-12-09 19:45:23.008261"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2015-12-09 19:45:23.010803"], ["updated_at", "2015-12-09 19:45:23.010803"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2015-12-09 19:45:23.012150"], ["updated_at", "2015-12-09 19:45:23.012150"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.014653"], ["updated_at", "2015-12-09 19:45:23.014653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.016030"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.023854"], ["updated_at", "2015-12-09 19:45:23.023854"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.026685"], ["updated_at", "2015-12-09 19:45:23.026685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2015-12-09 19:45:23.028625"], ["updated_at", "2015-12-09 19:45:23.028625"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2015-12-09 19:45:23.029791"], ["updated_at", "2015-12-09 19:45:23.029791"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.032204"], ["updated_at", "2015-12-09 19:45:23.032204"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.033492"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.041483"], ["updated_at", "2015-12-09 19:45:23.041483"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.044980"], ["updated_at", "2015-12-09 19:45:23.044980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2015-12-09 19:45:23.046850"], ["updated_at", "2015-12-09 19:45:23.046850"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2015-12-09 19:45:23.047939"], ["updated_at", "2015-12-09 19:45:23.047939"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.050222"], ["updated_at", "2015-12-09 19:45:23.050222"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.051497"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.059696"], ["updated_at", "2015-12-09 19:45:23.059696"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.062974"], ["updated_at", "2015-12-09 19:45:23.062974"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2015-12-09 19:45:23.064823"], ["updated_at", "2015-12-09 19:45:23.064823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2015-12-09 19:45:23.065936"], ["updated_at", "2015-12-09 19:45:23.065936"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.068299"], ["updated_at", "2015-12-09 19:45:23.068299"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.069674"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.077650"], ["updated_at", "2015-12-09 19:45:23.077650"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.080832"], ["updated_at", "2015-12-09 19:45:23.080832"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2015-12-09 19:45:23.082624"], ["updated_at", "2015-12-09 19:45:23.082624"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2015-12-09 19:45:23.083760"], ["updated_at", "2015-12-09 19:45:23.083760"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.086143"], ["updated_at", "2015-12-09 19:45:23.086143"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.087477"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.094590"], ["updated_at", "2015-12-09 19:45:23.094590"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.155992"], ["updated_at", "2015-12-09 19:45:23.155992"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2015-12-09 19:45:23.158339"], ["updated_at", "2015-12-09 19:45:23.158339"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2015-12-09 19:45:23.159526"], ["updated_at", "2015-12-09 19:45:23.159526"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.161879"], ["updated_at", "2015-12-09 19:45:23.161879"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.163254"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.172450"], ["updated_at", "2015-12-09 19:45:23.172450"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 143' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 143' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 143"], ["key", "Key 143"], ["secret", "Account 143"], ["canvas_account_id", "142"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:23.175963"], ["updated_at", "2015-12-09 19:45:23.175963"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2015-12-09 19:45:23.178204"], ["updated_at", "2015-12-09 19:45:23.178204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2015-12-09 19:45:23.179443"], ["updated_at", "2015-12-09 19:45:23.179443"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:23.181905"], ["updated_at", "2015-12-09 19:45:23.181905"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:23.183311"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:23.187283"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2015-12-09 19:45:44.497472"], ["updated_at", "2015-12-09 19:45:44.497472"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:45:44.511160"], ["updated_at", "2015-12-09 19:45:44.511160"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.1ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-09 20:45:44.529380"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2015-12-09 19:45:44.530518"], ["updated_at", "2015-12-09 19:45:44.530518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 23ms (Views: 6.5ms | ActiveRecord: 0.6ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.561335"], ["updated_at", "2015-12-09 19:45:44.561335"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.571754"], ["updated_at", "2015-12-09 19:45:44.571754"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:45:44.574873"], ["updated_at", "2015-12-09 19:45:44.574873"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:44.576969"], ["updated_at", "2015-12-09 19:45:44.576969"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.634589"], ["updated_at", "2015-12-09 19:45:44.634589"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.637674"], ["updated_at", "2015-12-09 19:45:44.637674"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2015-12-09 19:45:44.639318"], ["updated_at", "2015-12-09 19:45:44.639318"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2015-12-09 19:45:44.640408"], ["updated_at", "2015-12-09 19:45:44.640408"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.645441"], ["updated_at", "2015-12-09 19:45:44.645441"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.648114"], ["updated_at", "2015-12-09 19:45:44.648114"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2015-12-09 19:45:44.649816"], ["updated_at", "2015-12-09 19:45:44.649816"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2015-12-09 19:45:44.650875"], ["updated_at", "2015-12-09 19:45:44.650875"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.667146"], ["updated_at", "2015-12-09 19:45:44.667146"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.671850"], ["updated_at", "2015-12-09 19:45:44.671850"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2015-12-09 19:45:44.674059"], ["updated_at", "2015-12-09 19:45:44.674059"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2015-12-09 19:45:44.675370"], ["updated_at", "2015-12-09 19:45:44.675370"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.685187"], ["updated_at", "2015-12-09 19:45:44.685187"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.688830"], ["updated_at", "2015-12-09 19:45:44.688830"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2015-12-09 19:45:44.690788"], ["updated_at", "2015-12-09 19:45:44.690788"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2015-12-09 19:45:44.691994"], ["updated_at", "2015-12-09 19:45:44.691994"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.697138"], ["updated_at", "2015-12-09 19:45:44.697138"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.700398"], ["updated_at", "2015-12-09 19:45:44.700398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2015-12-09 19:45:44.702189"], ["updated_at", "2015-12-09 19:45:44.702189"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2015-12-09 19:45:44.703296"], ["updated_at", "2015-12-09 19:45:44.703296"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 19:45:44.705641"], ["updated_at", "2015-12-09 19:45:44.705641"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 19:45:44.710436"], ["updated_at", "2015-12-09 19:45:44.710436"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.717093"], ["updated_at", "2015-12-09 19:45:44.717093"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.721100"], ["updated_at", "2015-12-09 19:45:44.721100"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2015-12-09 19:45:44.723333"], ["updated_at", "2015-12-09 19:45:44.723333"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2015-12-09 19:45:44.724755"], ["updated_at", "2015-12-09 19:45:44.724755"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2015-12-09 19:45:44.731843"], ["updated_at", "2015-12-09 19:45:44.731843"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["user_id", "abcd"], ["api_domain", "test.example"], ["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-10 19:45:44.743738"], ["created_at", "2015-12-09 19:45:44.744772"], ["updated_at", "2015-12-09 19:45:44.744772"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:45:44.754379"], ["updated_at", "2015-12-09 19:45:44.754379"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2015-12-09 19:45:44.756106"], ["updated_at", "2015-12-09 19:45:44.756106"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:45:44.757437"], ["updated_at", "2015-12-09 19:45:44.757437"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.767177"], ["updated_at", "2015-12-09 19:45:44.767177"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.771057"], ["updated_at", "2015-12-09 19:45:44.771057"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2015-12-09 19:45:44.772993"], ["updated_at", "2015-12-09 19:45:44.772993"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.779236"], ["updated_at", "2015-12-09 19:45:44.779236"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.782534"], ["updated_at", "2015-12-09 19:45:44.782534"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2015-12-09 19:45:44.784217"], ["updated_at", "2015-12-09 19:45:44.784217"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.788560"], ["updated_at", "2015-12-09 19:45:44.788560"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.792715"], ["updated_at", "2015-12-09 19:45:44.792715"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2015-12-09 19:45:44.795194"], ["updated_at", "2015-12-09 19:45:44.795194"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:44.796640"], ["updated_at", "2015-12-09 19:45:44.796640"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.799968"], ["updated_at", "2015-12-09 19:45:44.799968"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2015-12-09 19:45:44.801608"], ["updated_at", "2015-12-09 19:45:44.801608"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:44.802732"], ["updated_at", "2015-12-09 19:45:44.802732"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.806983"], ["updated_at", "2015-12-09 19:45:44.806983"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2015-12-09 19:45:44.808660"], ["updated_at", "2015-12-09 19:45:44.808660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.811412"], ["updated_at", "2015-12-09 19:45:44.811412"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:44.813486"], ["updated_at", "2015-12-09 19:45:44.813486"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.816419"], ["updated_at", "2015-12-09 19:45:44.816419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 19:45:44.818227"], ["updated_at", "2015-12-09 19:45:44.818227"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.822805"], ["updated_at", "2015-12-09 19:45:44.822805"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.826394"], ["updated_at", "2015-12-09 19:45:44.826394"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2015-12-09 19:45:44.880889"], ["updated_at", "2015-12-09 19:45:44.880889"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.893168"], ["updated_at", "2015-12-09 19:45:44.893168"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2015-12-09 19:45:44.895220"], ["updated_at", "2015-12-09 19:45:44.895220"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.903801"], ["updated_at", "2015-12-09 19:45:44.903801"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.906830"], ["updated_at", "2015-12-09 19:45:44.906830"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2015-12-09 19:45:44.908322"], ["updated_at", "2015-12-09 19:45:44.908322"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2015-12-09 19:45:44.909410"], ["updated_at", "2015-12-09 19:45:44.909410"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:45:44.911209"], ["updated_at", "2015-12-09 19:45:44.911209"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.917633"], ["updated_at", "2015-12-09 19:45:44.917633"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2015-12-09 19:45:44.919894"], ["updated_at", "2015-12-09 19:45:44.919894"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.922530"], ["updated_at", "2015-12-09 19:45:44.922530"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.925952"], ["updated_at", "2015-12-09 19:45:44.925952"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2015-12-09 19:45:44.928703"], ["updated_at", "2015-12-09 19:45:44.928703"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2015-12-09 19:45:44.930016"], ["updated_at", "2015-12-09 19:45:44.930016"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2015-12-09 19:45:44.931205"], ["updated_at", "2015-12-09 19:45:44.931205"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.936653"], ["updated_at", "2015-12-09 19:45:44.936653"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2015-12-09 19:45:44.938819"], ["updated_at", "2015-12-09 19:45:44.938819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.941331"], ["updated_at", "2015-12-09 19:45:44.941331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.944134"], ["updated_at", "2015-12-09 19:45:44.944134"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2015-12-09 19:45:44.945631"], ["updated_at", "2015-12-09 19:45:44.945631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2015-12-09 19:45:44.946746"], ["updated_at", "2015-12-09 19:45:44.946746"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2015-12-09 19:45:44.947849"], ["updated_at", "2015-12-09 19:45:44.947849"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.952992"], ["updated_at", "2015-12-09 19:45:44.952992"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2015-12-09 19:45:44.955177"], ["updated_at", "2015-12-09 19:45:44.955177"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.958057"], ["updated_at", "2015-12-09 19:45:44.958057"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.961063"], ["updated_at", "2015-12-09 19:45:44.961063"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2015-12-09 19:45:44.962925"], ["updated_at", "2015-12-09 19:45:44.962925"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2015-12-09 19:45:44.964115"], ["updated_at", "2015-12-09 19:45:44.964115"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2015-12-09 19:45:44.965258"], ["updated_at", "2015-12-09 19:45:44.965258"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:44.966915"], ["updated_at", "2015-12-09 19:45:44.966915"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:44.968877"], ["updated_at", "2015-12-09 19:45:44.968877"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.974208"], ["updated_at", "2015-12-09 19:45:44.974208"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2015-12-09 19:45:44.976372"], ["updated_at", "2015-12-09 19:45:44.976372"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.979391"], ["updated_at", "2015-12-09 19:45:44.979391"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.982186"], ["updated_at", "2015-12-09 19:45:44.982186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2015-12-09 19:45:44.983727"], ["updated_at", "2015-12-09 19:45:44.983727"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2015-12-09 19:45:44.984849"], ["updated_at", "2015-12-09 19:45:44.984849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2015-12-09 19:45:44.985987"], ["updated_at", "2015-12-09 19:45:44.985987"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:44.987734"], ["updated_at", "2015-12-09 19:45:44.987734"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2015-12-09 19:45:44.989536"], ["updated_at", "2015-12-09 19:45:44.989536"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.994661"], ["updated_at", "2015-12-09 19:45:44.994661"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2015-12-09 19:45:44.996749"], ["updated_at", "2015-12-09 19:45:44.996749"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:44.999357"], ["updated_at", "2015-12-09 19:45:44.999357"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.002468"], ["updated_at", "2015-12-09 19:45:45.002468"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2015-12-09 19:45:45.004080"], ["updated_at", "2015-12-09 19:45:45.004080"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2015-12-09 19:45:45.005268"], ["updated_at", "2015-12-09 19:45:45.005268"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2015-12-09 19:45:45.006473"], ["updated_at", "2015-12-09 19:45:45.006473"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.019845"], ["updated_at", "2015-12-09 19:45:45.019845"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.023089"], ["updated_at", "2015-12-09 19:45:45.023089"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2015-12-09 19:45:45.024860"], ["updated_at", "2015-12-09 19:45:45.024860"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2015-12-09 19:45:45.026108"], ["updated_at", "2015-12-09 19:45:45.026108"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.032354"], ["updated_at", "2015-12-09 19:45:45.032354"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.036151"], ["updated_at", "2015-12-09 19:45:45.036151"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2015-12-09 19:45:45.038257"], ["updated_at", "2015-12-09 19:45:45.038257"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2015-12-09 19:45:45.039688"], ["updated_at", "2015-12-09 19:45:45.039688"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.044844"], ["updated_at", "2015-12-09 19:45:45.044844"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.047904"], ["updated_at", "2015-12-09 19:45:45.047904"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2015-12-09 19:45:45.049813"], ["updated_at", "2015-12-09 19:45:45.049813"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2015-12-09 19:45:45.050933"], ["updated_at", "2015-12-09 19:45:45.050933"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:45:45.052474"], ["updated_at", "2015-12-09 19:45:45.052474"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 19:45:45.054103"], ["updated_at", "2015-12-09 19:45:45.054103"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.058775"], ["updated_at", "2015-12-09 19:45:45.058775"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.062261"], ["updated_at", "2015-12-09 19:45:45.062261"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2015-12-09 19:45:45.064291"], ["updated_at", "2015-12-09 19:45:45.064291"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2015-12-09 19:45:45.065548"], ["updated_at", "2015-12-09 19:45:45.065548"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.078754"], ["updated_at", "2015-12-09 19:45:45.078754"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2015-12-09 19:45:45.081021"], ["updated_at", "2015-12-09 19:45:45.081021"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.085076"], ["updated_at", "2015-12-09 19:45:45.085076"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.088485"], ["updated_at", "2015-12-09 19:45:45.088485"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2015-12-09 19:45:45.090085"], ["updated_at", "2015-12-09 19:45:45.090085"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2015-12-09 19:45:45.091382"], ["updated_at", "2015-12-09 19:45:45.091382"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2015-12-09 19:45:45.092564"], ["updated_at", "2015-12-09 19:45:45.092564"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.153662"], ["updated_at", "2015-12-09 19:45:45.153662"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2015-12-09 19:45:45.156345"], ["updated_at", "2015-12-09 19:45:45.156345"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.159434"], ["updated_at", "2015-12-09 19:45:45.159434"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.163043"], ["updated_at", "2015-12-09 19:45:45.163043"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2015-12-09 19:45:45.164682"], ["updated_at", "2015-12-09 19:45:45.164682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2015-12-09 19:45:45.165872"], ["updated_at", "2015-12-09 19:45:45.165872"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2015-12-09 19:45:45.167563"], ["updated_at", "2015-12-09 19:45:45.167563"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.173743"], ["updated_at", "2015-12-09 19:45:45.173743"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2015-12-09 19:45:45.175978"], ["updated_at", "2015-12-09 19:45:45.175978"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.179441"], ["updated_at", "2015-12-09 19:45:45.179441"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.182512"], ["updated_at", "2015-12-09 19:45:45.182512"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2015-12-09 19:45:45.184273"], ["updated_at", "2015-12-09 19:45:45.184273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2015-12-09 19:45:45.185743"], ["updated_at", "2015-12-09 19:45:45.185743"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2015-12-09 19:45:45.187008"], ["updated_at", "2015-12-09 19:45:45.187008"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.191623"], ["updated_at", "2015-12-09 19:45:45.191623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2015-12-09 19:45:45.194261"], ["updated_at", "2015-12-09 19:45:45.194261"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.197019"], ["updated_at", "2015-12-09 19:45:45.197019"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.199895"], ["updated_at", "2015-12-09 19:45:45.199895"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2015-12-09 19:45:45.201587"], ["updated_at", "2015-12-09 19:45:45.201587"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2015-12-09 19:45:45.202746"], ["updated_at", "2015-12-09 19:45:45.202746"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2015-12-09 19:45:45.203902"], ["updated_at", "2015-12-09 19:45:45.203902"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:45:45.205548"], ["updated_at", "2015-12-09 19:45:45.205548"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:45:45.207336"], ["updated_at", "2015-12-09 19:45:45.207336"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.212363"], ["updated_at", "2015-12-09 19:45:45.212363"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2015-12-09 19:45:45.214442"], ["updated_at", "2015-12-09 19:45:45.214442"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.218333"], ["updated_at", "2015-12-09 19:45:45.218333"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.222751"], ["updated_at", "2015-12-09 19:45:45.222751"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2015-12-09 19:45:45.225285"], ["updated_at", "2015-12-09 19:45:45.225285"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2015-12-09 19:45:45.226743"], ["updated_at", "2015-12-09 19:45:45.226743"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2015-12-09 19:45:45.228086"], ["updated_at", "2015-12-09 19:45:45.228086"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 19:45:45.229877"], ["updated_at", "2015-12-09 19:45:45.229877"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2015-12-09 19:45:45.231702"], ["updated_at", "2015-12-09 19:45:45.231702"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.236360"], ["updated_at", "2015-12-09 19:45:45.236360"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2015-12-09 19:45:45.238331"], ["updated_at", "2015-12-09 19:45:45.238331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.240913"], ["updated_at", "2015-12-09 19:45:45.240913"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.243830"], ["updated_at", "2015-12-09 19:45:45.243830"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2015-12-09 19:45:45.245411"], ["updated_at", "2015-12-09 19:45:45.245411"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2015-12-09 19:45:45.246832"], ["updated_at", "2015-12-09 19:45:45.246832"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2015-12-09 19:45:45.248162"], ["updated_at", "2015-12-09 19:45:45.248162"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.254466"], ["updated_at", "2015-12-09 19:45:45.254466"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.260267"], ["updated_at", "2015-12-09 19:45:45.260267"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:45:45.263379"], ["updated_at", "2015-12-09 19:45:45.263379"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 19:45:45.265460"], ["updated_at", "2015-12-09 19:45:45.265460"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.273445"], ["updated_at", "2015-12-09 19:45:45.273445"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.279602"], ["updated_at", "2015-12-09 19:45:45.279602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.283847"], ["updated_at", "2015-12-09 19:45:45.283847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:45:45.286185"], ["updated_at", "2015-12-09 19:45:45.286185"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 19:45:45.288187"], ["updated_at", "2015-12-09 19:45:45.288187"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.292444"], ["updated_at", "2015-12-09 19:45:45.292444"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.299123"], ["updated_at", "2015-12-09 19:45:45.299123"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.311203"], ["updated_at", "2015-12-09 19:45:45.311203"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.313670"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.320031"], ["updated_at", "2015-12-09 19:45:45.320031"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.323038"], ["updated_at", "2015-12-09 19:45:45.323038"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.324470"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.329109"], ["updated_at", "2015-12-09 19:45:45.329109"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.332240"], ["updated_at", "2015-12-09 19:45:45.332240"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.333647"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:45.345585"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.405413"], ["updated_at", "2015-12-09 19:45:45.405413"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.407570"], ["updated_at", "2015-12-09 19:45:45.407570"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.409156"], ["updated_at", "2015-12-09 19:45:45.409156"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:45.411253"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 19:45:45.412347"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.417632"], ["updated_at", "2015-12-09 19:45:45.417632"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.420861"], ["updated_at", "2015-12-09 19:45:45.420861"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.422264"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2015-12-09 19:45:45.425852"], ["updated_at", "2015-12-09 19:45:45.425852"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.0ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2015-12-09 19:45:45.428071"], ["updated_at", "2015-12-09 19:45:45.428071"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.433988"], ["updated_at", "2015-12-09 19:45:45.433988"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.437151"], ["updated_at", "2015-12-09 19:45:45.437151"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.438535"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.440536"], ["updated_at", "2015-12-09 19:45:45.440536"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.442189"], ["updated_at", "2015-12-09 19:45:45.442189"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.443685"], ["updated_at", "2015-12-09 19:45:45.443685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.449314"], ["updated_at", "2015-12-09 19:45:45.449314"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.452726"], ["updated_at", "2015-12-09 19:45:45.452726"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.454162"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.459006"], ["updated_at", "2015-12-09 19:45:45.459006"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.463234"], ["updated_at", "2015-12-09 19:45:45.463234"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.464713"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.471494"], ["updated_at", "2015-12-09 19:45:45.471494"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.475535"], ["updated_at", "2015-12-09 19:45:45.475535"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:45.477208"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:45.480273"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.488215"], ["updated_at", "2015-12-09 19:45:45.488215"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.491273"], ["updated_at", "2015-12-09 19:45:45.491273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2015-12-09 19:45:45.492955"], ["updated_at", "2015-12-09 19:45:45.492955"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2015-12-09 19:45:45.495008"], ["updated_at", "2015-12-09 19:45:45.495008"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.498730"], ["updated_at", "2015-12-09 19:45:45.498730"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.500453"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.510014"], ["updated_at", "2015-12-09 19:45:45.510014"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.515788"], ["updated_at", "2015-12-09 19:45:45.515788"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2015-12-09 19:45:45.518058"], ["updated_at", "2015-12-09 19:45:45.518058"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2015-12-09 19:45:45.519397"], ["updated_at", "2015-12-09 19:45:45.519397"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.522085"], ["updated_at", "2015-12-09 19:45:45.522085"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.523419"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.530283"], ["updated_at", "2015-12-09 19:45:45.530283"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.533518"], ["updated_at", "2015-12-09 19:45:45.533518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2015-12-09 19:45:45.535337"], ["updated_at", "2015-12-09 19:45:45.535337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2015-12-09 19:45:45.536544"], ["updated_at", "2015-12-09 19:45:45.536544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.538999"], ["updated_at", "2015-12-09 19:45:45.538999"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2015-12-09 19:45:45.540227"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.547416"], ["updated_at", "2015-12-09 19:45:45.547416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.551237"], ["updated_at", "2015-12-09 19:45:45.551237"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2015-12-09 19:45:45.553669"], ["updated_at", "2015-12-09 19:45:45.553669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2015-12-09 19:45:45.555032"], ["updated_at", "2015-12-09 19:45:45.555032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.558166"], ["updated_at", "2015-12-09 19:45:45.558166"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.559999"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.568685"], ["updated_at", "2015-12-09 19:45:45.568685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.571920"], ["updated_at", "2015-12-09 19:45:45.571920"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2015-12-09 19:45:45.573724"], ["updated_at", "2015-12-09 19:45:45.573724"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2015-12-09 19:45:45.574864"], ["updated_at", "2015-12-09 19:45:45.574864"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.577312"], ["updated_at", "2015-12-09 19:45:45.577312"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.578724"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:45.585566"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:45.589574"], ["updated_at", "2015-12-09 19:45:45.589574"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2015-12-09 19:45:45.591905"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.594738"], ["updated_at", "2015-12-09 19:45:45.594738"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.596705"], ["updated_at", "2015-12-09 19:45:45.596705"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.598341"], ["updated_at", "2015-12-09 19:45:45.598341"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2015-12-09 19:45:45.606582"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2015-12-09 19:45:45.682021"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 19:45:45.685541"], ["updated_at", "2015-12-09 19:45:45.685541"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2015-12-09 19:45:45.687289"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2015-12-09 19:45:45.703334"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2015-12-09 19:45:45.705945"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.2ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:45:45.721609"], ["updated_at", "2015-12-09 19:45:45.721609"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:45:45.723980"], ["updated_at", "2015-12-09 19:45:45.723980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2015-12-09 19:45:45.725619"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.2ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:45.736531"], ["updated_at", "2015-12-09 19:45:45.736531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:45.739392"], ["updated_at", "2015-12-09 19:45:45.739392"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:45.744658"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 19:45:45.745861"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.754882"], ["updated_at", "2015-12-09 19:45:45.754882"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.757841"], ["updated_at", "2015-12-09 19:45:45.757841"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2015-12-09 19:45:45.759853"], ["updated_at", "2015-12-09 19:45:45.759853"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2015-12-09 19:45:45.760980"], ["updated_at", "2015-12-09 19:45:45.760980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.763407"], ["updated_at", "2015-12-09 19:45:45.763407"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.764732"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:45.767410"], ["updated_at", "2015-12-09 19:45:45.767410"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_sections"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.774994"], ["updated_at", "2015-12-09 19:45:45.774994"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.777974"], ["updated_at", "2015-12-09 19:45:45.777974"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2015-12-09 19:45:45.779625"], ["updated_at", "2015-12-09 19:45:45.779625"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2015-12-09 19:45:45.780754"], ["updated_at", "2015-12-09 19:45:45.780754"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.783229"], ["updated_at", "2015-12-09 19:45:45.783229"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.784558"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.786919"], ["updated_at", "2015-12-09 19:45:45.786919"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.788439"], ["updated_at", "2015-12-09 19:45:45.788439"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.789901"], ["updated_at", "2015-12-09 19:45:45.789901"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.798523"], ["updated_at", "2015-12-09 19:45:45.798523"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.801507"], ["updated_at", "2015-12-09 19:45:45.801507"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2015-12-09 19:45:45.803215"], ["updated_at", "2015-12-09 19:45:45.803215"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2015-12-09 19:45:45.804412"], ["updated_at", "2015-12-09 19:45:45.804412"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.806767"], ["updated_at", "2015-12-09 19:45:45.806767"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.808087"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:45.810233"], ["updated_at", "2015-12-09 19:45:45.810233"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.812432"], ["updated_at", "2015-12-09 19:45:45.812432"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.813983"], ["updated_at", "2015-12-09 19:45:45.813983"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.815449"], ["updated_at", "2015-12-09 19:45:45.815449"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.886686"], ["updated_at", "2015-12-09 19:45:45.886686"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.889701"], ["updated_at", "2015-12-09 19:45:45.889701"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2015-12-09 19:45:45.891370"], ["updated_at", "2015-12-09 19:45:45.891370"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2015-12-09 19:45:45.892455"], ["updated_at", "2015-12-09 19:45:45.892455"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.895142"], ["updated_at", "2015-12-09 19:45:45.895142"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.897354"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:45:45.903605"], ["updated_at", "2015-12-09 19:45:45.903605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_categories"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.910748"], ["updated_at", "2015-12-09 19:45:45.910748"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.913668"], ["updated_at", "2015-12-09 19:45:45.913668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2015-12-09 19:45:45.915485"], ["updated_at", "2015-12-09 19:45:45.915485"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2015-12-09 19:45:45.917195"], ["updated_at", "2015-12-09 19:45:45.917195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.920406"], ["updated_at", "2015-12-09 19:45:45.920406"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.922106"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:45:45.924574"], ["updated_at", "2015-12-09 19:45:45.924574"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignments"[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.2ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.946263"], ["updated_at", "2015-12-09 19:45:45.946263"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.950661"], ["updated_at", "2015-12-09 19:45:45.950661"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2015-12-09 19:45:45.952693"], ["updated_at", "2015-12-09 19:45:45.952693"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2015-12-09 19:45:45.953967"], ["updated_at", "2015-12-09 19:45:45.953967"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.956651"], ["updated_at", "2015-12-09 19:45:45.956651"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.957976"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 19:45:45.960279"], ["updated_at", "2015-12-09 19:45:45.960279"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.969681"], ["updated_at", "2015-12-09 19:45:45.969681"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:45.974470"], ["updated_at", "2015-12-09 19:45:45.974470"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2015-12-09 19:45:45.976602"], ["updated_at", "2015-12-09 19:45:45.976602"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2015-12-09 19:45:45.978171"], ["updated_at", "2015-12-09 19:45:45.978171"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:45.981173"], ["updated_at", "2015-12-09 19:45:45.981173"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:45.982716"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:45.984966"], ["updated_at", "2015-12-09 19:45:45.984966"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.987186"], ["updated_at", "2015-12-09 19:45:45.987186"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.988726"], ["updated_at", "2015-12-09 19:45:45.988726"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:45.990231"], ["updated_at", "2015-12-09 19:45:45.990231"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Submission Load (0.2ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:46.016943"], ["updated_at", "2015-12-09 19:45:46.016943"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:46.020032"], ["updated_at", "2015-12-09 19:45:46.020032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:46.023163"], ["updated_at", "2015-12-09 19:45:46.023163"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2015-12-09 19:45:46.026152"], ["updated_at", "2015-12-09 19:45:46.026152"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_submissions" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.033697"], ["updated_at", "2015-12-09 19:45:46.033697"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.036668"], ["updated_at", "2015-12-09 19:45:46.036668"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2015-12-09 19:45:46.038357"], ["updated_at", "2015-12-09 19:45:46.038357"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2015-12-09 19:45:46.039535"], ["updated_at", "2015-12-09 19:45:46.039535"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.041929"], ["updated_at", "2015-12-09 19:45:46.041929"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.043357"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 19:45:46.045421"], ["updated_at", "2015-12-09 19:45:46.045421"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:45:46.048663"], ["updated_at", "2015-12-09 19:45:46.048663"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:45:46.050825"], ["updated_at", "2015-12-09 19:45:46.050825"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.059132"], ["updated_at", "2015-12-09 19:45:46.059132"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.063062"], ["updated_at", "2015-12-09 19:45:46.063062"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2015-12-09 19:45:46.066011"], ["updated_at", "2015-12-09 19:45:46.066011"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2015-12-09 19:45:46.067980"], ["updated_at", "2015-12-09 19:45:46.067980"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.071535"], ["updated_at", "2015-12-09 19:45:46.071535"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.073361"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:46.076035"], ["updated_at", "2015-12-09 19:45:46.076035"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.133334"], ["updated_at", "2015-12-09 19:45:46.133334"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.134996"], ["updated_at", "2015-12-09 19:45:46.134996"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.136514"], ["updated_at", "2015-12-09 19:45:46.136514"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 19:45:46.152562"], ["updated_at", "2015-12-09 19:45:46.152562"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 19:45:46.155372"], ["updated_at", "2015-12-09 19:45:46.155372"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::GroupMembership Load (0.2ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.167207"], ["updated_at", "2015-12-09 19:45:46.167207"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.170637"], ["updated_at", "2015-12-09 19:45:46.170637"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2015-12-09 19:45:46.172375"], ["updated_at", "2015-12-09 19:45:46.172375"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2015-12-09 19:45:46.173504"], ["updated_at", "2015-12-09 19:45:46.173504"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.175854"], ["updated_at", "2015-12-09 19:45:46.175854"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.177142"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:46.180725"], ["updated_at", "2015-12-09 19:45:46.180725"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 19:45:46.183307"], ["updated_at", "2015-12-09 19:45:46.183307"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.191632"], ["updated_at", "2015-12-09 19:45:46.191632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.195107"], ["updated_at", "2015-12-09 19:45:46.195107"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2015-12-09 19:45:46.196978"], ["updated_at", "2015-12-09 19:45:46.196978"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2015-12-09 19:45:46.198120"], ["updated_at", "2015-12-09 19:45:46.198120"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.200959"], ["updated_at", "2015-12-09 19:45:46.200959"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.202602"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:46.204881"], ["updated_at", "2015-12-09 19:45:46.204881"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.207181"], ["updated_at", "2015-12-09 19:45:46.207181"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.209318"], ["updated_at", "2015-12-09 19:45:46.209318"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.211487"], ["updated_at", "2015-12-09 19:45:46.211487"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 19:45:46.228699"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.246149"], ["updated_at", "2015-12-09 19:45:46.246149"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.249121"], ["updated_at", "2015-12-09 19:45:46.249121"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2015-12-09 19:45:46.251144"], ["updated_at", "2015-12-09 19:45:46.251144"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2015-12-09 19:45:46.252272"], ["updated_at", "2015-12-09 19:45:46.252272"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.254896"], ["updated_at", "2015-12-09 19:45:46.254896"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.256740"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:46.259458"], ["updated_at", "2015-12-09 19:45:46.259458"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.261939"], ["updated_at", "2015-12-09 19:45:46.261939"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.263643"], ["updated_at", "2015-12-09 19:45:46.263643"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.265172"], ["updated_at", "2015-12-09 19:45:46.265172"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:45:46.281820"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.297682"], ["updated_at", "2015-12-09 19:45:46.297682"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.300560"], ["updated_at", "2015-12-09 19:45:46.300560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2015-12-09 19:45:46.302364"], ["updated_at", "2015-12-09 19:45:46.302364"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2015-12-09 19:45:46.303493"], ["updated_at", "2015-12-09 19:45:46.303493"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.305791"], ["updated_at", "2015-12-09 19:45:46.305791"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.307076"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:46.309061"], ["updated_at", "2015-12-09 19:45:46.309061"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.311078"], ["updated_at", "2015-12-09 19:45:46.311078"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.312653"], ["updated_at", "2015-12-09 19:45:46.312653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.314110"], ["updated_at", "2015-12-09 19:45:46.314110"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 19:45:46.384095"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.399745"], ["updated_at", "2015-12-09 19:45:46.399745"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.402720"], ["updated_at", "2015-12-09 19:45:46.402720"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2015-12-09 19:45:46.404599"], ["updated_at", "2015-12-09 19:45:46.404599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2015-12-09 19:45:46.405728"], ["updated_at", "2015-12-09 19:45:46.405728"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.408073"], ["updated_at", "2015-12-09 19:45:46.408073"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.409364"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 19:45:46.411433"], ["updated_at", "2015-12-09 19:45:46.411433"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.413510"], ["updated_at", "2015-12-09 19:45:46.413510"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.415005"], ["updated_at", "2015-12-09 19:45:46.415005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 19:45:46.416456"], ["updated_at", "2015-12-09 19:45:46.416456"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:45:46.430613"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2015-12-09 19:45:46.435987"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.445846"], ["updated_at", "2015-12-09 19:45:46.445846"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.450989"], ["updated_at", "2015-12-09 19:45:46.450989"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2015-12-09 19:45:46.453109"], ["updated_at", "2015-12-09 19:45:46.453109"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2015-12-09 19:45:46.454516"], ["updated_at", "2015-12-09 19:45:46.454516"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.457171"], ["updated_at", "2015-12-09 19:45:46.457171"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.458530"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.466917"], ["updated_at", "2015-12-09 19:45:46.466917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.470451"], ["updated_at", "2015-12-09 19:45:46.470451"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2015-12-09 19:45:46.472144"], ["updated_at", "2015-12-09 19:45:46.472144"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2015-12-09 19:45:46.473281"], ["updated_at", "2015-12-09 19:45:46.473281"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.475707"], ["updated_at", "2015-12-09 19:45:46.475707"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.477035"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.484144"], ["updated_at", "2015-12-09 19:45:46.484144"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.487056"], ["updated_at", "2015-12-09 19:45:46.487056"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2015-12-09 19:45:46.488698"], ["updated_at", "2015-12-09 19:45:46.488698"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2015-12-09 19:45:46.489818"], ["updated_at", "2015-12-09 19:45:46.489818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.492283"], ["updated_at", "2015-12-09 19:45:46.492283"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.493666"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.501655"], ["updated_at", "2015-12-09 19:45:46.501655"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.504536"], ["updated_at", "2015-12-09 19:45:46.504536"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2015-12-09 19:45:46.506166"], ["updated_at", "2015-12-09 19:45:46.506166"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2015-12-09 19:45:46.507520"], ["updated_at", "2015-12-09 19:45:46.507520"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.510640"], ["updated_at", "2015-12-09 19:45:46.510640"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.512215"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.521489"], ["updated_at", "2015-12-09 19:45:46.521489"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.524729"], ["updated_at", "2015-12-09 19:45:46.524729"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2015-12-09 19:45:46.526559"], ["updated_at", "2015-12-09 19:45:46.526559"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2015-12-09 19:45:46.527724"], ["updated_at", "2015-12-09 19:45:46.527724"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.530206"], ["updated_at", "2015-12-09 19:45:46.530206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.531553"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.539105"], ["updated_at", "2015-12-09 19:45:46.539105"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.542411"], ["updated_at", "2015-12-09 19:45:46.542411"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2015-12-09 19:45:46.544797"], ["updated_at", "2015-12-09 19:45:46.544797"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2015-12-09 19:45:46.546342"], ["updated_at", "2015-12-09 19:45:46.546342"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.549340"], ["updated_at", "2015-12-09 19:45:46.549340"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.551213"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.560459"], ["updated_at", "2015-12-09 19:45:46.560459"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.564685"], ["updated_at", "2015-12-09 19:45:46.564685"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2015-12-09 19:45:46.566888"], ["updated_at", "2015-12-09 19:45:46.566888"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2015-12-09 19:45:46.568435"], ["updated_at", "2015-12-09 19:45:46.568435"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.572032"], ["updated_at", "2015-12-09 19:45:46.572032"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.574027"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.581811"], ["updated_at", "2015-12-09 19:45:46.581811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.585207"], ["updated_at", "2015-12-09 19:45:46.585207"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2015-12-09 19:45:46.640095"], ["updated_at", "2015-12-09 19:45:46.640095"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2015-12-09 19:45:46.645139"], ["updated_at", "2015-12-09 19:45:46.645139"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.647797"], ["updated_at", "2015-12-09 19:45:46.647797"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.649283"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.657674"], ["updated_at", "2015-12-09 19:45:46.657674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 19:45:46.660663"], ["updated_at", "2015-12-09 19:45:46.660663"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2015-12-09 19:45:46.662334"], ["updated_at", "2015-12-09 19:45:46.662334"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2015-12-09 19:45:46.663662"], ["updated_at", "2015-12-09 19:45:46.663662"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 19:45:46.666019"], ["updated_at", "2015-12-09 19:45:46.666019"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 19:45:46.667328"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 19:45:46.670469"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2015-12-09 21:03:29.077345"], ["updated_at", "2015-12-09 21:03:29.077345"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 21:03:29.107672"], ["updated_at", "2015-12-09 21:03:29.107672"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.2ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.6ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-09 22:03:29.201752"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2015-12-09 21:03:29.203222"], ["updated_at", "2015-12-09 21:03:29.203222"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 114ms (Views: 22.4ms | ActiveRecord: 1.3ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.252720"], ["updated_at", "2015-12-09 21:03:29.252720"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.263257"], ["updated_at", "2015-12-09 21:03:29.263257"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2015-12-09 21:03:29.266425"], ["updated_at", "2015-12-09 21:03:29.266425"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 21:03:29.269624"], ["updated_at", "2015-12-09 21:03:29.269624"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.315864"], ["updated_at", "2015-12-09 21:03:29.315864"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.319455"], ["updated_at", "2015-12-09 21:03:29.319455"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2015-12-09 21:03:29.321415"], ["updated_at", "2015-12-09 21:03:29.321415"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2015-12-09 21:03:29.322667"], ["updated_at", "2015-12-09 21:03:29.322667"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.327812"], ["updated_at", "2015-12-09 21:03:29.327812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.330788"], ["updated_at", "2015-12-09 21:03:29.330788"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2015-12-09 21:03:29.332556"], ["updated_at", "2015-12-09 21:03:29.332556"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2015-12-09 21:03:29.333688"], ["updated_at", "2015-12-09 21:03:29.333688"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.349634"], ["updated_at", "2015-12-09 21:03:29.349634"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.352760"], ["updated_at", "2015-12-09 21:03:29.352760"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2015-12-09 21:03:29.355130"], ["updated_at", "2015-12-09 21:03:29.355130"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2015-12-09 21:03:29.356319"], ["updated_at", "2015-12-09 21:03:29.356319"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.362591"], ["updated_at", "2015-12-09 21:03:29.362591"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.365649"], ["updated_at", "2015-12-09 21:03:29.365649"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2015-12-09 21:03:29.367378"], ["updated_at", "2015-12-09 21:03:29.367378"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2015-12-09 21:03:29.368521"], ["updated_at", "2015-12-09 21:03:29.368521"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.421570"], ["updated_at", "2015-12-09 21:03:29.421570"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.424814"], ["updated_at", "2015-12-09 21:03:29.424814"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2015-12-09 21:03:29.426575"], ["updated_at", "2015-12-09 21:03:29.426575"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2015-12-09 21:03:29.427689"], ["updated_at", "2015-12-09 21:03:29.427689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 21:03:29.429243"], ["updated_at", "2015-12-09 21:03:29.429243"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-09 21:03:29.437922"], ["updated_at", "2015-12-09 21:03:29.437922"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.443555"], ["updated_at", "2015-12-09 21:03:29.443555"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.446445"], ["updated_at", "2015-12-09 21:03:29.446445"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2015-12-09 21:03:29.448181"], ["updated_at", "2015-12-09 21:03:29.448181"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2015-12-09 21:03:29.449279"], ["updated_at", "2015-12-09 21:03:29.449279"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2015-12-09 21:03:29.455328"], ["updated_at", "2015-12-09 21:03:29.455328"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.0ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["user_id", "abcd"], ["api_domain", "test.example"], ["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-10 21:03:29.467145"], ["created_at", "2015-12-09 21:03:29.471183"], ["updated_at", "2015-12-09 21:03:29.471183"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 21:03:29.483201"], ["updated_at", "2015-12-09 21:03:29.483201"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2015-12-09 21:03:29.487481"], ["updated_at", "2015-12-09 21:03:29.487481"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 21:03:29.489666"], ["updated_at", "2015-12-09 21:03:29.489666"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.503092"], ["updated_at", "2015-12-09 21:03:29.503092"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.506206"], ["updated_at", "2015-12-09 21:03:29.506206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2015-12-09 21:03:29.507939"], ["updated_at", "2015-12-09 21:03:29.507939"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.514870"], ["updated_at", "2015-12-09 21:03:29.514870"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.518561"], ["updated_at", "2015-12-09 21:03:29.518561"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2015-12-09 21:03:29.520421"], ["updated_at", "2015-12-09 21:03:29.520421"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.524858"], ["updated_at", "2015-12-09 21:03:29.524858"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.528311"], ["updated_at", "2015-12-09 21:03:29.528311"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2015-12-09 21:03:29.530113"], ["updated_at", "2015-12-09 21:03:29.530113"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 21:03:29.531585"], ["updated_at", "2015-12-09 21:03:29.531585"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.535444"], ["updated_at", "2015-12-09 21:03:29.535444"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2015-12-09 21:03:29.537930"], ["updated_at", "2015-12-09 21:03:29.537930"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 21:03:29.539608"], ["updated_at", "2015-12-09 21:03:29.539608"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.544482"], ["updated_at", "2015-12-09 21:03:29.544482"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2015-12-09 21:03:29.546122"], ["updated_at", "2015-12-09 21:03:29.546122"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.549180"], ["updated_at", "2015-12-09 21:03:29.549180"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 21:03:29.550921"], ["updated_at", "2015-12-09 21:03:29.550921"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.553755"], ["updated_at", "2015-12-09 21:03:29.553755"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-09 21:03:29.555563"], ["updated_at", "2015-12-09 21:03:29.555563"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.559708"], ["updated_at", "2015-12-09 21:03:29.559708"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.562472"], ["updated_at", "2015-12-09 21:03:29.562472"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2015-12-09 21:03:29.564165"], ["updated_at", "2015-12-09 21:03:29.564165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.575658"], ["updated_at", "2015-12-09 21:03:29.575658"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2015-12-09 21:03:29.578440"], ["updated_at", "2015-12-09 21:03:29.578440"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.591455"], ["updated_at", "2015-12-09 21:03:29.591455"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.594250"], ["updated_at", "2015-12-09 21:03:29.594250"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2015-12-09 21:03:29.595699"], ["updated_at", "2015-12-09 21:03:29.595699"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2015-12-09 21:03:29.596851"], ["updated_at", "2015-12-09 21:03:29.596851"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 21:03:29.598689"], ["updated_at", "2015-12-09 21:03:29.598689"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.608815"], ["updated_at", "2015-12-09 21:03:29.608815"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2015-12-09 21:03:29.611342"], ["updated_at", "2015-12-09 21:03:29.611342"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.614255"], ["updated_at", "2015-12-09 21:03:29.614255"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.616947"], ["updated_at", "2015-12-09 21:03:29.616947"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2015-12-09 21:03:29.618430"], ["updated_at", "2015-12-09 21:03:29.618430"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2015-12-09 21:03:29.619513"], ["updated_at", "2015-12-09 21:03:29.619513"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2015-12-09 21:03:29.620619"], ["updated_at", "2015-12-09 21:03:29.620619"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.626339"], ["updated_at", "2015-12-09 21:03:29.626339"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2015-12-09 21:03:29.628472"], ["updated_at", "2015-12-09 21:03:29.628472"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.631194"], ["updated_at", "2015-12-09 21:03:29.631194"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.633964"], ["updated_at", "2015-12-09 21:03:29.633964"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2015-12-09 21:03:29.635452"], ["updated_at", "2015-12-09 21:03:29.635452"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2015-12-09 21:03:29.636563"], ["updated_at", "2015-12-09 21:03:29.636563"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2015-12-09 21:03:29.637660"], ["updated_at", "2015-12-09 21:03:29.637660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.642565"], ["updated_at", "2015-12-09 21:03:29.642565"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2015-12-09 21:03:29.644523"], ["updated_at", "2015-12-09 21:03:29.644523"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.647113"], ["updated_at", "2015-12-09 21:03:29.647113"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.649631"], ["updated_at", "2015-12-09 21:03:29.649631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2015-12-09 21:03:29.651214"], ["updated_at", "2015-12-09 21:03:29.651214"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2015-12-09 21:03:29.652479"], ["updated_at", "2015-12-09 21:03:29.652479"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2015-12-09 21:03:29.654544"], ["updated_at", "2015-12-09 21:03:29.654544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 21:03:29.656241"], ["updated_at", "2015-12-09 21:03:29.656241"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 21:03:29.658551"], ["updated_at", "2015-12-09 21:03:29.658551"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.717946"], ["updated_at", "2015-12-09 21:03:29.717946"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2015-12-09 21:03:29.720074"], ["updated_at", "2015-12-09 21:03:29.720074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.722593"], ["updated_at", "2015-12-09 21:03:29.722593"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.725340"], ["updated_at", "2015-12-09 21:03:29.725340"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2015-12-09 21:03:29.726854"], ["updated_at", "2015-12-09 21:03:29.726854"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2015-12-09 21:03:29.727955"], ["updated_at", "2015-12-09 21:03:29.727955"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2015-12-09 21:03:29.729051"], ["updated_at", "2015-12-09 21:03:29.729051"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 21:03:29.730540"], ["updated_at", "2015-12-09 21:03:29.730540"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2015-12-09 21:03:29.732218"], ["updated_at", "2015-12-09 21:03:29.732218"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.737386"], ["updated_at", "2015-12-09 21:03:29.737386"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2015-12-09 21:03:29.739348"], ["updated_at", "2015-12-09 21:03:29.739348"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.741904"], ["updated_at", "2015-12-09 21:03:29.741904"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.744609"], ["updated_at", "2015-12-09 21:03:29.744609"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2015-12-09 21:03:29.746259"], ["updated_at", "2015-12-09 21:03:29.746259"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2015-12-09 21:03:29.748501"], ["updated_at", "2015-12-09 21:03:29.748501"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2015-12-09 21:03:29.750672"], ["updated_at", "2015-12-09 21:03:29.750672"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.765840"], ["updated_at", "2015-12-09 21:03:29.765840"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.769795"], ["updated_at", "2015-12-09 21:03:29.769795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2015-12-09 21:03:29.771921"], ["updated_at", "2015-12-09 21:03:29.771921"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2015-12-09 21:03:29.773216"], ["updated_at", "2015-12-09 21:03:29.773216"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.779231"], ["updated_at", "2015-12-09 21:03:29.779231"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.782159"], ["updated_at", "2015-12-09 21:03:29.782159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2015-12-09 21:03:29.783883"], ["updated_at", "2015-12-09 21:03:29.783883"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2015-12-09 21:03:29.784991"], ["updated_at", "2015-12-09 21:03:29.784991"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.789631"], ["updated_at", "2015-12-09 21:03:29.789631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.792759"], ["updated_at", "2015-12-09 21:03:29.792759"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2015-12-09 21:03:29.794499"], ["updated_at", "2015-12-09 21:03:29.794499"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2015-12-09 21:03:29.795595"], ["updated_at", "2015-12-09 21:03:29.795595"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 21:03:29.797129"], ["updated_at", "2015-12-09 21:03:29.797129"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-09 21:03:29.798621"], ["updated_at", "2015-12-09 21:03:29.798621"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.803462"], ["updated_at", "2015-12-09 21:03:29.803462"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.807395"], ["updated_at", "2015-12-09 21:03:29.807395"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2015-12-09 21:03:29.809550"], ["updated_at", "2015-12-09 21:03:29.809550"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2015-12-09 21:03:29.810949"], ["updated_at", "2015-12-09 21:03:29.810949"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.823784"], ["updated_at", "2015-12-09 21:03:29.823784"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2015-12-09 21:03:29.825906"], ["updated_at", "2015-12-09 21:03:29.825906"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.829257"], ["updated_at", "2015-12-09 21:03:29.829257"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.831785"], ["updated_at", "2015-12-09 21:03:29.831785"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2015-12-09 21:03:29.833187"], ["updated_at", "2015-12-09 21:03:29.833187"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2015-12-09 21:03:29.834266"], ["updated_at", "2015-12-09 21:03:29.834266"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2015-12-09 21:03:29.835354"], ["updated_at", "2015-12-09 21:03:29.835354"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.844225"], ["updated_at", "2015-12-09 21:03:29.844225"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2015-12-09 21:03:29.846775"], ["updated_at", "2015-12-09 21:03:29.846775"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.849711"], ["updated_at", "2015-12-09 21:03:29.849711"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.852528"], ["updated_at", "2015-12-09 21:03:29.852528"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2015-12-09 21:03:29.854757"], ["updated_at", "2015-12-09 21:03:29.854757"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2015-12-09 21:03:29.856048"], ["updated_at", "2015-12-09 21:03:29.856048"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2015-12-09 21:03:29.857165"], ["updated_at", "2015-12-09 21:03:29.857165"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.863005"], ["updated_at", "2015-12-09 21:03:29.863005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2015-12-09 21:03:29.865481"], ["updated_at", "2015-12-09 21:03:29.865481"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.868456"], ["updated_at", "2015-12-09 21:03:29.868456"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.871155"], ["updated_at", "2015-12-09 21:03:29.871155"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2015-12-09 21:03:29.872631"], ["updated_at", "2015-12-09 21:03:29.872631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2015-12-09 21:03:29.873729"], ["updated_at", "2015-12-09 21:03:29.873729"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2015-12-09 21:03:29.874829"], ["updated_at", "2015-12-09 21:03:29.874829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.879750"], ["updated_at", "2015-12-09 21:03:29.879750"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2015-12-09 21:03:29.881653"], ["updated_at", "2015-12-09 21:03:29.881653"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.884190"], ["updated_at", "2015-12-09 21:03:29.884190"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.886645"], ["updated_at", "2015-12-09 21:03:29.886645"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2015-12-09 21:03:29.888286"], ["updated_at", "2015-12-09 21:03:29.888286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2015-12-09 21:03:29.889582"], ["updated_at", "2015-12-09 21:03:29.889582"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2015-12-09 21:03:29.890708"], ["updated_at", "2015-12-09 21:03:29.890708"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 21:03:29.892282"], ["updated_at", "2015-12-09 21:03:29.892282"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 21:03:29.894746"], ["updated_at", "2015-12-09 21:03:29.894746"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.900003"], ["updated_at", "2015-12-09 21:03:29.900003"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2015-12-09 21:03:29.902212"], ["updated_at", "2015-12-09 21:03:29.902212"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.905859"], ["updated_at", "2015-12-09 21:03:29.905859"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.908668"], ["updated_at", "2015-12-09 21:03:29.908668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2015-12-09 21:03:29.910129"], ["updated_at", "2015-12-09 21:03:29.910129"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2015-12-09 21:03:29.911207"], ["updated_at", "2015-12-09 21:03:29.911207"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2015-12-09 21:03:29.912292"], ["updated_at", "2015-12-09 21:03:29.912292"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-09 21:03:29.913817"], ["updated_at", "2015-12-09 21:03:29.913817"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2015-12-09 21:03:29.915411"], ["updated_at", "2015-12-09 21:03:29.915411"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.919715"], ["updated_at", "2015-12-09 21:03:29.919715"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2015-12-09 21:03:29.921663"], ["updated_at", "2015-12-09 21:03:29.921663"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.924316"], ["updated_at", "2015-12-09 21:03:29.924316"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.926827"], ["updated_at", "2015-12-09 21:03:29.926827"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2015-12-09 21:03:29.928594"], ["updated_at", "2015-12-09 21:03:29.928594"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2015-12-09 21:03:29.929676"], ["updated_at", "2015-12-09 21:03:29.929676"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2015-12-09 21:03:29.930917"], ["updated_at", "2015-12-09 21:03:29.930917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.937492"], ["updated_at", "2015-12-09 21:03:29.937492"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.942786"], ["updated_at", "2015-12-09 21:03:29.942786"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 21:03:29.944941"], ["updated_at", "2015-12-09 21:03:29.944941"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-09 21:03:29.946634"], ["updated_at", "2015-12-09 21:03:29.946634"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.955620"], ["updated_at", "2015-12-09 21:03:29.955620"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.962267"], ["updated_at", "2015-12-09 21:03:29.962267"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:29.967405"], ["updated_at", "2015-12-09 21:03:29.967405"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 21:03:29.969779"], ["updated_at", "2015-12-09 21:03:29.969779"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2015-12-09 21:03:29.971981"], ["updated_at", "2015-12-09 21:03:29.971981"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.030788"], ["updated_at", "2015-12-09 21:03:30.030788"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.041701"], ["updated_at", "2015-12-09 21:03:30.041701"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.076310"], ["updated_at", "2015-12-09 21:03:30.076310"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.078658"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.084976"], ["updated_at", "2015-12-09 21:03:30.084976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.088299"], ["updated_at", "2015-12-09 21:03:30.088299"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.091227"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.097771"], ["updated_at", "2015-12-09 21:03:30.097771"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.101489"], ["updated_at", "2015-12-09 21:03:30.101489"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.104262"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 21:03:30.118078"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.121983"], ["updated_at", "2015-12-09 21:03:30.121983"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.123709"], ["updated_at", "2015-12-09 21:03:30.123709"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.125238"], ["updated_at", "2015-12-09 21:03:30.125238"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 21:03:30.127451"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 21:03:30.128682"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.134921"], ["updated_at", "2015-12-09 21:03:30.134921"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.140432"], ["updated_at", "2015-12-09 21:03:30.140432"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.142421"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2015-12-09 21:03:30.146782"], ["updated_at", "2015-12-09 21:03:30.146782"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.0ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2015-12-09 21:03:30.149482"], ["updated_at", "2015-12-09 21:03:30.149482"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.156023"], ["updated_at", "2015-12-09 21:03:30.156023"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.159082"], ["updated_at", "2015-12-09 21:03:30.159082"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.160505"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.162402"], ["updated_at", "2015-12-09 21:03:30.162402"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.164303"], ["updated_at", "2015-12-09 21:03:30.164303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.165774"], ["updated_at", "2015-12-09 21:03:30.165774"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.171976"], ["updated_at", "2015-12-09 21:03:30.171976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.175161"], ["updated_at", "2015-12-09 21:03:30.175161"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.176645"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.181697"], ["updated_at", "2015-12-09 21:03:30.181697"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.184736"], ["updated_at", "2015-12-09 21:03:30.184736"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.186988"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.194717"], ["updated_at", "2015-12-09 21:03:30.194717"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.198151"], ["updated_at", "2015-12-09 21:03:30.198151"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:30.199572"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 21:03:30.202094"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.209790"], ["updated_at", "2015-12-09 21:03:30.209790"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.212726"], ["updated_at", "2015-12-09 21:03:30.212726"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2015-12-09 21:03:30.214440"], ["updated_at", "2015-12-09 21:03:30.214440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2015-12-09 21:03:30.215523"], ["updated_at", "2015-12-09 21:03:30.215523"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.218044"], ["updated_at", "2015-12-09 21:03:30.218044"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.219377"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.227775"], ["updated_at", "2015-12-09 21:03:30.227775"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.231102"], ["updated_at", "2015-12-09 21:03:30.231102"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2015-12-09 21:03:30.233074"], ["updated_at", "2015-12-09 21:03:30.233074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2015-12-09 21:03:30.234199"], ["updated_at", "2015-12-09 21:03:30.234199"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.236970"], ["updated_at", "2015-12-09 21:03:30.236970"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.239035"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.247005"], ["updated_at", "2015-12-09 21:03:30.247005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.250317"], ["updated_at", "2015-12-09 21:03:30.250317"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2015-12-09 21:03:30.305617"], ["updated_at", "2015-12-09 21:03:30.305617"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2015-12-09 21:03:30.306794"], ["updated_at", "2015-12-09 21:03:30.306794"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.309206"], ["updated_at", "2015-12-09 21:03:30.309206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2015-12-09 21:03:30.310331"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.317490"], ["updated_at", "2015-12-09 21:03:30.317490"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.320454"], ["updated_at", "2015-12-09 21:03:30.320454"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2015-12-09 21:03:30.322184"], ["updated_at", "2015-12-09 21:03:30.322184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2015-12-09 21:03:30.323274"], ["updated_at", "2015-12-09 21:03:30.323274"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.325659"], ["updated_at", "2015-12-09 21:03:30.325659"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.326951"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.333913"], ["updated_at", "2015-12-09 21:03:30.333913"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.336811"], ["updated_at", "2015-12-09 21:03:30.336811"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2015-12-09 21:03:30.338497"], ["updated_at", "2015-12-09 21:03:30.338497"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2015-12-09 21:03:30.339940"], ["updated_at", "2015-12-09 21:03:30.339940"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.342320"], ["updated_at", "2015-12-09 21:03:30.342320"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.343896"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 21:03:30.352443"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.357533"], ["updated_at", "2015-12-09 21:03:30.357533"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2015-12-09 21:03:30.359803"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.362349"], ["updated_at", "2015-12-09 21:03:30.362349"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.363926"], ["updated_at", "2015-12-09 21:03:30.363926"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.365395"], ["updated_at", "2015-12-09 21:03:30.365395"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2015-12-09 21:03:30.375717"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2015-12-09 21:03:30.390501"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.5ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 21:03:30.394349"], ["updated_at", "2015-12-09 21:03:30.394349"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2015-12-09 21:03:30.397689"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.6ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2015-12-09 21:03:30.422084"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2015-12-09 21:03:30.424976"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.4ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 21:03:30.440674"], ["updated_at", "2015-12-09 21:03:30.440674"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 21:03:30.446038"], ["updated_at", "2015-12-09 21:03:30.446038"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.2ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2015-12-09 21:03:30.448463"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.6ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 21:03:30.461538"], ["updated_at", "2015-12-09 21:03:30.461538"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 21:03:30.464580"], ["updated_at", "2015-12-09 21:03:30.464580"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-09 21:03:30.469643"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-09 21:03:30.470807"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.478445"], ["updated_at", "2015-12-09 21:03:30.478445"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.533129"], ["updated_at", "2015-12-09 21:03:30.533129"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2015-12-09 21:03:30.535562"], ["updated_at", "2015-12-09 21:03:30.535562"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2015-12-09 21:03:30.536847"], ["updated_at", "2015-12-09 21:03:30.536847"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.539302"], ["updated_at", "2015-12-09 21:03:30.539302"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.540668"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.542762"], ["updated_at", "2015-12-09 21:03:30.542762"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_sections"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.550054"], ["updated_at", "2015-12-09 21:03:30.550054"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.552986"], ["updated_at", "2015-12-09 21:03:30.552986"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2015-12-09 21:03:30.554664"], ["updated_at", "2015-12-09 21:03:30.554664"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2015-12-09 21:03:30.555874"], ["updated_at", "2015-12-09 21:03:30.555874"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.560205"], ["updated_at", "2015-12-09 21:03:30.560205"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.562111"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.564825"], ["updated_at", "2015-12-09 21:03:30.564825"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.566738"], ["updated_at", "2015-12-09 21:03:30.566738"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.568469"], ["updated_at", "2015-12-09 21:03:30.568469"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.578316"], ["updated_at", "2015-12-09 21:03:30.578316"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.581922"], ["updated_at", "2015-12-09 21:03:30.581922"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2015-12-09 21:03:30.583770"], ["updated_at", "2015-12-09 21:03:30.583770"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2015-12-09 21:03:30.584927"], ["updated_at", "2015-12-09 21:03:30.584927"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.587460"], ["updated_at", "2015-12-09 21:03:30.587460"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.589474"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.591761"], ["updated_at", "2015-12-09 21:03:30.591761"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.594168"], ["updated_at", "2015-12-09 21:03:30.594168"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.595713"], ["updated_at", "2015-12-09 21:03:30.595713"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.597247"], ["updated_at", "2015-12-09 21:03:30.597247"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.620757"], ["updated_at", "2015-12-09 21:03:30.620757"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.623898"], ["updated_at", "2015-12-09 21:03:30.623898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2015-12-09 21:03:30.625984"], ["updated_at", "2015-12-09 21:03:30.625984"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2015-12-09 21:03:30.627130"], ["updated_at", "2015-12-09 21:03:30.627130"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.629472"], ["updated_at", "2015-12-09 21:03:30.629472"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.630735"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 21:03:30.636338"], ["updated_at", "2015-12-09 21:03:30.636338"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_categories"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Assignment Load (0.2ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.646434"], ["updated_at", "2015-12-09 21:03:30.646434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.649468"], ["updated_at", "2015-12-09 21:03:30.649468"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2015-12-09 21:03:30.651505"], ["updated_at", "2015-12-09 21:03:30.651505"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2015-12-09 21:03:30.652720"], ["updated_at", "2015-12-09 21:03:30.652720"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.656401"], ["updated_at", "2015-12-09 21:03:30.656401"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.657925"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 21:03:30.659989"], ["updated_at", "2015-12-09 21:03:30.659989"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignments"[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.680889"], ["updated_at", "2015-12-09 21:03:30.680889"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.683926"], ["updated_at", "2015-12-09 21:03:30.683926"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2015-12-09 21:03:30.685841"], ["updated_at", "2015-12-09 21:03:30.685841"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2015-12-09 21:03:30.686966"], ["updated_at", "2015-12-09 21:03:30.686966"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.689264"], ["updated_at", "2015-12-09 21:03:30.689264"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.690538"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-09 21:03:30.692501"], ["updated_at", "2015-12-09 21:03:30.692501"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.699941"], ["updated_at", "2015-12-09 21:03:30.699941"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.702767"], ["updated_at", "2015-12-09 21:03:30.702767"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2015-12-09 21:03:30.704411"], ["updated_at", "2015-12-09 21:03:30.704411"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2015-12-09 21:03:30.705488"], ["updated_at", "2015-12-09 21:03:30.705488"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.707874"], ["updated_at", "2015-12-09 21:03:30.707874"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.709206"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.711534"], ["updated_at", "2015-12-09 21:03:30.711534"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.713690"], ["updated_at", "2015-12-09 21:03:30.713690"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.715227"], ["updated_at", "2015-12-09 21:03:30.715227"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.716693"], ["updated_at", "2015-12-09 21:03:30.716693"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2015-12-09 21:03:30.802567"], ["updated_at", "2015-12-09 21:03:30.802567"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2015-12-09 21:03:30.805975"], ["updated_at", "2015-12-09 21:03:30.805975"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2015-12-09 21:03:30.808899"], ["updated_at", "2015-12-09 21:03:30.808899"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2015-12-09 21:03:30.811590"], ["updated_at", "2015-12-09 21:03:30.811590"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_submissions" [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.820324"], ["updated_at", "2015-12-09 21:03:30.820324"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.823331"], ["updated_at", "2015-12-09 21:03:30.823331"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2015-12-09 21:03:30.825390"], ["updated_at", "2015-12-09 21:03:30.825390"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2015-12-09 21:03:30.826587"], ["updated_at", "2015-12-09 21:03:30.826587"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.829528"], ["updated_at", "2015-12-09 21:03:30.829528"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.831344"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-09 21:03:30.833962"], ["updated_at", "2015-12-09 21:03:30.833962"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 21:03:30.837834"], ["updated_at", "2015-12-09 21:03:30.837834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 21:03:30.840116"], ["updated_at", "2015-12-09 21:03:30.840116"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.848204"], ["updated_at", "2015-12-09 21:03:30.848204"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.851360"], ["updated_at", "2015-12-09 21:03:30.851360"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2015-12-09 21:03:30.853520"], ["updated_at", "2015-12-09 21:03:30.853520"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2015-12-09 21:03:30.855379"], ["updated_at", "2015-12-09 21:03:30.855379"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.858982"], ["updated_at", "2015-12-09 21:03:30.858982"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.860843"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.863450"], ["updated_at", "2015-12-09 21:03:30.863450"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.865792"], ["updated_at", "2015-12-09 21:03:30.865792"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.867430"], ["updated_at", "2015-12-09 21:03:30.867430"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.868916"], ["updated_at", "2015-12-09 21:03:30.868916"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-09 21:03:30.883265"], ["updated_at", "2015-12-09 21:03:30.883265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-09 21:03:30.885397"], ["updated_at", "2015-12-09 21:03:30.885397"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.895940"], ["updated_at", "2015-12-09 21:03:30.895940"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.899733"], ["updated_at", "2015-12-09 21:03:30.899733"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2015-12-09 21:03:30.901962"], ["updated_at", "2015-12-09 21:03:30.901962"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2015-12-09 21:03:30.904012"], ["updated_at", "2015-12-09 21:03:30.904012"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.907430"], ["updated_at", "2015-12-09 21:03:30.907430"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.909155"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 21:03:30.913376"], ["updated_at", "2015-12-09 21:03:30.913376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-09 21:03:30.915796"], ["updated_at", "2015-12-09 21:03:30.915796"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.922975"], ["updated_at", "2015-12-09 21:03:30.922975"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.926234"], ["updated_at", "2015-12-09 21:03:30.926234"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2015-12-09 21:03:30.928022"], ["updated_at", "2015-12-09 21:03:30.928022"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2015-12-09 21:03:30.929288"], ["updated_at", "2015-12-09 21:03:30.929288"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.931629"], ["updated_at", "2015-12-09 21:03:30.931629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.932927"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.934972"], ["updated_at", "2015-12-09 21:03:30.934972"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.938434"], ["updated_at", "2015-12-09 21:03:30.938434"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.940408"], ["updated_at", "2015-12-09 21:03:30.940408"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.942502"], ["updated_at", "2015-12-09 21:03:30.942502"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 21:03:30.957752"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.973732"], ["updated_at", "2015-12-09 21:03:30.973732"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:30.976683"], ["updated_at", "2015-12-09 21:03:30.976683"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2015-12-09 21:03:30.978713"], ["updated_at", "2015-12-09 21:03:30.978713"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2015-12-09 21:03:30.980884"], ["updated_at", "2015-12-09 21:03:30.980884"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:30.984648"], ["updated_at", "2015-12-09 21:03:30.984648"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:30.986489"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:30.989252"], ["updated_at", "2015-12-09 21:03:30.989252"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.991636"], ["updated_at", "2015-12-09 21:03:30.991636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.993215"], ["updated_at", "2015-12-09 21:03:30.993215"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:30.994751"], ["updated_at", "2015-12-09 21:03:30.994751"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2015-12-09 21:03:31.071451"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.088576"], ["updated_at", "2015-12-09 21:03:31.088576"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.091552"], ["updated_at", "2015-12-09 21:03:31.091552"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2015-12-09 21:03:31.094006"], ["updated_at", "2015-12-09 21:03:31.094006"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2015-12-09 21:03:31.096322"], ["updated_at", "2015-12-09 21:03:31.096322"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.099818"], ["updated_at", "2015-12-09 21:03:31.099818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.101571"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:31.104139"], ["updated_at", "2015-12-09 21:03:31.104139"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:31.106455"], ["updated_at", "2015-12-09 21:03:31.106455"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:31.108022"], ["updated_at", "2015-12-09 21:03:31.108022"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:31.109466"], ["updated_at", "2015-12-09 21:03:31.109466"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-09 21:03:31.123027"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.139639"], ["updated_at", "2015-12-09 21:03:31.139639"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.143019"], ["updated_at", "2015-12-09 21:03:31.143019"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2015-12-09 21:03:31.144706"], ["updated_at", "2015-12-09 21:03:31.144706"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2015-12-09 21:03:31.145793"], ["updated_at", "2015-12-09 21:03:31.145793"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.148122"], ["updated_at", "2015-12-09 21:03:31.148122"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.149443"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-09 21:03:31.151439"], ["updated_at", "2015-12-09 21:03:31.151439"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:31.153479"], ["updated_at", "2015-12-09 21:03:31.153479"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:31.155159"], ["updated_at", "2015-12-09 21:03:31.155159"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-09 21:03:31.156641"], ["updated_at", "2015-12-09 21:03:31.156641"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 21:03:31.170189"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2015-12-09 21:03:31.175733"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.184398"], ["updated_at", "2015-12-09 21:03:31.184398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.188583"], ["updated_at", "2015-12-09 21:03:31.188583"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2015-12-09 21:03:31.190766"], ["updated_at", "2015-12-09 21:03:31.190766"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2015-12-09 21:03:31.191925"], ["updated_at", "2015-12-09 21:03:31.191925"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.194327"], ["updated_at", "2015-12-09 21:03:31.194327"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.195632"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.202554"], ["updated_at", "2015-12-09 21:03:31.202554"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.206088"], ["updated_at", "2015-12-09 21:03:31.206088"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2015-12-09 21:03:31.208027"], ["updated_at", "2015-12-09 21:03:31.208027"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2015-12-09 21:03:31.209187"], ["updated_at", "2015-12-09 21:03:31.209187"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.211555"], ["updated_at", "2015-12-09 21:03:31.211555"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.212850"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.220039"], ["updated_at", "2015-12-09 21:03:31.220039"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.223198"], ["updated_at", "2015-12-09 21:03:31.223198"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2015-12-09 21:03:31.225139"], ["updated_at", "2015-12-09 21:03:31.225139"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2015-12-09 21:03:31.226301"], ["updated_at", "2015-12-09 21:03:31.226301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.228713"], ["updated_at", "2015-12-09 21:03:31.228713"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.230047"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.238442"], ["updated_at", "2015-12-09 21:03:31.238442"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.241853"], ["updated_at", "2015-12-09 21:03:31.241853"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2015-12-09 21:03:31.243737"], ["updated_at", "2015-12-09 21:03:31.243737"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2015-12-09 21:03:31.244844"], ["updated_at", "2015-12-09 21:03:31.244844"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.247485"], ["updated_at", "2015-12-09 21:03:31.247485"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.249312"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.259005"], ["updated_at", "2015-12-09 21:03:31.259005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.262117"], ["updated_at", "2015-12-09 21:03:31.262117"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2015-12-09 21:03:31.263895"], ["updated_at", "2015-12-09 21:03:31.263895"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2015-12-09 21:03:31.265152"], ["updated_at", "2015-12-09 21:03:31.265152"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.267517"], ["updated_at", "2015-12-09 21:03:31.267517"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.268820"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.329823"], ["updated_at", "2015-12-09 21:03:31.329823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.332939"], ["updated_at", "2015-12-09 21:03:31.332939"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2015-12-09 21:03:31.334674"], ["updated_at", "2015-12-09 21:03:31.334674"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2015-12-09 21:03:31.335894"], ["updated_at", "2015-12-09 21:03:31.335894"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.338314"], ["updated_at", "2015-12-09 21:03:31.338314"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.339689"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.346932"], ["updated_at", "2015-12-09 21:03:31.346932"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.349813"], ["updated_at", "2015-12-09 21:03:31.349813"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2015-12-09 21:03:31.351470"], ["updated_at", "2015-12-09 21:03:31.351470"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2015-12-09 21:03:31.352709"], ["updated_at", "2015-12-09 21:03:31.352709"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.355027"], ["updated_at", "2015-12-09 21:03:31.355027"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.356318"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.363722"], ["updated_at", "2015-12-09 21:03:31.363722"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.366794"], ["updated_at", "2015-12-09 21:03:31.366794"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2015-12-09 21:03:31.368699"], ["updated_at", "2015-12-09 21:03:31.368699"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2015-12-09 21:03:31.370193"], ["updated_at", "2015-12-09 21:03:31.370193"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.373416"], ["updated_at", "2015-12-09 21:03:31.373416"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.374815"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.383155"], ["updated_at", "2015-12-09 21:03:31.383155"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-09 21:03:31.386334"], ["updated_at", "2015-12-09 21:03:31.386334"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2015-12-09 21:03:31.388552"], ["updated_at", "2015-12-09 21:03:31.388552"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2015-12-09 21:03:31.390153"], ["updated_at", "2015-12-09 21:03:31.390153"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-09 21:03:31.393169"], ["updated_at", "2015-12-09 21:03:31.393169"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-09 21:03:31.394761"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-09 21:03:31.397749"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2015-12-10 15:01:58.085941"], ["updated_at", "2015-12-10 15:01:58.085941"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2015-12-10 15:01:58.155138"], ["updated_at", "2015-12-10 15:01:58.155138"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.2ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.4ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-10 16:01:58.202353"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2015-12-10 15:01:58.204056"], ["updated_at", "2015-12-10 15:01:58.204056"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.3ms) Completed 200 OK in 70ms (Views: 24.9ms | ActiveRecord: 1.1ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.259780"], ["updated_at", "2015-12-10 15:01:58.259780"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.271556"], ["updated_at", "2015-12-10 15:01:58.271556"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2015-12-10 15:01:58.274983"], ["updated_at", "2015-12-10 15:01:58.274983"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-10 15:01:58.278479"], ["updated_at", "2015-12-10 15:01:58.278479"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.355903"], ["updated_at", "2015-12-10 15:01:58.355903"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.359197"], ["updated_at", "2015-12-10 15:01:58.359197"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2015-12-10 15:01:58.361206"], ["updated_at", "2015-12-10 15:01:58.361206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2015-12-10 15:01:58.362402"], ["updated_at", "2015-12-10 15:01:58.362402"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.367761"], ["updated_at", "2015-12-10 15:01:58.367761"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.370772"], ["updated_at", "2015-12-10 15:01:58.370772"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2015-12-10 15:01:58.372759"], ["updated_at", "2015-12-10 15:01:58.372759"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2015-12-10 15:01:58.374030"], ["updated_at", "2015-12-10 15:01:58.374030"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.392035"], ["updated_at", "2015-12-10 15:01:58.392035"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.395564"], ["updated_at", "2015-12-10 15:01:58.395564"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2015-12-10 15:01:58.397474"], ["updated_at", "2015-12-10 15:01:58.397474"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2015-12-10 15:01:58.398672"], ["updated_at", "2015-12-10 15:01:58.398672"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.405277"], ["updated_at", "2015-12-10 15:01:58.405277"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.408614"], ["updated_at", "2015-12-10 15:01:58.408614"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2015-12-10 15:01:58.410500"], ["updated_at", "2015-12-10 15:01:58.410500"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2015-12-10 15:01:58.411852"], ["updated_at", "2015-12-10 15:01:58.411852"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.416696"], ["updated_at", "2015-12-10 15:01:58.416696"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.419960"], ["updated_at", "2015-12-10 15:01:58.419960"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2015-12-10 15:01:58.422179"], ["updated_at", "2015-12-10 15:01:58.422179"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2015-12-10 15:01:58.423467"], ["updated_at", "2015-12-10 15:01:58.423467"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-10 15:01:58.425233"], ["updated_at", "2015-12-10 15:01:58.425233"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2015-12-10 15:01:58.433703"], ["updated_at", "2015-12-10 15:01:58.433703"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.439931"], ["updated_at", "2015-12-10 15:01:58.439931"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.444242"], ["updated_at", "2015-12-10 15:01:58.444242"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2015-12-10 15:01:58.446615"], ["updated_at", "2015-12-10 15:01:58.446615"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2015-12-10 15:01:58.448427"], ["updated_at", "2015-12-10 15:01:58.448427"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.2ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2015-12-10 15:01:58.455695"], ["updated_at", "2015-12-10 15:01:58.455695"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["user_id", "abcd"], ["api_domain", "test.example"], ["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2015-12-11 15:01:58.470444"], ["created_at", "2015-12-10 15:01:58.473523"], ["updated_at", "2015-12-10 15:01:58.473523"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-10 15:01:58.482901"], ["updated_at", "2015-12-10 15:01:58.482901"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2015-12-10 15:01:58.485823"], ["updated_at", "2015-12-10 15:01:58.485823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-10 15:01:58.487762"], ["updated_at", "2015-12-10 15:01:58.487762"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.502343"], ["updated_at", "2015-12-10 15:01:58.502343"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.505942"], ["updated_at", "2015-12-10 15:01:58.505942"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2015-12-10 15:01:58.508515"], ["updated_at", "2015-12-10 15:01:58.508515"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.515364"], ["updated_at", "2015-12-10 15:01:58.515364"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.518500"], ["updated_at", "2015-12-10 15:01:58.518500"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2015-12-10 15:01:58.520263"], ["updated_at", "2015-12-10 15:01:58.520263"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.524511"], ["updated_at", "2015-12-10 15:01:58.524511"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.528171"], ["updated_at", "2015-12-10 15:01:58.528171"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2015-12-10 15:01:58.530156"], ["updated_at", "2015-12-10 15:01:58.530156"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-10 15:01:58.531331"], ["updated_at", "2015-12-10 15:01:58.531331"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.534836"], ["updated_at", "2015-12-10 15:01:58.534836"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2015-12-10 15:01:58.537049"], ["updated_at", "2015-12-10 15:01:58.537049"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-10 15:01:58.538455"], ["updated_at", "2015-12-10 15:01:58.538455"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.544091"], ["updated_at", "2015-12-10 15:01:58.544091"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2015-12-10 15:01:58.545945"], ["updated_at", "2015-12-10 15:01:58.545945"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.549354"], ["updated_at", "2015-12-10 15:01:58.549354"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-10 15:01:58.551476"], ["updated_at", "2015-12-10 15:01:58.551476"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.554556"], ["updated_at", "2015-12-10 15:01:58.554556"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2015-12-10 15:01:58.556433"], ["updated_at", "2015-12-10 15:01:58.556433"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.562116"], ["updated_at", "2015-12-10 15:01:58.562116"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.565378"], ["updated_at", "2015-12-10 15:01:58.565378"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2015-12-10 15:01:58.567217"], ["updated_at", "2015-12-10 15:01:58.567217"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.634907"], ["updated_at", "2015-12-10 15:01:58.634907"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2015-12-10 15:01:58.637309"], ["updated_at", "2015-12-10 15:01:58.637309"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.646214"], ["updated_at", "2015-12-10 15:01:58.646214"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.649286"], ["updated_at", "2015-12-10 15:01:58.649286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2015-12-10 15:01:58.651072"], ["updated_at", "2015-12-10 15:01:58.651072"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2015-12-10 15:01:58.652323"], ["updated_at", "2015-12-10 15:01:58.652323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-10 15:01:58.654185"], ["updated_at", "2015-12-10 15:01:58.654185"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.663112"], ["updated_at", "2015-12-10 15:01:58.663112"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2015-12-10 15:01:58.665815"], ["updated_at", "2015-12-10 15:01:58.665815"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.669034"], ["updated_at", "2015-12-10 15:01:58.669034"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.671776"], ["updated_at", "2015-12-10 15:01:58.671776"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2015-12-10 15:01:58.673386"], ["updated_at", "2015-12-10 15:01:58.673386"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2015-12-10 15:01:58.674642"], ["updated_at", "2015-12-10 15:01:58.674642"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2015-12-10 15:01:58.675842"], ["updated_at", "2015-12-10 15:01:58.675842"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.682058"], ["updated_at", "2015-12-10 15:01:58.682058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2015-12-10 15:01:58.684701"], ["updated_at", "2015-12-10 15:01:58.684701"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.687788"], ["updated_at", "2015-12-10 15:01:58.687788"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.690829"], ["updated_at", "2015-12-10 15:01:58.690829"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2015-12-10 15:01:58.692682"], ["updated_at", "2015-12-10 15:01:58.692682"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2015-12-10 15:01:58.694294"], ["updated_at", "2015-12-10 15:01:58.694294"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2015-12-10 15:01:58.695829"], ["updated_at", "2015-12-10 15:01:58.695829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.702387"], ["updated_at", "2015-12-10 15:01:58.702387"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2015-12-10 15:01:58.704972"], ["updated_at", "2015-12-10 15:01:58.704972"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.708148"], ["updated_at", "2015-12-10 15:01:58.708148"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.712504"], ["updated_at", "2015-12-10 15:01:58.712504"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2015-12-10 15:01:58.715704"], ["updated_at", "2015-12-10 15:01:58.715704"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2015-12-10 15:01:58.719068"], ["updated_at", "2015-12-10 15:01:58.719068"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2015-12-10 15:01:58.721042"], ["updated_at", "2015-12-10 15:01:58.721042"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-10 15:01:58.722839"], ["updated_at", "2015-12-10 15:01:58.722839"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-10 15:01:58.725871"], ["updated_at", "2015-12-10 15:01:58.725871"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.732250"], ["updated_at", "2015-12-10 15:01:58.732250"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2015-12-10 15:01:58.735063"], ["updated_at", "2015-12-10 15:01:58.735063"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.738093"], ["updated_at", "2015-12-10 15:01:58.738093"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.741336"], ["updated_at", "2015-12-10 15:01:58.741336"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2015-12-10 15:01:58.743106"], ["updated_at", "2015-12-10 15:01:58.743106"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2015-12-10 15:01:58.744387"], ["updated_at", "2015-12-10 15:01:58.744387"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2015-12-10 15:01:58.745610"], ["updated_at", "2015-12-10 15:01:58.745610"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-10 15:01:58.747234"], ["updated_at", "2015-12-10 15:01:58.747234"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2015-12-10 15:01:58.748917"], ["updated_at", "2015-12-10 15:01:58.748917"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.753594"], ["updated_at", "2015-12-10 15:01:58.753594"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2015-12-10 15:01:58.755664"], ["updated_at", "2015-12-10 15:01:58.755664"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.758337"], ["updated_at", "2015-12-10 15:01:58.758337"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.761485"], ["updated_at", "2015-12-10 15:01:58.761485"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2015-12-10 15:01:58.763601"], ["updated_at", "2015-12-10 15:01:58.763601"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2015-12-10 15:01:58.765100"], ["updated_at", "2015-12-10 15:01:58.765100"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2015-12-10 15:01:58.766565"], ["updated_at", "2015-12-10 15:01:58.766565"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.779595"], ["updated_at", "2015-12-10 15:01:58.779595"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.782883"], ["updated_at", "2015-12-10 15:01:58.782883"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2015-12-10 15:01:58.784823"], ["updated_at", "2015-12-10 15:01:58.784823"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2015-12-10 15:01:58.786083"], ["updated_at", "2015-12-10 15:01:58.786083"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.792512"], ["updated_at", "2015-12-10 15:01:58.792512"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.795978"], ["updated_at", "2015-12-10 15:01:58.795978"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2015-12-10 15:01:58.797865"], ["updated_at", "2015-12-10 15:01:58.797865"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2015-12-10 15:01:58.799039"], ["updated_at", "2015-12-10 15:01:58.799039"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.805575"], ["updated_at", "2015-12-10 15:01:58.805575"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.808549"], ["updated_at", "2015-12-10 15:01:58.808549"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2015-12-10 15:01:58.810545"], ["updated_at", "2015-12-10 15:01:58.810545"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2015-12-10 15:01:58.811818"], ["updated_at", "2015-12-10 15:01:58.811818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-10 15:01:58.813865"], ["updated_at", "2015-12-10 15:01:58.813865"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2015-12-10 15:01:58.815801"], ["updated_at", "2015-12-10 15:01:58.815801"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.820996"], ["updated_at", "2015-12-10 15:01:58.820996"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.824472"], ["updated_at", "2015-12-10 15:01:58.824472"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2015-12-10 15:01:58.826402"], ["updated_at", "2015-12-10 15:01:58.826402"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2015-12-10 15:01:58.827620"], ["updated_at", "2015-12-10 15:01:58.827620"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.840995"], ["updated_at", "2015-12-10 15:01:58.840995"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2015-12-10 15:01:58.843177"], ["updated_at", "2015-12-10 15:01:58.843177"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.846501"], ["updated_at", "2015-12-10 15:01:58.846501"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.849138"], ["updated_at", "2015-12-10 15:01:58.849138"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2015-12-10 15:01:58.850614"], ["updated_at", "2015-12-10 15:01:58.850614"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2015-12-10 15:01:58.851701"], ["updated_at", "2015-12-10 15:01:58.851701"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2015-12-10 15:01:58.852800"], ["updated_at", "2015-12-10 15:01:58.852800"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.919507"], ["updated_at", "2015-12-10 15:01:58.919507"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2015-12-10 15:01:58.921867"], ["updated_at", "2015-12-10 15:01:58.921867"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.924957"], ["updated_at", "2015-12-10 15:01:58.924957"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.927670"], ["updated_at", "2015-12-10 15:01:58.927670"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2015-12-10 15:01:58.929286"], ["updated_at", "2015-12-10 15:01:58.929286"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2015-12-10 15:01:58.930410"], ["updated_at", "2015-12-10 15:01:58.930410"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2015-12-10 15:01:58.931558"], ["updated_at", "2015-12-10 15:01:58.931558"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.937383"], ["updated_at", "2015-12-10 15:01:58.937383"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2015-12-10 15:01:58.939488"], ["updated_at", "2015-12-10 15:01:58.939488"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.942208"], ["updated_at", "2015-12-10 15:01:58.942208"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.946216"], ["updated_at", "2015-12-10 15:01:58.946216"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2015-12-10 15:01:58.948367"], ["updated_at", "2015-12-10 15:01:58.948367"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2015-12-10 15:01:58.949899"], ["updated_at", "2015-12-10 15:01:58.949899"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2015-12-10 15:01:58.951342"], ["updated_at", "2015-12-10 15:01:58.951342"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.957173"], ["updated_at", "2015-12-10 15:01:58.957173"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2015-12-10 15:01:58.959133"], ["updated_at", "2015-12-10 15:01:58.959133"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.961799"], ["updated_at", "2015-12-10 15:01:58.961799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.964583"], ["updated_at", "2015-12-10 15:01:58.964583"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2015-12-10 15:01:58.967641"], ["updated_at", "2015-12-10 15:01:58.967641"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2015-12-10 15:01:58.969503"], ["updated_at", "2015-12-10 15:01:58.969503"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2015-12-10 15:01:58.971483"], ["updated_at", "2015-12-10 15:01:58.971483"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-10 15:01:58.974207"], ["updated_at", "2015-12-10 15:01:58.974207"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-10 15:01:58.977329"], ["updated_at", "2015-12-10 15:01:58.977329"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.983514"], ["updated_at", "2015-12-10 15:01:58.983514"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2015-12-10 15:01:58.985626"], ["updated_at", "2015-12-10 15:01:58.985626"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.988416"], ["updated_at", "2015-12-10 15:01:58.988416"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:58.991159"], ["updated_at", "2015-12-10 15:01:58.991159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2015-12-10 15:01:58.992617"], ["updated_at", "2015-12-10 15:01:58.992617"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2015-12-10 15:01:58.993818"], ["updated_at", "2015-12-10 15:01:58.993818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2015-12-10 15:01:58.995024"], ["updated_at", "2015-12-10 15:01:58.995024"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2015-12-10 15:01:58.996576"], ["updated_at", "2015-12-10 15:01:58.996576"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2015-12-10 15:01:58.998153"], ["updated_at", "2015-12-10 15:01:58.998153"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.004197"], ["updated_at", "2015-12-10 15:01:59.004197"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2015-12-10 15:01:59.006632"], ["updated_at", "2015-12-10 15:01:59.006632"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.009953"], ["updated_at", "2015-12-10 15:01:59.009953"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.012953"], ["updated_at", "2015-12-10 15:01:59.012953"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2015-12-10 15:01:59.014623"], ["updated_at", "2015-12-10 15:01:59.014623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2015-12-10 15:01:59.016116"], ["updated_at", "2015-12-10 15:01:59.016116"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2015-12-10 15:01:59.017502"], ["updated_at", "2015-12-10 15:01:59.017502"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.023547"], ["updated_at", "2015-12-10 15:01:59.023547"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.029522"], ["updated_at", "2015-12-10 15:01:59.029522"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-10 15:01:59.031850"], ["updated_at", "2015-12-10 15:01:59.031850"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2015-12-10 15:01:59.033698"], ["updated_at", "2015-12-10 15:01:59.033698"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.039995"], ["updated_at", "2015-12-10 15:01:59.039995"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.047142"], ["updated_at", "2015-12-10 15:01:59.047142"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.052101"], ["updated_at", "2015-12-10 15:01:59.052101"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2015-12-10 15:01:59.054688"], ["updated_at", "2015-12-10 15:01:59.054688"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2015-12-10 15:01:59.057136"], ["updated_at", "2015-12-10 15:01:59.057136"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.061799"], ["updated_at", "2015-12-10 15:01:59.061799"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.069813"], ["updated_at", "2015-12-10 15:01:59.069813"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.101376"], ["updated_at", "2015-12-10 15:01:59.101376"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.103587"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.110209"], ["updated_at", "2015-12-10 15:01:59.110209"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.113725"], ["updated_at", "2015-12-10 15:01:59.113725"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.116493"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.123787"], ["updated_at", "2015-12-10 15:01:59.123787"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.128112"], ["updated_at", "2015-12-10 15:01:59.128112"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.129878"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-10 15:01:59.142765"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.201128"], ["updated_at", "2015-12-10 15:01:59.201128"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.203202"], ["updated_at", "2015-12-10 15:01:59.203202"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.204876"], ["updated_at", "2015-12-10 15:01:59.204876"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-10 15:01:59.207368"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-10 15:01:59.208578"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.214719"], ["updated_at", "2015-12-10 15:01:59.214719"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.219034"], ["updated_at", "2015-12-10 15:01:59.219034"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.221185"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2015-12-10 15:01:59.225558"], ["updated_at", "2015-12-10 15:01:59.225558"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.0ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2015-12-10 15:01:59.227814"], ["updated_at", "2015-12-10 15:01:59.227814"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.233650"], ["updated_at", "2015-12-10 15:01:59.233650"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.236682"], ["updated_at", "2015-12-10 15:01:59.236682"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.238089"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.240198"], ["updated_at", "2015-12-10 15:01:59.240198"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.242067"], ["updated_at", "2015-12-10 15:01:59.242067"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.243660"], ["updated_at", "2015-12-10 15:01:59.243660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.249535"], ["updated_at", "2015-12-10 15:01:59.249535"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.252812"], ["updated_at", "2015-12-10 15:01:59.252812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.254395"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.260742"], ["updated_at", "2015-12-10 15:01:59.260742"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.264588"], ["updated_at", "2015-12-10 15:01:59.264588"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.267076"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.273935"], ["updated_at", "2015-12-10 15:01:59.273935"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.277491"], ["updated_at", "2015-12-10 15:01:59.277491"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:01:59.279479"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-10 15:01:59.282903"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.292052"], ["updated_at", "2015-12-10 15:01:59.292052"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.295590"], ["updated_at", "2015-12-10 15:01:59.295590"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2015-12-10 15:01:59.297744"], ["updated_at", "2015-12-10 15:01:59.297744"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2015-12-10 15:01:59.299004"], ["updated_at", "2015-12-10 15:01:59.299004"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.301549"], ["updated_at", "2015-12-10 15:01:59.301549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.302871"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.310264"], ["updated_at", "2015-12-10 15:01:59.310264"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.313284"], ["updated_at", "2015-12-10 15:01:59.313284"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2015-12-10 15:01:59.315186"], ["updated_at", "2015-12-10 15:01:59.315186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2015-12-10 15:01:59.316372"], ["updated_at", "2015-12-10 15:01:59.316372"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.318707"], ["updated_at", "2015-12-10 15:01:59.318707"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.319999"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.326937"], ["updated_at", "2015-12-10 15:01:59.326937"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.330656"], ["updated_at", "2015-12-10 15:01:59.330656"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2015-12-10 15:01:59.332918"], ["updated_at", "2015-12-10 15:01:59.332918"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2015-12-10 15:01:59.334184"], ["updated_at", "2015-12-10 15:01:59.334184"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.337069"], ["updated_at", "2015-12-10 15:01:59.337069"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2015-12-10 15:01:59.338469"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.345596"], ["updated_at", "2015-12-10 15:01:59.345596"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.348811"], ["updated_at", "2015-12-10 15:01:59.348811"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2015-12-10 15:01:59.350636"], ["updated_at", "2015-12-10 15:01:59.350636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2015-12-10 15:01:59.351925"], ["updated_at", "2015-12-10 15:01:59.351925"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.354403"], ["updated_at", "2015-12-10 15:01:59.354403"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.355809"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.363466"], ["updated_at", "2015-12-10 15:01:59.363466"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.367572"], ["updated_at", "2015-12-10 15:01:59.367572"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2015-12-10 15:01:59.369657"], ["updated_at", "2015-12-10 15:01:59.369657"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2015-12-10 15:01:59.371574"], ["updated_at", "2015-12-10 15:01:59.371574"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.374628"], ["updated_at", "2015-12-10 15:01:59.374628"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.376402"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-10 15:01:59.383775"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:01:59.387931"], ["updated_at", "2015-12-10 15:01:59.387931"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2015-12-10 15:01:59.390262"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.393228"], ["updated_at", "2015-12-10 15:01:59.393228"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.395057"], ["updated_at", "2015-12-10 15:01:59.395057"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.396805"], ["updated_at", "2015-12-10 15:01:59.396805"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2015-12-10 15:01:59.408344"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2015-12-10 15:01:59.480933"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.5ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-10 15:01:59.485374"], ["updated_at", "2015-12-10 15:01:59.485374"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2015-12-10 15:01:59.488458"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.4ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2015-12-10 15:01:59.506998"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2015-12-10 15:01:59.509892"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.4ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-10 15:01:59.521695"], ["updated_at", "2015-12-10 15:01:59.521695"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-10 15:01:59.524607"], ["updated_at", "2015-12-10 15:01:59.524607"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2015-12-10 15:01:59.526257"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.5ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-10 15:01:59.539115"], ["updated_at", "2015-12-10 15:01:59.539115"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-10 15:01:59.543826"], ["updated_at", "2015-12-10 15:01:59.543826"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2015-12-10 15:01:59.549745"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2015-12-10 15:01:59.551018"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.560729"], ["updated_at", "2015-12-10 15:01:59.560729"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.564805"], ["updated_at", "2015-12-10 15:01:59.564805"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2015-12-10 15:01:59.567207"], ["updated_at", "2015-12-10 15:01:59.567207"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2015-12-10 15:01:59.568495"], ["updated_at", "2015-12-10 15:01:59.568495"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.571150"], ["updated_at", "2015-12-10 15:01:59.571150"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.572564"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:01:59.574829"], ["updated_at", "2015-12-10 15:01:59.574829"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_sections"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.582508"], ["updated_at", "2015-12-10 15:01:59.582508"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.585886"], ["updated_at", "2015-12-10 15:01:59.585886"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2015-12-10 15:01:59.588140"], ["updated_at", "2015-12-10 15:01:59.588140"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2015-12-10 15:01:59.589608"], ["updated_at", "2015-12-10 15:01:59.589608"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.592653"], ["updated_at", "2015-12-10 15:01:59.592653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.594148"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.596422"], ["updated_at", "2015-12-10 15:01:59.596422"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.599749"], ["updated_at", "2015-12-10 15:01:59.599749"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.602165"], ["updated_at", "2015-12-10 15:01:59.602165"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.612165"], ["updated_at", "2015-12-10 15:01:59.612165"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.615556"], ["updated_at", "2015-12-10 15:01:59.615556"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2015-12-10 15:01:59.617631"], ["updated_at", "2015-12-10 15:01:59.617631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2015-12-10 15:01:59.618859"], ["updated_at", "2015-12-10 15:01:59.618859"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.621353"], ["updated_at", "2015-12-10 15:01:59.621353"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.622731"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:01:59.625048"], ["updated_at", "2015-12-10 15:01:59.625048"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.627251"], ["updated_at", "2015-12-10 15:01:59.627251"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.628934"], ["updated_at", "2015-12-10 15:01:59.628934"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.630469"], ["updated_at", "2015-12-10 15:01:59.630469"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.713775"], ["updated_at", "2015-12-10 15:01:59.713775"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.717394"], ["updated_at", "2015-12-10 15:01:59.717394"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2015-12-10 15:01:59.719462"], ["updated_at", "2015-12-10 15:01:59.719462"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2015-12-10 15:01:59.720686"], ["updated_at", "2015-12-10 15:01:59.720686"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.723302"], ["updated_at", "2015-12-10 15:01:59.723302"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.724718"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-10 15:01:59.730756"], ["updated_at", "2015-12-10 15:01:59.730756"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_categories"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Assignment Load (0.2ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.741892"], ["updated_at", "2015-12-10 15:01:59.741892"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.745754"], ["updated_at", "2015-12-10 15:01:59.745754"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2015-12-10 15:01:59.748931"], ["updated_at", "2015-12-10 15:01:59.748931"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2015-12-10 15:01:59.750569"], ["updated_at", "2015-12-10 15:01:59.750569"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.754201"], ["updated_at", "2015-12-10 15:01:59.754201"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.756979"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-10 15:01:59.760287"], ["updated_at", "2015-12-10 15:01:59.760287"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignments"[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.785029"], ["updated_at", "2015-12-10 15:01:59.785029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.788684"], ["updated_at", "2015-12-10 15:01:59.788684"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2015-12-10 15:01:59.790834"], ["updated_at", "2015-12-10 15:01:59.790834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2015-12-10 15:01:59.792238"], ["updated_at", "2015-12-10 15:01:59.792238"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.795205"], ["updated_at", "2015-12-10 15:01:59.795205"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.796742"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2015-12-10 15:01:59.798869"], ["updated_at", "2015-12-10 15:01:59.798869"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.806725"], ["updated_at", "2015-12-10 15:01:59.806725"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.809891"], ["updated_at", "2015-12-10 15:01:59.809891"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2015-12-10 15:01:59.811823"], ["updated_at", "2015-12-10 15:01:59.811823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2015-12-10 15:01:59.813304"], ["updated_at", "2015-12-10 15:01:59.813304"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.816029"], ["updated_at", "2015-12-10 15:01:59.816029"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.817420"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:01:59.819581"], ["updated_at", "2015-12-10 15:01:59.819581"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.823364"], ["updated_at", "2015-12-10 15:01:59.823364"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.825778"], ["updated_at", "2015-12-10 15:01:59.825778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.828044"], ["updated_at", "2015-12-10 15:01:59.828044"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2015-12-10 15:01:59.858256"], ["updated_at", "2015-12-10 15:01:59.858256"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2015-12-10 15:01:59.861283"], ["updated_at", "2015-12-10 15:01:59.861283"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2015-12-10 15:01:59.864068"], ["updated_at", "2015-12-10 15:01:59.864068"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.0ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2015-12-10 15:01:59.867018"], ["updated_at", "2015-12-10 15:01:59.867018"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_submissions" [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.875014"], ["updated_at", "2015-12-10 15:01:59.875014"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.878005"], ["updated_at", "2015-12-10 15:01:59.878005"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2015-12-10 15:01:59.880461"], ["updated_at", "2015-12-10 15:01:59.880461"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2015-12-10 15:01:59.881923"], ["updated_at", "2015-12-10 15:01:59.881923"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.884595"], ["updated_at", "2015-12-10 15:01:59.884595"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.886050"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2015-12-10 15:01:59.888490"], ["updated_at", "2015-12-10 15:01:59.888490"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-10 15:01:59.892612"], ["updated_at", "2015-12-10 15:01:59.892612"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-10 15:01:59.895851"], ["updated_at", "2015-12-10 15:01:59.895851"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.905080"], ["updated_at", "2015-12-10 15:01:59.905080"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:01:59.908730"], ["updated_at", "2015-12-10 15:01:59.908730"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2015-12-10 15:01:59.910853"], ["updated_at", "2015-12-10 15:01:59.910853"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2015-12-10 15:01:59.912210"], ["updated_at", "2015-12-10 15:01:59.912210"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:01:59.915900"], ["updated_at", "2015-12-10 15:01:59.915900"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:01:59.917879"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:01:59.920501"], ["updated_at", "2015-12-10 15:01:59.920501"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.922846"], ["updated_at", "2015-12-10 15:01:59.922846"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.982405"], ["updated_at", "2015-12-10 15:01:59.982405"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:01:59.984308"], ["updated_at", "2015-12-10 15:01:59.984308"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2015-12-10 15:02:00.004506"], ["updated_at", "2015-12-10 15:02:00.004506"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2015-12-10 15:02:00.007185"], ["updated_at", "2015-12-10 15:02:00.007185"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_groups"[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.019522"], ["updated_at", "2015-12-10 15:02:00.019522"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.023141"], ["updated_at", "2015-12-10 15:02:00.023141"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2015-12-10 15:02:00.025518"], ["updated_at", "2015-12-10 15:02:00.025518"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2015-12-10 15:02:00.026899"], ["updated_at", "2015-12-10 15:02:00.026899"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.030108"], ["updated_at", "2015-12-10 15:02:00.030108"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.031764"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2015-12-10 15:02:00.037402"], ["updated_at", "2015-12-10 15:02:00.037402"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2015-12-10 15:02:00.040569"], ["updated_at", "2015-12-10 15:02:00.040569"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.048794"], ["updated_at", "2015-12-10 15:02:00.048794"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.053662"], ["updated_at", "2015-12-10 15:02:00.053662"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2015-12-10 15:02:00.056195"], ["updated_at", "2015-12-10 15:02:00.056195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2015-12-10 15:02:00.058248"], ["updated_at", "2015-12-10 15:02:00.058248"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.061428"], ["updated_at", "2015-12-10 15:02:00.061428"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.063007"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:02:00.065302"], ["updated_at", "2015-12-10 15:02:00.065302"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.067972"], ["updated_at", "2015-12-10 15:02:00.067972"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.070685"], ["updated_at", "2015-12-10 15:02:00.070685"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.072883"], ["updated_at", "2015-12-10 15:02:00.072883"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-10 15:02:00.091810"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.108268"], ["updated_at", "2015-12-10 15:02:00.108268"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.111389"], ["updated_at", "2015-12-10 15:02:00.111389"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2015-12-10 15:02:00.113355"], ["updated_at", "2015-12-10 15:02:00.113355"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2015-12-10 15:02:00.114574"], ["updated_at", "2015-12-10 15:02:00.114574"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.117421"], ["updated_at", "2015-12-10 15:02:00.117421"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.119190"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:02:00.121821"], ["updated_at", "2015-12-10 15:02:00.121821"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.124230"], ["updated_at", "2015-12-10 15:02:00.124230"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.125830"], ["updated_at", "2015-12-10 15:02:00.125830"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.127335"], ["updated_at", "2015-12-10 15:02:00.127335"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2015-12-10 15:02:00.141715"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.159537"], ["updated_at", "2015-12-10 15:02:00.159537"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.162699"], ["updated_at", "2015-12-10 15:02:00.162699"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2015-12-10 15:02:00.164661"], ["updated_at", "2015-12-10 15:02:00.164661"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2015-12-10 15:02:00.165832"], ["updated_at", "2015-12-10 15:02:00.165832"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.168511"], ["updated_at", "2015-12-10 15:02:00.168511"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.169926"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:02:00.172095"], ["updated_at", "2015-12-10 15:02:00.172095"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.174281"], ["updated_at", "2015-12-10 15:02:00.174281"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.175828"], ["updated_at", "2015-12-10 15:02:00.175828"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.177327"], ["updated_at", "2015-12-10 15:02:00.177327"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2015-12-10 15:02:00.253066"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.271129"], ["updated_at", "2015-12-10 15:02:00.271129"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.274845"], ["updated_at", "2015-12-10 15:02:00.274845"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2015-12-10 15:02:00.277215"], ["updated_at", "2015-12-10 15:02:00.277215"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2015-12-10 15:02:00.278555"], ["updated_at", "2015-12-10 15:02:00.278555"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.281208"], ["updated_at", "2015-12-10 15:02:00.281208"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.282620"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2015-12-10 15:02:00.284918"], ["updated_at", "2015-12-10 15:02:00.284918"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.287453"], ["updated_at", "2015-12-10 15:02:00.287453"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.289103"], ["updated_at", "2015-12-10 15:02:00.289103"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2015-12-10 15:02:00.290582"], ["updated_at", "2015-12-10 15:02:00.290582"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-10 15:02:00.304765"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2015-12-10 15:02:00.310866"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.322293"], ["updated_at", "2015-12-10 15:02:00.322293"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.326035"], ["updated_at", "2015-12-10 15:02:00.326035"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2015-12-10 15:02:00.328061"], ["updated_at", "2015-12-10 15:02:00.328061"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2015-12-10 15:02:00.329330"], ["updated_at", "2015-12-10 15:02:00.329330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.332268"], ["updated_at", "2015-12-10 15:02:00.332268"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.333885"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.341074"], ["updated_at", "2015-12-10 15:02:00.341074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.344032"], ["updated_at", "2015-12-10 15:02:00.344032"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2015-12-10 15:02:00.345848"], ["updated_at", "2015-12-10 15:02:00.345848"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2015-12-10 15:02:00.346994"], ["updated_at", "2015-12-10 15:02:00.346994"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.349749"], ["updated_at", "2015-12-10 15:02:00.349749"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.351423"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.360271"], ["updated_at", "2015-12-10 15:02:00.360271"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.363356"], ["updated_at", "2015-12-10 15:02:00.363356"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2015-12-10 15:02:00.365290"], ["updated_at", "2015-12-10 15:02:00.365290"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2015-12-10 15:02:00.366408"], ["updated_at", "2015-12-10 15:02:00.366408"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.368767"], ["updated_at", "2015-12-10 15:02:00.368767"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.370047"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.377433"], ["updated_at", "2015-12-10 15:02:00.377433"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.380449"], ["updated_at", "2015-12-10 15:02:00.380449"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2015-12-10 15:02:00.382253"], ["updated_at", "2015-12-10 15:02:00.382253"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2015-12-10 15:02:00.383516"], ["updated_at", "2015-12-10 15:02:00.383516"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.385916"], ["updated_at", "2015-12-10 15:02:00.385916"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.387235"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.395200"], ["updated_at", "2015-12-10 15:02:00.395200"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.399230"], ["updated_at", "2015-12-10 15:02:00.399230"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2015-12-10 15:02:00.401742"], ["updated_at", "2015-12-10 15:02:00.401742"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2015-12-10 15:02:00.403416"], ["updated_at", "2015-12-10 15:02:00.403416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.406213"], ["updated_at", "2015-12-10 15:02:00.406213"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.407550"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.415524"], ["updated_at", "2015-12-10 15:02:00.415524"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.418696"], ["updated_at", "2015-12-10 15:02:00.418696"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2015-12-10 15:02:00.420550"], ["updated_at", "2015-12-10 15:02:00.420550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2015-12-10 15:02:00.421723"], ["updated_at", "2015-12-10 15:02:00.421723"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.424242"], ["updated_at", "2015-12-10 15:02:00.424242"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.425734"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.434451"], ["updated_at", "2015-12-10 15:02:00.434451"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.438550"], ["updated_at", "2015-12-10 15:02:00.438550"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2015-12-10 15:02:00.440918"], ["updated_at", "2015-12-10 15:02:00.440918"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2015-12-10 15:02:00.442255"], ["updated_at", "2015-12-10 15:02:00.442255"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.444819"], ["updated_at", "2015-12-10 15:02:00.444819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.446200"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.453635"], ["updated_at", "2015-12-10 15:02:00.453635"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.457174"], ["updated_at", "2015-12-10 15:02:00.457174"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2015-12-10 15:02:00.459012"], ["updated_at", "2015-12-10 15:02:00.459012"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2015-12-10 15:02:00.460137"], ["updated_at", "2015-12-10 15:02:00.460137"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.526197"], ["updated_at", "2015-12-10 15:02:00.526197"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.528542"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.539970"], ["updated_at", "2015-12-10 15:02:00.539970"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2015-12-10 15:02:00.544138"], ["updated_at", "2015-12-10 15:02:00.544138"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2015-12-10 15:02:00.546053"], ["updated_at", "2015-12-10 15:02:00.546053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2015-12-10 15:02:00.547258"], ["updated_at", "2015-12-10 15:02:00.547258"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2015-12-10 15:02:00.550046"], ["updated_at", "2015-12-10 15:02:00.550046"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2015-12-10 15:02:00.551454"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2015-12-10 15:02:00.555015"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Load (0.4ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (10.7ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?)[0m [["created_at", Thu, 10 Dec 2015 15:09:31 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:09:31 UTC +00:00], ["user_id", "a"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.0ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.4ms) Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 10 Dec 2015 15:10:50 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:10:50 UTC +00:00], ["user_id", "a"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (4.8ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?)[0m [["created_at", Thu, 10 Dec 2015 15:11:49 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:11:49 UTC +00:00], ["user_id", "a"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.2ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 33ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 10 Dec 2015 15:12:34 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:12:34 UTC +00:00], ["user_id", "a"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["api_domain", "test.example"], ["api_token", "token"], ["created_at", Thu, 10 Dec 2015 15:12:34 UTC +00:00], ["expires_at", Fri, 11 Dec 2015 15:12:34 UTC +00:00], ["refresh_token", "token"], ["updated_at", Thu, 10 Dec 2015 15:12:34 UTC +00:00], ["user_id", "abcd"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.5ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 10 Dec 2015 15:13:36 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:13:36 UTC +00:00], ["user_id", "a"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["api_domain", "test.example"], ["api_token", "token"], ["created_at", Thu, 10 Dec 2015 15:13:36 UTC +00:00], ["expires_at", Fri, 11 Dec 2015 15:13:36 UTC +00:00], ["refresh_token", "token"], ["updated_at", Thu, 10 Dec 2015 15:13:36 UTC +00:00], ["user_id", "abcd"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms) [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"key", "state"=>"test"} Completed 500 Internal Server Error in 8ms [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 10 Dec 2015 15:14:04 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:14:04 UTC +00:00], ["user_id", "a"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.0ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["api_domain", "test.example"], ["api_token", "token"], ["created_at", Thu, 10 Dec 2015 15:14:04 UTC +00:00], ["expires_at", Fri, 11 Dec 2015 15:14:04 UTC +00:00], ["refresh_token", "token"], ["updated_at", Thu, 10 Dec 2015 15:14:04 UTC +00:00], ["user_id", "abcd"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"key", "state"=>"test"} [1m[36mCoalescingPanda::LtiAccount Load (0.2ms)[0m [1mSELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'key' LIMIT 1[0m Completed 500 Internal Server Error in 12ms [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Completed 200 OK in 7ms (Views: 7.3ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (30.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?)[0m [["created_at", Thu, 10 Dec 2015 15:14:23 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:14:23 UTC +00:00], ["user_id", "a"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.0ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_domain", "test.example"], ["api_token", "token"], ["created_at", Thu, 10 Dec 2015 15:14:23 UTC +00:00], ["expires_at", Fri, 11 Dec 2015 15:14:23 UTC +00:00], ["refresh_token", "token"], ["updated_at", Thu, 10 Dec 2015 15:14:23 UTC +00:00], ["user_id", "abcd"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.0ms)[0m rollback transaction [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?)[0m [["created_at", Thu, 10 Dec 2015 15:17:04 UTC +00:00], ["updated_at", Thu, 10 Dec 2015 15:17:04 UTC +00:00], ["user_id", "a"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_domain", "test.example"], ["api_token", "token"], ["created_at", Thu, 10 Dec 2015 15:17:04 UTC +00:00], ["expires_at", Fri, 11 Dec 2015 15:17:04 UTC +00:00], ["refresh_token", "token"], ["updated_at", Thu, 10 Dec 2015 15:17:04 UTC +00:00], ["user_id", "abcd"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("canvas_account_id", "created_at", "key", "name", "oauth2_client_id", "oauth2_client_key", "secret", "settings", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["canvas_account_id", "1"], ["created_at", Thu, 10 Dec 2015 15:17:05 UTC +00:00], ["key", "Key 1"], ["name", "Account 1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["secret", "Account 1"], ["settings", "---\n:base_url: foo.com\n"], ["updated_at", Thu, 10 Dec 2015 15:17:05 UTC +00:00]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[36mCoalescingPanda::LtiAccount Load (0.1ms)[0m [1mSELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1[0m Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["api_domain", "foo.com"], ["api_token", "token"], ["created_at", Thu, 10 Dec 2015 15:17:05 UTC +00:00], ["expires_at", Thu, 10 Dec 2015 16:17:05 UTC +00:00], ["refresh_token", "token"], ["updated_at", Thu, 10 Dec 2015 15:17:05 UTC +00:00], ["user_id", "1"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 7.1ms | ActiveRecord: 1.6ms) [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = 1 AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com' LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths" [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations" [1m[36m (0.1ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2016-01-27 14:01:11.585030"], ["updated_at", "2016-01-27 14:01:11.585030"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.9ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-01-27 14:01:11.637070"], ["updated_at", "2016-01-27 14:01:11.637070"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"Key 1", "state"=>"test"} [1m[35mCoalescingPanda::LtiAccount Load (0.2ms)[0m SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = ? LIMIT 1 [["key", "Key 1"]] Creating Bearcat client for auth token retrieval pointed to: http://foo.com [1m[36mCoalescingPanda::CanvasApiAuth Load (0.4ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE (user_id = '1' and api_domain = 'foo.com') ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2016-01-27 15:01:11.694345"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-01-27 14:01:11.695828"], ["updated_at", "2016-01-27 14:01:11.695828"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.3ms) Completed 200 OK in 88ms (Views: 35.1ms | ActiveRecord: 1.1ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" WHERE "coalescing_panda_canvas_api_auths"."user_id" = ? AND "coalescing_panda_canvas_api_auths"."api_domain" = ? LIMIT 1 [["user_id", "1"], ["api_domain", "foo.com"]] [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.2ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.768217"], ["updated_at", "2016-01-27 14:01:11.768217"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.778740"], ["updated_at", "2016-01-27 14:01:11.778740"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "1"], ["created_at", "2016-01-27 14:01:11.782772"], ["updated_at", "2016-01-27 14:01:11.782772"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-01-27 14:01:11.786463"], ["updated_at", "2016-01-27 14:01:11.786463"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.876171"], ["updated_at", "2016-01-27 14:01:11.876171"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.879445"], ["updated_at", "2016-01-27 14:01:11.879445"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "2"], ["created_at", "2016-01-27 14:01:11.881627"], ["updated_at", "2016-01-27 14:01:11.881627"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-01-27 14:01:11.884520"], ["updated_at", "2016-01-27 14:01:11.884520"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.892217"], ["updated_at", "2016-01-27 14:01:11.892217"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.895556"], ["updated_at", "2016-01-27 14:01:11.895556"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "3"], ["created_at", "2016-01-27 14:01:11.897604"], ["updated_at", "2016-01-27 14:01:11.897604"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-01-27 14:01:11.899076"], ["updated_at", "2016-01-27 14:01:11.899076"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.917210"], ["updated_at", "2016-01-27 14:01:11.917210"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.921348"], ["updated_at", "2016-01-27 14:01:11.921348"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "4"], ["created_at", "2016-01-27 14:01:11.923476"], ["updated_at", "2016-01-27 14:01:11.923476"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-01-27 14:01:11.924756"], ["updated_at", "2016-01-27 14:01:11.924756"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.931226"], ["updated_at", "2016-01-27 14:01:11.931226"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.936337"], ["updated_at", "2016-01-27 14:01:11.936337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "5"], ["created_at", "2016-01-27 14:01:11.938823"], ["updated_at", "2016-01-27 14:01:11.938823"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-01-27 14:01:11.940176"], ["updated_at", "2016-01-27 14:01:11.940176"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.945256"], ["updated_at", "2016-01-27 14:01:11.945256"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.948412"], ["updated_at", "2016-01-27 14:01:11.948412"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "6"], ["created_at", "2016-01-27 14:01:11.950226"], ["updated_at", "2016-01-27 14:01:11.950226"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-01-27 14:01:11.951398"], ["updated_at", "2016-01-27 14:01:11.951398"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2016-01-27 14:01:11.952997"], ["updated_at", "2016-01-27 14:01:11.952997"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2016-01-27 14:01:11.966059"], ["updated_at", "2016-01-27 14:01:11.966059"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.973561"], ["updated_at", "2016-01-27 14:01:11.973561"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:11.976857"], ["updated_at", "2016-01-27 14:01:11.976857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "7"], ["created_at", "2016-01-27 14:01:11.978739"], ["updated_at", "2016-01-27 14:01:11.978739"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-01-27 14:01:11.979994"], ["updated_at", "2016-01-27 14:01:11.979994"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-01-27 14:01:11.986118"], ["updated_at", "2016-01-27 14:01:11.986118"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths"[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" = '1') LIMIT 1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasApiAuth Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_canvas_api_auths" WHERE ("coalescing_panda_canvas_api_auths"."user_id" = 'abcd' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'test.example') LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["user_id", "abcd"], ["api_domain", "test.example"], ["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2016-01-28 14:01:11.999898"], ["created_at", "2016-01-27 14:01:12.002220"], ["updated_at", "2016-01-27 14:01:12.002220"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-01-27 14:01:12.012479"], ["updated_at", "2016-01-27 14:01:12.012479"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2016-01-27 14:01:12.015071"], ["updated_at", "2016-01-27 14:01:12.015071"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-01-27 14:01:12.016869"], ["updated_at", "2016-01-27 14:01:12.016869"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.034819"], ["updated_at", "2016-01-27 14:01:12.034819"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.039138"], ["updated_at", "2016-01-27 14:01:12.039138"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-01-27 14:01:12.041184"], ["updated_at", "2016-01-27 14:01:12.041184"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.046681"], ["updated_at", "2016-01-27 14:01:12.046681"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.050317"], ["updated_at", "2016-01-27 14:01:12.050317"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "9"], ["created_at", "2016-01-27 14:01:12.052566"], ["updated_at", "2016-01-27 14:01:12.052566"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.057711"], ["updated_at", "2016-01-27 14:01:12.057711"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.061391"], ["updated_at", "2016-01-27 14:01:12.061391"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-01-27 14:01:12.063492"], ["updated_at", "2016-01-27 14:01:12.063492"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-01-27 14:01:12.064684"], ["updated_at", "2016-01-27 14:01:12.064684"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.067759"], ["updated_at", "2016-01-27 14:01:12.067759"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "11"], ["created_at", "2016-01-27 14:01:12.069406"], ["updated_at", "2016-01-27 14:01:12.069406"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-01-27 14:01:12.070588"], ["updated_at", "2016-01-27 14:01:12.070588"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.076202"], ["updated_at", "2016-01-27 14:01:12.076202"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "12"], ["created_at", "2016-01-27 14:01:12.078245"], ["updated_at", "2016-01-27 14:01:12.078245"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 24"], ["key", "Key 24"], ["secret", "Account 24"], ["canvas_account_id", "24"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.082831"], ["updated_at", "2016-01-27 14:01:12.082831"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-01-27 14:01:12.085164"], ["updated_at", "2016-01-27 14:01:12.085164"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 25"], ["key", "Key 25"], ["secret", "Account 25"], ["canvas_account_id", "25"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.088553"], ["updated_at", "2016-01-27 14:01:12.088553"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-01-27 14:01:12.091682"], ["updated_at", "2016-01-27 14:01:12.091682"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.097395"], ["updated_at", "2016-01-27 14:01:12.097395"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.100574"], ["updated_at", "2016-01-27 14:01:12.100574"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "13"], ["created_at", "2016-01-27 14:01:12.160225"], ["updated_at", "2016-01-27 14:01:12.160225"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 28"], ["key", "Key 28"], ["secret", "Account 28"], ["canvas_account_id", "28"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.173203"], ["updated_at", "2016-01-27 14:01:12.173203"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2016-01-27 14:01:12.175419"], ["updated_at", "2016-01-27 14:01:12.175419"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.187633"], ["updated_at", "2016-01-27 14:01:12.187633"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.192450"], ["updated_at", "2016-01-27 14:01:12.192450"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "14"], ["created_at", "2016-01-27 14:01:12.194433"], ["updated_at", "2016-01-27 14:01:12.194433"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2016-01-27 14:01:12.195955"], ["updated_at", "2016-01-27 14:01:12.195955"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-01-27 14:01:12.198228"], ["updated_at", "2016-01-27 14:01:12.198228"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.206115"], ["updated_at", "2016-01-27 14:01:12.206115"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2016-01-27 14:01:12.208484"], ["updated_at", "2016-01-27 14:01:12.208484"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.211470"], ["updated_at", "2016-01-27 14:01:12.211470"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.216137"], ["updated_at", "2016-01-27 14:01:12.216137"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "15"], ["created_at", "2016-01-27 14:01:12.218342"], ["updated_at", "2016-01-27 14:01:12.218342"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-01-27 14:01:12.219972"], ["updated_at", "2016-01-27 14:01:12.219972"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "2"], ["created_at", "2016-01-27 14:01:12.221592"], ["updated_at", "2016-01-27 14:01:12.221592"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.229206"], ["updated_at", "2016-01-27 14:01:12.229206"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-01-27 14:01:12.232670"], ["updated_at", "2016-01-27 14:01:12.232670"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.236531"], ["updated_at", "2016-01-27 14:01:12.236531"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 36"], ["key", "Key 36"], ["secret", "Account 36"], ["canvas_account_id", "36"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.239456"], ["updated_at", "2016-01-27 14:01:12.239456"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2016-01-27 14:01:12.241083"], ["updated_at", "2016-01-27 14:01:12.241083"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2016-01-27 14:01:12.242367"], ["updated_at", "2016-01-27 14:01:12.242367"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "3"], ["created_at", "2016-01-27 14:01:12.243667"], ["updated_at", "2016-01-27 14:01:12.243667"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.249088"], ["updated_at", "2016-01-27 14:01:12.249088"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-01-27 14:01:12.250986"], ["updated_at", "2016-01-27 14:01:12.250986"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.253947"], ["updated_at", "2016-01-27 14:01:12.253947"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.256847"], ["updated_at", "2016-01-27 14:01:12.256847"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "17"], ["created_at", "2016-01-27 14:01:12.258547"], ["updated_at", "2016-01-27 14:01:12.258547"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-01-27 14:01:12.259801"], ["updated_at", "2016-01-27 14:01:12.259801"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "4"], ["created_at", "2016-01-27 14:01:12.260989"], ["updated_at", "2016-01-27 14:01:12.260989"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-01-27 14:01:12.262645"], ["updated_at", "2016-01-27 14:01:12.262645"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-01-27 14:01:12.266096"], ["updated_at", "2016-01-27 14:01:12.266096"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.273433"], ["updated_at", "2016-01-27 14:01:12.273433"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2016-01-27 14:01:12.275787"], ["updated_at", "2016-01-27 14:01:12.275787"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.278701"], ["updated_at", "2016-01-27 14:01:12.278701"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.284091"], ["updated_at", "2016-01-27 14:01:12.284091"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "18"], ["created_at", "2016-01-27 14:01:12.286069"], ["updated_at", "2016-01-27 14:01:12.286069"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2016-01-27 14:01:12.287440"], ["updated_at", "2016-01-27 14:01:12.287440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2016-01-27 14:01:12.288722"], ["updated_at", "2016-01-27 14:01:12.288722"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-01-27 14:01:12.290460"], ["updated_at", "2016-01-27 14:01:12.290460"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2016-01-27 14:01:12.292220"], ["updated_at", "2016-01-27 14:01:12.292220"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.297032"], ["updated_at", "2016-01-27 14:01:12.297032"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-01-27 14:01:12.299101"], ["updated_at", "2016-01-27 14:01:12.299101"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.302910"], ["updated_at", "2016-01-27 14:01:12.302910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.306267"], ["updated_at", "2016-01-27 14:01:12.306267"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "19"], ["created_at", "2016-01-27 14:01:12.308413"], ["updated_at", "2016-01-27 14:01:12.308413"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-01-27 14:01:12.310103"], ["updated_at", "2016-01-27 14:01:12.310103"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "6"], ["created_at", "2016-01-27 14:01:12.311648"], ["updated_at", "2016-01-27 14:01:12.311648"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.326660"], ["updated_at", "2016-01-27 14:01:12.326660"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.330070"], ["updated_at", "2016-01-27 14:01:12.330070"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-01-27 14:01:12.332258"], ["updated_at", "2016-01-27 14:01:12.332258"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "16"], ["created_at", "2016-01-27 14:01:12.333560"], ["updated_at", "2016-01-27 14:01:12.333560"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.341119"], ["updated_at", "2016-01-27 14:01:12.341119"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.345333"], ["updated_at", "2016-01-27 14:01:12.345333"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-01-27 14:01:12.347553"], ["updated_at", "2016-01-27 14:01:12.347553"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "17"], ["created_at", "2016-01-27 14:01:12.348822"], ["updated_at", "2016-01-27 14:01:12.348822"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.353966"], ["updated_at", "2016-01-27 14:01:12.353966"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.356789"], ["updated_at", "2016-01-27 14:01:12.356789"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-01-27 14:01:12.358696"], ["updated_at", "2016-01-27 14:01:12.358696"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "18"], ["created_at", "2016-01-27 14:01:12.359878"], ["updated_at", "2016-01-27 14:01:12.359878"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-01-27 14:01:12.361527"], ["updated_at", "2016-01-27 14:01:12.361527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-01-27 14:01:12.363185"], ["updated_at", "2016-01-27 14:01:12.363185"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.368631"], ["updated_at", "2016-01-27 14:01:12.368631"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.371819"], ["updated_at", "2016-01-27 14:01:12.371819"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-01-27 14:01:12.373770"], ["updated_at", "2016-01-27 14:01:12.373770"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "19"], ["created_at", "2016-01-27 14:01:12.375083"], ["updated_at", "2016-01-27 14:01:12.375083"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.390806"], ["updated_at", "2016-01-27 14:01:12.390806"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-01-27 14:01:12.393333"], ["updated_at", "2016-01-27 14:01:12.393333"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.397335"], ["updated_at", "2016-01-27 14:01:12.397335"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.400363"], ["updated_at", "2016-01-27 14:01:12.400363"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "24"], ["created_at", "2016-01-27 14:01:12.401951"], ["updated_at", "2016-01-27 14:01:12.401951"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-01-27 14:01:12.403249"], ["updated_at", "2016-01-27 14:01:12.403249"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "3"], ["created_at", "2016-01-27 14:01:12.459925"], ["updated_at", "2016-01-27 14:01:12.459925"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.468108"], ["updated_at", "2016-01-27 14:01:12.468108"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-01-27 14:01:12.470639"], ["updated_at", "2016-01-27 14:01:12.470639"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.473738"], ["updated_at", "2016-01-27 14:01:12.473738"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.476576"], ["updated_at", "2016-01-27 14:01:12.476576"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "25"], ["created_at", "2016-01-27 14:01:12.478142"], ["updated_at", "2016-01-27 14:01:12.478142"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-01-27 14:01:12.479357"], ["updated_at", "2016-01-27 14:01:12.479357"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "4"], ["created_at", "2016-01-27 14:01:12.480570"], ["updated_at", "2016-01-27 14:01:12.480570"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.487817"], ["updated_at", "2016-01-27 14:01:12.487817"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-01-27 14:01:12.490201"], ["updated_at", "2016-01-27 14:01:12.490201"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.493390"], ["updated_at", "2016-01-27 14:01:12.493390"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 63"], ["key", "Key 63"], ["secret", "Account 63"], ["canvas_account_id", "62"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.496383"], ["updated_at", "2016-01-27 14:01:12.496383"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "26"], ["created_at", "2016-01-27 14:01:12.498018"], ["updated_at", "2016-01-27 14:01:12.498018"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2016-01-27 14:01:12.499367"], ["updated_at", "2016-01-27 14:01:12.499367"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "5"], ["created_at", "2016-01-27 14:01:12.500563"], ["updated_at", "2016-01-27 14:01:12.500563"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.506957"], ["updated_at", "2016-01-27 14:01:12.506957"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-01-27 14:01:12.509336"], ["updated_at", "2016-01-27 14:01:12.509336"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.512119"], ["updated_at", "2016-01-27 14:01:12.512119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.514988"], ["updated_at", "2016-01-27 14:01:12.514988"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "27"], ["created_at", "2016-01-27 14:01:12.516520"], ["updated_at", "2016-01-27 14:01:12.516520"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-01-27 14:01:12.517696"], ["updated_at", "2016-01-27 14:01:12.517696"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "6"], ["created_at", "2016-01-27 14:01:12.518887"], ["updated_at", "2016-01-27 14:01:12.518887"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2016-01-27 14:01:12.520549"], ["updated_at", "2016-01-27 14:01:12.520549"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2016-01-27 14:01:12.522553"], ["updated_at", "2016-01-27 14:01:12.522553"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.527507"], ["updated_at", "2016-01-27 14:01:12.527507"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2016-01-27 14:01:12.529467"], ["updated_at", "2016-01-27 14:01:12.529467"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.532080"], ["updated_at", "2016-01-27 14:01:12.532080"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 69"], ["key", "Key 69"], ["secret", "Account 69"], ["canvas_account_id", "68"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.536169"], ["updated_at", "2016-01-27 14:01:12.536169"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "28"], ["created_at", "2016-01-27 14:01:12.538865"], ["updated_at", "2016-01-27 14:01:12.538865"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2016-01-27 14:01:12.540669"], ["updated_at", "2016-01-27 14:01:12.540669"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "7"], ["created_at", "2016-01-27 14:01:12.542253"], ["updated_at", "2016-01-27 14:01:12.542253"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2016-01-27 14:01:12.544302"], ["updated_at", "2016-01-27 14:01:12.544302"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2016-01-27 14:01:12.546291"], ["updated_at", "2016-01-27 14:01:12.546291"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.551159"], ["updated_at", "2016-01-27 14:01:12.551159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2016-01-27 14:01:12.553303"], ["updated_at", "2016-01-27 14:01:12.553303"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.556114"], ["updated_at", "2016-01-27 14:01:12.556114"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.558857"], ["updated_at", "2016-01-27 14:01:12.558857"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "29"], ["created_at", "2016-01-27 14:01:12.560582"], ["updated_at", "2016-01-27 14:01:12.560582"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-01-27 14:01:12.561860"], ["updated_at", "2016-01-27 14:01:12.561860"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "8"], ["created_at", "2016-01-27 14:01:12.563053"], ["updated_at", "2016-01-27 14:01:12.563053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.569235"], ["updated_at", "2016-01-27 14:01:12.569235"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.574417"], ["updated_at", "2016-01-27 14:01:12.574417"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2016-01-27 14:01:12.576835"], ["updated_at", "2016-01-27 14:01:12.576835"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_term_id", "1"], ["created_at", "2016-01-27 14:01:12.578890"], ["updated_at", "2016-01-27 14:01:12.578890"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.586529"], ["updated_at", "2016-01-27 14:01:12.586529"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.593551"], ["updated_at", "2016-01-27 14:01:12.593551"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.598158"], ["updated_at", "2016-01-27 14:01:12.598158"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["email", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-01-27 14:01:12.600599"], ["updated_at", "2016-01-27 14:01:12.600599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2016-01-27 14:01:12.602766"], ["updated_at", "2016-01-27 14:01:12.602766"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.607387"], ["updated_at", "2016-01-27 14:01:12.607387"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.614341"], ["updated_at", "2016-01-27 14:01:12.614341"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.2ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.672997"], ["updated_at", "2016-01-27 14:01:12.672997"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.675841"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.682907"], ["updated_at", "2016-01-27 14:01:12.682907"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.687456"], ["updated_at", "2016-01-27 14:01:12.687456"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.689573"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.695223"], ["updated_at", "2016-01-27 14:01:12.695223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.698755"], ["updated_at", "2016-01-27 14:01:12.698755"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.700643"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-01-27 14:01:12.774956"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.781194"], ["updated_at", "2016-01-27 14:01:12.781194"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.783952"], ["updated_at", "2016-01-27 14:01:12.783952"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.786031"], ["updated_at", "2016-01-27 14:01:12.786031"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 100.0], ["updated_at", "2016-01-27 14:01:12.788412"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2016-01-27 14:01:12.789627"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.795950"], ["updated_at", "2016-01-27 14:01:12.795950"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.799714"], ["updated_at", "2016-01-27 14:01:12.799714"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.801459"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"], ["course_code", "sub1c1"], ["name", "Course1"], ["start_at", "2015-02-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_1_sis"], ["created_at", "2016-01-27 14:01:12.805247"], ["updated_at", "2016-01-27 14:01:12.805247"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.1ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_courses"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id", "course_code", "name", "start_at", "workflow_state", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"], ["course_code", "sub1c2"], ["name", "Course2"], ["start_at", "2015-03-24 19:04:00.000000"], ["workflow_state", "available"], ["sis_id", "course_2_sis"], ["created_at", "2016-01-27 14:01:12.808410"], ["updated_at", "2016-01-27 14:01:12.808410"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.2ms)[0m [1mSELECT "coalescing_panda_courses".* FROM "coalescing_panda_courses" WHERE "coalescing_panda_courses"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_courses"."id" NOT IN (1, 2))[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.816754"], ["updated_at", "2016-01-27 14:01:12.816754"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.821250"], ["updated_at", "2016-01-27 14:01:12.821250"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.823863"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.827090"], ["updated_at", "2016-01-27 14:01:12.827090"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.828980"], ["updated_at", "2016-01-27 14:01:12.828980"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.830646"], ["updated_at", "2016-01-27 14:01:12.830646"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.837180"], ["updated_at", "2016-01-27 14:01:12.837180"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.840543"], ["updated_at", "2016-01-27 14:01:12.840543"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.842061"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.847476"], ["updated_at", "2016-01-27 14:01:12.847476"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.851105"], ["updated_at", "2016-01-27 14:01:12.851105"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.852858"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.860599"], ["updated_at", "2016-01-27 14:01:12.860599"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.864215"], ["updated_at", "2016-01-27 14:01:12.864215"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:12.866052"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-01-27 14:01:12.869424"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.877849"], ["updated_at", "2016-01-27 14:01:12.877849"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.881310"], ["updated_at", "2016-01-27 14:01:12.881310"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2016-01-27 14:01:12.884723"], ["updated_at", "2016-01-27 14:01:12.884723"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-01-27 14:01:12.886464"], ["updated_at", "2016-01-27 14:01:12.886464"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.889726"], ["updated_at", "2016-01-27 14:01:12.889726"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:12.891346"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.898875"], ["updated_at", "2016-01-27 14:01:12.898875"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.902527"], ["updated_at", "2016-01-27 14:01:12.902527"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2016-01-27 14:01:12.904613"], ["updated_at", "2016-01-27 14:01:12.904613"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-01-27 14:01:12.906005"], ["updated_at", "2016-01-27 14:01:12.906005"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.909392"], ["updated_at", "2016-01-27 14:01:12.909392"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:12.911217"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.918622"], ["updated_at", "2016-01-27 14:01:12.918622"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.922994"], ["updated_at", "2016-01-27 14:01:12.922994"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-01-27 14:01:12.925665"], ["updated_at", "2016-01-27 14:01:12.925665"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2016-01-27 14:01:12.927289"], ["updated_at", "2016-01-27 14:01:12.927289"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.930518"], ["updated_at", "2016-01-27 14:01:12.930518"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2016-01-27 14:01:12.932091"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.940075"], ["updated_at", "2016-01-27 14:01:12.940075"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.943445"], ["updated_at", "2016-01-27 14:01:12.943445"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2016-01-27 14:01:12.945246"], ["updated_at", "2016-01-27 14:01:12.945246"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-01-27 14:01:12.946409"], ["updated_at", "2016-01-27 14:01:12.946409"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.949062"], ["updated_at", "2016-01-27 14:01:12.949062"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:12.950387"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.958533"], ["updated_at", "2016-01-27 14:01:12.958533"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:12.962066"], ["updated_at", "2016-01-27 14:01:12.962066"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-01-27 14:01:12.963952"], ["updated_at", "2016-01-27 14:01:12.963952"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "30"], ["created_at", "2016-01-27 14:01:12.965287"], ["updated_at", "2016-01-27 14:01:12.965287"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:12.968394"], ["updated_at", "2016-01-27 14:01:12.968394"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:12.970506"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-01-27 14:01:12.978972"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.2ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:12.985348"], ["updated_at", "2016-01-27 14:01:12.985348"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 12.5], ["updated_at", "2016-01-27 14:01:12.988609"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.992637"], ["updated_at", "2016-01-27 14:01:12.992637"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.994647"], ["updated_at", "2016-01-27 14:01:12.994647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:12.996422"], ["updated_at", "2016-01-27 14:01:12.996422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 25.0], ["updated_at", "2016-01-27 14:01:13.007975"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-01-27 14:01:13.083065"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.4ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-01-27 14:01:13.087292"], ["updated_at", "2016-01-27 14:01:13.087292"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-01-27 14:01:13.089923"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.4ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2016-01-27 14:01:13.112017"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.2ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-01-27 14:01:13.117153"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.5ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-01-27 14:01:13.132752"], ["updated_at", "2016-01-27 14:01:13.132752"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2016-01-27 14:01:13.136445"], ["updated_at", "2016-01-27 14:01:13.136445"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.2ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 87.5], ["updated_at", "2016-01-27 14:01:13.138684"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.2ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ?[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35mCoalescingPanda::GroupMembership Load (0.6ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-01-27 14:01:13.155322"], ["updated_at", "2016-01-27 14:01:13.155322"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-01-27 14:01:13.158616"], ["updated_at", "2016-01-27 14:01:13.158616"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.1ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[36mCoalescingPanda::Group Load (0.0ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.2ms)[0m SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_group_memberships"."id" NOT IN (1, 2, 1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-01-27 14:01:13.166217"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Completed"], ["updated_at", "2016-01-27 14:01:13.167591"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.176162"], ["updated_at", "2016-01-27 14:01:13.176162"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.179282"], ["updated_at", "2016-01-27 14:01:13.179282"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2016-01-27 14:01:13.181108"], ["updated_at", "2016-01-27 14:01:13.181108"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-01-27 14:01:13.182352"], ["updated_at", "2016-01-27 14:01:13.182352"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.185219"], ["updated_at", "2016-01-27 14:01:13.185219"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.186853"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.189159"], ["updated_at", "2016-01-27 14:01:13.189159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 99"], ["key", "Key 99"], ["secret", "Account 99"], ["canvas_account_id", "98"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.197573"], ["updated_at", "2016-01-27 14:01:13.197573"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.201423"], ["updated_at", "2016-01-27 14:01:13.201423"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "37"], ["created_at", "2016-01-27 14:01:13.203758"], ["updated_at", "2016-01-27 14:01:13.203758"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-01-27 14:01:13.205252"], ["updated_at", "2016-01-27 14:01:13.205252"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.208230"], ["updated_at", "2016-01-27 14:01:13.208230"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.209736"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.212215"], ["updated_at", "2016-01-27 14:01:13.212215"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.214228"], ["updated_at", "2016-01-27 14:01:13.214228"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.216561"], ["updated_at", "2016-01-27 14:01:13.216561"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.225910"], ["updated_at", "2016-01-27 14:01:13.225910"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.230603"], ["updated_at", "2016-01-27 14:01:13.230603"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2016-01-27 14:01:13.232985"], ["updated_at", "2016-01-27 14:01:13.232985"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-01-27 14:01:13.234375"], ["updated_at", "2016-01-27 14:01:13.234375"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.237150"], ["updated_at", "2016-01-27 14:01:13.237150"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.238645"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.240976"], ["updated_at", "2016-01-27 14:01:13.240976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.243284"], ["updated_at", "2016-01-27 14:01:13.243284"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.245058"], ["updated_at", "2016-01-27 14:01:13.245058"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.247082"], ["updated_at", "2016-01-27 14:01:13.247082"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.335061"], ["updated_at", "2016-01-27 14:01:13.335061"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.339573"], ["updated_at", "2016-01-27 14:01:13.339573"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-01-27 14:01:13.341457"], ["updated_at", "2016-01-27 14:01:13.341457"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2016-01-27 14:01:13.342668"], ["updated_at", "2016-01-27 14:01:13.342668"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.345238"], ["updated_at", "2016-01-27 14:01:13.345238"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.346760"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.2ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-01-27 14:01:13.357594"], ["updated_at", "2016-01-27 14:01:13.357594"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.365721"], ["updated_at", "2016-01-27 14:01:13.365721"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.368666"], ["updated_at", "2016-01-27 14:01:13.368666"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "40"], ["created_at", "2016-01-27 14:01:13.370479"], ["updated_at", "2016-01-27 14:01:13.370479"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-01-27 14:01:13.371606"], ["updated_at", "2016-01-27 14:01:13.371606"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.374159"], ["updated_at", "2016-01-27 14:01:13.374159"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.375500"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-01-27 14:01:13.377741"], ["updated_at", "2016-01-27 14:01:13.377741"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "coalescing_panda_group_category_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["coalescing_panda_group_category_id", 1], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignments" [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1[0m [["canvas_assignment_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.1ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.2ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.400833"], ["updated_at", "2016-01-27 14:01:13.400833"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.404527"], ["updated_at", "2016-01-27 14:01:13.404527"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-01-27 14:01:13.407314"], ["updated_at", "2016-01-27 14:01:13.407314"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2016-01-27 14:01:13.408653"], ["updated_at", "2016-01-27 14:01:13.408653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.411223"], ["updated_at", "2016-01-27 14:01:13.411223"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.412594"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? ORDER BY "coalescing_panda_assignment_groups"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-01-27 14:01:13.414606"], ["updated_at", "2016-01-27 14:01:13.414606"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignment_groups"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.421821"], ["updated_at", "2016-01-27 14:01:13.421821"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.424850"], ["updated_at", "2016-01-27 14:01:13.424850"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-01-27 14:01:13.427553"], ["updated_at", "2016-01-27 14:01:13.427553"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2016-01-27 14:01:13.429467"], ["updated_at", "2016-01-27 14:01:13.429467"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.433221"], ["updated_at", "2016-01-27 14:01:13.433221"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.436319"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.439626"], ["updated_at", "2016-01-27 14:01:13.439626"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.443599"], ["updated_at", "2016-01-27 14:01:13.443599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.446014"], ["updated_at", "2016-01-27 14:01:13.446014"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.448178"], ["updated_at", "2016-01-27 14:01:13.448178"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "group_category_id", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2014-11-18 18:04:38.000000"], ["description", "What is your name?
"], ["grade_group_students_individually", "f"], ["group_category_id", 1], ["points_possible", 100.0], ["updated_at", "2014-11-18 18:04:42.000000"], ["name", "Gimme your name"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.0ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? ORDER BY "coalescing_panda_assignments"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[36mCoalescingPanda::AssignmentGroup Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups" WHERE "coalescing_panda_assignment_groups"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignment_groups"."canvas_assignment_group_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id", "created_at", "description", "grade_group_students_individually", "points_possible", "updated_at", "name", "submission_types", "published") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"], ["created_at", "2014-11-18 19:10:28.000000"], ["description", "What is your Favorite Color?
"], ["grade_group_students_individually", "f"], ["points_possible", 100.0], ["updated_at", "2014-11-18 19:10:30.000000"], ["name", "Favorite Color"], ["submission_types", "---\n- online_text_entry\n"], ["published", "t"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.1ms)[0m SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_submission_id", "3"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["canvas_submission_id", "3"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 1], ["grade", "70"], ["score", "70"], ["workflow_state", "graded"], ["created_at", "2016-01-27 14:01:13.478933"], ["updated_at", "2016-01-27 14:01:13.478933"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_submission_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["canvas_submission_id", "1"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 1], ["grade", "100"], ["score", "100"], ["workflow_state", "graded"], ["created_at", "2016-01-27 14:01:13.482186"], ["updated_at", "2016-01-27 14:01:13.482186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_submission_id", "4"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[36mCoalescingPanda::Assignment Load (0.0ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["canvas_submission_id", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2016-01-27 14:01:13.485516"], ["updated_at", "2016-01-27 14:01:13.485516"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."canvas_submission_id" = ? ORDER BY "coalescing_panda_submissions"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_submission_id", "2"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36mCoalescingPanda::Assignment Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_submissions" ("canvas_submission_id", "coalescing_panda_user_id", "coalescing_panda_assignment_id", "grade", "score", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["canvas_submission_id", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2016-01-27 14:01:13.490192"], ["updated_at", "2016-01-27 14:01:13.490192"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Group Load (0.1ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.498914"], ["updated_at", "2016-01-27 14:01:13.498914"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.502066"], ["updated_at", "2016-01-27 14:01:13.502066"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-01-27 14:01:13.503980"], ["updated_at", "2016-01-27 14:01:13.503980"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "38"], ["created_at", "2016-01-27 14:01:13.505367"], ["updated_at", "2016-01-27 14:01:13.505367"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.508552"], ["updated_at", "2016-01-27 14:01:13.508552"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.510528"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.0ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-01-27 14:01:13.513492"], ["updated_at", "2016-01-27 14:01:13.513492"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-01-27 14:01:13.517413"], ["updated_at", "2016-01-27 14:01:13.517413"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2016-01-27 14:01:13.519783"], ["updated_at", "2016-01-27 14:01:13.519783"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_groups" [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1[0m [["canvas_group_id", "4"]] [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Group Load (0.2ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.528340"], ["updated_at", "2016-01-27 14:01:13.528340"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.531815"], ["updated_at", "2016-01-27 14:01:13.531815"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-01-27 14:01:13.534122"], ["updated_at", "2016-01-27 14:01:13.534122"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2016-01-27 14:01:13.535758"], ["updated_at", "2016-01-27 14:01:13.535758"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.539052"], ["updated_at", "2016-01-27 14:01:13.539052"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.540564"], ["id", 1]] [1m[36m (56.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.603432"], ["updated_at", "2016-01-27 14:01:13.603432"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.606364"], ["updated_at", "2016-01-27 14:01:13.606364"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.608192"], ["updated_at", "2016-01-27 14:01:13.608192"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.609932"], ["updated_at", "2016-01-27 14:01:13.609932"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-01-27 14:01:13.631853"], ["updated_at", "2016-01-27 14:01:13.631853"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.0ms)[0m [1mSELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."context_id" = ? AND "coalescing_panda_group_categories"."context_type" = ? AND "coalescing_panda_group_categories"."canvas_group_category_id" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "5"], ["name", "Student Group 2"], ["members_count", 2], ["created_at", "2016-01-27 14:01:13.635042"], ["updated_at", "2016-01-27 14:01:13.635042"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_groups"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_groups" [1m[36mCoalescingPanda::Group Load (0.1ms)[0m [1mSELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? ORDER BY "coalescing_panda_groups"."id" ASC LIMIT 1[0m [["canvas_group_id", "4"]] [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.646510"], ["updated_at", "2016-01-27 14:01:13.646510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.650052"], ["updated_at", "2016-01-27 14:01:13.650052"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2016-01-27 14:01:13.652236"], ["updated_at", "2016-01-27 14:01:13.652236"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-01-27 14:01:13.653493"], ["updated_at", "2016-01-27 14:01:13.653493"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.655974"], ["updated_at", "2016-01-27 14:01:13.655974"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.657278"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "13"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_group_membership_id", "13"], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-01-27 14:01:13.661053"], ["updated_at", "2016-01-27 14:01:13.661053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_group_memberships"."canvas_group_membership_id" = ? ORDER BY "coalescing_panda_group_memberships"."id" ASC LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_membership_id", "14"]] [1m[35mCoalescingPanda::Group Load (0.0ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-01-27 14:01:13.663670"], ["updated_at", "2016-01-27 14:01:13.663670"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.1ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships" INNER JOIN "coalescing_panda_groups" ON "coalescing_panda_group_memberships"."coalescing_panda_group_id" = "coalescing_panda_groups"."id" WHERE "coalescing_panda_groups"."context_id" = ? AND "coalescing_panda_groups"."context_type" = ? AND ("coalescing_panda_group_memberships"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.673194"], ["updated_at", "2016-01-27 14:01:13.673194"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.677191"], ["updated_at", "2016-01-27 14:01:13.677191"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "46"], ["created_at", "2016-01-27 14:01:13.679599"], ["updated_at", "2016-01-27 14:01:13.679599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-01-27 14:01:13.681205"], ["updated_at", "2016-01-27 14:01:13.681205"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.685584"], ["updated_at", "2016-01-27 14:01:13.685584"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.688024"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.690989"], ["updated_at", "2016-01-27 14:01:13.690989"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.693499"], ["updated_at", "2016-01-27 14:01:13.693499"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.695181"], ["updated_at", "2016-01-27 14:01:13.695181"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.696808"], ["updated_at", "2016-01-27 14:01:13.696808"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2016-01-27 14:01:13.713773"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.2ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.1ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.730923"], ["updated_at", "2016-01-27 14:01:13.730923"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.735296"], ["updated_at", "2016-01-27 14:01:13.735296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-01-27 14:01:13.738273"], ["updated_at", "2016-01-27 14:01:13.738273"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "42"], ["created_at", "2016-01-27 14:01:13.739886"], ["updated_at", "2016-01-27 14:01:13.739886"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.742795"], ["updated_at", "2016-01-27 14:01:13.742795"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.744324"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.746629"], ["updated_at", "2016-01-27 14:01:13.746629"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.749976"], ["updated_at", "2016-01-27 14:01:13.749976"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.751791"], ["updated_at", "2016-01-27 14:01:13.751791"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.753485"], ["updated_at", "2016-01-27 14:01:13.753485"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-01-27 14:01:13.773474"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_enrollments" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_enrollments"."id" IN (SELECT "coalescing_panda_enrollments"."id" 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)))[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (2.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.796302"], ["updated_at", "2016-01-27 14:01:13.796302"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.799699"], ["updated_at", "2016-01-27 14:01:13.799699"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-01-27 14:01:13.801573"], ["updated_at", "2016-01-27 14:01:13.801573"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2016-01-27 14:01:13.803620"], ["updated_at", "2016-01-27 14:01:13.803620"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.806314"], ["updated_at", "2016-01-27 14:01:13.806314"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.807817"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.810422"], ["updated_at", "2016-01-27 14:01:13.810422"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.813026"], ["updated_at", "2016-01-27 14:01:13.813026"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.815143"], ["updated_at", "2016-01-27 14:01:13.815143"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.817019"], ["updated_at", "2016-01-27 14:01:13.817019"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.1ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-01-27 14:01:13.906312"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.2ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_user_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.0ms)[0m [1mSELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?[0m [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.925418"], ["updated_at", "2016-01-27 14:01:13.925418"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.928700"], ["updated_at", "2016-01-27 14:01:13.928700"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2016-01-27 14:01:13.931324"], ["updated_at", "2016-01-27 14:01:13.931324"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-01-27 14:01:13.933019"], ["updated_at", "2016-01-27 14:01:13.933019"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.936569"], ["updated_at", "2016-01-27 14:01:13.936569"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.938470"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["name", "Course1"], ["created_at", "2016-01-27 14:01:13.941403"], ["updated_at", "2016-01-27 14:01:13.941403"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_sections"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.944077"], ["updated_at", "2016-01-27 14:01:13.944077"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.945898"], ["updated_at", "2016-01-27 14:01:13.945898"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-01-27 14:01:13.948172"], ["updated_at", "2016-01-27 14:01:13.948172"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m 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" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "1"], ["coalescing_panda_user_id", 1], ["created_at", "2014-11-07 21:17:54.000000"], ["updated_at", "2014-11-11 22:11:19.000000"], ["workflow_state", "active"], ["enrollment_type", "TeacherEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::Enrollment Load (0.0ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"]] [1m[35mCoalescingPanda::Section Load (0.0ms)[0m SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "2"], ["coalescing_panda_user_id", 2], ["created_at", "2014-11-07 21:18:16.000000"], ["updated_at", "2014-11-20 23:18:17.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? AND "coalescing_panda_enrollments"."canvas_enrollment_id" = ? ORDER BY "coalescing_panda_enrollments"."id" ASC LIMIT 1 [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"]] [1m[36mCoalescingPanda::Section Load (0.0ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "canvas_enrollment_id", "coalescing_panda_user_id", "created_at", "updated_at", "workflow_state", "enrollment_type") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["coalescing_panda_user_id", 3], ["created_at", "2014-11-07 21:18:17.000000"], ["updated_at", "2014-11-20 23:18:21.000000"], ["workflow_state", "active"], ["enrollment_type", "StudentEnrollment"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.1ms)[0m 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" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2016-01-27 14:01:13.967296"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.0ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.0ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] [1m[36mCoalescingPanda::User Load (0.0ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_submissions" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_submissions"."id" IN (SELECT "coalescing_panda_submissions"."id" FROM "coalescing_panda_submissions" INNER JOIN "coalescing_panda_assignments" ON "coalescing_panda_submissions"."coalescing_panda_assignment_id" = "coalescing_panda_assignments"."id" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? AND "coalescing_panda_submissions"."coalescing_panda_user_id" = ?) [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-01-27 14:01:13.974255"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "coalescing_panda_users" SET "workflow_state" = 'deleted' WHERE "coalescing_panda_users"."id" IN (SELECT "coalescing_panda_users"."id" 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" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3))) [["coalescing_panda_course_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.984690"], ["updated_at", "2016-01-27 14:01:13.984690"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:13.987925"], ["updated_at", "2016-01-27 14:01:13.987925"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-01-27 14:01:13.990165"], ["updated_at", "2016-01-27 14:01:13.990165"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2016-01-27 14:01:13.991947"], ["updated_at", "2016-01-27 14:01:13.991947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:13.996097"], ["updated_at", "2016-01-27 14:01:13.996097"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:13.998096"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 127"], ["key", "Key 127"], ["secret", "Account 127"], ["canvas_account_id", "126"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.005679"], ["updated_at", "2016-01-27 14:01:14.005679"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.009487"], ["updated_at", "2016-01-27 14:01:14.009487"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2016-01-27 14:01:14.011583"], ["updated_at", "2016-01-27 14:01:14.011583"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-01-27 14:01:14.012899"], ["updated_at", "2016-01-27 14:01:14.012899"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.015765"], ["updated_at", "2016-01-27 14:01:14.015765"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.017427"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.025209"], ["updated_at", "2016-01-27 14:01:14.025209"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.028562"], ["updated_at", "2016-01-27 14:01:14.028562"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-01-27 14:01:14.030469"], ["updated_at", "2016-01-27 14:01:14.030469"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "47"], ["created_at", "2016-01-27 14:01:14.032212"], ["updated_at", "2016-01-27 14:01:14.032212"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.037253"], ["updated_at", "2016-01-27 14:01:14.037253"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.0ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.039037"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.046914"], ["updated_at", "2016-01-27 14:01:14.046914"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.051553"], ["updated_at", "2016-01-27 14:01:14.051553"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "53"], ["created_at", "2016-01-27 14:01:14.054190"], ["updated_at", "2016-01-27 14:01:14.054190"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-01-27 14:01:14.056043"], ["updated_at", "2016-01-27 14:01:14.056043"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.059314"], ["updated_at", "2016-01-27 14:01:14.059314"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.060921"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.069800"], ["updated_at", "2016-01-27 14:01:14.069800"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.074153"], ["updated_at", "2016-01-27 14:01:14.074153"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-01-27 14:01:14.076611"], ["updated_at", "2016-01-27 14:01:14.076611"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "49"], ["created_at", "2016-01-27 14:01:14.078148"], ["updated_at", "2016-01-27 14:01:14.078148"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.081003"], ["updated_at", "2016-01-27 14:01:14.081003"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.083556"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.093232"], ["updated_at", "2016-01-27 14:01:14.093232"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.096778"], ["updated_at", "2016-01-27 14:01:14.096778"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "55"], ["created_at", "2016-01-27 14:01:14.098886"], ["updated_at", "2016-01-27 14:01:14.098886"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-01-27 14:01:14.100084"], ["updated_at", "2016-01-27 14:01:14.100084"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.102569"], ["updated_at", "2016-01-27 14:01:14.102569"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.103879"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.111369"], ["updated_at", "2016-01-27 14:01:14.111369"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.114966"], ["updated_at", "2016-01-27 14:01:14.114966"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-01-27 14:01:14.116978"], ["updated_at", "2016-01-27 14:01:14.116978"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "51"], ["created_at", "2016-01-27 14:01:14.118211"], ["updated_at", "2016-01-27 14:01:14.118211"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.120699"], ["updated_at", "2016-01-27 14:01:14.120699"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.122958"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.131424"], ["updated_at", "2016-01-27 14:01:14.131424"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.200048"], ["updated_at", "2016-01-27 14:01:14.200048"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "57"], ["created_at", "2016-01-27 14:01:14.203073"], ["updated_at", "2016-01-27 14:01:14.203073"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-01-27 14:01:14.204703"], ["updated_at", "2016-01-27 14:01:14.204703"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.207310"], ["updated_at", "2016-01-27 14:01:14.207310"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.208735"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["name", "Account 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.218296"], ["updated_at", "2016-01-27 14:01:14.218296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 142"], ["key", "Key 142"], ["secret", "Account 142"], ["canvas_account_id", "141"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-01-27 14:01:14.221626"], ["updated_at", "2016-01-27 14:01:14.221626"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "58"], ["created_at", "2016-01-27 14:01:14.223717"], ["updated_at", "2016-01-27 14:01:14.223717"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-01-27 14:01:14.224967"], ["updated_at", "2016-01-27 14:01:14.224967"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.1ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-01-27 14:01:14.227769"], ["updated_at", "2016-01-27 14:01:14.227769"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-01-27 14:01:14.229197"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-01-27 14:01:14.233442"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.1ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1[0m [["coalescing_panda_lti_account_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction