[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 [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.1ms)[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.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.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 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-03-07 15:42:58.767871"], ["updated_at", "2016-03-07 15:42:58.767871"]] [1m[35m (0.0ms)[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", "2016-03-07 15:42:58.796701"], ["updated_at", "2016-03-07 15:42:58.796701"]] [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.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.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", "2016-03-07 16:42:58.845239"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:42:58.846449"], ["updated_at", "2016-03-07 15:42:58.846449"]] [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 69ms (Views: 23.6ms | ActiveRecord: 1.0ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.2ms)[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.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.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.1ms)[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", "2016-03-07 15:42:58.899310"], ["updated_at", "2016-03-07 15:42:58.899310"]] [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", "2016-03-07 15:42:58.958028"], ["updated_at", "2016-03-07 15:42:58.958028"]] [1m[36m (0.0ms)[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-03-07 15:42:58.960667"], ["updated_at", "2016-03-07 15:42:58.960667"]] [1m[35m (0.1ms)[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_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-03-07 15:42:58.964640"], ["updated_at", "2016-03-07 15:42:58.964640"]] [1m[36m (0.0ms)[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 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-03-07 15:42:58.998458"], ["updated_at", "2016-03-07 15:42:58.998458"]] [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 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.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 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-03-07 15:42:59.002594"], ["updated_at", "2016-03-07 15:42:59.002594"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:42:59.005042"], ["updated_at", "2016-03-07 15:42:59.005042"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:42:59.006446"], ["updated_at", "2016-03-07 15:42:59.006446"]] [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", "2016-03-07 15:42:59.011985"], ["updated_at", "2016-03-07 15:42:59.011985"]] [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.1ms)[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", "2016-03-07 15:42:59.015176"], ["updated_at", "2016-03-07 15:42:59.015176"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.016994"], ["updated_at", "2016-03-07 15:42:59.016994"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.018135"], ["updated_at", "2016-03-07 15:42:59.018135"]] [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.1ms)[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", "2016-03-07 15:42:59.037890"], ["updated_at", "2016-03-07 15:42:59.037890"]] [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", "2016-03-07 15:42:59.041740"], ["updated_at", "2016-03-07 15:42:59.041740"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.043854"], ["updated_at", "2016-03-07 15:42:59.043854"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.045150"], ["updated_at", "2016-03-07 15:42:59.045150"]] [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", "2016-03-07 15:42:59.052304"], ["updated_at", "2016-03-07 15:42:59.052304"]] [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", "2016-03-07 15:42:59.055531"], ["updated_at", "2016-03-07 15:42:59.055531"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.057426"], ["updated_at", "2016-03-07 15:42:59.057426"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.058808"], ["updated_at", "2016-03-07 15:42:59.058808"]] [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", "2016-03-07 15:42:59.063650"], ["updated_at", "2016-03-07 15:42:59.063650"]] [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", "2016-03-07 15:42:59.067301"], ["updated_at", "2016-03-07 15:42:59.067301"]] [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", "6"], ["created_at", "2016-03-07 15:42:59.069243"], ["updated_at", "2016-03-07 15:42:59.069243"]] [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", "6"], ["created_at", "2016-03-07 15:42:59.070478"], ["updated_at", "2016-03-07 15:42:59.070478"]] [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", "2016-03-07 15:42:59.072114"], ["updated_at", "2016-03-07 15:42:59.072114"]] [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", "2016-03-07 15:42:59.079883"], ["updated_at", "2016-03-07 15:42:59.079883"]] 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.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", "2016-03-07 15:42:59.085837"], ["updated_at", "2016-03-07 15:42:59.085837"]] [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-03-07 15:42:59.089130"], ["updated_at", "2016-03-07 15:42:59.089130"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.091012"], ["updated_at", "2016-03-07 15:42:59.091012"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.092283"], ["updated_at", "2016-03-07 15:42:59.092283"]] [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", "2016-03-07 15:42:59.098679"], ["updated_at", "2016-03-07 15:42:59.098679"]] [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.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", "2016-03-08 15:42:59.111298"], ["created_at", "2016-03-07 15:42:59.114305"], ["updated_at", "2016-03-07 15:42:59.114305"]] [1m[35m (0.1ms)[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[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:42:59.123153"], ["updated_at", "2016-03-07 15:42:59.123153"]] [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", "2016-03-07 15:42:59.125183"], ["updated_at", "2016-03-07 15:42:59.125183"]] [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", "2016-03-07 15:42:59.126410"], ["updated_at", "2016-03-07 15:42:59.126410"]] [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.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[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.1ms)[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 16' 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 16' 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 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-03-07 15:42:59.139609"], ["updated_at", "2016-03-07 15:42:59.139609"]] [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.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 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-03-07 15:42:59.144081"], ["updated_at", "2016-03-07 15:42:59.144081"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.146560"], ["updated_at", "2016-03-07 15:42:59.146560"]] [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 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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-03-07 15:42:59.153403"], ["updated_at", "2016-03-07 15:42:59.153403"]] [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.1ms)[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", "2016-03-07 15:42:59.157632"], ["updated_at", "2016-03-07 15:42:59.157632"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.159914"], ["updated_at", "2016-03-07 15:42:59.159914"]] [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.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", "2016-03-07 15:42:59.164563"], ["updated_at", "2016-03-07 15:42:59.164563"]] [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", "2016-03-07 15:42:59.168111"], ["updated_at", "2016-03-07 15:42:59.168111"]] [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", "10"], ["created_at", "2016-03-07 15:42:59.228389"], ["updated_at", "2016-03-07 15:42:59.228389"]] [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", "2016-03-07 15:42:59.230339"], ["updated_at", "2016-03-07 15:42:59.230339"]] [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.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 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-03-07 15:42:59.234630"], ["updated_at", "2016-03-07 15:42:59.234630"]] [1m[36m (0.1ms)[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", 3], ["canvas_term_id", "11"], ["created_at", "2016-03-07 15:42:59.236832"], ["updated_at", "2016-03-07 15:42:59.236832"]] [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-03-07 15:42:59.238444"], ["updated_at", "2016-03-07 15:42:59.238444"]] 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", "2016-03-07 15:42:59.243366"], ["updated_at", "2016-03-07 15:42:59.243366"]] [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", "2016-03-07 15:42:59.245336"], ["updated_at", "2016-03-07 15:42:59.245336"]] [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", "2016-03-07 15:42:59.248476"], ["updated_at", "2016-03-07 15:42:59.248476"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.250396"], ["updated_at", "2016-03-07 15:42:59.250396"]] [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", "2016-03-07 15:42:59.254141"], ["updated_at", "2016-03-07 15:42:59.254141"]] [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", "2016-03-07 15:42:59.256160"], ["updated_at", "2016-03-07 15:42:59.256160"]] 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", "2016-03-07 15:42:59.260530"], ["updated_at", "2016-03-07 15:42:59.260530"]] [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", "2016-03-07 15:42:59.263512"], ["updated_at", "2016-03-07 15:42:59.263512"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.265331"], ["updated_at", "2016-03-07 15:42:59.265331"]] [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.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", "2016-03-07 15:42:59.277320"], ["updated_at", "2016-03-07 15:42:59.277320"]] [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", "2016-03-07 15:42:59.279637"], ["updated_at", "2016-03-07 15:42:59.279637"]] [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-03-07 15:42:59.290365"], ["updated_at", "2016-03-07 15:42:59.290365"]] [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-03-07 15:42:59.294429"], ["updated_at", "2016-03-07 15:42:59.294429"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.296513"], ["updated_at", "2016-03-07 15:42:59.296513"]] [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", "2016-03-07 15:42:59.297986"], ["updated_at", "2016-03-07 15:42:59.297986"]] [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_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-03-07 15:42:59.300268"], ["updated_at", "2016-03-07 15:42:59.300268"]] [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-03-07 15:42:59.309364"], ["updated_at", "2016-03-07 15:42:59.309364"]] [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-03-07 15:42:59.312004"], ["updated_at", "2016-03-07 15:42:59.312004"]] [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 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", "2016-03-07 15:42:59.316907"], ["updated_at", "2016-03-07 15:42:59.316907"]] [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", "2016-03-07 15:42:59.320620"], ["updated_at", "2016-03-07 15:42:59.320620"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.322617"], ["updated_at", "2016-03-07 15:42:59.322617"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.324153"], ["updated_at", "2016-03-07 15:42:59.324153"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.325858"], ["updated_at", "2016-03-07 15:42:59.325858"]] [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.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.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", "2016-03-07 15:42:59.332987"], ["updated_at", "2016-03-07 15:42:59.332987"]] [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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:42:59.335579"], ["updated_at", "2016-03-07 15:42:59.335579"]] [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 35' 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 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-03-07 15:42:59.340508"], ["updated_at", "2016-03-07 15:42:59.340508"]] [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 36' 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 36' 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 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-03-07 15:42:59.345083"], ["updated_at", "2016-03-07 15:42:59.345083"]] [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", 3], ["canvas_term_id", "16"], ["created_at", "2016-03-07 15:42:59.347950"], ["updated_at", "2016-03-07 15:42:59.347950"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.349636"], ["updated_at", "2016-03-07 15:42:59.349636"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.350983"], ["updated_at", "2016-03-07 15:42:59.350983"]] [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", "2016-03-07 15:42:59.356604"], ["updated_at", "2016-03-07 15:42:59.356604"]] [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-03-07 15:42:59.358576"], ["updated_at", "2016-03-07 15:42:59.358576"]] [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-03-07 15:42:59.361225"], ["updated_at", "2016-03-07 15:42:59.361225"]] [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.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-03-07 15:42:59.364415"], ["updated_at", "2016-03-07 15:42:59.364415"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.366000"], ["updated_at", "2016-03-07 15:42:59.366000"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.367139"], ["updated_at", "2016-03-07 15:42:59.367139"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.368215"], ["updated_at", "2016-03-07 15:42:59.368215"]] [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", "2016-03-07 15:42:59.369790"], ["updated_at", "2016-03-07 15:42:59.369790"]] [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", "2016-03-07 15:42:59.372517"], ["updated_at", "2016-03-07 15:42:59.372517"]] 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.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 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-03-07 15:42:59.378815"], ["updated_at", "2016-03-07 15:42:59.378815"]] [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-03-07 15:42:59.381322"], ["updated_at", "2016-03-07 15:42:59.381322"]] [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-03-07 15:42:59.384270"], ["updated_at", "2016-03-07 15:42:59.384270"]] [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-03-07 15:42:59.388806"], ["updated_at", "2016-03-07 15:42:59.388806"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.390710"], ["updated_at", "2016-03-07 15:42:59.390710"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.391875"], ["updated_at", "2016-03-07 15:42:59.391875"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.392982"], ["updated_at", "2016-03-07 15:42:59.392982"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.394618"], ["updated_at", "2016-03-07 15:42:59.394618"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.396367"], ["updated_at", "2016-03-07 15:42:59.396367"]] [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 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-03-07 15:42:59.401911"], ["updated_at", "2016-03-07 15:42:59.401911"]] [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", "2016-03-07 15:42:59.404159"], ["updated_at", "2016-03-07 15:42:59.404159"]] [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-03-07 15:42:59.407138"], ["updated_at", "2016-03-07 15:42:59.407138"]] [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.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", "2016-03-07 15:42:59.410036"], ["updated_at", "2016-03-07 15:42:59.410036"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.411614"], ["updated_at", "2016-03-07 15:42:59.411614"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.412817"], ["updated_at", "2016-03-07 15:42:59.412817"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.413982"], ["updated_at", "2016-03-07 15:42:59.413982"]] [1m[35m (0.1ms)[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.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[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", "2016-03-07 15:42:59.426855"], ["updated_at", "2016-03-07 15:42:59.426855"]] [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", "2016-03-07 15:42:59.430222"], ["updated_at", "2016-03-07 15:42:59.430222"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.432129"], ["updated_at", "2016-03-07 15:42:59.432129"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.433396"], ["updated_at", "2016-03-07 15:42:59.433396"]] [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", "2016-03-07 15:42:59.440152"], ["updated_at", "2016-03-07 15:42:59.440152"]] [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", "2016-03-07 15:42:59.443356"], ["updated_at", "2016-03-07 15:42:59.443356"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.445078"], ["updated_at", "2016-03-07 15:42:59.445078"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.446206"], ["updated_at", "2016-03-07 15:42:59.446206"]] [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.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-03-07 15:42:59.450894"], ["updated_at", "2016-03-07 15:42:59.450894"]] [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 52' 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 52' 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 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-03-07 15:42:59.455070"], ["updated_at", "2016-03-07 15:42:59.455070"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.457303"], ["updated_at", "2016-03-07 15:42:59.457303"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.458666"], ["updated_at", "2016-03-07 15:42:59.458666"]] [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", "2016-03-07 15:42:59.460730"], ["updated_at", "2016-03-07 15:42:59.460730"]] [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", "2016-03-07 15:42:59.462663"], ["updated_at", "2016-03-07 15:42:59.462663"]] 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 (1.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 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-03-07 15:42:59.468526"], ["updated_at", "2016-03-07 15:42:59.468526"]] [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", "2016-03-07 15:42:59.471453"], ["updated_at", "2016-03-07 15:42:59.471453"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.473445"], ["updated_at", "2016-03-07 15:42:59.473445"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.474663"], ["updated_at", "2016-03-07 15:42:59.474663"]] [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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' 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 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-03-07 15:42:59.542602"], ["updated_at", "2016-03-07 15:42:59.542602"]] [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", "2016-03-07 15:42:59.545223"], ["updated_at", "2016-03-07 15:42:59.545223"]] [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", "2016-03-07 15:42:59.549105"], ["updated_at", "2016-03-07 15:42:59.549105"]] [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", "2016-03-07 15:42:59.551998"], ["updated_at", "2016-03-07 15:42:59.551998"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.553881"], ["updated_at", "2016-03-07 15:42:59.553881"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:42:59.555194"], ["updated_at", "2016-03-07 15:42:59.555194"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.556380"], ["updated_at", "2016-03-07 15:42:59.556380"]] [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", "2016-03-07 15:42:59.563411"], ["updated_at", "2016-03-07 15:42:59.563411"]] [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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:42:59.566048"], ["updated_at", "2016-03-07 15:42:59.566048"]] [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", "2016-03-07 15:42:59.569253"], ["updated_at", "2016-03-07 15:42:59.569253"]] [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-03-07 15:42:59.572456"], ["updated_at", "2016-03-07 15:42:59.572456"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.574107"], ["updated_at", "2016-03-07 15:42:59.574107"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.575308"], ["updated_at", "2016-03-07 15:42:59.575308"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.576627"], ["updated_at", "2016-03-07 15:42:59.576627"]] [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 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-03-07 15:42:59.583271"], ["updated_at", "2016-03-07 15:42:59.583271"]] [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-03-07 15:42:59.585726"], ["updated_at", "2016-03-07 15:42:59.585726"]] [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", "2016-03-07 15:42:59.588665"], ["updated_at", "2016-03-07 15:42:59.588665"]] [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.0ms)[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", "2016-03-07 15:42:59.591764"], ["updated_at", "2016-03-07 15:42:59.591764"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.593509"], ["updated_at", "2016-03-07 15:42:59.593509"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.594852"], ["updated_at", "2016-03-07 15:42:59.594852"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.596275"], ["updated_at", "2016-03-07 15:42:59.596275"]] [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", "2016-03-07 15:42:59.601810"], ["updated_at", "2016-03-07 15:42:59.601810"]] [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-03-07 15:42:59.603949"], ["updated_at", "2016-03-07 15:42:59.603949"]] [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 65' 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 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-03-07 15:42:59.607971"], ["updated_at", "2016-03-07 15:42:59.607971"]] [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 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", "2016-03-07 15:42:59.611783"], ["updated_at", "2016-03-07 15:42:59.611783"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.613728"], ["updated_at", "2016-03-07 15:42:59.613728"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.615171"], ["updated_at", "2016-03-07 15:42:59.615171"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.616449"], ["updated_at", "2016-03-07 15:42:59.616449"]] [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", "2016-03-07 15:42:59.618226"], ["updated_at", "2016-03-07 15:42:59.618226"]] [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_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-03-07 15:42:59.621402"], ["updated_at", "2016-03-07 15:42:59.621402"]] 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.1ms)[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.1ms)[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", "2016-03-07 15:42:59.628607"], ["updated_at", "2016-03-07 15:42:59.628607"]] [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", "2016-03-07 15:42:59.631526"], ["updated_at", "2016-03-07 15:42:59.631526"]] [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.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-03-07 15:42:59.634992"], ["updated_at", "2016-03-07 15:42:59.634992"]] [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", "2016-03-07 15:42:59.637905"], ["updated_at", "2016-03-07 15:42:59.637905"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.639454"], ["updated_at", "2016-03-07 15:42:59.639454"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.640675"], ["updated_at", "2016-03-07 15:42:59.640675"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.641847"], ["updated_at", "2016-03-07 15:42:59.641847"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.643573"], ["updated_at", "2016-03-07 15:42:59.643573"]] [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_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-03-07 15:42:59.645399"], ["updated_at", "2016-03-07 15:42:59.645399"]] [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", "2016-03-07 15:42:59.651228"], ["updated_at", "2016-03-07 15:42:59.651228"]] [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-03-07 15:42:59.653238"], ["updated_at", "2016-03-07 15:42:59.653238"]] [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-03-07 15:42:59.655858"], ["updated_at", "2016-03-07 15:42:59.655858"]] [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", "2016-03-07 15:42:59.658728"], ["updated_at", "2016-03-07 15:42:59.658728"]] [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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-07 15:42:59.661593"], ["updated_at", "2016-03-07 15:42:59.661593"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.663289"], ["updated_at", "2016-03-07 15:42:59.663289"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.664906"], ["updated_at", "2016-03-07 15:42:59.664906"]] [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 [1mSAVEPOINT active_record_1[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-03-07 15:42:59.671481"], ["updated_at", "2016-03-07 15:42:59.671481"]] [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", "2016-03-07 15:42:59.676579"], ["updated_at", "2016-03-07 15:42:59.676579"]] [1m[35m (0.0ms)[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_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-03-07 15:42:59.679428"], ["updated_at", "2016-03-07 15:42:59.679428"]] [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-03-07 15:42:59.681498"], ["updated_at", "2016-03-07 15:42:59.681498"]] 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.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.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-03-07 15:42:59.688671"], ["updated_at", "2016-03-07 15:42:59.688671"]] [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.2ms)[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", "2016-03-07 15:42:59.696835"], ["updated_at", "2016-03-07 15:42:59.696835"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[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 77' 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 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-03-07 15:42:59.703200"], ["updated_at", "2016-03-07 15:42:59.703200"]] [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-03-07 15:42:59.706048"], ["updated_at", "2016-03-07 15:42:59.706048"]] [1m[35m (0.0ms)[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_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-03-07 15:42:59.709284"], ["updated_at", "2016-03-07 15:42:59.709284"]] 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.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 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", "2016-03-07 15:42:59.716015"], ["updated_at", "2016-03-07 15:42:59.716015"]] [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", "2016-03-07 15:42:59.724956"], ["updated_at", "2016-03-07 15:42:59.724956"]] [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.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-03-07 15:42:59.764817"], ["updated_at", "2016-03-07 15:42:59.764817"]] [1m[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-03-07 15:42:59.766938"], ["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", "2016-03-07 15:42:59.773514"], ["updated_at", "2016-03-07 15:42:59.773514"]] [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-03-07 15:42:59.776646"], ["updated_at", "2016-03-07 15:42:59.776646"]] [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-03-07 15:42:59.778286"], ["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", "2016-03-07 15:42:59.783565"], ["updated_at", "2016-03-07 15:42:59.783565"]] [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-03-07 15:42:59.850336"], ["updated_at", "2016-03-07 15:42:59.850336"]] [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", "2016-03-07 15:42:59.852437"], ["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", "2016-03-07 15:42:59.867500"], ["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", "2016-03-07 15:42:59.873013"], ["updated_at", "2016-03-07 15:42:59.873013"]] [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-03-07 15:42:59.875257"], ["updated_at", "2016-03-07 15:42:59.875257"]] [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-03-07 15:42:59.877032"], ["updated_at", "2016-03-07 15:42:59.877032"]] [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-03-07 15:42:59.879470"], ["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-03-07 15:42:59.880843"], ["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", "2016-03-07 15:42:59.886811"], ["updated_at", "2016-03-07 15:42:59.886811"]] [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", "2016-03-07 15:42:59.890121"], ["updated_at", "2016-03-07 15:42:59.890121"]] [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-03-07 15:42:59.891540"], ["id", 1]] [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"."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.1ms)[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-03-07 15:42:59.896255"], ["updated_at", "2016-03-07 15:42:59.896255"]] [1m[35m (0.1ms)[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", "2016-03-07 15:42:59.899092"], ["updated_at", "2016-03-07 15:42:59.899092"]] [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.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", "2016-03-07 15:42:59.906437"], ["updated_at", "2016-03-07 15:42:59.906437"]] [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-03-07 15:42:59.909849"], ["updated_at", "2016-03-07 15:42:59.909849"]] [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-03-07 15:42:59.911369"], ["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", "2016-03-07 15:42:59.913522"], ["updated_at", "2016-03-07 15:42:59.913522"]] [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-03-07 15:42:59.915104"], ["updated_at", "2016-03-07 15:42:59.915104"]] [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-03-07 15:42:59.916668"], ["updated_at", "2016-03-07 15:42:59.916668"]] [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.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-03-07 15:42:59.923402"], ["updated_at", "2016-03-07 15:42:59.923402"]] [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", "2016-03-07 15:42:59.926786"], ["updated_at", "2016-03-07 15:42:59.926786"]] [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-03-07 15:42:59.928338"], ["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", "2016-03-07 15:42:59.933510"], ["updated_at", "2016-03-07 15:42:59.933510"]] [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-03-07 15:42:59.936872"], ["updated_at", "2016-03-07 15:42:59.936872"]] [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-03-07 15:42:59.938303"], ["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.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", "2016-03-07 15:42:59.944947"], ["updated_at", "2016-03-07 15:42:59.944947"]] [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", "2016-03-07 15:42:59.948066"], ["updated_at", "2016-03-07 15:42:59.948066"]] [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- :users\n"], ["updated_at", "2016-03-07 15:42:59.949592"], ["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", "2016-03-07 15:42:59.952390"], ["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", "2016-03-07 15:42:59.960059"], ["updated_at", "2016-03-07 15:42:59.960059"]] [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", "2016-03-07 15:42:59.963143"], ["updated_at", "2016-03-07 15:42:59.963143"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.965288"], ["updated_at", "2016-03-07 15:42:59.965288"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.966658"], ["updated_at", "2016-03-07 15:42:59.966658"]] [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-03-07 15:42:59.969524"], ["updated_at", "2016-03-07 15:42:59.969524"]] [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-03-07 15:42:59.970992"], ["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", "2016-03-07 15:42:59.978702"], ["updated_at", "2016-03-07 15:42:59.978702"]] [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", "2016-03-07 15:42:59.981754"], ["updated_at", "2016-03-07 15:42:59.981754"]] [1m[36m (0.0ms)[0m [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-03-07 15:42:59.983587"], ["updated_at", "2016-03-07 15:42:59.983587"]] [1m[35m (0.0ms)[0m 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-03-07 15:42:59.984787"], ["updated_at", "2016-03-07 15:42:59.984787"]] [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-03-07 15:42:59.987393"], ["updated_at", "2016-03-07 15:42:59.987393"]] [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-03-07 15:42:59.988762"], ["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.1ms)[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-03-07 15:42:59.995384"], ["updated_at", "2016-03-07 15:42:59.995384"]] [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.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", "2016-03-07 15:42:59.998764"], ["updated_at", "2016-03-07 15:42:59.998764"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.001031"], ["updated_at", "2016-03-07 15:43:00.001031"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.002409"], ["updated_at", "2016-03-07 15:43:00.002409"]] [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-03-07 15:43:00.005239"], ["updated_at", "2016-03-07 15:43:00.005239"]] [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", "2016-03-07 15:43:00.006718"], ["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-03-07 15:43:00.014320"], ["updated_at", "2016-03-07 15:43:00.014320"]] [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-03-07 15:43:00.017738"], ["updated_at", "2016-03-07 15:43:00.017738"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.019842"], ["updated_at", "2016-03-07 15:43:00.019842"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.021254"], ["updated_at", "2016-03-07 15:43:00.021254"]] [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-03-07 15:43:00.024082"], ["updated_at", "2016-03-07 15:43:00.024082"]] [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-03-07 15:43:00.025665"], ["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", "2016-03-07 15:43:00.033367"], ["updated_at", "2016-03-07 15:43:00.033367"]] [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", "2016-03-07 15:43:00.036317"], ["updated_at", "2016-03-07 15:43:00.036317"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.038009"], ["updated_at", "2016-03-07 15:43:00.038009"]] [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", "2016-03-07 15:43:00.039307"], ["updated_at", "2016-03-07 15:43:00.039307"]] [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-03-07 15:43:00.041669"], ["updated_at", "2016-03-07 15:43:00.041669"]] [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-03-07 15:43:00.043051"], ["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", "2016-03-07 15:43:00.051153"], ["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-03-07 15:43:00.056117"], ["updated_at", "2016-03-07 15:43:00.056117"]] [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-03-07 15:43:00.059413"], ["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", "2016-03-07 15:43:00.063444"], ["updated_at", "2016-03-07 15:43:00.063444"]] [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-03-07 15:43:00.065902"], ["updated_at", "2016-03-07 15:43:00.065902"]] [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.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-03-07 15:43:00.135183"], ["updated_at", "2016-03-07 15:43:00.135183"]] [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-03-07 15:43:00.149002"], ["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.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", "2016-03-07 15:43:00.167303"], ["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 (1.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-03-07 15:43:00.172651"], ["updated_at", "2016-03-07 15:43:00.172651"]] [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.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-03-07 15:43:00.177157"], ["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.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", "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.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" = ? 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-03-07 15:43:00.202822"], ["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.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-03-07 15:43:00.206258"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.6ms)[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.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"."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", "2016-03-07 15:43:00.224718"], ["updated_at", "2016-03-07 15:43:00.224718"]] [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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:43:00.230055"], ["updated_at", "2016-03-07 15:43:00.230055"]] [1m[35m (0.1ms)[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", "2016-03-07 15:43:00.233120"], ["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.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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[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-03-07 15:43:00.249799"], ["updated_at", "2016-03-07 15:43:00.249799"]] [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.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[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-03-07 15:43:00.255542"], ["updated_at", "2016-03-07 15:43:00.255542"]] [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.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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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.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", 100.0], ["updated_at", "2016-03-07 15:43:00.265391"], ["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-03-07 15:43:00.266947"], ["id", 1]] [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[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.0ms)[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-03-07 15:43:00.275423"], ["updated_at", "2016-03-07 15:43:00.275423"]] [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.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 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-03-07 15:43:00.278678"], ["updated_at", "2016-03-07 15:43:00.278678"]] [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", "36"], ["created_at", "2016-03-07 15:43:00.281024"], ["updated_at", "2016-03-07 15:43:00.281024"]] [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", "31"], ["created_at", "2016-03-07 15:43:00.283406"], ["updated_at", "2016-03-07 15:43:00.283406"]] [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-03-07 15:43:00.286949"], ["updated_at", "2016-03-07 15:43:00.286949"]] [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-03-07 15:43:00.288781"], ["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-03-07 15:43:00.291375"], ["updated_at", "2016-03-07 15:43:00.291375"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [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.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.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 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-03-07 15:43:00.299339"], ["updated_at", "2016-03-07 15:43:00.299339"]] [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 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.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 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-03-07 15:43:00.302591"], ["updated_at", "2016-03-07 15:43:00.302591"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:43:00.304392"], ["updated_at", "2016-03-07 15:43:00.304392"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:43:00.305752"], ["updated_at", "2016-03-07 15:43:00.305752"]] [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-03-07 15:43:00.308314"], ["updated_at", "2016-03-07 15:43:00.308314"]] [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-03-07 15:43:00.309692"], ["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", "2016-03-07 15:43:00.311891"], ["updated_at", "2016-03-07 15:43:00.311891"]] [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", "2016-03-07 15:43:00.313567"], ["updated_at", "2016-03-07 15:43:00.313567"]] [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-03-07 15:43:00.315198"], ["updated_at", "2016-03-07 15:43:00.315198"]] [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.1ms)[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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' 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 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-03-07 15:43:00.325389"], ["updated_at", "2016-03-07 15:43:00.325389"]] [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.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.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-03-07 15:43:00.328710"], ["updated_at", "2016-03-07 15:43:00.328710"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.330864"], ["updated_at", "2016-03-07 15:43:00.330864"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.332148"], ["updated_at", "2016-03-07 15:43:00.332148"]] [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-03-07 15:43:00.335506"], ["updated_at", "2016-03-07 15:43:00.335506"]] [1m[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-03-07 15:43:00.337100"], ["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", "2016-03-07 15:43:00.406630"], ["updated_at", "2016-03-07 15:43:00.406630"]] [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-03-07 15:43:00.409382"], ["updated_at", "2016-03-07 15:43:00.409382"]] [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-03-07 15:43:00.411171"], ["updated_at", "2016-03-07 15:43:00.411171"]] [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-03-07 15:43:00.412883"], ["updated_at", "2016-03-07 15:43:00.412883"]] [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.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[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.5ms)[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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:43:00.436414"], ["updated_at", "2016-03-07 15:43:00.436414"]] [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 104' 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 104' 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 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-03-07 15:43:00.440779"], ["updated_at", "2016-03-07 15:43:00.440779"]] [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", "39"], ["created_at", "2016-03-07 15:43:00.443893"], ["updated_at", "2016-03-07 15:43:00.443893"]] [1m[36m (0.1ms)[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_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-03-07 15:43:00.446635"], ["updated_at", "2016-03-07 15:43:00.446635"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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", "2016-03-07 15:43:00.452957"], ["updated_at", "2016-03-07 15:43:00.452957"]] [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-03-07 15:43:00.456268"], ["id", 1]] [1m[36m (0.1ms)[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-03-07 15:43:00.469376"], ["updated_at", "2016-03-07 15:43:00.469376"]] [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.9ms)[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-03-07 15:43:00.480561"], ["updated_at", "2016-03-07 15:43:00.480561"]] [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 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-03-07 15:43:00.483835"], ["updated_at", "2016-03-07 15:43:00.483835"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.485945"], ["updated_at", "2016-03-07 15:43:00.485945"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.487597"], ["updated_at", "2016-03-07 15:43:00.487597"]] [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-03-07 15:43:00.490284"], ["updated_at", "2016-03-07 15:43:00.490284"]] [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-03-07 15:43:00.491764"], ["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-03-07 15:43:00.493991"], ["updated_at", "2016-03-07 15:43:00.493991"]] [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.1ms)[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.0ms)[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.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' 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 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-03-07 15:43:00.518188"], ["updated_at", "2016-03-07 15:43:00.518188"]] [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.1ms)[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", "2016-03-07 15:43:00.522696"], ["updated_at", "2016-03-07 15:43:00.522696"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.525132"], ["updated_at", "2016-03-07 15:43:00.525132"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.526861"], ["updated_at", "2016-03-07 15:43:00.526861"]] [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-03-07 15:43:00.529770"], ["updated_at", "2016-03-07 15:43:00.529770"]] [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-03-07 15:43:00.531793"], ["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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:43:00.534978"], ["updated_at", "2016-03-07 15:43:00.534978"]] [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.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.2ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [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 109' 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 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", "2016-03-07 15:43:00.549644"], ["updated_at", "2016-03-07 15:43:00.549644"]] [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 110' 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 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-03-07 15:43:00.555954"], ["updated_at", "2016-03-07 15:43:00.555954"]] [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", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:43:00.558876"], ["updated_at", "2016-03-07 15:43:00.558876"]] [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_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-03-07 15:43:00.561307"], ["updated_at", "2016-03-07 15:43:00.561307"]] [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-03-07 15:43:00.565373"], ["updated_at", "2016-03-07 15:43:00.565373"]] [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-03-07 15:43:00.566960"], ["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-03-07 15:43:00.569169"], ["updated_at", "2016-03-07 15:43:00.569169"]] [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-03-07 15:43:00.571305"], ["updated_at", "2016-03-07 15:43:00.571305"]] [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-03-07 15:43:00.573130"], ["updated_at", "2016-03-07 15:43:00.573130"]] [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-03-07 15:43:00.575189"], ["updated_at", "2016-03-07 15:43:00.575189"]] [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.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::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.1ms)[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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [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", "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-03-07 15:43:00.607895"], ["updated_at", "2016-03-07 15:43:00.607895"]] [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.0ms)[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-03-07 15:43:00.610870"], ["updated_at", "2016-03-07 15:43:00.610870"]] [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.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.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-03-07 15:43:00.613836"], ["updated_at", "2016-03-07 15:43:00.613836"]] [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.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", "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", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:43:00.617086"], ["updated_at", "2016-03-07 15:43:00.617086"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.0ms)[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.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.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-03-07 15:43:00.625275"], ["updated_at", "2016-03-07 15:43:00.625275"]] [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 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-03-07 15:43:00.628300"], ["updated_at", "2016-03-07 15:43:00.628300"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.630233"], ["updated_at", "2016-03-07 15:43:00.630233"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.631390"], ["updated_at", "2016-03-07 15:43:00.631390"]] [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-03-07 15:43:00.633869"], ["updated_at", "2016-03-07 15:43:00.633869"]] [1m[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-03-07 15:43:00.635536"], ["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-03-07 15:43:00.702059"], ["updated_at", "2016-03-07 15:43:00.702059"]] [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.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.2ms)[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-03-07 15:43:00.707494"], ["updated_at", "2016-03-07 15:43:00.707494"]] [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-03-07 15:43:00.710849"], ["updated_at", "2016-03-07 15:43:00.710849"]] [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.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.1ms)[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-03-07 15:43:00.720217"], ["updated_at", "2016-03-07 15:43:00.720217"]] [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 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.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 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-03-07 15:43:00.724973"], ["updated_at", "2016-03-07 15:43:00.724973"]] [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", "44"], ["created_at", "2016-03-07 15:43:00.727334"], ["updated_at", "2016-03-07 15:43:00.727334"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.728698"], ["updated_at", "2016-03-07 15:43:00.728698"]] [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-03-07 15:43:00.732468"], ["updated_at", "2016-03-07 15:43:00.732468"]] [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-03-07 15:43:00.734935"], ["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-03-07 15:43:00.737586"], ["updated_at", "2016-03-07 15:43:00.737586"]] [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"."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.1ms)[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-03-07 15:43:00.741733"], ["updated_at", "2016-03-07 15:43:00.741733"]] [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.5ms)[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-03-07 15:43:00.745085"], ["updated_at", "2016-03-07 15:43:00.745085"]] [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-03-07 15:43:00.747944"], ["updated_at", "2016-03-07 15:43:00.747944"]] [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" 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.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.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.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.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.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-03-07 15:43:00.772136"], ["updated_at", "2016-03-07 15:43:00.772136"]] [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-03-07 15:43:00.774861"], ["updated_at", "2016-03-07 15:43:00.774861"]] [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.8ms)[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.0ms)[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-03-07 15:43:00.783932"], ["updated_at", "2016-03-07 15:43:00.783932"]] [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 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.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 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-03-07 15:43:00.787148"], ["updated_at", "2016-03-07 15:43:00.787148"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.788971"], ["updated_at", "2016-03-07 15:43:00.788971"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.790210"], ["updated_at", "2016-03-07 15:43:00.790210"]] [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-03-07 15:43:00.793259"], ["updated_at", "2016-03-07 15:43:00.793259"]] [1m[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-03-07 15:43:00.795124"], ["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-03-07 15:43:00.799671"], ["updated_at", "2016-03-07 15:43:00.799671"]] [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-03-07 15:43:00.802228"], ["updated_at", "2016-03-07 15:43:00.802228"]] [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"."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.7ms)[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", "2016-03-07 15:43:00.809927"], ["updated_at", "2016-03-07 15:43:00.809927"]] [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", "2016-03-07 15:43:00.813088"], ["updated_at", "2016-03-07 15:43:00.813088"]] [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", "46"], ["created_at", "2016-03-07 15:43:00.815697"], ["updated_at", "2016-03-07 15:43:00.815697"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:43:00.817216"], ["updated_at", "2016-03-07 15:43:00.817216"]] [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-03-07 15:43:00.820331"], ["updated_at", "2016-03-07 15:43:00.820331"]] [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-03-07 15:43:00.821870"], ["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-03-07 15:43:00.824775"], ["updated_at", "2016-03-07 15:43:00.824775"]] [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-03-07 15:43:00.827542"], ["updated_at", "2016-03-07 15:43:00.827542"]] [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-03-07 15:43:00.829443"], ["updated_at", "2016-03-07 15:43:00.829443"]] [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-03-07 15:43:00.831623"], ["updated_at", "2016-03-07 15:43:00.831623"]] [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" 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.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-03-07 15:43:00.850449"], ["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.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", "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.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 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-03-07 15:43:00.870449"], ["updated_at", "2016-03-07 15:43:00.870449"]] [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.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", "2016-03-07 15:43:00.873800"], ["updated_at", "2016-03-07 15:43:00.873800"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:00.875607"], ["updated_at", "2016-03-07 15:43:00.875607"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.876776"], ["updated_at", "2016-03-07 15:43:00.876776"]] [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-03-07 15:43:00.879292"], ["updated_at", "2016-03-07 15:43:00.879292"]] [1m[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-03-07 15:43:00.880764"], ["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-03-07 15:43:00.883836"], ["updated_at", "2016-03-07 15:43:00.883836"]] [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-03-07 15:43:00.886711"], ["updated_at", "2016-03-07 15:43:00.886711"]] [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-03-07 15:43:00.888260"], ["updated_at", "2016-03-07 15:43:00.888260"]] [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", "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-03-07 15:43:00.890235"], ["updated_at", "2016-03-07 15:43:00.890235"]] [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.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.1ms)[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", "2016-03-07 15:43:00.906592"], ["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.0ms)[0m SAVEPOINT active_record_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", "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.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 (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 121' 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 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-03-07 15:43:00.925025"], ["updated_at", "2016-03-07 15:43:00.925025"]] [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 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", "2016-03-07 15:43:00.990161"], ["updated_at", "2016-03-07 15:43:00.990161"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:43:00.992288"], ["updated_at", "2016-03-07 15:43:00.992288"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:00.993472"], ["updated_at", "2016-03-07 15:43:00.993472"]] [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-03-07 15:43:00.996060"], ["updated_at", "2016-03-07 15:43:00.996060"]] [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-03-07 15:43:00.997529"], ["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-03-07 15:43:00.999745"], ["updated_at", "2016-03-07 15:43:00.999745"]] [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-03-07 15:43:01.002899"], ["updated_at", "2016-03-07 15:43:01.002899"]] [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-03-07 15:43:01.004762"], ["updated_at", "2016-03-07 15:43:01.004762"]] [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-03-07 15:43:01.006464"], ["updated_at", "2016-03-07 15:43:01.006464"]] [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.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-03-07 15:43:01.024353"], ["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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.5ms)[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", "2016-03-07 15:43:01.041818"], ["updated_at", "2016-03-07 15:43:01.041818"]] [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.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 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-03-07 15:43:01.045231"], ["updated_at", "2016-03-07 15:43:01.045231"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:43:01.047226"], ["updated_at", "2016-03-07 15:43:01.047226"]] [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", "44"], ["created_at", "2016-03-07 15:43:01.048555"], ["updated_at", "2016-03-07 15:43:01.048555"]] [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-03-07 15:43:01.051023"], ["updated_at", "2016-03-07 15:43:01.051023"]] [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-03-07 15:43:01.052405"], ["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-03-07 15:43:01.054744"], ["updated_at", "2016-03-07 15:43:01.054744"]] [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-03-07 15:43:01.056885"], ["updated_at", "2016-03-07 15:43:01.056885"]] [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-03-07 15:43:01.058733"], ["updated_at", "2016-03-07 15:43:01.058733"]] [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-03-07 15:43:01.060388"], ["updated_at", "2016-03-07 15:43:01.060388"]] [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", "2016-03-07 15:43:01.075486"], ["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-03-07 15:43:01.081076"], ["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.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.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-03-07 15:43:01.090607"], ["updated_at", "2016-03-07 15:43:01.090607"]] [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", "2016-03-07 15:43:01.093554"], ["updated_at", "2016-03-07 15:43:01.093554"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.095694"], ["updated_at", "2016-03-07 15:43:01.095694"]] [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", "45"], ["created_at", "2016-03-07 15:43:01.098034"], ["updated_at", "2016-03-07 15:43:01.098034"]] [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-03-07 15:43:01.101783"], ["updated_at", "2016-03-07 15:43:01.101783"]] [1m[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-03-07 15:43:01.103672"], ["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.1ms)[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-03-07 15:43:01.111680"], ["updated_at", "2016-03-07 15:43:01.111680"]] [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", "2016-03-07 15:43:01.115454"], ["updated_at", "2016-03-07 15:43:01.115454"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:01.117692"], ["updated_at", "2016-03-07 15:43:01.117692"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.118964"], ["updated_at", "2016-03-07 15:43:01.118964"]] [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-03-07 15:43:01.121984"], ["updated_at", "2016-03-07 15:43:01.121984"]] [1m[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-03-07 15:43:01.123748"], ["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", "2016-03-07 15:43:01.133965"], ["updated_at", "2016-03-07 15:43:01.133965"]] [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", "2016-03-07 15:43:01.137707"], ["updated_at", "2016-03-07 15:43:01.137707"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.139773"], ["updated_at", "2016-03-07 15:43:01.139773"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:43:01.141003"], ["updated_at", "2016-03-07 15:43:01.141003"]] [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-03-07 15:43:01.143583"], ["updated_at", "2016-03-07 15:43:01.143583"]] [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-03-07 15:43:01.145278"], ["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 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", "2016-03-07 15:43:01.153540"], ["updated_at", "2016-03-07 15:43:01.153540"]] [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.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", "2016-03-07 15:43:01.157103"], ["updated_at", "2016-03-07 15:43:01.157103"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:43:01.159062"], ["updated_at", "2016-03-07 15:43:01.159062"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.160361"], ["updated_at", "2016-03-07 15:43:01.160361"]] [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-03-07 15:43:01.163237"], ["updated_at", "2016-03-07 15:43:01.163237"]] [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-03-07 15:43:01.164854"], ["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 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", "2016-03-07 15:43:01.173755"], ["updated_at", "2016-03-07 15:43:01.173755"]] [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", "2016-03-07 15:43:01.177241"], ["updated_at", "2016-03-07 15:43:01.177241"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.179526"], ["updated_at", "2016-03-07 15:43:01.179526"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:01.180974"], ["updated_at", "2016-03-07 15:43:01.180974"]] [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-03-07 15:43:01.184367"], ["updated_at", "2016-03-07 15:43:01.184367"]] [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-03-07 15:43:01.185960"], ["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.1ms)[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-03-07 15:43:01.193818"], ["updated_at", "2016-03-07 15:43:01.193818"]] [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.1ms)[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", "2016-03-07 15:43:01.197457"], ["updated_at", "2016-03-07 15:43:01.197457"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:01.199577"], ["updated_at", "2016-03-07 15:43:01.199577"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.200893"], ["updated_at", "2016-03-07 15:43:01.200893"]] [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-03-07 15:43:01.203486"], ["updated_at", "2016-03-07 15:43:01.203486"]] [1m[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-03-07 15:43:01.268284"], ["id", 1]] [1m[35m (0.1ms)[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 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", "2016-03-07 15:43:01.276782"], ["updated_at", "2016-03-07 15:43:01.276782"]] [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", "2016-03-07 15:43:01.279978"], ["updated_at", "2016-03-07 15:43:01.279978"]] [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", "56"], ["created_at", "2016-03-07 15:43:01.282033"], ["updated_at", "2016-03-07 15:43:01.282033"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:01.283961"], ["updated_at", "2016-03-07 15:43:01.283961"]] [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-03-07 15:43:01.287368"], ["updated_at", "2016-03-07 15:43:01.287368"]] [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-03-07 15:43:01.289106"], ["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", "2016-03-07 15:43:01.296802"], ["updated_at", "2016-03-07 15:43:01.296802"]] [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", "2016-03-07 15:43:01.300365"], ["updated_at", "2016-03-07 15:43:01.300365"]] [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", "57"], ["created_at", "2016-03-07 15:43:01.302398"], ["updated_at", "2016-03-07 15:43:01.302398"]] [1m[35m (0.0ms)[0m 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-03-07 15:43:01.303882"], ["updated_at", "2016-03-07 15:43:01.303882"]] [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-03-07 15:43:01.306541"], ["updated_at", "2016-03-07 15:43:01.306541"]] [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-03-07 15:43:01.308354"], ["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 [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.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-03-07 15:43:01.320223"], ["updated_at", "2016-03-07 15:43:01.320223"]] [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.1ms)[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", "2016-03-07 15:43:01.325270"], ["updated_at", "2016-03-07 15:43:01.325270"]] [1m[36m (0.0ms)[0m [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-03-07 15:43:01.327320"], ["updated_at", "2016-03-07 15:43:01.327320"]] [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", "2016-03-07 15:43:01.328546"], ["updated_at", "2016-03-07 15:43:01.328546"]] [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-03-07 15:43:01.331974"], ["updated_at", "2016-03-07 15:43:01.331974"]] [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 [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-03-07 15:43:01.334047"], ["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", "2016-03-07 15:43:01.337534"], ["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[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 Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 1ms (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-03-07 15:46:08.451485"], ["updated_at", "2016-03-07 15:46:08.451485"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:46:08.469593"], ["updated_at", "2016-03-07 15:46:08.469593"]] [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.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", "2016-03-07 16:46:08.493746"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:46:08.495161"], ["updated_at", "2016-03-07 15:46:08.495161"]] [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 32ms (Views: 9.6ms | 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 (1.1ms)[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.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.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", "2016-03-07 15:46:08.533434"], ["updated_at", "2016-03-07 15:46:08.533434"]] [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", "2016-03-07 15:46:08.596820"], ["updated_at", "2016-03-07 15:46:08.596820"]] [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_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-03-07 15:46:08.599833"], ["updated_at", "2016-03-07 15:46:08.599833"]] [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", "2016-03-07 15:46:08.602368"], ["updated_at", "2016-03-07 15:46:08.602368"]] [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 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-03-07 15:46:08.614827"], ["updated_at", "2016-03-07 15:46:08.614827"]] [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.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", "2016-03-07 15:46:08.618333"], ["updated_at", "2016-03-07 15:46:08.618333"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:46:08.620334"], ["updated_at", "2016-03-07 15:46:08.620334"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:46:08.621716"], ["updated_at", "2016-03-07 15:46:08.621716"]] [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", "2016-03-07 15:46:08.627014"], ["updated_at", "2016-03-07 15:46:08.627014"]] [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.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", "2016-03-07 15:46:08.630285"], ["updated_at", "2016-03-07 15:46:08.630285"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.632111"], ["updated_at", "2016-03-07 15:46:08.632111"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.633279"], ["updated_at", "2016-03-07 15:46:08.633279"]] [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.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 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-03-07 15:46:08.652484"], ["updated_at", "2016-03-07 15:46:08.652484"]] [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 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.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", "2016-03-07 15:46:08.657640"], ["updated_at", "2016-03-07 15:46:08.657640"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.660236"], ["updated_at", "2016-03-07 15:46:08.660236"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.661806"], ["updated_at", "2016-03-07 15:46:08.661806"]] [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 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", "2016-03-07 15:46:08.668578"], ["updated_at", "2016-03-07 15:46:08.668578"]] [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", "2016-03-07 15:46:08.672276"], ["updated_at", "2016-03-07 15:46:08.672276"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.674704"], ["updated_at", "2016-03-07 15:46:08.674704"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.676533"], ["updated_at", "2016-03-07 15:46:08.676533"]] [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-03-07 15:46:08.682148"], ["updated_at", "2016-03-07 15:46:08.682148"]] [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", "2016-03-07 15:46:08.685797"], ["updated_at", "2016-03-07 15:46:08.685797"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.688047"], ["updated_at", "2016-03-07 15:46:08.688047"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.690829"], ["updated_at", "2016-03-07 15:46:08.690829"]] [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", "2016-03-07 15:46:08.692797"], ["updated_at", "2016-03-07 15:46:08.692797"]] [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", "2016-03-07 15:46:08.697286"], ["updated_at", "2016-03-07 15:46:08.697286"]] 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.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-03-07 15:46:08.702579"], ["updated_at", "2016-03-07 15:46:08.702579"]] [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.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 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-03-07 15:46:08.706227"], ["updated_at", "2016-03-07 15:46:08.706227"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.708044"], ["updated_at", "2016-03-07 15:46:08.708044"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.709173"], ["updated_at", "2016-03-07 15:46:08.709173"]] [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.3ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-07 15:46:08.715701"], ["updated_at", "2016-03-07 15:46:08.715701"]] [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 (1.0ms)[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.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-03-08 15:46:08.729229"], ["created_at", "2016-03-07 15:46:08.730467"], ["updated_at", "2016-03-07 15:46:08.730467"]] [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[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:46:08.739897"], ["updated_at", "2016-03-07 15:46:08.739897"]] [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", "2016-03-07 15:46:08.741903"], ["updated_at", "2016-03-07 15:46:08.741903"]] [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 INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:46:08.743391"], ["updated_at", "2016-03-07 15:46:08.743391"]] [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.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 16' 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 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", "2016-03-07 15:46:08.753668"], ["updated_at", "2016-03-07 15:46:08.753668"]] [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 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-03-07 15:46:08.757864"], ["updated_at", "2016-03-07 15:46:08.757864"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.759846"], ["updated_at", "2016-03-07 15:46:08.759846"]] [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 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-03-07 15:46:08.765249"], ["updated_at", "2016-03-07 15:46:08.765249"]] [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.1ms)[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-03-07 15:46:08.769273"], ["updated_at", "2016-03-07 15:46:08.769273"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.771798"], ["updated_at", "2016-03-07 15:46:08.771798"]] [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.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", "2016-03-07 15:46:08.835838"], ["updated_at", "2016-03-07 15:46:08.835838"]] [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", "2016-03-07 15:46:08.840387"], ["updated_at", "2016-03-07 15:46:08.840387"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.843131"], ["updated_at", "2016-03-07 15:46:08.843131"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.844710"], ["updated_at", "2016-03-07 15:46:08.844710"]] [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", "2016-03-07 15:46:08.848514"], ["updated_at", "2016-03-07 15:46:08.848514"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.850742"], ["updated_at", "2016-03-07 15:46:08.850742"]] [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-03-07 15:46:08.852740"], ["updated_at", "2016-03-07 15:46:08.852740"]] 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.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 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-03-07 15:46:08.859494"], ["updated_at", "2016-03-07 15:46:08.859494"]] [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_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-03-07 15:46:08.862155"], ["updated_at", "2016-03-07 15:46:08.862155"]] [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-03-07 15:46:08.867360"], ["updated_at", "2016-03-07 15:46:08.867360"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.869902"], ["updated_at", "2016-03-07 15:46:08.869902"]] [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", "2016-03-07 15:46:08.873429"], ["updated_at", "2016-03-07 15:46:08.873429"]] [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", "2016-03-07 15:46:08.875609"], ["updated_at", "2016-03-07 15:46:08.875609"]] 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", "2016-03-07 15:46:08.880901"], ["updated_at", "2016-03-07 15:46:08.880901"]] [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", "2016-03-07 15:46:08.884098"], ["updated_at", "2016-03-07 15:46:08.884098"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.886000"], ["updated_at", "2016-03-07 15:46:08.886000"]] [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.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", "2016-03-07 15:46:08.900606"], ["updated_at", "2016-03-07 15:46:08.900606"]] [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", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2016-03-07 15:46:08.903354"], ["updated_at", "2016-03-07 15:46:08.903354"]] [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.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", "2016-03-07 15:46:08.916144"], ["updated_at", "2016-03-07 15:46:08.916144"]] [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", "2016-03-07 15:46:08.919580"], ["updated_at", "2016-03-07 15:46:08.919580"]] [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", "14"], ["created_at", "2016-03-07 15:46:08.922261"], ["updated_at", "2016-03-07 15:46:08.922261"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.923595"], ["updated_at", "2016-03-07 15:46:08.923595"]] [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", "2016-03-07 15:46:08.925517"], ["updated_at", "2016-03-07 15:46:08.925517"]] [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", "2016-03-07 15:46:08.932480"], ["updated_at", "2016-03-07 15:46:08.932480"]] [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", "2016-03-07 15:46:08.934536"], ["updated_at", "2016-03-07 15:46:08.934536"]] [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 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-03-07 15:46:08.937359"], ["updated_at", "2016-03-07 15:46:08.937359"]] [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.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", "2016-03-07 15:46:08.940729"], ["updated_at", "2016-03-07 15:46:08.940729"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.942447"], ["updated_at", "2016-03-07 15:46:08.942447"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.943765"], ["updated_at", "2016-03-07 15:46:08.943765"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.945098"], ["updated_at", "2016-03-07 15:46:08.945098"]] [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.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 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-03-07 15:46:08.951670"], ["updated_at", "2016-03-07 15:46:08.951670"]] [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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:46:08.954419"], ["updated_at", "2016-03-07 15:46:08.954419"]] [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.1ms)[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-03-07 15:46:08.959133"], ["updated_at", "2016-03-07 15:46:08.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.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.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 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-03-07 15:46:08.962528"], ["updated_at", "2016-03-07 15:46:08.962528"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.964440"], ["updated_at", "2016-03-07 15:46:08.964440"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.965963"], ["updated_at", "2016-03-07 15:46:08.965963"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.967379"], ["updated_at", "2016-03-07 15:46:08.967379"]] [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-03-07 15:46:08.972603"], ["updated_at", "2016-03-07 15:46:08.972603"]] [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", "2016-03-07 15:46:08.974608"], ["updated_at", "2016-03-07 15:46:08.974608"]] [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-03-07 15:46:08.977256"], ["updated_at", "2016-03-07 15:46:08.977256"]] [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 (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", "2016-03-07 15:46:08.981488"], ["updated_at", "2016-03-07 15:46:08.981488"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.983395"], ["updated_at", "2016-03-07 15:46:08.983395"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:08.984638"], ["updated_at", "2016-03-07 15:46:08.984638"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:08.986175"], ["updated_at", "2016-03-07 15:46:08.986175"]] [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", "2016-03-07 15:46:08.989106"], ["updated_at", "2016-03-07 15:46:08.989106"]] [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", "2016-03-07 15:46:08.992057"], ["updated_at", "2016-03-07 15:46:08.992057"]] 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.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 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-03-07 15:46:08.997271"], ["updated_at", "2016-03-07 15:46:08.997271"]] [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-03-07 15:46:08.999345"], ["updated_at", "2016-03-07 15:46:08.999345"]] [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 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-03-07 15:46:09.002269"], ["updated_at", "2016-03-07 15:46:09.002269"]] [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", "2016-03-07 15:46:09.005561"], ["updated_at", "2016-03-07 15:46:09.005561"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.007272"], ["updated_at", "2016-03-07 15:46:09.007272"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.008425"], ["updated_at", "2016-03-07 15:46:09.008425"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.009563"], ["updated_at", "2016-03-07 15:46:09.009563"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.011075"], ["updated_at", "2016-03-07 15:46:09.011075"]] [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_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-03-07 15:46:09.013201"], ["updated_at", "2016-03-07 15:46:09.013201"]] [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.1ms)[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-03-07 15:46:09.019500"], ["updated_at", "2016-03-07 15:46:09.019500"]] [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", "2016-03-07 15:46:09.021693"], ["updated_at", "2016-03-07 15:46:09.021693"]] [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.1ms)[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-03-07 15:46:09.024869"], ["updated_at", "2016-03-07 15:46:09.024869"]] [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.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", "2016-03-07 15:46:09.028281"], ["updated_at", "2016-03-07 15:46:09.028281"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.029936"], ["updated_at", "2016-03-07 15:46:09.029936"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.031265"], ["updated_at", "2016-03-07 15:46:09.031265"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.032742"], ["updated_at", "2016-03-07 15:46:09.032742"]] [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 [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", "2016-03-07 15:46:09.047457"], ["updated_at", "2016-03-07 15:46:09.047457"]] [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-03-07 15:46:09.051133"], ["updated_at", "2016-03-07 15:46:09.051133"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.053228"], ["updated_at", "2016-03-07 15:46:09.053228"]] [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", "16"], ["created_at", "2016-03-07 15:46:09.054770"], ["updated_at", "2016-03-07 15:46:09.054770"]] [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.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-03-07 15:46:09.061358"], ["updated_at", "2016-03-07 15:46:09.061358"]] [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", "2016-03-07 15:46:09.064937"], ["updated_at", "2016-03-07 15:46:09.064937"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.066958"], ["updated_at", "2016-03-07 15:46:09.066958"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.068248"], ["updated_at", "2016-03-07 15:46:09.068248"]] [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", "2016-03-07 15:46:09.073588"], ["updated_at", "2016-03-07 15:46:09.073588"]] [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 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-03-07 15:46:09.077196"], ["updated_at", "2016-03-07 15:46:09.077196"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.079292"], ["updated_at", "2016-03-07 15:46:09.079292"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.080597"], ["updated_at", "2016-03-07 15:46:09.080597"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.082297"], ["updated_at", "2016-03-07 15:46:09.082297"]] [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-03-07 15:46:09.084151"], ["updated_at", "2016-03-07 15:46:09.084151"]] 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.1ms)[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 53' 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 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-03-07 15:46:09.091107"], ["updated_at", "2016-03-07 15:46:09.091107"]] [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.1ms)[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", "2016-03-07 15:46:09.095060"], ["updated_at", "2016-03-07 15:46:09.095060"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.097145"], ["updated_at", "2016-03-07 15:46:09.097145"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.098441"], ["updated_at", "2016-03-07 15:46:09.098441"]] [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 [1mSAVEPOINT active_record_1[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-03-07 15:46:09.174878"], ["updated_at", "2016-03-07 15:46:09.174878"]] [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-03-07 15:46:09.177234"], ["updated_at", "2016-03-07 15:46:09.177234"]] [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-03-07 15:46:09.182606"], ["updated_at", "2016-03-07 15:46:09.182606"]] [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.1ms)[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", "2016-03-07 15:46:09.186243"], ["updated_at", "2016-03-07 15:46:09.186243"]] [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", 3], ["canvas_term_id", "24"], ["created_at", "2016-03-07 15:46:09.188077"], ["updated_at", "2016-03-07 15:46:09.188077"]] [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_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-03-07 15:46:09.190572"], ["updated_at", "2016-03-07 15:46:09.190572"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.192477"], ["updated_at", "2016-03-07 15:46:09.192477"]] [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 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-03-07 15:46:09.200645"], ["updated_at", "2016-03-07 15:46:09.200645"]] [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-03-07 15:46:09.202890"], ["updated_at", "2016-03-07 15:46:09.202890"]] [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", "2016-03-07 15:46:09.206699"], ["updated_at", "2016-03-07 15:46:09.206699"]] [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.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", "2016-03-07 15:46:09.209924"], ["updated_at", "2016-03-07 15:46:09.209924"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.211921"], ["updated_at", "2016-03-07 15:46:09.211921"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.213271"], ["updated_at", "2016-03-07 15:46:09.213271"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.214726"], ["updated_at", "2016-03-07 15:46:09.214726"]] [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.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-03-07 15:46:09.221932"], ["updated_at", "2016-03-07 15:46:09.221932"]] [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-03-07 15:46:09.224305"], ["updated_at", "2016-03-07 15:46:09.224305"]] [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", "2016-03-07 15:46:09.227021"], ["updated_at", "2016-03-07 15:46:09.227021"]] [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-03-07 15:46:09.229846"], ["updated_at", "2016-03-07 15:46:09.229846"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.231404"], ["updated_at", "2016-03-07 15:46:09.231404"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.232691"], ["updated_at", "2016-03-07 15:46:09.232691"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.234000"], ["updated_at", "2016-03-07 15:46:09.234000"]] [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-03-07 15:46:09.240285"], ["updated_at", "2016-03-07 15:46:09.240285"]] [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", "2016-03-07 15:46:09.242590"], ["updated_at", "2016-03-07 15:46:09.242590"]] [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.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-03-07 15:46:09.245451"], ["updated_at", "2016-03-07 15:46:09.245451"]] [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-03-07 15:46:09.248498"], ["updated_at", "2016-03-07 15:46:09.248498"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.249992"], ["updated_at", "2016-03-07 15:46:09.249992"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.251134"], ["updated_at", "2016-03-07 15:46:09.251134"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.252346"], ["updated_at", "2016-03-07 15:46:09.252346"]] [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-03-07 15:46:09.254135"], ["updated_at", "2016-03-07 15:46:09.254135"]] [1m[36m (0.1ms)[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_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-03-07 15:46:09.257240"], ["updated_at", "2016-03-07 15:46:09.257240"]] 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.2ms)[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.1ms)[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", "2016-03-07 15:46:09.264920"], ["updated_at", "2016-03-07 15:46:09.264920"]] [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-03-07 15:46:09.267403"], ["updated_at", "2016-03-07 15:46:09.267403"]] [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-03-07 15:46:09.270426"], ["updated_at", "2016-03-07 15:46:09.270426"]] [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.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-03-07 15:46:09.274063"], ["updated_at", "2016-03-07 15:46:09.274063"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.275892"], ["updated_at", "2016-03-07 15:46:09.275892"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.277058"], ["updated_at", "2016-03-07 15:46:09.277058"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.278273"], ["updated_at", "2016-03-07 15:46:09.278273"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.280063"], ["updated_at", "2016-03-07 15:46:09.280063"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.281897"], ["updated_at", "2016-03-07 15:46:09.281897"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' 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 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-03-07 15:46:09.288715"], ["updated_at", "2016-03-07 15:46:09.288715"]] [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-03-07 15:46:09.291838"], ["updated_at", "2016-03-07 15:46:09.291838"]] [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", "2016-03-07 15:46:09.294943"], ["updated_at", "2016-03-07 15:46:09.294943"]] [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.1ms)[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-03-07 15:46:09.298337"], ["updated_at", "2016-03-07 15:46:09.298337"]] [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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-07 15:46:09.300423"], ["updated_at", "2016-03-07 15:46:09.300423"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.301821"], ["updated_at", "2016-03-07 15:46:09.301821"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.303251"], ["updated_at", "2016-03-07 15:46:09.303251"]] [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", "2016-03-07 15:46:09.309461"], ["updated_at", "2016-03-07 15:46:09.309461"]] [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.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", "2016-03-07 15:46:09.315056"], ["updated_at", "2016-03-07 15:46:09.315056"]] [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", "1"], ["created_at", "2016-03-07 15:46:09.317491"], ["updated_at", "2016-03-07 15:46:09.317491"]] [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-03-07 15:46:09.319394"], ["updated_at", "2016-03-07 15:46:09.319394"]] 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.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", "2016-03-07 15:46:09.327452"], ["updated_at", "2016-03-07 15:46:09.327452"]] [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", "2016-03-07 15:46:09.333064"], ["updated_at", "2016-03-07 15:46:09.333064"]] [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.1ms)[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-03-07 15:46:09.337800"], ["updated_at", "2016-03-07 15:46:09.337800"]] [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-03-07 15:46:09.340809"], ["updated_at", "2016-03-07 15:46:09.340809"]] [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-03-07 15:46:09.343285"], ["updated_at", "2016-03-07 15:46:09.343285"]] 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-03-07 15:46:09.349051"], ["updated_at", "2016-03-07 15:46:09.349051"]] [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-03-07 15:46:09.357045"], ["updated_at", "2016-03-07 15:46:09.357045"]] [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", "2016-03-07 15:46:09.370996"], ["updated_at", "2016-03-07 15:46:09.370996"]] [1m[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-03-07 15:46:09.373708"], ["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", "2016-03-07 15:46:09.380081"], ["updated_at", "2016-03-07 15:46:09.380081"]] [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-03-07 15:46:09.383428"], ["updated_at", "2016-03-07 15:46:09.383428"]] [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", "2016-03-07 15:46:09.385159"], ["id", 1]] [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.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-03-07 15:46:09.450612"], ["updated_at", "2016-03-07 15:46:09.450612"]] [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-03-07 15:46:09.453838"], ["updated_at", "2016-03-07 15:46:09.453838"]] [1m[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-03-07 15:46:09.455579"], ["id", 1]] [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 [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-03-07 15:46:09.469844"], ["id", 1]] [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" WHERE "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.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-03-07 15:46:09.476944"], ["updated_at", "2016-03-07 15:46:09.476944"]] [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", "2016-03-07 15:46:09.480446"], ["updated_at", "2016-03-07 15:46:09.480446"]] [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-03-07 15:46:09.482940"], ["updated_at", "2016-03-07 15:46:09.482940"]] [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", "2016-03-07 15:46:09.486004"], ["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.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2016-03-07 15:46:09.487582"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[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", "2016-03-07 15:46:09.495612"], ["updated_at", "2016-03-07 15:46:09.495612"]] [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.1ms)[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", "2016-03-07 15:46:09.500125"], ["updated_at", "2016-03-07 15:46:09.500125"]] [1m[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-03-07 15:46:09.501832"], ["id", 1]] [1m[35m (0.1ms)[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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[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-03-07 15:46:09.506810"], ["updated_at", "2016-03-07 15:46:09.506810"]] [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", "2016-03-07 15:46:09.509856"], ["updated_at", "2016-03-07 15:46:09.509856"]] [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.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", "2016-03-07 15:46:09.516819"], ["updated_at", "2016-03-07 15:46:09.516819"]] [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-03-07 15:46:09.520094"], ["updated_at", "2016-03-07 15:46:09.520094"]] [1m[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-03-07 15:46:09.521859"], ["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", "2016-03-07 15:46:09.524478"], ["updated_at", "2016-03-07 15:46:09.524478"]] [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-03-07 15:46:09.526171"], ["updated_at", "2016-03-07 15:46:09.526171"]] [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-03-07 15:46:09.527777"], ["updated_at", "2016-03-07 15:46:09.527777"]] [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.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", "2016-03-07 15:46:09.534764"], ["updated_at", "2016-03-07 15:46:09.534764"]] [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", "2016-03-07 15:46:09.540967"], ["updated_at", "2016-03-07 15:46:09.540967"]] [1m[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-03-07 15:46:09.543080"], ["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", "2016-03-07 15:46:09.549003"], ["updated_at", "2016-03-07 15:46:09.549003"]] [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", "2016-03-07 15:46:09.553707"], ["updated_at", "2016-03-07 15:46:09.553707"]] [1m[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-03-07 15:46:09.556362"], ["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.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", "2016-03-07 15:46:09.564767"], ["updated_at", "2016-03-07 15:46:09.564767"]] [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", "2016-03-07 15:46:09.568037"], ["updated_at", "2016-03-07 15:46:09.568037"]] [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-03-07 15:46:09.569472"], ["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", "2016-03-07 15:46:09.572171"], ["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.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 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", "2016-03-07 15:46:09.581112"], ["updated_at", "2016-03-07 15:46:09.581112"]] [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.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", "2016-03-07 15:46:09.585107"], ["updated_at", "2016-03-07 15:46:09.585107"]] [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", "31"], ["created_at", "2016-03-07 15:46:09.587675"], ["updated_at", "2016-03-07 15:46:09.587675"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.589596"], ["updated_at", "2016-03-07 15:46:09.589596"]] [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-03-07 15:46:09.592537"], ["updated_at", "2016-03-07 15:46:09.592537"]] [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-03-07 15:46:09.594422"], ["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.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 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-03-07 15:46:09.602539"], ["updated_at", "2016-03-07 15:46:09.602539"]] [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-03-07 15:46:09.607023"], ["updated_at", "2016-03-07 15:46:09.607023"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.609259"], ["updated_at", "2016-03-07 15:46:09.609259"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.610566"], ["updated_at", "2016-03-07 15:46:09.610566"]] [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-03-07 15:46:09.613082"], ["updated_at", "2016-03-07 15:46:09.613082"]] [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-03-07 15:46:09.614413"], ["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.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", "2016-03-07 15:46:09.621256"], ["updated_at", "2016-03-07 15:46:09.621256"]] [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", "2016-03-07 15:46:09.624235"], ["updated_at", "2016-03-07 15:46:09.624235"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.626142"], ["updated_at", "2016-03-07 15:46:09.626142"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.627353"], ["updated_at", "2016-03-07 15:46:09.627353"]] [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-03-07 15:46:09.629998"], ["updated_at", "2016-03-07 15:46:09.629998"]] [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", "2016-03-07 15:46:09.631283"], ["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.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", "2016-03-07 15:46:09.638414"], ["updated_at", "2016-03-07 15:46:09.638414"]] [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 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.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 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-03-07 15:46:09.642924"], ["updated_at", "2016-03-07 15:46:09.642924"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.645877"], ["updated_at", "2016-03-07 15:46:09.645877"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.647460"], ["updated_at", "2016-03-07 15:46:09.647460"]] [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-03-07 15:46:09.650718"], ["updated_at", "2016-03-07 15:46:09.650718"]] [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-03-07 15:46:09.652643"], ["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", "2016-03-07 15:46:09.660967"], ["updated_at", "2016-03-07 15:46:09.660967"]] [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-03-07 15:46:09.664303"], ["updated_at", "2016-03-07 15:46:09.664303"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.666359"], ["updated_at", "2016-03-07 15:46:09.666359"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.667614"], ["updated_at", "2016-03-07 15:46:09.667614"]] [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-03-07 15:46:09.670130"], ["updated_at", "2016-03-07 15:46:09.670130"]] [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-03-07 15:46:09.671691"], ["id", 1]] [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 [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-03-07 15:46:09.680502"], ["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.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-03-07 15:46:09.685282"], ["updated_at", "2016-03-07 15:46:09.685282"]] [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", "2016-03-07 15:46:09.749383"], ["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", "2016-03-07 15:46:09.752486"], ["updated_at", "2016-03-07 15:46:09.752486"]] [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-03-07 15:46:09.754528"], ["updated_at", "2016-03-07 15:46:09.754528"]] [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", "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-03-07 15:46:09.756910"], ["updated_at", "2016-03-07 15:46:09.756910"]] [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", "2016-03-07 15:46:09.768296"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.4ms)[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.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-03-07 15:46:09.786636"], ["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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[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-03-07 15:46:09.793159"], ["updated_at", "2016-03-07 15:46:09.793159"]] [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", "2016-03-07 15:46:09.796102"], ["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.3ms)[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.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", "2016-03-07 15:46:09.815511"], ["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.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-03-07 15:46:09.818623"], ["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", "2016-03-07 15:46:09.832254"], ["updated_at", "2016-03-07 15:46:09.832254"]] [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-03-07 15:46:09.835901"], ["updated_at", "2016-03-07 15:46:09.835901"]] [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", "2016-03-07 15:46:09.838053"], ["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.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-03-07 15:46:09.852384"], ["updated_at", "2016-03-07 15:46:09.852384"]] [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.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[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-03-07 15:46:09.856934"], ["updated_at", "2016-03-07 15:46:09.856934"]] [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.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"."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.1ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:46:09.864703"], ["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-03-07 15:46:09.866190"], ["id", 1]] [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[36mCoalescingPanda::Section Load (0.2ms)[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.0ms)[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-03-07 15:46:09.874743"], ["updated_at", "2016-03-07 15:46:09.874743"]] [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 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.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 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-03-07 15:46:09.878207"], ["updated_at", "2016-03-07 15:46:09.878207"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.880132"], ["updated_at", "2016-03-07 15:46:09.880132"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.881333"], ["updated_at", "2016-03-07 15:46:09.881333"]] [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-03-07 15:46:09.884015"], ["updated_at", "2016-03-07 15:46:09.884015"]] [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-03-07 15:46:09.885586"], ["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.1ms)[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-03-07 15:46:09.888597"], ["updated_at", "2016-03-07 15:46:09.888597"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [1m[36m (1.0ms)[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-03-07 15:46:09.897844"], ["updated_at", "2016-03-07 15:46:09.897844"]] [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.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.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-03-07 15:46:09.901261"], ["updated_at", "2016-03-07 15:46:09.901261"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:46:09.903317"], ["updated_at", "2016-03-07 15:46:09.903317"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:46:09.904800"], ["updated_at", "2016-03-07 15:46:09.904800"]] [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-03-07 15:46:09.907825"], ["updated_at", "2016-03-07 15:46:09.907825"]] [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-03-07 15:46:09.909425"], ["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", "2016-03-07 15:46:09.911803"], ["updated_at", "2016-03-07 15:46:09.911803"]] [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-03-07 15:46:09.913676"], ["updated_at", "2016-03-07 15:46:09.913676"]] [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", "2016-03-07 15:46:09.915337"], ["updated_at", "2016-03-07 15:46:09.915337"]] [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.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[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 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.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 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-03-07 15:46:09.924818"], ["updated_at", "2016-03-07 15:46:09.924818"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (61.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.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-03-07 15:46:09.994273"], ["updated_at", "2016-03-07 15:46:09.994273"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:09.997352"], ["updated_at", "2016-03-07 15:46:09.997352"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:09.998890"], ["updated_at", "2016-03-07 15:46:09.998890"]] [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-03-07 15:46:10.001740"], ["updated_at", "2016-03-07 15:46:10.001740"]] [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-03-07 15:46:10.003294"], ["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-03-07 15:46:10.005729"], ["updated_at", "2016-03-07 15:46:10.005729"]] [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-03-07 15:46:10.008284"], ["updated_at", "2016-03-07 15:46:10.008284"]] [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-03-07 15:46:10.009939"], ["updated_at", "2016-03-07 15:46:10.009939"]] [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-03-07 15:46:10.011680"], ["updated_at", "2016-03-07 15:46:10.011680"]] [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[36m (0.0ms)[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.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 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.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 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-03-07 15:46:10.034799"], ["updated_at", "2016-03-07 15:46:10.034799"]] [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 104' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' 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 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-03-07 15:46:10.039470"], ["updated_at", "2016-03-07 15:46:10.039470"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.042809"], ["updated_at", "2016-03-07 15:46:10.042809"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.044474"], ["updated_at", "2016-03-07 15:46:10.044474"]] [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-03-07 15:46:10.048027"], ["updated_at", "2016-03-07 15:46:10.048027"]] [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-03-07 15:46:10.049655"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.5ms)[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-03-07 15:46:10.055963"], ["updated_at", "2016-03-07 15:46:10.055963"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.8ms)[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.1ms)[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-03-07 15:46:10.064523"], ["updated_at", "2016-03-07 15:46:10.064523"]] [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 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.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 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-03-07 15:46:10.068018"], ["updated_at", "2016-03-07 15:46:10.068018"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.070109"], ["updated_at", "2016-03-07 15:46:10.070109"]] [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", "35"], ["created_at", "2016-03-07 15:46:10.071921"], ["updated_at", "2016-03-07 15:46:10.071921"]] [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-03-07 15:46:10.075314"], ["updated_at", "2016-03-07 15:46:10.075314"]] [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-03-07 15:46:10.077216"], ["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-03-07 15:46:10.080017"], ["updated_at", "2016-03-07 15:46:10.080017"]] [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"."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.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" = ? 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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" 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.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' 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 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-03-07 15:46:10.105913"], ["updated_at", "2016-03-07 15:46:10.105913"]] [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 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.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 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-03-07 15:46:10.109216"], ["updated_at", "2016-03-07 15:46:10.109216"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.112010"], ["updated_at", "2016-03-07 15:46:10.112010"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.113510"], ["updated_at", "2016-03-07 15:46:10.113510"]] [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-03-07 15:46:10.116972"], ["updated_at", "2016-03-07 15:46:10.116972"]] [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-03-07 15:46:10.118697"], ["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-03-07 15:46:10.121452"], ["updated_at", "2016-03-07 15:46:10.121452"]] [1m[36m (0.1ms)[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.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.9ms)[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.1ms)[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-03-07 15:46:10.130999"], ["updated_at", "2016-03-07 15:46:10.130999"]] [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.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 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-03-07 15:46:10.134026"], ["updated_at", "2016-03-07 15:46:10.134026"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.135935"], ["updated_at", "2016-03-07 15:46:10.135935"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:46:10.137070"], ["updated_at", "2016-03-07 15:46:10.137070"]] [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-03-07 15:46:10.140141"], ["updated_at", "2016-03-07 15:46:10.140141"]] [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-03-07 15:46:10.142052"], ["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-03-07 15:46:10.145058"], ["updated_at", "2016-03-07 15:46:10.145058"]] [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-03-07 15:46:10.148149"], ["updated_at", "2016-03-07 15:46:10.148149"]] [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-03-07 15:46:10.149932"], ["updated_at", "2016-03-07 15:46:10.149932"]] [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", "2016-03-07 15:46:10.151641"], ["updated_at", "2016-03-07 15:46:10.151641"]] [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.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.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::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-03-07 15:46:10.183835"], ["updated_at", "2016-03-07 15:46:10.183835"]] [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-03-07 15:46:10.187390"], ["updated_at", "2016-03-07 15:46:10.187390"]] [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.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.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.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", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:46:10.192303"], ["updated_at", "2016-03-07 15:46:10.192303"]] [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.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", "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", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:46:10.195570"], ["updated_at", "2016-03-07 15:46:10.195570"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.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", "2016-03-07 15:46:10.203585"], ["updated_at", "2016-03-07 15:46:10.203585"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' 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 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-03-07 15:46:10.266467"], ["updated_at", "2016-03-07 15:46:10.266467"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.269300"], ["updated_at", "2016-03-07 15:46:10.269300"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.270684"], ["updated_at", "2016-03-07 15:46:10.270684"]] [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.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-03-07 15:46:10.274558"], ["updated_at", "2016-03-07 15:46:10.274558"]] [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-03-07 15:46:10.277215"], ["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-03-07 15:46:10.280650"], ["updated_at", "2016-03-07 15:46:10.280650"]] [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-03-07 15:46:10.285165"], ["updated_at", "2016-03-07 15:46:10.285165"]] [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-03-07 15:46:10.287740"], ["updated_at", "2016-03-07 15:46:10.287740"]] [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 (1.5ms)[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.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 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.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 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-03-07 15:46:10.299942"], ["updated_at", "2016-03-07 15:46:10.299942"]] [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.1ms)[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-03-07 15:46:10.304973"], ["updated_at", "2016-03-07 15:46:10.304973"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.307610"], ["updated_at", "2016-03-07 15:46:10.307610"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.309176"], ["updated_at", "2016-03-07 15:46:10.309176"]] [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-03-07 15:46:10.312265"], ["updated_at", "2016-03-07 15:46:10.312265"]] [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-03-07 15:46:10.313931"], ["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-03-07 15:46:10.316600"], ["updated_at", "2016-03-07 15:46:10.316600"]] [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-03-07 15:46:10.319010"], ["updated_at", "2016-03-07 15:46:10.319010"]] [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-03-07 15:46:10.320728"], ["updated_at", "2016-03-07 15:46:10.320728"]] [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-03-07 15:46:10.322376"], ["updated_at", "2016-03-07 15:46:10.322376"]] [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.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.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", "2016-03-07 15:46:10.340111"], ["updated_at", "2016-03-07 15:46:10.340111"]] [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-03-07 15:46:10.342827"], ["updated_at", "2016-03-07 15:46:10.342827"]] [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.2ms)[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.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 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-03-07 15:46:10.353770"], ["updated_at", "2016-03-07 15:46:10.353770"]] [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.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 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-03-07 15:46:10.357600"], ["updated_at", "2016-03-07 15:46:10.357600"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.359610"], ["updated_at", "2016-03-07 15:46:10.359610"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.361059"], ["updated_at", "2016-03-07 15:46:10.361059"]] [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-03-07 15:46:10.364007"], ["updated_at", "2016-03-07 15:46:10.364007"]] [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-03-07 15:46:10.365594"], ["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.2ms)[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-03-07 15:46:10.370168"], ["updated_at", "2016-03-07 15:46:10.370168"]] [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.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" = ? 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-03-07 15:46:10.373690"], ["updated_at", "2016-03-07 15:46:10.373690"]] [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"."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.7ms)[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.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", "2016-03-07 15:46:10.381869"], ["updated_at", "2016-03-07 15:46:10.381869"]] [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", "2016-03-07 15:46:10.385497"], ["updated_at", "2016-03-07 15:46:10.385497"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.387541"], ["updated_at", "2016-03-07 15:46:10.387541"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:46:10.388813"], ["updated_at", "2016-03-07 15:46:10.388813"]] [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-03-07 15:46:10.393253"], ["updated_at", "2016-03-07 15:46:10.393253"]] [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 "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-03-07 15:46:10.395259"], ["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-03-07 15:46:10.397914"], ["updated_at", "2016-03-07 15:46:10.397914"]] [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-03-07 15:46:10.400319"], ["updated_at", "2016-03-07 15:46:10.400319"]] [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-03-07 15:46:10.401990"], ["updated_at", "2016-03-07 15:46:10.401990"]] [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", "2016-03-07 15:46:10.403536"], ["updated_at", "2016-03-07 15:46:10.403536"]] [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", "2016-03-07 15:46:10.419973"], ["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.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 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.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 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-03-07 15:46:10.438498"], ["updated_at", "2016-03-07 15:46:10.438498"]] [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.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", "2016-03-07 15:46:10.443010"], ["updated_at", "2016-03-07 15:46:10.443010"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.445025"], ["updated_at", "2016-03-07 15:46:10.445025"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.446207"], ["updated_at", "2016-03-07 15:46:10.446207"]] [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-03-07 15:46:10.448673"], ["updated_at", "2016-03-07 15:46:10.448673"]] [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-03-07 15:46:10.450035"], ["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-03-07 15:46:10.452287"], ["updated_at", "2016-03-07 15:46:10.452287"]] [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-03-07 15:46:10.454790"], ["updated_at", "2016-03-07 15:46:10.454790"]] [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-03-07 15:46:10.456507"], ["updated_at", "2016-03-07 15:46:10.456507"]] [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", "2016-03-07 15:46:10.458149"], ["updated_at", "2016-03-07 15:46:10.458149"]] [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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:46:10.473426"], ["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.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 (1.0ms)[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 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.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 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-03-07 15:46:10.554037"], ["updated_at", "2016-03-07 15:46:10.554037"]] [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-03-07 15:46:10.557485"], ["updated_at", "2016-03-07 15:46:10.557485"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:46:10.559318"], ["updated_at", "2016-03-07 15:46:10.559318"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.560515"], ["updated_at", "2016-03-07 15:46:10.560515"]] [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-03-07 15:46:10.563144"], ["updated_at", "2016-03-07 15:46:10.563144"]] [1m[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-03-07 15:46:10.565138"], ["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-03-07 15:46:10.568011"], ["updated_at", "2016-03-07 15:46:10.568011"]] [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-03-07 15:46:10.570553"], ["updated_at", "2016-03-07 15:46:10.570553"]] [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-03-07 15:46:10.572411"], ["updated_at", "2016-03-07 15:46:10.572411"]] [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", "2016-03-07 15:46:10.574128"], ["updated_at", "2016-03-07 15:46:10.574128"]] [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.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::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-03-07 15:46:10.589428"], ["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.5ms)[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.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-03-07 15:46:10.606986"], ["updated_at", "2016-03-07 15:46:10.606986"]] [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 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", "2016-03-07 15:46:10.610617"], ["updated_at", "2016-03-07 15:46:10.610617"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:46:10.612535"], ["updated_at", "2016-03-07 15:46:10.612535"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.613820"], ["updated_at", "2016-03-07 15:46:10.613820"]] [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-03-07 15:46:10.616412"], ["updated_at", "2016-03-07 15:46:10.616412"]] [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-03-07 15:46:10.617840"], ["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-03-07 15:46:10.620239"], ["updated_at", "2016-03-07 15:46:10.620239"]] [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-03-07 15:46:10.622847"], ["updated_at", "2016-03-07 15:46:10.622847"]] [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-03-07 15:46:10.624651"], ["updated_at", "2016-03-07 15:46:10.624651"]] [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-03-07 15:46:10.626609"], ["updated_at", "2016-03-07 15:46:10.626609"]] [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.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::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-03-07 15:46:10.643842"], ["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-03-07 15:46:10.649691"], ["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.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-03-07 15:46:10.659837"], ["updated_at", "2016-03-07 15:46:10.659837"]] [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", "2016-03-07 15:46:10.664208"], ["updated_at", "2016-03-07 15:46:10.664208"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.666457"], ["updated_at", "2016-03-07 15:46:10.666457"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.667852"], ["updated_at", "2016-03-07 15:46:10.667852"]] [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-03-07 15:46:10.670582"], ["updated_at", "2016-03-07 15:46:10.670582"]] [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-03-07 15:46:10.672055"], ["id", 1]] [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.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.1ms)[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-03-07 15:46:10.680699"], ["updated_at", "2016-03-07 15:46:10.680699"]] [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.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", "2016-03-07 15:46:10.684740"], ["updated_at", "2016-03-07 15:46:10.684740"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.687041"], ["updated_at", "2016-03-07 15:46:10.687041"]] [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", "46"], ["created_at", "2016-03-07 15:46:10.688743"], ["updated_at", "2016-03-07 15:46:10.688743"]] [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-03-07 15:46:10.691424"], ["updated_at", "2016-03-07 15:46:10.691424"]] [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-03-07 15:46:10.692810"], ["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", "2016-03-07 15:46:10.700245"], ["updated_at", "2016-03-07 15:46:10.700245"]] [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", "2016-03-07 15:46:10.703430"], ["updated_at", "2016-03-07 15:46:10.703430"]] [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", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-07 15:46:10.705558"], ["updated_at", "2016-03-07 15:46:10.705558"]] [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", "2016-03-07 15:46:10.708670"], ["updated_at", "2016-03-07 15:46:10.708670"]] [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-03-07 15:46:10.711994"], ["updated_at", "2016-03-07 15:46:10.711994"]] [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-03-07 15:46:10.713570"], ["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 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.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 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-03-07 15:46:10.721892"], ["updated_at", "2016-03-07 15:46:10.721892"]] [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.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", "2016-03-07 15:46:10.725883"], ["updated_at", "2016-03-07 15:46:10.725883"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:46:10.728014"], ["updated_at", "2016-03-07 15:46:10.728014"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.729403"], ["updated_at", "2016-03-07 15:46:10.729403"]] [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-03-07 15:46:10.731963"], ["updated_at", "2016-03-07 15:46:10.731963"]] [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-03-07 15:46:10.733353"], ["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 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", "2016-03-07 15:46:10.742555"], ["updated_at", "2016-03-07 15:46:10.742555"]] [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.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", "2016-03-07 15:46:10.746343"], ["updated_at", "2016-03-07 15:46:10.746343"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.748402"], ["updated_at", "2016-03-07 15:46:10.748402"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.749648"], ["updated_at", "2016-03-07 15:46:10.749648"]] [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-03-07 15:46:10.752264"], ["updated_at", "2016-03-07 15:46:10.752264"]] [1m[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-03-07 15:46:10.753701"], ["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 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-03-07 15:46:10.762302"], ["updated_at", "2016-03-07 15:46:10.762302"]] [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 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-03-07 15:46:10.828294"], ["updated_at", "2016-03-07 15:46:10.828294"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.830742"], ["updated_at", "2016-03-07 15:46:10.830742"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.832017"], ["updated_at", "2016-03-07 15:46:10.832017"]] [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-03-07 15:46:10.834693"], ["updated_at", "2016-03-07 15:46:10.834693"]] [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-03-07 15:46:10.836428"], ["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.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", "2016-03-07 15:46:10.845203"], ["updated_at", "2016-03-07 15:46:10.845203"]] [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-03-07 15:46:10.848811"], ["updated_at", "2016-03-07 15:46:10.848811"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.850864"], ["updated_at", "2016-03-07 15:46:10.850864"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.852194"], ["updated_at", "2016-03-07 15:46:10.852194"]] [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-03-07 15:46:10.855308"], ["updated_at", "2016-03-07 15:46:10.855308"]] [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-03-07 15:46:10.857356"], ["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.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-03-07 15:46:10.866194"], ["updated_at", "2016-03-07 15:46:10.866194"]] [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.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 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-03-07 15:46:10.869819"], ["updated_at", "2016-03-07 15:46:10.869819"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:46:10.872204"], ["updated_at", "2016-03-07 15:46:10.872204"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.873930"], ["updated_at", "2016-03-07 15:46:10.873930"]] [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-03-07 15:46:10.878254"], ["updated_at", "2016-03-07 15:46:10.878254"]] [1m[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-03-07 15:46:10.880275"], ["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.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.1ms)[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-03-07 15:46:10.891578"], ["updated_at", "2016-03-07 15:46:10.891578"]] [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 142' 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 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-03-07 15:46:10.895677"], ["updated_at", "2016-03-07 15:46:10.895677"]] [1m[36m (0.0ms)[0m [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-03-07 15:46:10.898000"], ["updated_at", "2016-03-07 15:46:10.898000"]] [1m[35m (0.0ms)[0m 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-03-07 15:46:10.899496"], ["updated_at", "2016-03-07 15:46:10.899496"]] [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-03-07 15:46:10.902644"], ["updated_at", "2016-03-07 15:46:10.902644"]] [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-03-07 15:46:10.904382"], ["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", "2016-03-07 15:46:10.907998"], ["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.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 2ms (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 1ms (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", "2016-03-07 15:47:29.881877"], ["updated_at", "2016-03-07 15:47:29.881877"]] [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", "2016-03-07 15:47:29.895709"], ["updated_at", "2016-03-07 15:47:29.895709"]] [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", "2016-03-07 16:47:29.914749"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:47:29.915926"], ["updated_at", "2016-03-07 15:47:29.915926"]] [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 25ms (Views: 7.1ms | 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.4ms)[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.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.0ms)[0m SAVEPOINT active_record_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-03-07 15:47:29.949329"], ["updated_at", "2016-03-07 15:47:29.949329"]] [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", "2016-03-07 15:47:30.010811"], ["updated_at", "2016-03-07 15:47:30.010811"]] [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_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-03-07 15:47:30.014637"], ["updated_at", "2016-03-07 15:47:30.014637"]] [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", "1"], ["created_at", "2016-03-07 15:47:30.018000"], ["updated_at", "2016-03-07 15:47:30.018000"]] [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[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", "2016-03-07 15:47:30.031036"], ["updated_at", "2016-03-07 15:47:30.031036"]] [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.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-03-07 15:47:30.034847"], ["updated_at", "2016-03-07 15:47:30.034847"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:47:30.037004"], ["updated_at", "2016-03-07 15:47:30.037004"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:47:30.038360"], ["updated_at", "2016-03-07 15:47:30.038360"]] [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.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 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-03-07 15:47:30.043413"], ["updated_at", "2016-03-07 15:47:30.043413"]] [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", "2016-03-07 15:47:30.046594"], ["updated_at", "2016-03-07 15:47:30.046594"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.048568"], ["updated_at", "2016-03-07 15:47:30.048568"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.049719"], ["updated_at", "2016-03-07 15:47:30.049719"]] [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 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.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", "2016-03-07 15:47:30.067155"], ["updated_at", "2016-03-07 15:47:30.067155"]] [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", "2016-03-07 15:47:30.070521"], ["updated_at", "2016-03-07 15:47:30.070521"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.072359"], ["updated_at", "2016-03-07 15:47:30.072359"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.073462"], ["updated_at", "2016-03-07 15:47:30.073462"]] [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.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", "2016-03-07 15:47:30.079528"], ["updated_at", "2016-03-07 15:47:30.079528"]] [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", "2016-03-07 15:47:30.082451"], ["updated_at", "2016-03-07 15:47:30.082451"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.084599"], ["updated_at", "2016-03-07 15:47:30.084599"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.086028"], ["updated_at", "2016-03-07 15:47:30.086028"]] [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.1ms)[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-03-07 15:47:30.091795"], ["updated_at", "2016-03-07 15:47:30.091795"]] [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-03-07 15:47:30.095139"], ["updated_at", "2016-03-07 15:47:30.095139"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.096997"], ["updated_at", "2016-03-07 15:47:30.096997"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.098277"], ["updated_at", "2016-03-07 15:47:30.098277"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:47:30.100297"], ["updated_at", "2016-03-07 15:47:30.100297"]] [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", "2016-03-07 15:47:30.103461"], ["updated_at", "2016-03-07 15:47:30.103461"]] 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", "2016-03-07 15:47:30.108629"], ["updated_at", "2016-03-07 15:47:30.108629"]] [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", "2016-03-07 15:47:30.111465"], ["updated_at", "2016-03-07 15:47:30.111465"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.113176"], ["updated_at", "2016-03-07 15:47:30.113176"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.114297"], ["updated_at", "2016-03-07 15:47:30.114297"]] [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[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-03-07 15:47:30.121308"], ["updated_at", "2016-03-07 15:47:30.121308"]] [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.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-03-08 15:47:30.134986"], ["created_at", "2016-03-07 15:47:30.136108"], ["updated_at", "2016-03-07 15:47:30.136108"]] [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.3ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:47:30.146108"], ["updated_at", "2016-03-07 15:47:30.146108"]] [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_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2016-03-07 15:47:30.148520"], ["updated_at", "2016-03-07 15:47:30.148520"]] [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", "2016-03-07 15:47:30.150425"], ["updated_at", "2016-03-07 15:47:30.150425"]] [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" ORDER BY created_at DESC [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 [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.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 [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.1ms)[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", "2016-03-07 15:47:30.162470"], ["updated_at", "2016-03-07 15:47:30.162470"]] [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", "2016-03-07 15:47:30.166069"], ["updated_at", "2016-03-07 15:47:30.166069"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.168088"], ["updated_at", "2016-03-07 15:47:30.168088"]] [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 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-03-07 15:47:30.174140"], ["updated_at", "2016-03-07 15:47:30.174140"]] [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", "2016-03-07 15:47:30.177541"], ["updated_at", "2016-03-07 15:47:30.177541"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.179376"], ["updated_at", "2016-03-07 15:47:30.179376"]] [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.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.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", "2016-03-07 15:47:30.183975"], ["updated_at", "2016-03-07 15:47:30.183975"]] [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.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", "2016-03-07 15:47:30.187881"], ["updated_at", "2016-03-07 15:47:30.187881"]] [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_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-03-07 15:47:30.239348"], ["updated_at", "2016-03-07 15:47:30.239348"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.241078"], ["updated_at", "2016-03-07 15:47:30.241078"]] [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-03-07 15:47:30.244523"], ["updated_at", "2016-03-07 15:47:30.244523"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.246375"], ["updated_at", "2016-03-07 15:47:30.246375"]] [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-03-07 15:47:30.247510"], ["updated_at", "2016-03-07 15:47:30.247510"]] 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.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 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", "2016-03-07 15:47:30.252020"], ["updated_at", "2016-03-07 15:47:30.252020"]] [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", "2016-03-07 15:47:30.253778"], ["updated_at", "2016-03-07 15:47:30.253778"]] [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.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-03-07 15:47:30.257219"], ["updated_at", "2016-03-07 15:47:30.257219"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.260470"], ["updated_at", "2016-03-07 15:47:30.260470"]] [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.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-03-07 15:47:30.264453"], ["updated_at", "2016-03-07 15:47:30.264453"]] [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", "2016-03-07 15:47:30.266928"], ["updated_at", "2016-03-07 15:47:30.266928"]] 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", "2016-03-07 15:47:30.272100"], ["updated_at", "2016-03-07 15:47:30.272100"]] [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", "2016-03-07 15:47:30.275104"], ["updated_at", "2016-03-07 15:47:30.275104"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.276782"], ["updated_at", "2016-03-07 15:47:30.276782"]] [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.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", "2016-03-07 15:47:30.289206"], ["updated_at", "2016-03-07 15:47:30.289206"]] [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", "2016-03-07 15:47:30.292044"], ["updated_at", "2016-03-07 15:47:30.292044"]] [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.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", "2016-03-07 15:47:30.303436"], ["updated_at", "2016-03-07 15:47:30.303436"]] [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.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-03-07 15:47:30.307123"], ["updated_at", "2016-03-07 15:47:30.307123"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.309328"], ["updated_at", "2016-03-07 15:47:30.309328"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.310815"], ["updated_at", "2016-03-07 15:47:30.310815"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.313113"], ["updated_at", "2016-03-07 15:47:30.313113"]] [1m[36m (0.0ms)[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", "2016-03-07 15:47:30.321850"], ["updated_at", "2016-03-07 15:47:30.321850"]] [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-03-07 15:47:30.324648"], ["updated_at", "2016-03-07 15:47:30.324648"]] [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", "2016-03-07 15:47:30.328085"], ["updated_at", "2016-03-07 15:47:30.328085"]] [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", "2016-03-07 15:47:30.330952"], ["updated_at", "2016-03-07 15:47:30.330952"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.332460"], ["updated_at", "2016-03-07 15:47:30.332460"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.333805"], ["updated_at", "2016-03-07 15:47:30.333805"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.335012"], ["updated_at", "2016-03-07 15:47:30.335012"]] [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", "2016-03-07 15:47:30.341310"], ["updated_at", "2016-03-07 15:47:30.341310"]] [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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:47:30.344237"], ["updated_at", "2016-03-07 15:47:30.344237"]] [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.1ms)[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-03-07 15:47:30.348346"], ["updated_at", "2016-03-07 15:47:30.348346"]] [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.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 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-03-07 15:47:30.352802"], ["updated_at", "2016-03-07 15:47:30.352802"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.354592"], ["updated_at", "2016-03-07 15:47:30.354592"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.355830"], ["updated_at", "2016-03-07 15:47:30.355830"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.357041"], ["updated_at", "2016-03-07 15:47:30.357041"]] [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.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 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-03-07 15:47:30.361798"], ["updated_at", "2016-03-07 15:47:30.361798"]] [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", "2016-03-07 15:47:30.363707"], ["updated_at", "2016-03-07 15:47:30.363707"]] [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-03-07 15:47:30.366434"], ["updated_at", "2016-03-07 15:47:30.366434"]] [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", "2016-03-07 15:47:30.369205"], ["updated_at", "2016-03-07 15:47:30.369205"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.371029"], ["updated_at", "2016-03-07 15:47:30.371029"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.372163"], ["updated_at", "2016-03-07 15:47:30.372163"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.373663"], ["updated_at", "2016-03-07 15:47:30.373663"]] [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", "2016-03-07 15:47:30.375864"], ["updated_at", "2016-03-07 15:47:30.375864"]] [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", "2016-03-07 15:47:30.378210"], ["updated_at", "2016-03-07 15:47:30.378210"]] 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.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 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-03-07 15:47:30.383846"], ["updated_at", "2016-03-07 15:47:30.383846"]] [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-03-07 15:47:30.386044"], ["updated_at", "2016-03-07 15:47:30.386044"]] [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-03-07 15:47:30.388698"], ["updated_at", "2016-03-07 15:47:30.388698"]] [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 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-03-07 15:47:30.392726"], ["updated_at", "2016-03-07 15:47:30.392726"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.395397"], ["updated_at", "2016-03-07 15:47:30.395397"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.397040"], ["updated_at", "2016-03-07 15:47:30.397040"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.398619"], ["updated_at", "2016-03-07 15:47:30.398619"]] [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_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-03-07 15:47:30.400699"], ["updated_at", "2016-03-07 15:47:30.400699"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.402746"], ["updated_at", "2016-03-07 15:47:30.402746"]] [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.1ms)[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-03-07 15:47:30.408553"], ["updated_at", "2016-03-07 15:47:30.408553"]] [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", "2016-03-07 15:47:30.411246"], ["updated_at", "2016-03-07 15:47:30.411246"]] [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-03-07 15:47:30.414481"], ["updated_at", "2016-03-07 15:47:30.414481"]] [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", "2016-03-07 15:47:30.418980"], ["updated_at", "2016-03-07 15:47:30.418980"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.421195"], ["updated_at", "2016-03-07 15:47:30.421195"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.422788"], ["updated_at", "2016-03-07 15:47:30.422788"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.424263"], ["updated_at", "2016-03-07 15:47:30.424263"]] [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", "2016-03-07 15:47:30.437803"], ["updated_at", "2016-03-07 15:47:30.437803"]] [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", "2016-03-07 15:47:30.441113"], ["updated_at", "2016-03-07 15:47:30.441113"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.443073"], ["updated_at", "2016-03-07 15:47:30.443073"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.444319"], ["updated_at", "2016-03-07 15:47:30.444319"]] [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", "2016-03-07 15:47:30.450069"], ["updated_at", "2016-03-07 15:47:30.450069"]] [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.1ms)[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", "2016-03-07 15:47:30.453430"], ["updated_at", "2016-03-07 15:47:30.453430"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.455354"], ["updated_at", "2016-03-07 15:47:30.455354"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.456572"], ["updated_at", "2016-03-07 15:47:30.456572"]] [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", "2016-03-07 15:47:30.461092"], ["updated_at", "2016-03-07 15:47:30.461092"]] [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.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 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-03-07 15:47:30.464277"], ["updated_at", "2016-03-07 15:47:30.464277"]] [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", "22"], ["created_at", "2016-03-07 15:47:30.466812"], ["updated_at", "2016-03-07 15:47:30.466812"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.468319"], ["updated_at", "2016-03-07 15:47:30.468319"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.470234"], ["updated_at", "2016-03-07 15:47:30.470234"]] [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-03-07 15:47:30.471907"], ["updated_at", "2016-03-07 15:47:30.471907"]] 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.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 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-03-07 15:47:30.477186"], ["updated_at", "2016-03-07 15:47:30.477186"]] [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", "2016-03-07 15:47:30.480605"], ["updated_at", "2016-03-07 15:47:30.480605"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.482406"], ["updated_at", "2016-03-07 15:47:30.482406"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.483588"], ["updated_at", "2016-03-07 15:47:30.483588"]] [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.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 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-03-07 15:47:30.550486"], ["updated_at", "2016-03-07 15:47:30.550486"]] [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", "2016-03-07 15:47:30.552929"], ["updated_at", "2016-03-07 15:47:30.552929"]] [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", "2016-03-07 15:47:30.556748"], ["updated_at", "2016-03-07 15:47:30.556748"]] [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", "2016-03-07 15:47:30.559600"], ["updated_at", "2016-03-07 15:47:30.559600"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.561114"], ["updated_at", "2016-03-07 15:47:30.561114"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:47:30.562301"], ["updated_at", "2016-03-07 15:47:30.562301"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.563654"], ["updated_at", "2016-03-07 15:47:30.563654"]] [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 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-03-07 15:47:30.570554"], ["updated_at", "2016-03-07 15:47:30.570554"]] [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-03-07 15:47:30.572697"], ["updated_at", "2016-03-07 15:47:30.572697"]] [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-03-07 15:47:30.575429"], ["updated_at", "2016-03-07 15:47:30.575429"]] [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-03-07 15:47:30.578172"], ["updated_at", "2016-03-07 15:47:30.578172"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.579620"], ["updated_at", "2016-03-07 15:47:30.579620"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.580724"], ["updated_at", "2016-03-07 15:47:30.580724"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.581901"], ["updated_at", "2016-03-07 15:47:30.581901"]] [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", "2016-03-07 15:47:30.587354"], ["updated_at", "2016-03-07 15:47:30.587354"]] [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-03-07 15:47:30.589683"], ["updated_at", "2016-03-07 15:47:30.589683"]] [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", "2016-03-07 15:47:30.592542"], ["updated_at", "2016-03-07 15:47:30.592542"]] [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-03-07 15:47:30.595400"], ["updated_at", "2016-03-07 15:47:30.595400"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.596894"], ["updated_at", "2016-03-07 15:47:30.596894"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.598025"], ["updated_at", "2016-03-07 15:47:30.598025"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.599153"], ["updated_at", "2016-03-07 15:47:30.599153"]] [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", "2016-03-07 15:47:30.604346"], ["updated_at", "2016-03-07 15:47:30.604346"]] [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", "2016-03-07 15:47:30.606453"], ["updated_at", "2016-03-07 15:47:30.606453"]] [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-03-07 15:47:30.609153"], ["updated_at", "2016-03-07 15:47:30.609153"]] [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", "2016-03-07 15:47:30.612063"], ["updated_at", "2016-03-07 15:47:30.612063"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.613633"], ["updated_at", "2016-03-07 15:47:30.613633"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.614886"], ["updated_at", "2016-03-07 15:47:30.614886"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.616335"], ["updated_at", "2016-03-07 15:47:30.616335"]] [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_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-03-07 15:47:30.618569"], ["updated_at", "2016-03-07 15:47:30.618569"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.620537"], ["updated_at", "2016-03-07 15:47:30.620537"]] 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.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", "2016-03-07 15:47:30.626119"], ["updated_at", "2016-03-07 15:47:30.626119"]] [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-03-07 15:47:30.628554"], ["updated_at", "2016-03-07 15:47:30.628554"]] [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-03-07 15:47:30.631319"], ["updated_at", "2016-03-07 15:47:30.631319"]] [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", "2016-03-07 15:47:30.634174"], ["updated_at", "2016-03-07 15:47:30.634174"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.635677"], ["updated_at", "2016-03-07 15:47:30.635677"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.636794"], ["updated_at", "2016-03-07 15:47:30.636794"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.638257"], ["updated_at", "2016-03-07 15:47:30.638257"]] [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_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-03-07 15:47:30.640566"], ["updated_at", "2016-03-07 15:47:30.640566"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.642668"], ["updated_at", "2016-03-07 15:47:30.642668"]] [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 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", "2016-03-07 15:47:30.648311"], ["updated_at", "2016-03-07 15:47:30.648311"]] [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-03-07 15:47:30.650284"], ["updated_at", "2016-03-07 15:47:30.650284"]] [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.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", "2016-03-07 15:47:30.653246"], ["updated_at", "2016-03-07 15:47:30.653246"]] [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 72' 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 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-03-07 15:47:30.657126"], ["updated_at", "2016-03-07 15:47:30.657126"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.659710"], ["updated_at", "2016-03-07 15:47:30.659710"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.661310"], ["updated_at", "2016-03-07 15:47:30.661310"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.662844"], ["updated_at", "2016-03-07 15:47:30.662844"]] [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-03-07 15:47:30.670093"], ["updated_at", "2016-03-07 15:47:30.670093"]] [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", "2016-03-07 15:47:30.675457"], ["updated_at", "2016-03-07 15:47:30.675457"]] [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", "2016-03-07 15:47:30.677934"], ["updated_at", "2016-03-07 15:47:30.677934"]] [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-03-07 15:47:30.679972"], ["updated_at", "2016-03-07 15:47:30.679972"]] 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.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.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", "2016-03-07 15:47:30.687316"], ["updated_at", "2016-03-07 15:47:30.687316"]] [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", "2016-03-07 15:47:30.693766"], ["updated_at", "2016-03-07 15:47:30.693766"]] [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", "2016-03-07 15:47:30.699034"], ["updated_at", "2016-03-07 15:47:30.699034"]] [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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:47:30.702305"], ["updated_at", "2016-03-07 15:47:30.702305"]] [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_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-03-07 15:47:30.705178"], ["updated_at", "2016-03-07 15:47:30.705178"]] 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-03-07 15:47:30.710187"], ["updated_at", "2016-03-07 15:47:30.710187"]] [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-03-07 15:47:30.718061"], ["updated_at", "2016-03-07 15:47:30.718061"]] [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", "2016-03-07 15:47:30.729763"], ["updated_at", "2016-03-07 15:47:30.729763"]] [1m[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-03-07 15:47:30.731843"], ["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", "2016-03-07 15:47:30.738028"], ["updated_at", "2016-03-07 15:47:30.738028"]] [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-03-07 15:47:30.741129"], ["updated_at", "2016-03-07 15:47:30.741129"]] [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-03-07 15:47:30.742786"], ["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", "2016-03-07 15:47:30.748769"], ["updated_at", "2016-03-07 15:47:30.748769"]] [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-03-07 15:47:30.752362"], ["updated_at", "2016-03-07 15:47:30.752362"]] [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", "2016-03-07 15:47:30.807425"], ["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-03-07 15:47:30.819820"], ["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", "2016-03-07 15:47:30.824054"], ["updated_at", "2016-03-07 15:47:30.824054"]] [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-03-07 15:47:30.826248"], ["updated_at", "2016-03-07 15:47:30.826248"]] [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", "2016-03-07 15:47:30.827924"], ["updated_at", "2016-03-07 15:47:30.827924"]] [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-03-07 15:47:30.829990"], ["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-03-07 15:47:30.831097"], ["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.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 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.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", "2016-03-07 15:47:30.838694"], ["updated_at", "2016-03-07 15:47:30.838694"]] [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-03-07 15:47:30.843834"], ["updated_at", "2016-03-07 15:47:30.843834"]] [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-03-07 15:47:30.845744"], ["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", "2016-03-07 15:47:30.850029"], ["updated_at", "2016-03-07 15:47:30.850029"]] [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", "2016-03-07 15:47:30.852863"], ["updated_at", "2016-03-07 15:47:30.852863"]] [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", "2016-03-07 15:47:30.859235"], ["updated_at", "2016-03-07 15:47:30.859235"]] [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-03-07 15:47:30.862620"], ["updated_at", "2016-03-07 15:47:30.862620"]] [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-03-07 15:47:30.864094"], ["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", "2016-03-07 15:47:30.866135"], ["updated_at", "2016-03-07 15:47:30.866135"]] [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-03-07 15:47:30.867823"], ["updated_at", "2016-03-07 15:47:30.867823"]] [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", "2016-03-07 15:47:30.869506"], ["updated_at", "2016-03-07 15:47:30.869506"]] [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", "2016-03-07 15:47:30.875370"], ["updated_at", "2016-03-07 15:47:30.875370"]] [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-03-07 15:47:30.878667"], ["updated_at", "2016-03-07 15:47:30.878667"]] [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-03-07 15:47:30.880146"], ["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 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", "2016-03-07 15:47:30.886088"], ["updated_at", "2016-03-07 15:47:30.886088"]] [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-03-07 15:47:30.889475"], ["updated_at", "2016-03-07 15:47:30.889475"]] [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-03-07 15:47:30.891024"], ["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", "2016-03-07 15:47:30.897689"], ["updated_at", "2016-03-07 15:47:30.897689"]] [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", "2016-03-07 15:47:30.900932"], ["updated_at", "2016-03-07 15:47:30.900932"]] [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-03-07 15:47:30.902367"], ["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", "2016-03-07 15:47:30.905184"], ["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-03-07 15:47:30.914414"], ["updated_at", "2016-03-07 15:47:30.914414"]] [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", "2016-03-07 15:47:30.917850"], ["updated_at", "2016-03-07 15:47:30.917850"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.919934"], ["updated_at", "2016-03-07 15:47:30.919934"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.921165"], ["updated_at", "2016-03-07 15:47:30.921165"]] [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-03-07 15:47:30.923751"], ["updated_at", "2016-03-07 15:47:30.923751"]] [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-03-07 15:47:30.925096"], ["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", "2016-03-07 15:47:30.933324"], ["updated_at", "2016-03-07 15:47:30.933324"]] [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", "2016-03-07 15:47:30.936753"], ["updated_at", "2016-03-07 15:47:30.936753"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.938609"], ["updated_at", "2016-03-07 15:47:30.938609"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.939935"], ["updated_at", "2016-03-07 15:47:30.939935"]] [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-03-07 15:47:30.942654"], ["updated_at", "2016-03-07 15:47:30.942654"]] [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-03-07 15:47:30.944017"], ["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", "2016-03-07 15:47:30.950795"], ["updated_at", "2016-03-07 15:47:30.950795"]] [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.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", "2016-03-07 15:47:30.954008"], ["updated_at", "2016-03-07 15:47:30.954008"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.955978"], ["updated_at", "2016-03-07 15:47:30.955978"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.957190"], ["updated_at", "2016-03-07 15:47:30.957190"]] [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-03-07 15:47:30.959665"], ["updated_at", "2016-03-07 15:47:30.959665"]] [1m[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", "2016-03-07 15:47:30.961355"], ["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 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-03-07 15:47:30.969498"], ["updated_at", "2016-03-07 15:47:30.969498"]] [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.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 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-03-07 15:47:30.972676"], ["updated_at", "2016-03-07 15:47:30.972676"]] [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", "34"], ["created_at", "2016-03-07 15:47:30.975672"], ["updated_at", "2016-03-07 15:47:30.975672"]] [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", "29"], ["created_at", "2016-03-07 15:47:30.977419"], ["updated_at", "2016-03-07 15:47:30.977419"]] [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-03-07 15:47:30.980831"], ["updated_at", "2016-03-07 15:47:30.980831"]] [1m[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-03-07 15:47:30.982727"], ["id", 1]] [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 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-03-07 15:47:30.991298"], ["updated_at", "2016-03-07 15:47:30.991298"]] [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.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 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-03-07 15:47:30.994497"], ["updated_at", "2016-03-07 15:47:30.994497"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:30.996570"], ["updated_at", "2016-03-07 15:47:30.996570"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:30.997772"], ["updated_at", "2016-03-07 15:47:30.997772"]] [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.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-03-07 15:47:31.000697"], ["updated_at", "2016-03-07 15:47:31.000697"]] [1m[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-03-07 15:47:31.002663"], ["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-03-07 15:47:31.010893"], ["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-03-07 15:47:31.015439"], ["updated_at", "2016-03-07 15:47:31.015439"]] [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-03-07 15:47:31.018078"], ["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", "2016-03-07 15:47:31.021345"], ["updated_at", "2016-03-07 15:47:31.021345"]] [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-03-07 15:47:31.023434"], ["updated_at", "2016-03-07 15:47:31.023434"]] [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-03-07 15:47:31.086007"], ["updated_at", "2016-03-07 15:47:31.086007"]] [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[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", "2016-03-07 15:47:31.094412"], ["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.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.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", "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", "2016-03-07 15:47:31.114064"], ["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.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", "2016-03-07 15:47:31.117980"], ["updated_at", "2016-03-07 15:47:31.117980"]] [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", "2016-03-07 15:47:31.120303"], ["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.2ms)[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", "2016-03-07 15:47:31.137327"], ["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", "2016-03-07 15:47:31.140321"], ["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.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.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-03-07 15:47:31.152429"], ["updated_at", "2016-03-07 15:47:31.152429"]] [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-03-07 15:47:31.154982"], ["updated_at", "2016-03-07 15:47:31.154982"]] [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", "2016-03-07 15:47:31.156637"], ["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", "2016-03-07 15:47:31.168539"], ["updated_at", "2016-03-07 15:47:31.168539"]] [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", "2016-03-07 15:47:31.171522"], ["updated_at", "2016-03-07 15:47:31.171522"]] [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[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"."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-03-07 15:47:31.177662"], ["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-03-07 15:47:31.178902"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[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.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.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-03-07 15:47:31.187885"], ["updated_at", "2016-03-07 15:47:31.187885"]] [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 98' 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 98' 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 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-03-07 15:47:31.191567"], ["updated_at", "2016-03-07 15:47:31.191567"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.193518"], ["updated_at", "2016-03-07 15:47:31.193518"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.194826"], ["updated_at", "2016-03-07 15:47:31.194826"]] [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-03-07 15:47:31.198231"], ["updated_at", "2016-03-07 15:47:31.198231"]] [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-03-07 15:47:31.199906"], ["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-03-07 15:47:31.202445"], ["updated_at", "2016-03-07 15:47:31.202445"]] [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.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 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.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 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-03-07 15:47:31.210508"], ["updated_at", "2016-03-07 15:47:31.210508"]] [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 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.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 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-03-07 15:47:31.213565"], ["updated_at", "2016-03-07 15:47:31.213565"]] [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", "37"], ["created_at", "2016-03-07 15:47:31.215455"], ["updated_at", "2016-03-07 15:47:31.215455"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:47:31.216597"], ["updated_at", "2016-03-07 15:47:31.216597"]] [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-03-07 15:47:31.219261"], ["updated_at", "2016-03-07 15:47:31.219261"]] [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-03-07 15:47:31.220750"], ["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", "2016-03-07 15:47:31.222886"], ["updated_at", "2016-03-07 15:47:31.222886"]] [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-03-07 15:47:31.224416"], ["updated_at", "2016-03-07 15:47:31.224416"]] [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", "2016-03-07 15:47:31.225985"], ["updated_at", "2016-03-07 15:47:31.225985"]] [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.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 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-03-07 15:47:31.234940"], ["updated_at", "2016-03-07 15:47:31.234940"]] [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 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.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-03-07 15:47:31.238311"], ["updated_at", "2016-03-07 15:47:31.238311"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.240346"], ["updated_at", "2016-03-07 15:47:31.240346"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.241550"], ["updated_at", "2016-03-07 15:47:31.241550"]] [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-03-07 15:47:31.244363"], ["updated_at", "2016-03-07 15:47:31.244363"]] [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-03-07 15:47:31.245759"], ["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", "2016-03-07 15:47:31.308743"], ["updated_at", "2016-03-07 15:47:31.308743"]] [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-03-07 15:47:31.311499"], ["updated_at", "2016-03-07 15:47:31.311499"]] [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-03-07 15:47:31.313538"], ["updated_at", "2016-03-07 15:47:31.313538"]] [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-03-07 15:47:31.315288"], ["updated_at", "2016-03-07 15:47:31.315288"]] [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[36m (0.0ms)[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.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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:47:31.336601"], ["updated_at", "2016-03-07 15:47:31.336601"]] [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 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.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 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-03-07 15:47:31.339742"], ["updated_at", "2016-03-07 15:47:31.339742"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.342085"], ["updated_at", "2016-03-07 15:47:31.342085"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.343695"], ["updated_at", "2016-03-07 15:47:31.343695"]] [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-03-07 15:47:31.347197"], ["updated_at", "2016-03-07 15:47:31.347197"]] [1m[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-03-07 15:47:31.349089"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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-03-07 15:47:31.355936"], ["updated_at", "2016-03-07 15:47:31.355936"]] [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.8ms)[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-03-07 15:47:31.363717"], ["updated_at", "2016-03-07 15:47:31.363717"]] [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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 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-03-07 15:47:31.367236"], ["updated_at", "2016-03-07 15:47:31.367236"]] [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", "40"], ["created_at", "2016-03-07 15:47:31.370704"], ["updated_at", "2016-03-07 15:47:31.370704"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.372262"], ["updated_at", "2016-03-07 15:47:31.372262"]] [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-03-07 15:47:31.375030"], ["updated_at", "2016-03-07 15:47:31.375030"]] [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-03-07 15:47:31.376372"], ["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-03-07 15:47:31.378501"], ["updated_at", "2016-03-07 15:47:31.378501"]] [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.0ms)[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.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_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 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.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 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-03-07 15:47:31.399125"], ["updated_at", "2016-03-07 15:47:31.399125"]] [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 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", "2016-03-07 15:47:31.402216"], ["updated_at", "2016-03-07 15:47:31.402216"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.404101"], ["updated_at", "2016-03-07 15:47:31.404101"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.405272"], ["updated_at", "2016-03-07 15:47:31.405272"]] [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-03-07 15:47:31.407894"], ["updated_at", "2016-03-07 15:47:31.407894"]] [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-03-07 15:47:31.409209"], ["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-03-07 15:47:31.411208"], ["updated_at", "2016-03-07 15:47:31.411208"]] [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.1ms)[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-03-07 15:47:31.418910"], ["updated_at", "2016-03-07 15:47:31.418910"]] [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.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 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-03-07 15:47:31.421924"], ["updated_at", "2016-03-07 15:47:31.421924"]] [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", "42"], ["created_at", "2016-03-07 15:47:31.423930"], ["updated_at", "2016-03-07 15:47:31.423930"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:47:31.425114"], ["updated_at", "2016-03-07 15:47:31.425114"]] [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-03-07 15:47:31.427467"], ["updated_at", "2016-03-07 15:47:31.427467"]] [1m[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-03-07 15:47:31.429496"], ["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-03-07 15:47:31.432679"], ["updated_at", "2016-03-07 15:47:31.432679"]] [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-03-07 15:47:31.435588"], ["updated_at", "2016-03-07 15:47:31.435588"]] [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-03-07 15:47:31.437381"], ["updated_at", "2016-03-07 15:47:31.437381"]] [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-03-07 15:47:31.438965"], ["updated_at", "2016-03-07 15:47:31.438965"]] [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" 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.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::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.2ms)[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-03-07 15:47:31.466043"], ["updated_at", "2016-03-07 15:47:31.466043"]] [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-03-07 15:47:31.469368"], ["updated_at", "2016-03-07 15:47:31.469368"]] [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.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.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-03-07 15:47:31.472383"], ["updated_at", "2016-03-07 15:47:31.472383"]] [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.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", "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", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:47:31.475402"], ["updated_at", "2016-03-07 15:47:31.475402"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.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", "2016-03-07 15:47:31.483765"], ["updated_at", "2016-03-07 15:47:31.483765"]] [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.1ms)[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-03-07 15:47:31.488036"], ["updated_at", "2016-03-07 15:47:31.488036"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.490137"], ["updated_at", "2016-03-07 15:47:31.490137"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.491780"], ["updated_at", "2016-03-07 15:47:31.491780"]] [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-03-07 15:47:31.494980"], ["updated_at", "2016-03-07 15:47:31.494980"]] [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-03-07 15:47:31.496612"], ["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", "2016-03-07 15:47:31.557044"], ["updated_at", "2016-03-07 15:47:31.557044"]] [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-03-07 15:47:31.561047"], ["updated_at", "2016-03-07 15:47:31.561047"]] [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-03-07 15:47:31.563383"], ["updated_at", "2016-03-07 15:47:31.563383"]] [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.2ms)[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 (1.2ms)[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.1ms)[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-03-07 15:47:31.575146"], ["updated_at", "2016-03-07 15:47:31.575146"]] [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 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-03-07 15:47:31.579038"], ["updated_at", "2016-03-07 15:47:31.579038"]] [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", "44"], ["created_at", "2016-03-07 15:47:31.581882"], ["updated_at", "2016-03-07 15:47:31.581882"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.583511"], ["updated_at", "2016-03-07 15:47:31.583511"]] [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-03-07 15:47:31.586828"], ["updated_at", "2016-03-07 15:47:31.586828"]] [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-03-07 15:47:31.588579"], ["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-03-07 15:47:31.591188"], ["updated_at", "2016-03-07 15:47:31.591188"]] [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-03-07 15:47:31.593671"], ["updated_at", "2016-03-07 15:47:31.593671"]] [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-03-07 15:47:31.595278"], ["updated_at", "2016-03-07 15:47:31.595278"]] [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", "2016-03-07 15:47:31.596865"], ["updated_at", "2016-03-07 15:47:31.596865"]] [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.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-03-07 15:47:31.612711"], ["updated_at", "2016-03-07 15:47:31.612711"]] [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-03-07 15:47:31.614936"], ["updated_at", "2016-03-07 15:47:31.614936"]] [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" = ? 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.0ms)[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.0ms)[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-03-07 15:47:31.625489"], ["updated_at", "2016-03-07 15:47:31.625489"]] [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 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.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-03-07 15:47:31.628753"], ["updated_at", "2016-03-07 15:47:31.628753"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.630797"], ["updated_at", "2016-03-07 15:47:31.630797"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.632028"], ["updated_at", "2016-03-07 15:47:31.632028"]] [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-03-07 15:47:31.634556"], ["updated_at", "2016-03-07 15:47:31.634556"]] [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-03-07 15:47:31.635934"], ["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-03-07 15:47:31.639680"], ["updated_at", "2016-03-07 15:47:31.639680"]] [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-03-07 15:47:31.642406"], ["updated_at", "2016-03-07 15:47:31.642406"]] [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"."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.7ms)[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", "2016-03-07 15:47:31.650616"], ["updated_at", "2016-03-07 15:47:31.650616"]] [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", "2016-03-07 15:47:31.654020"], ["updated_at", "2016-03-07 15:47:31.654020"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.656130"], ["updated_at", "2016-03-07 15:47:31.656130"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:47:31.657470"], ["updated_at", "2016-03-07 15:47:31.657470"]] [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-03-07 15:47:31.660175"], ["updated_at", "2016-03-07 15:47:31.660175"]] [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-03-07 15:47:31.661659"], ["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-03-07 15:47:31.663917"], ["updated_at", "2016-03-07 15:47:31.663917"]] [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-03-07 15:47:31.666491"], ["updated_at", "2016-03-07 15:47:31.666491"]] [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-03-07 15:47:31.668237"], ["updated_at", "2016-03-07 15:47:31.668237"]] [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", "2016-03-07 15:47:31.669804"], ["updated_at", "2016-03-07 15:47:31.669804"]] [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- :enrollments\n"], ["updated_at", "2016-03-07 15:47:31.684030"], ["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", "2016-03-07 15:47:31.700246"], ["updated_at", "2016-03-07 15:47:31.700246"]] [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", "2016-03-07 15:47:31.703255"], ["updated_at", "2016-03-07 15:47:31.703255"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.705050"], ["updated_at", "2016-03-07 15:47:31.705050"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.706320"], ["updated_at", "2016-03-07 15:47:31.706320"]] [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-03-07 15:47:31.709141"], ["updated_at", "2016-03-07 15:47:31.709141"]] [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-03-07 15:47:31.710656"], ["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-03-07 15:47:31.712858"], ["updated_at", "2016-03-07 15:47:31.712858"]] [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-03-07 15:47:31.715134"], ["updated_at", "2016-03-07 15:47:31.715134"]] [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-03-07 15:47:31.716738"], ["updated_at", "2016-03-07 15:47:31.716738"]] [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", "2016-03-07 15:47:31.718189"], ["updated_at", "2016-03-07 15:47:31.718189"]] [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", "2016-03-07 15:47:31.732254"], ["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.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.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.1ms)[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.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 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.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 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-03-07 15:47:31.751044"], ["updated_at", "2016-03-07 15:47:31.751044"]] [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 122' 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 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", "2016-03-07 15:47:31.814452"], ["updated_at", "2016-03-07 15:47:31.814452"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:47:31.816993"], ["updated_at", "2016-03-07 15:47:31.816993"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.818250"], ["updated_at", "2016-03-07 15:47:31.818250"]] [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-03-07 15:47:31.820911"], ["updated_at", "2016-03-07 15:47:31.820911"]] [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-03-07 15:47:31.822307"], ["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-03-07 15:47:31.824617"], ["updated_at", "2016-03-07 15:47:31.824617"]] [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-03-07 15:47:31.826906"], ["updated_at", "2016-03-07 15:47:31.826906"]] [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-03-07 15:47:31.828515"], ["updated_at", "2016-03-07 15:47:31.828515"]] [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", "2016-03-07 15:47:31.830014"], ["updated_at", "2016-03-07 15:47:31.830014"]] [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", "2016-03-07 15:47:31.843910"], ["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.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.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.5ms)[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", "2016-03-07 15:47:31.862862"], ["updated_at", "2016-03-07 15:47:31.862862"]] [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.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", "2016-03-07 15:47:31.867254"], ["updated_at", "2016-03-07 15:47:31.867254"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:47:31.869825"], ["updated_at", "2016-03-07 15:47:31.869825"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.871480"], ["updated_at", "2016-03-07 15:47:31.871480"]] [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-03-07 15:47:31.874549"], ["updated_at", "2016-03-07 15:47:31.874549"]] [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-03-07 15:47:31.876128"], ["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", "2016-03-07 15:47:31.878322"], ["updated_at", "2016-03-07 15:47:31.878322"]] [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.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.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-03-07 15:47:31.882221"], ["updated_at", "2016-03-07 15:47:31.882221"]] [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-03-07 15:47:31.884312"], ["updated_at", "2016-03-07 15:47:31.884312"]] [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-03-07 15:47:31.886431"], ["updated_at", "2016-03-07 15:47:31.886431"]] [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.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.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[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", "2016-03-07 15:47:31.902550"], ["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-03-07 15:47:31.908234"], ["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.2ms)[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.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", "2016-03-07 15:47:31.918738"], ["updated_at", "2016-03-07 15:47:31.918738"]] [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.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-03-07 15:47:31.923738"], ["updated_at", "2016-03-07 15:47:31.923738"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.926215"], ["updated_at", "2016-03-07 15:47:31.926215"]] [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", "45"], ["created_at", "2016-03-07 15:47:31.927784"], ["updated_at", "2016-03-07 15:47:31.927784"]] [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-03-07 15:47:31.930958"], ["updated_at", "2016-03-07 15:47:31.930958"]] [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-03-07 15:47:31.933190"], ["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", "2016-03-07 15:47:31.941722"], ["updated_at", "2016-03-07 15:47:31.941722"]] [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", "2016-03-07 15:47:31.944854"], ["updated_at", "2016-03-07 15:47:31.944854"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:31.946774"], ["updated_at", "2016-03-07 15:47:31.946774"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.948125"], ["updated_at", "2016-03-07 15:47:31.948125"]] [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-03-07 15:47:31.950651"], ["updated_at", "2016-03-07 15:47:31.950651"]] [1m[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-03-07 15:47:31.952088"], ["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", "2016-03-07 15:47:31.960157"], ["updated_at", "2016-03-07 15:47:31.960157"]] [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", "2016-03-07 15:47:31.963522"], ["updated_at", "2016-03-07 15:47:31.963522"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.965411"], ["updated_at", "2016-03-07 15:47:31.965411"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:47:31.966587"], ["updated_at", "2016-03-07 15:47:31.966587"]] [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-03-07 15:47:31.969066"], ["updated_at", "2016-03-07 15:47:31.969066"]] [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-03-07 15:47:31.970428"], ["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 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.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", "2016-03-07 15:47:31.980145"], ["updated_at", "2016-03-07 15:47:31.980145"]] [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 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", "2016-03-07 15:47:31.984095"], ["updated_at", "2016-03-07 15:47:31.984095"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:47:31.986104"], ["updated_at", "2016-03-07 15:47:31.986104"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:31.987843"], ["updated_at", "2016-03-07 15:47:31.987843"]] [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-03-07 15:47:31.991290"], ["updated_at", "2016-03-07 15:47:31.991290"]] [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-03-07 15:47:31.993062"], ["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 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.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-03-07 15:47:32.003071"], ["updated_at", "2016-03-07 15:47:32.003071"]] [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.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", "2016-03-07 15:47:32.007041"], ["updated_at", "2016-03-07 15:47:32.007041"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:32.009091"], ["updated_at", "2016-03-07 15:47:32.009091"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:32.010374"], ["updated_at", "2016-03-07 15:47:32.010374"]] [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-03-07 15:47:32.012785"], ["updated_at", "2016-03-07 15:47:32.012785"]] [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-03-07 15:47:32.014114"], ["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 135' 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 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-03-07 15:47:32.021996"], ["updated_at", "2016-03-07 15:47:32.021996"]] [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.1ms)[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", "2016-03-07 15:47:32.025482"], ["updated_at", "2016-03-07 15:47:32.025482"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:32.027464"], ["updated_at", "2016-03-07 15:47:32.027464"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:32.028705"], ["updated_at", "2016-03-07 15:47:32.028705"]] [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-03-07 15:47:32.031322"], ["updated_at", "2016-03-07 15:47:32.031322"]] [1m[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-03-07 15:47:32.032918"], ["id", 1]] [1m[35m (0.1ms)[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.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 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-03-07 15:47:32.102229"], ["updated_at", "2016-03-07 15:47:32.102229"]] [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-03-07 15:47:32.106287"], ["updated_at", "2016-03-07 15:47:32.106287"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:32.108322"], ["updated_at", "2016-03-07 15:47:32.108322"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:32.109650"], ["updated_at", "2016-03-07 15:47:32.109650"]] [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-03-07 15:47:32.112297"], ["updated_at", "2016-03-07 15:47:32.112297"]] [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-03-07 15:47:32.113841"], ["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-03-07 15:47:32.121898"], ["updated_at", "2016-03-07 15:47:32.121898"]] [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.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-03-07 15:47:32.125134"], ["updated_at", "2016-03-07 15:47:32.125134"]] [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-03-07 15:47:32.128106"], ["updated_at", "2016-03-07 15:47:32.128106"]] [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", "52"], ["created_at", "2016-03-07 15:47:32.130241"], ["updated_at", "2016-03-07 15:47:32.130241"]] [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-03-07 15:47:32.133644"], ["updated_at", "2016-03-07 15:47:32.133644"]] [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-03-07 15:47:32.135451"], ["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.1ms)[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-03-07 15:47:32.145385"], ["updated_at", "2016-03-07 15:47:32.145385"]] [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.1ms)[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-03-07 15:47:32.149231"], ["updated_at", "2016-03-07 15:47:32.149231"]] [1m[36m (0.0ms)[0m [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-03-07 15:47:32.151672"], ["updated_at", "2016-03-07 15:47:32.151672"]] [1m[35m (0.0ms)[0m 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-03-07 15:47:32.153082"], ["updated_at", "2016-03-07 15:47:32.153082"]] [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-03-07 15:47:32.155746"], ["updated_at", "2016-03-07 15:47:32.155746"]] [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-03-07 15:47:32.157101"], ["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", "2016-03-07 15:47:32.160177"], ["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.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 3ms (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 1ms (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.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.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", "2016-03-07 15:49:19.668447"], ["updated_at", "2016-03-07 15:49:19.668447"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.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-03-07 15:49:19.682656"], ["updated_at", "2016-03-07 15:49:19.682656"]] [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", "2016-03-07 16:49:19.701158"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:49:19.702320"], ["updated_at", "2016-03-07 15:49:19.702320"]] [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 24ms (Views: 7.1ms | 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.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.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.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 SAVEPOINT active_record_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.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-03-07 15:49:19.735031"], ["updated_at", "2016-03-07 15:49:19.735031"]] [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", "2016-03-07 15:49:19.794248"], ["updated_at", "2016-03-07 15:49:19.794248"]] [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", "1"], ["created_at", "2016-03-07 15:49:19.796863"], ["updated_at", "2016-03-07 15:49:19.796863"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:19.798690"], ["updated_at", "2016-03-07 15:49:19.798690"]] [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 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-03-07 15:49:19.808507"], ["updated_at", "2016-03-07 15:49:19.808507"]] [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-03-07 15:49:19.811857"], ["updated_at", "2016-03-07 15:49:19.811857"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:19.813698"], ["updated_at", "2016-03-07 15:49:19.813698"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:19.814892"], ["updated_at", "2016-03-07 15:49:19.814892"]] [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", "2016-03-07 15:49:19.820682"], ["updated_at", "2016-03-07 15:49:19.820682"]] [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.1ms)[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", "2016-03-07 15:49:19.824836"], ["updated_at", "2016-03-07 15:49:19.824836"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:19.827027"], ["updated_at", "2016-03-07 15:49:19.827027"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:19.828463"], ["updated_at", "2016-03-07 15:49:19.828463"]] [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 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.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.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-03-07 15:49:19.844616"], ["updated_at", "2016-03-07 15:49:19.844616"]] [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.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", "2016-03-07 15:49:19.848730"], ["updated_at", "2016-03-07 15:49:19.848730"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:19.850650"], ["updated_at", "2016-03-07 15:49:19.850650"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:19.851972"], ["updated_at", "2016-03-07 15:49:19.851972"]] [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.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", "2016-03-07 15:49:19.858339"], ["updated_at", "2016-03-07 15:49:19.858339"]] [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", "2016-03-07 15:49:19.861292"], ["updated_at", "2016-03-07 15:49:19.861292"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:19.863224"], ["updated_at", "2016-03-07 15:49:19.863224"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:19.864444"], ["updated_at", "2016-03-07 15:49:19.864444"]] [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", "2016-03-07 15:49:19.869310"], ["updated_at", "2016-03-07 15:49:19.869310"]] [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", "2016-03-07 15:49:19.872495"], ["updated_at", "2016-03-07 15:49:19.872495"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:19.874493"], ["updated_at", "2016-03-07 15:49:19.874493"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:19.875771"], ["updated_at", "2016-03-07 15:49:19.875771"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:19.877480"], ["updated_at", "2016-03-07 15:49:19.877480"]] [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", "2016-03-07 15:49:19.880524"], ["updated_at", "2016-03-07 15:49:19.880524"]] 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.1ms)[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.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", "2016-03-07 15:49:19.886408"], ["updated_at", "2016-03-07 15:49:19.886408"]] [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", "2016-03-07 15:49:19.889783"], ["updated_at", "2016-03-07 15:49:19.889783"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:19.891825"], ["updated_at", "2016-03-07 15:49:19.891825"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:19.893039"], ["updated_at", "2016-03-07 15:49:19.893039"]] [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.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", "2016-03-07 15:49:19.900627"], ["updated_at", "2016-03-07 15:49:19.900627"]] [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.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.1ms)[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", "2016-03-08 15:49:19.913849"], ["created_at", "2016-03-07 15:49:19.915159"], ["updated_at", "2016-03-07 15:49:19.915159"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:49:19.924600"], ["updated_at", "2016-03-07 15:49:19.924600"]] [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", "2016-03-07 15:49:19.926130"], ["updated_at", "2016-03-07 15:49:19.926130"]] [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", "2016-03-07 15:49:19.927760"], ["updated_at", "2016-03-07 15:49:19.927760"]] [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" 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.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 16' 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 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", "2016-03-07 15:49:19.938947"], ["updated_at", "2016-03-07 15:49:19.938947"]] [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-03-07 15:49:19.942684"], ["updated_at", "2016-03-07 15:49:19.942684"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:19.944816"], ["updated_at", "2016-03-07 15:49:19.944816"]] [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 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-03-07 15:49:19.950374"], ["updated_at", "2016-03-07 15:49:19.950374"]] [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", "2016-03-07 15:49:19.953366"], ["updated_at", "2016-03-07 15:49:19.953366"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:19.955528"], ["updated_at", "2016-03-07 15:49:19.955528"]] [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.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.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", "2016-03-07 15:49:19.960565"], ["updated_at", "2016-03-07 15:49:19.960565"]] [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", "2016-03-07 15:49:20.019423"], ["updated_at", "2016-03-07 15:49:20.019423"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.022156"], ["updated_at", "2016-03-07 15:49:20.022156"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.023873"], ["updated_at", "2016-03-07 15:49:20.023873"]] [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-03-07 15:49:20.027845"], ["updated_at", "2016-03-07 15:49:20.027845"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.029718"], ["updated_at", "2016-03-07 15:49:20.029718"]] [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-03-07 15:49:20.030879"], ["updated_at", "2016-03-07 15:49:20.030879"]] 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.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 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", "2016-03-07 15:49:20.035710"], ["updated_at", "2016-03-07 15:49:20.035710"]] [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", "2016-03-07 15:49:20.037573"], ["updated_at", "2016-03-07 15:49:20.037573"]] [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", "2016-03-07 15:49:20.040499"], ["updated_at", "2016-03-07 15:49:20.040499"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.042348"], ["updated_at", "2016-03-07 15:49:20.042348"]] [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", "2016-03-07 15:49:20.045335"], ["updated_at", "2016-03-07 15:49:20.045335"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:20.047127"], ["updated_at", "2016-03-07 15:49:20.047127"]] 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", "2016-03-07 15:49:20.051659"], ["updated_at", "2016-03-07 15:49:20.051659"]] [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", "2016-03-07 15:49:20.054564"], ["updated_at", "2016-03-07 15:49:20.054564"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.056395"], ["updated_at", "2016-03-07 15:49:20.056395"]] [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", "2016-03-07 15:49:20.068024"], ["updated_at", "2016-03-07 15:49:20.068024"]] [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", "2016-03-07 15:49:20.070332"], ["updated_at", "2016-03-07 15:49:20.070332"]] [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", "2016-03-07 15:49:20.080629"], ["updated_at", "2016-03-07 15:49:20.080629"]] [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", "2016-03-07 15:49:20.083792"], ["updated_at", "2016-03-07 15:49:20.083792"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.085295"], ["updated_at", "2016-03-07 15:49:20.085295"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.086407"], ["updated_at", "2016-03-07 15:49:20.086407"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.088321"], ["updated_at", "2016-03-07 15:49:20.088321"]] [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", "2016-03-07 15:49:20.094933"], ["updated_at", "2016-03-07 15:49:20.094933"]] [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", "2016-03-07 15:49:20.097079"], ["updated_at", "2016-03-07 15:49:20.097079"]] [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-03-07 15:49:20.099673"], ["updated_at", "2016-03-07 15:49:20.099673"]] [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", "2016-03-07 15:49:20.102512"], ["updated_at", "2016-03-07 15:49:20.102512"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.103996"], ["updated_at", "2016-03-07 15:49:20.103996"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.105085"], ["updated_at", "2016-03-07 15:49:20.105085"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.106174"], ["updated_at", "2016-03-07 15:49:20.106174"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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 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", "2016-03-07 15:49:20.112334"], ["updated_at", "2016-03-07 15:49:20.112334"]] [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", "2016-03-07 15:49:20.114572"], ["updated_at", "2016-03-07 15:49:20.114572"]] [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", "2016-03-07 15:49:20.117350"], ["updated_at", "2016-03-07 15:49:20.117350"]] [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-03-07 15:49:20.120280"], ["updated_at", "2016-03-07 15:49:20.120280"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.121859"], ["updated_at", "2016-03-07 15:49:20.121859"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.123004"], ["updated_at", "2016-03-07 15:49:20.123004"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.124115"], ["updated_at", "2016-03-07 15:49:20.124115"]] [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-03-07 15:49:20.129320"], ["updated_at", "2016-03-07 15:49:20.129320"]] [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", "2016-03-07 15:49:20.131644"], ["updated_at", "2016-03-07 15:49:20.131644"]] [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", "2016-03-07 15:49:20.134320"], ["updated_at", "2016-03-07 15:49:20.134320"]] [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.1ms)[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", "2016-03-07 15:49:20.137065"], ["updated_at", "2016-03-07 15:49:20.137065"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.138683"], ["updated_at", "2016-03-07 15:49:20.138683"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.139808"], ["updated_at", "2016-03-07 15:49:20.139808"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.140940"], ["updated_at", "2016-03-07 15:49:20.140940"]] [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_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-03-07 15:49:20.142692"], ["updated_at", "2016-03-07 15:49:20.142692"]] [1m[36m (0.0ms)[0m [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", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:49:20.144624"], ["updated_at", "2016-03-07 15:49:20.144624"]] 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", "2016-03-07 15:49:20.149667"], ["updated_at", "2016-03-07 15:49:20.149667"]] [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-03-07 15:49:20.151704"], ["updated_at", "2016-03-07 15:49:20.151704"]] [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", "2016-03-07 15:49:20.154460"], ["updated_at", "2016-03-07 15:49:20.154460"]] [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", "2016-03-07 15:49:20.157344"], ["updated_at", "2016-03-07 15:49:20.157344"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.158874"], ["updated_at", "2016-03-07 15:49:20.158874"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.160010"], ["updated_at", "2016-03-07 15:49:20.160010"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.161117"], ["updated_at", "2016-03-07 15:49:20.161117"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.162632"], ["updated_at", "2016-03-07 15:49:20.162632"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.164400"], ["updated_at", "2016-03-07 15:49:20.164400"]] [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", "2016-03-07 15:49:20.169756"], ["updated_at", "2016-03-07 15:49:20.169756"]] [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_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-03-07 15:49:20.172176"], ["updated_at", "2016-03-07 15:49:20.172176"]] [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 44' 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 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-03-07 15:49:20.177955"], ["updated_at", "2016-03-07 15:49:20.177955"]] [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", "2016-03-07 15:49:20.182033"], ["updated_at", "2016-03-07 15:49:20.182033"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.183991"], ["updated_at", "2016-03-07 15:49:20.183991"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.185407"], ["updated_at", "2016-03-07 15:49:20.185407"]] [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_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-03-07 15:49:20.186885"], ["updated_at", "2016-03-07 15:49:20.186885"]] [1m[35m (0.1ms)[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.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.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.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-03-07 15:49:20.201382"], ["updated_at", "2016-03-07 15:49:20.201382"]] [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 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.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-03-07 15:49:20.205947"], ["updated_at", "2016-03-07 15:49:20.205947"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.208407"], ["updated_at", "2016-03-07 15:49:20.208407"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.209876"], ["updated_at", "2016-03-07 15:49:20.209876"]] [1m[35m (0.1ms)[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 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-03-07 15:49:20.218620"], ["updated_at", "2016-03-07 15:49:20.218620"]] [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", "2016-03-07 15:49:20.222303"], ["updated_at", "2016-03-07 15:49:20.222303"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.224424"], ["updated_at", "2016-03-07 15:49:20.224424"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.225701"], ["updated_at", "2016-03-07 15:49:20.225701"]] [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", "2016-03-07 15:49:20.230665"], ["updated_at", "2016-03-07 15:49:20.230665"]] [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-03-07 15:49:20.233617"], ["updated_at", "2016-03-07 15:49:20.233617"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.235560"], ["updated_at", "2016-03-07 15:49:20.235560"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.236688"], ["updated_at", "2016-03-07 15:49:20.236688"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.238269"], ["updated_at", "2016-03-07 15:49:20.238269"]] [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-03-07 15:49:20.240017"], ["updated_at", "2016-03-07 15:49:20.240017"]] 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.1ms)[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", "2016-03-07 15:49:20.245173"], ["updated_at", "2016-03-07 15:49:20.245173"]] [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", "2016-03-07 15:49:20.249016"], ["updated_at", "2016-03-07 15:49:20.249016"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.251205"], ["updated_at", "2016-03-07 15:49:20.251205"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.252678"], ["updated_at", "2016-03-07 15:49:20.252678"]] [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", "2016-03-07 15:49:20.317582"], ["updated_at", "2016-03-07 15:49:20.317582"]] [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", "2016-03-07 15:49:20.320041"], ["updated_at", "2016-03-07 15:49:20.320041"]] [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", "2016-03-07 15:49:20.323672"], ["updated_at", "2016-03-07 15:49:20.323672"]] [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", "2016-03-07 15:49:20.326424"], ["updated_at", "2016-03-07 15:49:20.326424"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.328084"], ["updated_at", "2016-03-07 15:49:20.328084"]] [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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-03-07 15:49:20.329212"], ["updated_at", "2016-03-07 15:49:20.329212"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.330662"], ["updated_at", "2016-03-07 15:49:20.330662"]] [1m[36m (0.0ms)[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 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.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 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-03-07 15:49:20.338717"], ["updated_at", "2016-03-07 15:49:20.338717"]] [1m[35m (0.1ms)[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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:49:20.342174"], ["updated_at", "2016-03-07 15:49:20.342174"]] [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", "2016-03-07 15:49:20.346026"], ["updated_at", "2016-03-07 15:49:20.346026"]] [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-03-07 15:49:20.348898"], ["updated_at", "2016-03-07 15:49:20.348898"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.350457"], ["updated_at", "2016-03-07 15:49:20.350457"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.351620"], ["updated_at", "2016-03-07 15:49:20.351620"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.352736"], ["updated_at", "2016-03-07 15:49:20.352736"]] [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-03-07 15:49:20.358933"], ["updated_at", "2016-03-07 15:49:20.358933"]] [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-03-07 15:49:20.361356"], ["updated_at", "2016-03-07 15:49:20.361356"]] [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-03-07 15:49:20.364555"], ["updated_at", "2016-03-07 15:49:20.364555"]] [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-03-07 15:49:20.367387"], ["updated_at", "2016-03-07 15:49:20.367387"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.368859"], ["updated_at", "2016-03-07 15:49:20.368859"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.370109"], ["updated_at", "2016-03-07 15:49:20.370109"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.371279"], ["updated_at", "2016-03-07 15:49:20.371279"]] [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 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.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-03-07 15:49:20.376329"], ["updated_at", "2016-03-07 15:49:20.376329"]] [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_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-03-07 15:49:20.378623"], ["updated_at", "2016-03-07 15:49:20.378623"]] [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 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", "2016-03-07 15:49:20.382415"], ["updated_at", "2016-03-07 15:49:20.382415"]] [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 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", "2016-03-07 15:49:20.386103"], ["updated_at", "2016-03-07 15:49:20.386103"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.387802"], ["updated_at", "2016-03-07 15:49:20.387802"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.389021"], ["updated_at", "2016-03-07 15:49:20.389021"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.390214"], ["updated_at", "2016-03-07 15:49:20.390214"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:20.391930"], ["updated_at", "2016-03-07 15:49:20.391930"]] [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", "2016-03-07 15:49:20.393749"], ["updated_at", "2016-03-07 15:49:20.393749"]] 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.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", "2016-03-07 15:49:20.398989"], ["updated_at", "2016-03-07 15:49:20.398989"]] [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-03-07 15:49:20.400996"], ["updated_at", "2016-03-07 15:49:20.400996"]] [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-03-07 15:49:20.403810"], ["updated_at", "2016-03-07 15:49:20.403810"]] [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.0ms)[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-03-07 15:49:20.406760"], ["updated_at", "2016-03-07 15:49:20.406760"]] [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-03-07 15:49:20.408663"], ["updated_at", "2016-03-07 15:49:20.408663"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.410047"], ["updated_at", "2016-03-07 15:49:20.410047"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.411298"], ["updated_at", "2016-03-07 15:49:20.411298"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.412948"], ["updated_at", "2016-03-07 15:49:20.412948"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.414497"], ["updated_at", "2016-03-07 15:49:20.414497"]] [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", "2016-03-07 15:49:20.419175"], ["updated_at", "2016-03-07 15:49:20.419175"]] [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-03-07 15:49:20.421269"], ["updated_at", "2016-03-07 15:49:20.421269"]] [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", "2016-03-07 15:49:20.424452"], ["updated_at", "2016-03-07 15:49:20.424452"]] [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 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", "2016-03-07 15:49:20.428793"], ["updated_at", "2016-03-07 15:49:20.428793"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.430355"], ["updated_at", "2016-03-07 15:49:20.430355"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.431792"], ["updated_at", "2016-03-07 15:49:20.431792"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.433299"], ["updated_at", "2016-03-07 15:49:20.433299"]] [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-03-07 15:49:20.439804"], ["updated_at", "2016-03-07 15:49:20.439804"]] [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-03-07 15:49:20.444917"], ["updated_at", "2016-03-07 15:49:20.444917"]] [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", "2016-03-07 15:49:20.447120"], ["updated_at", "2016-03-07 15:49:20.447120"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:20.448832"], ["updated_at", "2016-03-07 15:49:20.448832"]] 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.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.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", "2016-03-07 15:49:20.455329"], ["updated_at", "2016-03-07 15:49:20.455329"]] [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", "2016-03-07 15:49:20.461744"], ["updated_at", "2016-03-07 15:49:20.461744"]] [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.1ms)[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-03-07 15:49:20.467343"], ["updated_at", "2016-03-07 15:49:20.467343"]] [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-03-07 15:49:20.470365"], ["updated_at", "2016-03-07 15:49:20.470365"]] [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-03-07 15:49:20.472740"], ["updated_at", "2016-03-07 15:49:20.472740"]] 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", "2016-03-07 15:49:20.477319"], ["updated_at", "2016-03-07 15:49:20.477319"]] [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 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-03-07 15:49:20.485748"], ["updated_at", "2016-03-07 15:49:20.485748"]] [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.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", "2016-03-07 15:49:20.496872"], ["updated_at", "2016-03-07 15:49:20.496872"]] [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- :users\n"], ["updated_at", "2016-03-07 15:49:20.498908"], ["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" 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.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 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.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 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-03-07 15:49:20.508108"], ["updated_at", "2016-03-07 15:49:20.508108"]] [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-03-07 15:49:20.511833"], ["updated_at", "2016-03-07 15:49:20.511833"]] [1m[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-03-07 15:49:20.514002"], ["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.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 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-03-07 15:49:20.519501"], ["updated_at", "2016-03-07 15:49:20.519501"]] [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.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-03-07 15:49:20.581629"], ["updated_at", "2016-03-07 15:49:20.581629"]] [1m[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-03-07 15:49:20.583875"], ["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", "2016-03-07 15:49:20.599286"], ["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", "2016-03-07 15:49:20.603841"], ["updated_at", "2016-03-07 15:49:20.603841"]] [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-03-07 15:49:20.605816"], ["updated_at", "2016-03-07 15:49:20.605816"]] [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-03-07 15:49:20.607760"], ["updated_at", "2016-03-07 15:49:20.607760"]] [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-03-07 15:49:20.610187"], ["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-03-07 15:49:20.611407"], ["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", "2016-03-07 15:49:20.617373"], ["updated_at", "2016-03-07 15:49:20.617373"]] [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-03-07 15:49:20.620696"], ["updated_at", "2016-03-07 15:49:20.620696"]] [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-03-07 15:49:20.622524"], ["id", 1]] [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"."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", "2016-03-07 15:49:20.627792"], ["updated_at", "2016-03-07 15:49:20.627792"]] [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", "2016-03-07 15:49:20.630658"], ["updated_at", "2016-03-07 15:49:20.630658"]] [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", "2016-03-07 15:49:20.637059"], ["updated_at", "2016-03-07 15:49:20.637059"]] [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-03-07 15:49:20.640138"], ["updated_at", "2016-03-07 15:49:20.640138"]] [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-03-07 15:49:20.641696"], ["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", "2016-03-07 15:49:20.643834"], ["updated_at", "2016-03-07 15:49:20.643834"]] [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", "2016-03-07 15:49:20.647129"], ["updated_at", "2016-03-07 15:49:20.647129"]] [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-03-07 15:49:20.649305"], ["updated_at", "2016-03-07 15:49:20.649305"]] [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.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[35m (0.0ms)[0m SAVEPOINT active_record_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-03-07 15:49:20.656453"], ["updated_at", "2016-03-07 15:49:20.656453"]] [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-03-07 15:49:20.660211"], ["updated_at", "2016-03-07 15:49:20.660211"]] [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-03-07 15:49:20.661704"], ["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 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", "2016-03-07 15:49:20.667710"], ["updated_at", "2016-03-07 15:49:20.667710"]] [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-03-07 15:49:20.671321"], ["updated_at", "2016-03-07 15:49:20.671321"]] [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-03-07 15:49:20.672935"], ["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", "2016-03-07 15:49:20.679773"], ["updated_at", "2016-03-07 15:49:20.679773"]] [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", "2016-03-07 15:49:20.682990"], ["updated_at", "2016-03-07 15:49:20.682990"]] [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-03-07 15:49:20.684487"], ["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", "2016-03-07 15:49:20.687544"], ["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.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 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-03-07 15:49:20.696918"], ["updated_at", "2016-03-07 15:49:20.696918"]] [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.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", "2016-03-07 15:49:20.700508"], ["updated_at", "2016-03-07 15:49:20.700508"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.702591"], ["updated_at", "2016-03-07 15:49:20.702591"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.703820"], ["updated_at", "2016-03-07 15:49:20.703820"]] [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-03-07 15:49:20.706972"], ["updated_at", "2016-03-07 15:49:20.706972"]] [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-03-07 15:49:20.708427"], ["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 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", "2016-03-07 15:49:20.716054"], ["updated_at", "2016-03-07 15:49:20.716054"]] [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", "2016-03-07 15:49:20.719311"], ["updated_at", "2016-03-07 15:49:20.719311"]] [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", "32"], ["created_at", "2016-03-07 15:49:20.721708"], ["updated_at", "2016-03-07 15:49:20.721708"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.723085"], ["updated_at", "2016-03-07 15:49:20.723085"]] [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-03-07 15:49:20.726049"], ["updated_at", "2016-03-07 15:49:20.726049"]] [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-03-07 15:49:20.727889"], ["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 91' 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 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-03-07 15:49:20.736600"], ["updated_at", "2016-03-07 15:49:20.736600"]] [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 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", "2016-03-07 15:49:20.740631"], ["updated_at", "2016-03-07 15:49:20.740631"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.742840"], ["updated_at", "2016-03-07 15:49:20.742840"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.744153"], ["updated_at", "2016-03-07 15:49:20.744153"]] [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-03-07 15:49:20.746905"], ["updated_at", "2016-03-07 15:49:20.746905"]] [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", "2016-03-07 15:49:20.748216"], ["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", "2016-03-07 15:49:20.755182"], ["updated_at", "2016-03-07 15:49:20.755182"]] [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 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-03-07 15:49:20.759130"], ["updated_at", "2016-03-07 15:49:20.759130"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.761081"], ["updated_at", "2016-03-07 15:49:20.761081"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.762296"], ["updated_at", "2016-03-07 15:49:20.762296"]] [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-03-07 15:49:20.764807"], ["updated_at", "2016-03-07 15:49:20.764807"]] [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-03-07 15:49:20.766175"], ["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", "2016-03-07 15:49:20.773709"], ["updated_at", "2016-03-07 15:49:20.773709"]] [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", "2016-03-07 15:49:20.776895"], ["updated_at", "2016-03-07 15:49:20.776895"]] [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", "35"], ["created_at", "2016-03-07 15:49:20.779145"], ["updated_at", "2016-03-07 15:49:20.779145"]] [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", "30"], ["created_at", "2016-03-07 15:49:20.781079"], ["updated_at", "2016-03-07 15:49:20.781079"]] [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-03-07 15:49:20.784848"], ["updated_at", "2016-03-07 15:49:20.784848"]] [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-03-07 15:49:20.786652"], ["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", "2016-03-07 15:49:20.794337"], ["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-03-07 15:49:20.798895"], ["updated_at", "2016-03-07 15:49:20.798895"]] [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", "2016-03-07 15:49:20.801285"], ["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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (58.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", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:49:20.804273"], ["updated_at", "2016-03-07 15:49:20.804273"]] [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-03-07 15:49:20.864704"], ["updated_at", "2016-03-07 15:49:20.864704"]] [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-03-07 15:49:20.866391"], ["updated_at", "2016-03-07 15:49:20.866391"]] [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", "2016-03-07 15:49:20.874126"], ["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.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[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-03-07 15:49:20.889247"], ["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", "2016-03-07 15:49:20.892593"], ["updated_at", "2016-03-07 15:49:20.892593"]] [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", "2016-03-07 15:49:20.894253"], ["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", "2016-03-07 15:49:20.911033"], ["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", "2016-03-07 15:49:20.913840"], ["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", "2016-03-07 15:49:20.925434"], ["updated_at", "2016-03-07 15:49:20.925434"]] [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-03-07 15:49:20.927898"], ["updated_at", "2016-03-07 15:49:20.927898"]] [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", "2016-03-07 15:49:20.929553"], ["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", "2016-03-07 15:49:20.941531"], ["updated_at", "2016-03-07 15:49:20.941531"]] [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", "2016-03-07 15:49:20.944562"], ["updated_at", "2016-03-07 15:49:20.944562"]] [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[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"."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-03-07 15:49:20.950397"], ["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-03-07 15:49:20.951544"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[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.0ms)[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-03-07 15:49:20.959986"], ["updated_at", "2016-03-07 15:49:20.959986"]] [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-03-07 15:49:20.963076"], ["updated_at", "2016-03-07 15:49:20.963076"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:20.965030"], ["updated_at", "2016-03-07 15:49:20.965030"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:20.966316"], ["updated_at", "2016-03-07 15:49:20.966316"]] [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-03-07 15:49:20.968773"], ["updated_at", "2016-03-07 15:49:20.968773"]] [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-03-07 15:49:20.970079"], ["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-03-07 15:49:20.972254"], ["updated_at", "2016-03-07 15:49:20.972254"]] [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.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 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.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 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-03-07 15:49:20.979912"], ["updated_at", "2016-03-07 15:49:20.979912"]] [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.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.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 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-03-07 15:49:20.983010"], ["updated_at", "2016-03-07 15:49:20.983010"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:49:20.985120"], ["updated_at", "2016-03-07 15:49:20.985120"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:49:20.986539"], ["updated_at", "2016-03-07 15:49:20.986539"]] [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-03-07 15:49:20.989434"], ["updated_at", "2016-03-07 15:49:20.989434"]] [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-03-07 15:49:20.991008"], ["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", "2016-03-07 15:49:20.993291"], ["updated_at", "2016-03-07 15:49:20.993291"]] [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-03-07 15:49:20.994988"], ["updated_at", "2016-03-07 15:49:20.994988"]] [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-03-07 15:49:20.996805"], ["updated_at", "2016-03-07 15:49:20.996805"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [1m[36m (0.9ms)[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.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 101' 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 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-03-07 15:49:21.006276"], ["updated_at", "2016-03-07 15:49:21.006276"]] [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.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.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 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-03-07 15:49:21.010142"], ["updated_at", "2016-03-07 15:49:21.010142"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.012486"], ["updated_at", "2016-03-07 15:49:21.012486"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.014384"], ["updated_at", "2016-03-07 15:49:21.014384"]] [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-03-07 15:49:21.079516"], ["updated_at", "2016-03-07 15:49:21.079516"]] [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-03-07 15:49:21.081735"], ["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-03-07 15:49:21.084376"], ["updated_at", "2016-03-07 15:49:21.084376"]] [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.1ms)[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", "2016-03-07 15:49:21.087250"], ["updated_at", "2016-03-07 15:49:21.087250"]] [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", "2016-03-07 15:49:21.090554"], ["updated_at", "2016-03-07 15:49:21.090554"]] [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-03-07 15:49:21.092782"], ["updated_at", "2016-03-07 15:49:21.092782"]] [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[36m (0.0ms)[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.5ms)[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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:49:21.115167"], ["updated_at", "2016-03-07 15:49:21.115167"]] [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 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-03-07 15:49:21.118412"], ["updated_at", "2016-03-07 15:49:21.118412"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.120297"], ["updated_at", "2016-03-07 15:49:21.120297"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.121502"], ["updated_at", "2016-03-07 15:49:21.121502"]] [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-03-07 15:49:21.123945"], ["updated_at", "2016-03-07 15:49:21.123945"]] [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-03-07 15:49:21.125309"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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-03-07 15:49:21.131321"], ["updated_at", "2016-03-07 15:49:21.131321"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.8ms)[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.1ms)[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-03-07 15:49:21.138810"], ["updated_at", "2016-03-07 15:49:21.138810"]] [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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 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-03-07 15:49:21.142154"], ["updated_at", "2016-03-07 15:49:21.142154"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.144317"], ["updated_at", "2016-03-07 15:49:21.144317"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.145601"], ["updated_at", "2016-03-07 15:49:21.145601"]] [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.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", "2016-03-07 15:49:21.148458"], ["updated_at", "2016-03-07 15:49:21.148458"]] [1m[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-03-07 15:49:21.150358"], ["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.2ms)[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-03-07 15:49:21.153003"], ["updated_at", "2016-03-07 15:49:21.153003"]] [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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" = ? 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", "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.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[35m (0.0ms)[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.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[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.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 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-03-07 15:49:21.173808"], ["updated_at", "2016-03-07 15:49:21.173808"]] [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.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 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-03-07 15:49:21.177369"], ["updated_at", "2016-03-07 15:49:21.177369"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.179283"], ["updated_at", "2016-03-07 15:49:21.179283"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.180782"], ["updated_at", "2016-03-07 15:49:21.180782"]] [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-03-07 15:49:21.183814"], ["updated_at", "2016-03-07 15:49:21.183814"]] [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-03-07 15:49:21.185337"], ["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-03-07 15:49:21.187678"], ["updated_at", "2016-03-07 15:49:21.187678"]] [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.9ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.2ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [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 109' 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 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-03-07 15:49:21.196607"], ["updated_at", "2016-03-07 15:49:21.196607"]] [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 110' 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 110' 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 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-03-07 15:49:21.200980"], ["updated_at", "2016-03-07 15:49:21.200980"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.203578"], ["updated_at", "2016-03-07 15:49:21.203578"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:49:21.205177"], ["updated_at", "2016-03-07 15:49:21.205177"]] [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.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-03-07 15:49:21.208982"], ["updated_at", "2016-03-07 15:49:21.208982"]] [1m[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-03-07 15:49:21.210736"], ["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-03-07 15:49:21.214123"], ["updated_at", "2016-03-07 15:49:21.214123"]] [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-03-07 15:49:21.217157"], ["updated_at", "2016-03-07 15:49:21.217157"]] [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-03-07 15:49:21.219094"], ["updated_at", "2016-03-07 15:49:21.219094"]] [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-03-07 15:49:21.220892"], ["updated_at", "2016-03-07 15:49:21.220892"]] [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::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.2ms)[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-03-07 15:49:21.246957"], ["updated_at", "2016-03-07 15:49:21.246957"]] [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.0ms)[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-03-07 15:49:21.250175"], ["updated_at", "2016-03-07 15:49:21.250175"]] [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.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.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-03-07 15:49:21.253081"], ["updated_at", "2016-03-07 15:49:21.253081"]] [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.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", "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", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:49:21.256109"], ["updated_at", "2016-03-07 15:49:21.256109"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.0ms)[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.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.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-03-07 15:49:21.264034"], ["updated_at", "2016-03-07 15:49:21.264034"]] [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 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-03-07 15:49:21.267269"], ["updated_at", "2016-03-07 15:49:21.267269"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.269243"], ["updated_at", "2016-03-07 15:49:21.269243"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.270399"], ["updated_at", "2016-03-07 15:49:21.270399"]] [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-03-07 15:49:21.332054"], ["updated_at", "2016-03-07 15:49:21.332054"]] [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", "2016-03-07 15:49:21.334221"], ["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-03-07 15:49:21.336852"], ["updated_at", "2016-03-07 15:49:21.336852"]] [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-03-07 15:49:21.341171"], ["updated_at", "2016-03-07 15:49:21.341171"]] [1m[36m (0.1ms)[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-03-07 15:49:21.344163"], ["updated_at", "2016-03-07 15:49:21.344163"]] [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.8ms)[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 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[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-03-07 15:49:21.352410"], ["updated_at", "2016-03-07 15:49:21.352410"]] [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 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.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", "2016-03-07 15:49:21.355320"], ["updated_at", "2016-03-07 15:49:21.355320"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.357347"], ["updated_at", "2016-03-07 15:49:21.357347"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.358624"], ["updated_at", "2016-03-07 15:49:21.358624"]] [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-03-07 15:49:21.362051"], ["updated_at", "2016-03-07 15:49:21.362051"]] [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-03-07 15:49:21.363975"], ["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-03-07 15:49:21.366750"], ["updated_at", "2016-03-07 15:49:21.366750"]] [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-03-07 15:49:21.369259"], ["updated_at", "2016-03-07 15:49:21.369259"]] [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-03-07 15:49:21.370945"], ["updated_at", "2016-03-07 15:49:21.370945"]] [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", "2016-03-07 15:49:21.372585"], ["updated_at", "2016-03-07 15:49:21.372585"]] [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.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::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.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.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-03-07 15:49:21.390351"], ["updated_at", "2016-03-07 15:49:21.390351"]] [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-03-07 15:49:21.393785"], ["updated_at", "2016-03-07 15:49:21.393785"]] [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.0ms)[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.0ms)[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-03-07 15:49:21.404209"], ["updated_at", "2016-03-07 15:49:21.404209"]] [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.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.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 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-03-07 15:49:21.407336"], ["updated_at", "2016-03-07 15:49:21.407336"]] [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", "45"], ["created_at", "2016-03-07 15:49:21.409363"], ["updated_at", "2016-03-07 15:49:21.409363"]] [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", "40"], ["created_at", "2016-03-07 15:49:21.410498"], ["updated_at", "2016-03-07 15:49:21.410498"]] [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-03-07 15:49:21.414387"], ["updated_at", "2016-03-07 15:49:21.414387"]] [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-03-07 15:49:21.416218"], ["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-03-07 15:49:21.420655"], ["updated_at", "2016-03-07 15:49:21.420655"]] [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-03-07 15:49:21.423230"], ["updated_at", "2016-03-07 15:49:21.423230"]] [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"."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.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", "2016-03-07 15:49:21.431298"], ["updated_at", "2016-03-07 15:49:21.431298"]] [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.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-03-07 15:49:21.434354"], ["updated_at", "2016-03-07 15:49:21.434354"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.436501"], ["updated_at", "2016-03-07 15:49:21.436501"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:21.437835"], ["updated_at", "2016-03-07 15:49:21.437835"]] [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-03-07 15:49:21.440673"], ["updated_at", "2016-03-07 15:49:21.440673"]] [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-03-07 15:49:21.442285"], ["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-03-07 15:49:21.444571"], ["updated_at", "2016-03-07 15:49:21.444571"]] [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.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.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-03-07 15:49:21.447115"], ["updated_at", "2016-03-07 15:49:21.447115"]] [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-03-07 15:49:21.448811"], ["updated_at", "2016-03-07 15:49:21.448811"]] [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", "2016-03-07 15:49:21.450405"], ["updated_at", "2016-03-07 15:49:21.450405"]] [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", "2016-03-07 15:49:21.466441"], ["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.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.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", "2016-03-07 15:49:21.484972"], ["updated_at", "2016-03-07 15:49:21.484972"]] [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", "2016-03-07 15:49:21.489068"], ["updated_at", "2016-03-07 15:49:21.489068"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.491625"], ["updated_at", "2016-03-07 15:49:21.491625"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.493286"], ["updated_at", "2016-03-07 15:49:21.493286"]] [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-03-07 15:49:21.496528"], ["updated_at", "2016-03-07 15:49:21.496528"]] [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-03-07 15:49:21.498203"], ["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-03-07 15:49:21.500608"], ["updated_at", "2016-03-07 15:49:21.500608"]] [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-03-07 15:49:21.502932"], ["updated_at", "2016-03-07 15:49:21.502932"]] [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-03-07 15:49:21.504513"], ["updated_at", "2016-03-07 15:49:21.504513"]] [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", "2016-03-07 15:49:21.506068"], ["updated_at", "2016-03-07 15:49:21.506068"]] [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.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.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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:49:21.525886"], ["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.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.1ms)[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.3ms)[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 121' 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 121' 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 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-03-07 15:49:21.607989"], ["updated_at", "2016-03-07 15:49:21.607989"]] [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.1ms)[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", "2016-03-07 15:49:21.612604"], ["updated_at", "2016-03-07 15:49:21.612604"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:21.615113"], ["updated_at", "2016-03-07 15:49:21.615113"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.616678"], ["updated_at", "2016-03-07 15:49:21.616678"]] [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-03-07 15:49:21.619710"], ["updated_at", "2016-03-07 15:49:21.619710"]] [1m[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-03-07 15:49:21.621211"], ["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-03-07 15:49:21.624180"], ["updated_at", "2016-03-07 15:49:21.624180"]] [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-03-07 15:49:21.626751"], ["updated_at", "2016-03-07 15:49:21.626751"]] [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-03-07 15:49:21.628636"], ["updated_at", "2016-03-07 15:49:21.628636"]] [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", "2016-03-07 15:49:21.630262"], ["updated_at", "2016-03-07 15:49:21.630262"]] [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.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", "2016-03-07 15:49:21.645098"], ["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.5ms)[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.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-03-07 15:49:21.661516"], ["updated_at", "2016-03-07 15:49:21.661516"]] [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", "2016-03-07 15:49:21.664791"], ["updated_at", "2016-03-07 15:49:21.664791"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:21.666885"], ["updated_at", "2016-03-07 15:49:21.666885"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.668455"], ["updated_at", "2016-03-07 15:49:21.668455"]] [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-03-07 15:49:21.671540"], ["updated_at", "2016-03-07 15:49:21.671540"]] [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-03-07 15:49:21.673128"], ["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-03-07 15:49:21.675579"], ["updated_at", "2016-03-07 15:49:21.675579"]] [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-03-07 15:49:21.677890"], ["updated_at", "2016-03-07 15:49:21.677890"]] [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-03-07 15:49:21.679469"], ["updated_at", "2016-03-07 15:49:21.679469"]] [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", "2016-03-07 15:49:21.681070"], ["updated_at", "2016-03-07 15:49:21.681070"]] [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.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[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-03-07 15:49:21.697532"], ["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-03-07 15:49:21.705142"], ["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.2ms)[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", "2016-03-07 15:49:21.717698"], ["updated_at", "2016-03-07 15:49:21.717698"]] [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 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.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-03-07 15:49:21.723122"], ["updated_at", "2016-03-07 15:49:21.723122"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.725786"], ["updated_at", "2016-03-07 15:49:21.725786"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.727406"], ["updated_at", "2016-03-07 15:49:21.727406"]] [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-03-07 15:49:21.730445"], ["updated_at", "2016-03-07 15:49:21.730445"]] [1m[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-03-07 15:49:21.731997"], ["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 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-03-07 15:49:21.739617"], ["updated_at", "2016-03-07 15:49:21.739617"]] [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.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 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-03-07 15:49:21.742802"], ["updated_at", "2016-03-07 15:49:21.742802"]] [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", "51"], ["created_at", "2016-03-07 15:49:21.745921"], ["updated_at", "2016-03-07 15:49:21.745921"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.747595"], ["updated_at", "2016-03-07 15:49:21.747595"]] [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-03-07 15:49:21.751167"], ["updated_at", "2016-03-07 15:49:21.751167"]] [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-03-07 15:49:21.753896"], ["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 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-03-07 15:49:21.763864"], ["updated_at", "2016-03-07 15:49:21.763864"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' 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 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-03-07 15:49:21.768327"], ["updated_at", "2016-03-07 15:49:21.768327"]] [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", "52"], ["created_at", "2016-03-07 15:49:21.771721"], ["updated_at", "2016-03-07 15:49:21.771721"]] [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", "47"], ["created_at", "2016-03-07 15:49:21.774082"], ["updated_at", "2016-03-07 15:49:21.774082"]] [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-03-07 15:49:21.777819"], ["updated_at", "2016-03-07 15:49:21.777819"]] [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-03-07 15:49:21.779616"], ["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 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", "2016-03-07 15:49:21.788153"], ["updated_at", "2016-03-07 15:49:21.788153"]] [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 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-03-07 15:49:21.792873"], ["updated_at", "2016-03-07 15:49:21.792873"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:21.795359"], ["updated_at", "2016-03-07 15:49:21.795359"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.796914"], ["updated_at", "2016-03-07 15:49:21.796914"]] [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-03-07 15:49:21.799903"], ["updated_at", "2016-03-07 15:49:21.799903"]] [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-03-07 15:49:21.801441"], ["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 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", "2016-03-07 15:49:21.809442"], ["updated_at", "2016-03-07 15:49:21.809442"]] [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", "2016-03-07 15:49:21.812555"], ["updated_at", "2016-03-07 15:49:21.812555"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.814453"], ["updated_at", "2016-03-07 15:49:21.814453"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.815710"], ["updated_at", "2016-03-07 15:49:21.815710"]] [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-03-07 15:49:21.818149"], ["updated_at", "2016-03-07 15:49:21.818149"]] [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-03-07 15:49:21.819458"], ["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", "2016-03-07 15:49:21.826617"], ["updated_at", "2016-03-07 15:49:21.826617"]] [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", "2016-03-07 15:49:21.829637"], ["updated_at", "2016-03-07 15:49:21.829637"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.831408"], ["updated_at", "2016-03-07 15:49:21.831408"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.832705"], ["updated_at", "2016-03-07 15:49:21.832705"]] [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-03-07 15:49:21.893533"], ["updated_at", "2016-03-07 15:49:21.893533"]] [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", "2016-03-07 15:49:21.895635"], ["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", "2016-03-07 15:49:21.903401"], ["updated_at", "2016-03-07 15:49:21.903401"]] [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 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", "2016-03-07 15:49:21.907862"], ["updated_at", "2016-03-07 15:49:21.907862"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.910711"], ["updated_at", "2016-03-07 15:49:21.910711"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.912353"], ["updated_at", "2016-03-07 15:49:21.912353"]] [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-03-07 15:49:21.915615"], ["updated_at", "2016-03-07 15:49:21.915615"]] [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-03-07 15:49:21.917338"], ["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", "2016-03-07 15:49:21.924517"], ["updated_at", "2016-03-07 15:49:21.924517"]] [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", "2016-03-07 15:49:21.927621"], ["updated_at", "2016-03-07 15:49:21.927621"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:21.929444"], ["updated_at", "2016-03-07 15:49:21.929444"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.930958"], ["updated_at", "2016-03-07 15:49:21.930958"]] [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-03-07 15:49:21.933456"], ["updated_at", "2016-03-07 15:49:21.933456"]] [1m[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-03-07 15:49:21.935156"], ["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.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 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.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-03-07 15:49:21.946760"], ["updated_at", "2016-03-07 15:49:21.946760"]] [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", "2016-03-07 15:49:21.950133"], ["updated_at", "2016-03-07 15:49:21.950133"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:21.952094"], ["updated_at", "2016-03-07 15:49:21.952094"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:21.953386"], ["updated_at", "2016-03-07 15:49:21.953386"]] [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-03-07 15:49:21.955996"], ["updated_at", "2016-03-07 15:49:21.955996"]] [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-03-07 15:49:21.957357"], ["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", "2016-03-07 15:49:21.960303"], ["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.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 500 Internal Server Error in 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 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 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.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.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 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-03-07 15:49:53.418423"], ["updated_at", "2016-03-07 15:49:53.418423"]] [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", "2016-03-07 15:49:53.435192"], ["updated_at", "2016-03-07 15:49:53.435192"]] [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", "2016-03-07 16:49:53.460032"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:49:53.461525"], ["updated_at", "2016-03-07 15:49:53.461525"]] [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 32ms (Views: 9.0ms | ActiveRecord: 1.0ms) [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.6ms)[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.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 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.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-03-07 15:49:53.498455"], ["updated_at", "2016-03-07 15:49:53.498455"]] [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.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 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-03-07 15:49:53.555789"], ["updated_at", "2016-03-07 15:49:53.555789"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[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-03-07 15:49:53.558849"], ["updated_at", "2016-03-07 15:49:53.558849"]] [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", "2016-03-07 15:49:53.561781"], ["updated_at", "2016-03-07 15:49:53.561781"]] [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", "2016-03-07 15:49:53.573475"], ["updated_at", "2016-03-07 15:49:53.573475"]] [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", "2016-03-07 15:49:53.576463"], ["updated_at", "2016-03-07 15:49:53.576463"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:53.578278"], ["updated_at", "2016-03-07 15:49:53.578278"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:53.579408"], ["updated_at", "2016-03-07 15:49:53.579408"]] [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 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-03-07 15:49:53.585305"], ["updated_at", "2016-03-07 15:49:53.585305"]] [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.1ms)[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", "2016-03-07 15:49:53.588426"], ["updated_at", "2016-03-07 15:49:53.588426"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.590267"], ["updated_at", "2016-03-07 15:49:53.590267"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.591420"], ["updated_at", "2016-03-07 15:49:53.591420"]] [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-03-07 15:49:53.608801"], ["updated_at", "2016-03-07 15:49:53.608801"]] [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.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.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", "2016-03-07 15:49:53.613869"], ["updated_at", "2016-03-07 15:49:53.613869"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.616490"], ["updated_at", "2016-03-07 15:49:53.616490"]] [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", "4"], ["created_at", "2016-03-07 15:49:53.618779"], ["updated_at", "2016-03-07 15:49:53.618779"]] [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.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-03-07 15:49:53.627009"], ["updated_at", "2016-03-07 15:49:53.627009"]] [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.2ms)[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", "2016-03-07 15:49:53.630508"], ["updated_at", "2016-03-07 15:49:53.630508"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.632335"], ["updated_at", "2016-03-07 15:49:53.632335"]] [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", "5"], ["created_at", "2016-03-07 15:49:53.633883"], ["updated_at", "2016-03-07 15:49:53.633883"]] [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", "2016-03-07 15:49:53.639644"], ["updated_at", "2016-03-07 15:49:53.639644"]] [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-03-07 15:49:53.642833"], ["updated_at", "2016-03-07 15:49:53.642833"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.644573"], ["updated_at", "2016-03-07 15:49:53.644573"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.645736"], ["updated_at", "2016-03-07 15:49:53.645736"]] [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_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-03-07 15:49:53.647811"], ["updated_at", "2016-03-07 15:49:53.647811"]] [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-03-07 15:49:53.652150"], ["updated_at", "2016-03-07 15:49:53.652150"]] 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", "2016-03-07 15:49:53.657475"], ["updated_at", "2016-03-07 15:49:53.657475"]] [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-03-07 15:49:53.660634"], ["updated_at", "2016-03-07 15:49:53.660634"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.662414"], ["updated_at", "2016-03-07 15:49:53.662414"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.663524"], ["updated_at", "2016-03-07 15:49:53.663524"]] [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", "2016-03-07 15:49:53.669552"], ["updated_at", "2016-03-07 15:49:53.669552"]] [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.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.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-03-08 15:49:53.681873"], ["created_at", "2016-03-07 15:49:53.683049"], ["updated_at", "2016-03-07 15:49:53.683049"]] [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.7ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:49:53.691816"], ["updated_at", "2016-03-07 15:49:53.691816"]] [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_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["status", "Pending"], ["created_at", "2016-03-07 15:49:53.694271"], ["updated_at", "2016-03-07 15:49:53.694271"]] [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_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:49:53.696450"], ["updated_at", "2016-03-07 15:49:53.696450"]] [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.1ms)[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", "2016-03-07 15:49:53.708622"], ["updated_at", "2016-03-07 15:49:53.708622"]] [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", "2016-03-07 15:49:53.711883"], ["updated_at", "2016-03-07 15:49:53.711883"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.713750"], ["updated_at", "2016-03-07 15:49:53.713750"]] [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.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", "2016-03-07 15:49:53.720169"], ["updated_at", "2016-03-07 15:49:53.720169"]] [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.1ms)[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-03-07 15:49:53.724482"], ["updated_at", "2016-03-07 15:49:53.724482"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.775013"], ["updated_at", "2016-03-07 15:49:53.775013"]] [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.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", "2016-03-07 15:49:53.780547"], ["updated_at", "2016-03-07 15:49:53.780547"]] [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.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", "2016-03-07 15:49:53.785161"], ["updated_at", "2016-03-07 15:49:53.785161"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.787477"], ["updated_at", "2016-03-07 15:49:53.787477"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.788763"], ["updated_at", "2016-03-07 15:49:53.788763"]] [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", "2016-03-07 15:49:53.792869"], ["updated_at", "2016-03-07 15:49:53.792869"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.794913"], ["updated_at", "2016-03-07 15:49:53.794913"]] [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-03-07 15:49:53.796180"], ["updated_at", "2016-03-07 15:49:53.796180"]] 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", "2016-03-07 15:49:53.801073"], ["updated_at", "2016-03-07 15:49:53.801073"]] [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", "2016-03-07 15:49:53.802915"], ["updated_at", "2016-03-07 15:49:53.802915"]] [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", "2016-03-07 15:49:53.806709"], ["updated_at", "2016-03-07 15:49:53.806709"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.809172"], ["updated_at", "2016-03-07 15:49:53.809172"]] [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", "2016-03-07 15:49:53.812238"], ["updated_at", "2016-03-07 15:49:53.812238"]] [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", "2016-03-07 15:49:53.814182"], ["updated_at", "2016-03-07 15:49:53.814182"]] 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.2ms)[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.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 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-03-07 15:49:53.819883"], ["updated_at", "2016-03-07 15:49:53.819883"]] [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 27' 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 27' 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 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-03-07 15:49:53.824865"], ["updated_at", "2016-03-07 15:49:53.824865"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.827339"], ["updated_at", "2016-03-07 15:49:53.827339"]] [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 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-03-07 15:49:53.839606"], ["updated_at", "2016-03-07 15:49:53.839606"]] [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-03-07 15:49:53.842039"], ["updated_at", "2016-03-07 15:49:53.842039"]] [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-03-07 15:49:53.853479"], ["updated_at", "2016-03-07 15:49:53.853479"]] [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.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-03-07 15:49:53.858306"], ["updated_at", "2016-03-07 15:49:53.858306"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.860285"], ["updated_at", "2016-03-07 15:49:53.860285"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.861682"], ["updated_at", "2016-03-07 15:49:53.861682"]] [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", "2016-03-07 15:49:53.863777"], ["updated_at", "2016-03-07 15:49:53.863777"]] [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", "2016-03-07 15:49:53.874190"], ["updated_at", "2016-03-07 15:49:53.874190"]] [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", "2016-03-07 15:49:53.876789"], ["updated_at", "2016-03-07 15:49:53.876789"]] [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", "2016-03-07 15:49:53.879998"], ["updated_at", "2016-03-07 15:49:53.879998"]] [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", "2016-03-07 15:49:53.883665"], ["updated_at", "2016-03-07 15:49:53.883665"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.885597"], ["updated_at", "2016-03-07 15:49:53.885597"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.886910"], ["updated_at", "2016-03-07 15:49:53.886910"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.888158"], ["updated_at", "2016-03-07 15:49:53.888158"]] [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", "2016-03-07 15:49:53.894219"], ["updated_at", "2016-03-07 15:49:53.894219"]] [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", "2016-03-07 15:49:53.896313"], ["updated_at", "2016-03-07 15:49:53.896313"]] [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", "2016-03-07 15:49:53.898923"], ["updated_at", "2016-03-07 15:49:53.898923"]] [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-03-07 15:49:53.901755"], ["updated_at", "2016-03-07 15:49:53.901755"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.903315"], ["updated_at", "2016-03-07 15:49:53.903315"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.904385"], ["updated_at", "2016-03-07 15:49:53.904385"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.905585"], ["updated_at", "2016-03-07 15:49:53.905585"]] [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.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-03-07 15:49:53.910839"], ["updated_at", "2016-03-07 15:49:53.910839"]] [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_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-03-07 15:49:53.912772"], ["updated_at", "2016-03-07 15:49:53.912772"]] [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 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", "2016-03-07 15:49:53.917170"], ["updated_at", "2016-03-07 15:49:53.917170"]] [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 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 (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", "2016-03-07 15:49:53.921639"], ["updated_at", "2016-03-07 15:49:53.921639"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.923685"], ["updated_at", "2016-03-07 15:49:53.923685"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.925064"], ["updated_at", "2016-03-07 15:49:53.925064"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.926410"], ["updated_at", "2016-03-07 15:49:53.926410"]] [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", "2016-03-07 15:49:53.928201"], ["updated_at", "2016-03-07 15:49:53.928201"]] [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-03-07 15:49:53.931497"], ["updated_at", "2016-03-07 15:49:53.931497"]] 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.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 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-03-07 15:49:53.937096"], ["updated_at", "2016-03-07 15:49:53.937096"]] [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-03-07 15:49:53.939163"], ["updated_at", "2016-03-07 15:49:53.939163"]] [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-03-07 15:49:53.941692"], ["updated_at", "2016-03-07 15:49:53.941692"]] [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 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", "2016-03-07 15:49:53.944891"], ["updated_at", "2016-03-07 15:49:53.944891"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.946476"], ["updated_at", "2016-03-07 15:49:53.946476"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.947592"], ["updated_at", "2016-03-07 15:49:53.947592"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.948784"], ["updated_at", "2016-03-07 15:49:53.948784"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.950487"], ["updated_at", "2016-03-07 15:49:53.950487"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.952322"], ["updated_at", "2016-03-07 15:49:53.952322"]] [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-03-07 15:49:53.957199"], ["updated_at", "2016-03-07 15:49:53.957199"]] [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_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-03-07 15:49:53.959220"], ["updated_at", "2016-03-07 15:49:53.959220"]] [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 44' 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 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-03-07 15:49:53.963972"], ["updated_at", "2016-03-07 15:49:53.963972"]] [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", "2016-03-07 15:49:53.968469"], ["updated_at", "2016-03-07 15:49:53.968469"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.970537"], ["updated_at", "2016-03-07 15:49:53.970537"]] [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", "15"], ["created_at", "2016-03-07 15:49:53.972128"], ["updated_at", "2016-03-07 15:49:53.972128"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.973867"], ["updated_at", "2016-03-07 15:49:53.973867"]] [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 [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", "2016-03-07 15:49:53.986935"], ["updated_at", "2016-03-07 15:49:53.986935"]] [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", "2016-03-07 15:49:53.990220"], ["updated_at", "2016-03-07 15:49:53.990220"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:53.992057"], ["updated_at", "2016-03-07 15:49:53.992057"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:53.993228"], ["updated_at", "2016-03-07 15:49:53.993228"]] [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", "2016-03-07 15:49:53.999131"], ["updated_at", "2016-03-07 15:49:53.999131"]] [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", "2016-03-07 15:49:54.002692"], ["updated_at", "2016-03-07 15:49:54.002692"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.004790"], ["updated_at", "2016-03-07 15:49:54.004790"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.006008"], ["updated_at", "2016-03-07 15:49:54.006008"]] [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", "2016-03-07 15:49:54.011158"], ["updated_at", "2016-03-07 15:49:54.011158"]] [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-03-07 15:49:54.014374"], ["updated_at", "2016-03-07 15:49:54.014374"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.016371"], ["updated_at", "2016-03-07 15:49:54.016371"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.017798"], ["updated_at", "2016-03-07 15:49:54.017798"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.019733"], ["updated_at", "2016-03-07 15:49:54.019733"]] [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-03-07 15:49:54.021333"], ["updated_at", "2016-03-07 15:49:54.021333"]] 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.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 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-03-07 15:49:54.026734"], ["updated_at", "2016-03-07 15:49:54.026734"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' 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 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-03-07 15:49:54.029769"], ["updated_at", "2016-03-07 15:49:54.029769"]] [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", "23"], ["created_at", "2016-03-07 15:49:54.089620"], ["updated_at", "2016-03-07 15:49:54.089620"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.091352"], ["updated_at", "2016-03-07 15:49:54.091352"]] [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.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 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-03-07 15:49:54.104172"], ["updated_at", "2016-03-07 15:49:54.104172"]] [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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:49:54.106678"], ["updated_at", "2016-03-07 15:49:54.106678"]] [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-03-07 15:49:54.111099"], ["updated_at", "2016-03-07 15:49:54.111099"]] [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", "2016-03-07 15:49:54.114169"], ["updated_at", "2016-03-07 15:49:54.114169"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.115716"], ["updated_at", "2016-03-07 15:49:54.115716"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:54.116895"], ["updated_at", "2016-03-07 15:49:54.116895"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.118026"], ["updated_at", "2016-03-07 15:49:54.118026"]] [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 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", "2016-03-07 15:49:54.124893"], ["updated_at", "2016-03-07 15:49:54.124893"]] [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-03-07 15:49:54.126981"], ["updated_at", "2016-03-07 15:49:54.126981"]] [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-03-07 15:49:54.129853"], ["updated_at", "2016-03-07 15:49:54.129853"]] [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", "2016-03-07 15:49:54.133562"], ["updated_at", "2016-03-07 15:49:54.133562"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.135634"], ["updated_at", "2016-03-07 15:49:54.135634"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.136915"], ["updated_at", "2016-03-07 15:49:54.136915"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.138132"], ["updated_at", "2016-03-07 15:49:54.138132"]] [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", "2016-03-07 15:49:54.144358"], ["updated_at", "2016-03-07 15:49:54.144358"]] [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-03-07 15:49:54.146698"], ["updated_at", "2016-03-07 15:49:54.146698"]] [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", "2016-03-07 15:49:54.149540"], ["updated_at", "2016-03-07 15:49:54.149540"]] [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-03-07 15:49:54.152327"], ["updated_at", "2016-03-07 15:49:54.152327"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.153847"], ["updated_at", "2016-03-07 15:49:54.153847"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.154969"], ["updated_at", "2016-03-07 15:49:54.154969"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.156495"], ["updated_at", "2016-03-07 15:49:54.156495"]] [1m[36m (0.1ms)[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.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", "2016-03-07 15:49:54.162598"], ["updated_at", "2016-03-07 15:49:54.162598"]] [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", "2016-03-07 15:49:54.164535"], ["updated_at", "2016-03-07 15:49:54.164535"]] [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-03-07 15:49:54.167009"], ["updated_at", "2016-03-07 15:49:54.167009"]] [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 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", "2016-03-07 15:49:54.170319"], ["updated_at", "2016-03-07 15:49:54.170319"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.172048"], ["updated_at", "2016-03-07 15:49:54.172048"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.173345"], ["updated_at", "2016-03-07 15:49:54.173345"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.174674"], ["updated_at", "2016-03-07 15:49:54.174674"]] [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-03-07 15:49:54.176677"], ["updated_at", "2016-03-07 15:49:54.176677"]] [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", "2016-03-07 15:49:54.179603"], ["updated_at", "2016-03-07 15:49:54.179603"]] 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", "2016-03-07 15:49:54.185646"], ["updated_at", "2016-03-07 15:49:54.185646"]] [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-03-07 15:49:54.187822"], ["updated_at", "2016-03-07 15:49:54.187822"]] [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", "2016-03-07 15:49:54.190674"], ["updated_at", "2016-03-07 15:49:54.190674"]] [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-03-07 15:49:54.194982"], ["updated_at", "2016-03-07 15:49:54.194982"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.197412"], ["updated_at", "2016-03-07 15:49:54.197412"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.198939"], ["updated_at", "2016-03-07 15:49:54.198939"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.200398"], ["updated_at", "2016-03-07 15:49:54.200398"]] [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_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-03-07 15:49:54.202376"], ["updated_at", "2016-03-07 15:49:54.202376"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.204265"], ["updated_at", "2016-03-07 15:49:54.204265"]] [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", "2016-03-07 15:49:54.209430"], ["updated_at", "2016-03-07 15:49:54.209430"]] [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-03-07 15:49:54.211405"], ["updated_at", "2016-03-07 15:49:54.211405"]] [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-03-07 15:49:54.213962"], ["updated_at", "2016-03-07 15:49:54.213962"]] [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 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-03-07 15:49:54.216874"], ["updated_at", "2016-03-07 15:49:54.216874"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.218909"], ["updated_at", "2016-03-07 15:49:54.218909"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.220265"], ["updated_at", "2016-03-07 15:49:54.220265"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.221575"], ["updated_at", "2016-03-07 15:49:54.221575"]] [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.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.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-03-07 15:49:54.228119"], ["updated_at", "2016-03-07 15:49:54.228119"]] [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", "2016-03-07 15:49:54.234711"], ["updated_at", "2016-03-07 15:49:54.234711"]] [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", "2016-03-07 15:49:54.237370"], ["updated_at", "2016-03-07 15:49:54.237370"]] [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-03-07 15:49:54.239485"], ["updated_at", "2016-03-07 15:49:54.239485"]] 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.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.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.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", "2016-03-07 15:49:54.247854"], ["updated_at", "2016-03-07 15:49:54.247854"]] [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.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-03-07 15:49:54.255437"], ["updated_at", "2016-03-07 15:49:54.255437"]] [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-03-07 15:49:54.260639"], ["updated_at", "2016-03-07 15:49:54.260639"]] [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-03-07 15:49:54.263464"], ["updated_at", "2016-03-07 15:49:54.263464"]] [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-03-07 15:49:54.265688"], ["updated_at", "2016-03-07 15:49:54.265688"]] 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-03-07 15:49:54.270462"], ["updated_at", "2016-03-07 15:49:54.270462"]] [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-03-07 15:49:54.278388"], ["updated_at", "2016-03-07 15:49:54.278388"]] [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", "2016-03-07 15:49:54.292339"], ["updated_at", "2016-03-07 15:49:54.292339"]] [1m[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-03-07 15:49:54.294303"], ["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.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 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", "2016-03-07 15:49:54.301113"], ["updated_at", "2016-03-07 15:49:54.301113"]] [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", "2016-03-07 15:49:54.363340"], ["updated_at", "2016-03-07 15:49:54.363340"]] [1m[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-03-07 15:49:54.365471"], ["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", "2016-03-07 15:49:54.370987"], ["updated_at", "2016-03-07 15:49:54.370987"]] [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-03-07 15:49:54.374158"], ["updated_at", "2016-03-07 15:49:54.374158"]] [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-03-07 15:49:54.375811"], ["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", "2016-03-07 15:49:54.387719"], ["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", "2016-03-07 15:49:54.392105"], ["updated_at", "2016-03-07 15:49:54.392105"]] [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-03-07 15:49:54.394007"], ["updated_at", "2016-03-07 15:49:54.394007"]] [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", "2016-03-07 15:49:54.395626"], ["updated_at", "2016-03-07 15:49:54.395626"]] [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-03-07 15:49:54.397812"], ["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-03-07 15:49:54.398990"], ["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", "2016-03-07 15:49:54.404947"], ["updated_at", "2016-03-07 15:49:54.404947"]] [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", "2016-03-07 15:49:54.408333"], ["updated_at", "2016-03-07 15:49:54.408333"]] [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-03-07 15:49:54.409764"], ["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-03-07 15:49:54.413625"], ["updated_at", "2016-03-07 15:49:54.413625"]] [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", "2016-03-07 15:49:54.415839"], ["updated_at", "2016-03-07 15:49:54.415839"]] [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", "2016-03-07 15:49:54.422965"], ["updated_at", "2016-03-07 15:49:54.422965"]] [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-03-07 15:49:54.426383"], ["updated_at", "2016-03-07 15:49:54.426383"]] [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-03-07 15:49:54.427894"], ["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", "2016-03-07 15:49:54.430089"], ["updated_at", "2016-03-07 15:49:54.430089"]] [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-03-07 15:49:54.431795"], ["updated_at", "2016-03-07 15:49:54.431795"]] [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", "2016-03-07 15:49:54.433325"], ["updated_at", "2016-03-07 15:49:54.433325"]] [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.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 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-03-07 15:49:54.438980"], ["updated_at", "2016-03-07 15:49:54.438980"]] [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-03-07 15:49:54.442148"], ["updated_at", "2016-03-07 15:49:54.442148"]] [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-03-07 15:49:54.443640"], ["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", "2016-03-07 15:49:54.448855"], ["updated_at", "2016-03-07 15:49:54.448855"]] [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-03-07 15:49:54.452059"], ["updated_at", "2016-03-07 15:49:54.452059"]] [1m[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-03-07 15:49:54.453608"], ["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.5ms)[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", "2016-03-07 15:49:54.460116"], ["updated_at", "2016-03-07 15:49:54.460116"]] [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", "2016-03-07 15:49:54.463247"], ["updated_at", "2016-03-07 15:49:54.463247"]] [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-03-07 15:49:54.464676"], ["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", "2016-03-07 15:49:54.467837"], ["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", "2016-03-07 15:49:54.476032"], ["updated_at", "2016-03-07 15:49:54.476032"]] [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", "2016-03-07 15:49:54.479169"], ["updated_at", "2016-03-07 15:49:54.479169"]] [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-03-07 15:49:54.481398"], ["updated_at", "2016-03-07 15:49:54.481398"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.482836"], ["updated_at", "2016-03-07 15:49:54.482836"]] [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", "2016-03-07 15:49:54.486230"], ["updated_at", "2016-03-07 15:49:54.486230"]] [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-03-07 15:49:54.487706"], ["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.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", "2016-03-07 15:49:54.496859"], ["updated_at", "2016-03-07 15:49:54.496859"]] [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.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", "2016-03-07 15:49:54.500721"], ["updated_at", "2016-03-07 15:49:54.500721"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.502805"], ["updated_at", "2016-03-07 15:49:54.502805"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.504035"], ["updated_at", "2016-03-07 15:49:54.504035"]] [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-03-07 15:49:54.506631"], ["updated_at", "2016-03-07 15:49:54.506631"]] [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-03-07 15:49:54.507986"], ["id", 1]] [1m[35m (0.0ms)[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 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-03-07 15:49:54.518285"], ["updated_at", "2016-03-07 15:49:54.518285"]] [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", "2016-03-07 15:49:54.522049"], ["updated_at", "2016-03-07 15:49:54.522049"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.523908"], ["updated_at", "2016-03-07 15:49:54.523908"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.525016"], ["updated_at", "2016-03-07 15:49:54.525016"]] [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-03-07 15:49:54.527399"], ["updated_at", "2016-03-07 15:49:54.527399"]] [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", "2016-03-07 15:49:54.528578"], ["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", "2016-03-07 15:49:54.535534"], ["updated_at", "2016-03-07 15:49:54.535534"]] [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-03-07 15:49:54.539287"], ["updated_at", "2016-03-07 15:49:54.539287"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.541368"], ["updated_at", "2016-03-07 15:49:54.541368"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.542561"], ["updated_at", "2016-03-07 15:49:54.542561"]] [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-03-07 15:49:54.544959"], ["updated_at", "2016-03-07 15:49:54.544959"]] [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-03-07 15:49:54.546288"], ["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 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-03-07 15:49:54.554057"], ["updated_at", "2016-03-07 15:49:54.554057"]] [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", "2016-03-07 15:49:54.557519"], ["updated_at", "2016-03-07 15:49:54.557519"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.559539"], ["updated_at", "2016-03-07 15:49:54.559539"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.560744"], ["updated_at", "2016-03-07 15:49:54.560744"]] [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-03-07 15:49:54.564522"], ["updated_at", "2016-03-07 15:49:54.564522"]] [1m[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-03-07 15:49:54.566986"], ["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", "2016-03-07 15:49:54.575941"], ["id", 1]] [1m[35m (0.0ms)[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.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-03-07 15:49:54.634244"], ["updated_at", "2016-03-07 15:49:54.634244"]] [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", "2016-03-07 15:49:54.636821"], ["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", "2016-03-07 15:49:54.639998"], ["updated_at", "2016-03-07 15:49:54.639998"]] [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-03-07 15:49:54.641798"], ["updated_at", "2016-03-07 15:49:54.641798"]] [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", "2016-03-07 15:49:54.643435"], ["updated_at", "2016-03-07 15:49:54.643435"]] [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", "2016-03-07 15:49:54.654020"], ["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", "2016-03-07 15:49:54.669998"], ["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.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", "2016-03-07 15:49:54.674662"], ["updated_at", "2016-03-07 15:49:54.674662"]] [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.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-03-07 15:49:54.678550"], ["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.5ms)[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.2ms)[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", "2016-03-07 15:49:54.702470"], ["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", "2016-03-07 15:49:54.705528"], ["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.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.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-03-07 15:49:54.717543"], ["updated_at", "2016-03-07 15:49:54.717543"]] [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-03-07 15:49:54.720221"], ["updated_at", "2016-03-07 15:49:54.720221"]] [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", "2016-03-07 15:49:54.721841"], ["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.4ms)[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-03-07 15:49:54.733258"], ["updated_at", "2016-03-07 15:49:54.733258"]] [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", "2016-03-07 15:49:54.736861"], ["updated_at", "2016-03-07 15:49:54.736861"]] [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[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-03-07 15:49:54.743006"], ["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-03-07 15:49:54.744249"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Section Load (0.2ms)[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-03-07 15:49:54.752928"], ["updated_at", "2016-03-07 15:49:54.752928"]] [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.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 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-03-07 15:49:54.756095"], ["updated_at", "2016-03-07 15:49:54.756095"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.758135"], ["updated_at", "2016-03-07 15:49:54.758135"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.759310"], ["updated_at", "2016-03-07 15:49:54.759310"]] [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-03-07 15:49:54.762177"], ["updated_at", "2016-03-07 15:49:54.762177"]] [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-03-07 15:49:54.763671"], ["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-03-07 15:49:54.765926"], ["updated_at", "2016-03-07 15:49:54.765926"]] [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.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.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.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 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-03-07 15:49:54.773517"], ["updated_at", "2016-03-07 15:49:54.773517"]] [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 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.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 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-03-07 15:49:54.776428"], ["updated_at", "2016-03-07 15:49:54.776428"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:49:54.778140"], ["updated_at", "2016-03-07 15:49:54.778140"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:49:54.779335"], ["updated_at", "2016-03-07 15:49:54.779335"]] [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-03-07 15:49:54.781645"], ["updated_at", "2016-03-07 15:49:54.781645"]] [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-03-07 15:49:54.783093"], ["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.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-03-07 15:49:54.785635"], ["updated_at", "2016-03-07 15:49:54.785635"]] [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", "2016-03-07 15:49:54.788793"], ["updated_at", "2016-03-07 15:49:54.788793"]] [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-03-07 15:49:54.790884"], ["updated_at", "2016-03-07 15:49:54.790884"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [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 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-03-07 15:49:54.800853"], ["updated_at", "2016-03-07 15:49:54.800853"]] [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 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.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 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-03-07 15:49:54.863442"], ["updated_at", "2016-03-07 15:49:54.863442"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.865341"], ["updated_at", "2016-03-07 15:49:54.865341"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.866558"], ["updated_at", "2016-03-07 15:49:54.866558"]] [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-03-07 15:49:54.869085"], ["updated_at", "2016-03-07 15:49:54.869085"]] [1m[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-03-07 15:49:54.870753"], ["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-03-07 15:49:54.873036"], ["updated_at", "2016-03-07 15:49:54.873036"]] [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-03-07 15:49:54.875076"], ["updated_at", "2016-03-07 15:49:54.875076"]] [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-03-07 15:49:54.876543"], ["updated_at", "2016-03-07 15:49:54.876543"]] [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", "2016-03-07 15:49:54.878115"], ["updated_at", "2016-03-07 15:49:54.878115"]] [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.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", "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.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.5ms)[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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:49:54.899399"], ["updated_at", "2016-03-07 15:49:54.899399"]] [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 104' 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 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-03-07 15:49:54.903679"], ["updated_at", "2016-03-07 15:49:54.903679"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.906364"], ["updated_at", "2016-03-07 15:49:54.906364"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.908030"], ["updated_at", "2016-03-07 15:49:54.908030"]] [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-03-07 15:49:54.911068"], ["updated_at", "2016-03-07 15:49:54.911068"]] [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-03-07 15:49:54.912619"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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-03-07 15:49:54.919388"], ["updated_at", "2016-03-07 15:49:54.919388"]] [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.6ms)[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.1ms)[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-03-07 15:49:54.928119"], ["updated_at", "2016-03-07 15:49:54.928119"]] [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 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-03-07 15:49:54.931319"], ["updated_at", "2016-03-07 15:49:54.931319"]] [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", "40"], ["created_at", "2016-03-07 15:49:54.933296"], ["updated_at", "2016-03-07 15:49:54.933296"]] [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", "35"], ["created_at", "2016-03-07 15:49:54.935554"], ["updated_at", "2016-03-07 15:49:54.935554"]] [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-03-07 15:49:54.938809"], ["updated_at", "2016-03-07 15:49:54.938809"]] [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-03-07 15:49:54.940682"], ["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-03-07 15:49:54.943493"], ["updated_at", "2016-03-07 15:49:54.943493"]] [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.1ms)[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.0ms)[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.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_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 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.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 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-03-07 15:49:54.962478"], ["updated_at", "2016-03-07 15:49:54.962478"]] [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 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", "2016-03-07 15:49:54.965497"], ["updated_at", "2016-03-07 15:49:54.965497"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.967316"], ["updated_at", "2016-03-07 15:49:54.967316"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:54.968514"], ["updated_at", "2016-03-07 15:49:54.968514"]] [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-03-07 15:49:54.971190"], ["updated_at", "2016-03-07 15:49:54.971190"]] [1m[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-03-07 15:49:54.972565"], ["id", 1]] [1m[36m (0.1ms)[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-03-07 15:49:54.975607"], ["updated_at", "2016-03-07 15:49:54.975607"]] [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.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.2ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [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 109' 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 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-03-07 15:49:54.984537"], ["updated_at", "2016-03-07 15:49:54.984537"]] [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 110' 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 110' 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 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-03-07 15:49:54.988495"], ["updated_at", "2016-03-07 15:49:54.988495"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:54.990626"], ["updated_at", "2016-03-07 15:49:54.990626"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:49:54.991894"], ["updated_at", "2016-03-07 15:49:54.991894"]] [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-03-07 15:49:54.994551"], ["updated_at", "2016-03-07 15:49:54.994551"]] [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-03-07 15:49:54.995985"], ["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-03-07 15:49:54.998431"], ["updated_at", "2016-03-07 15:49:54.998431"]] [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", "2016-03-07 15:49:55.001764"], ["updated_at", "2016-03-07 15:49:55.001764"]] [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-03-07 15:49:55.003901"], ["updated_at", "2016-03-07 15:49:55.003901"]] [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-03-07 15:49:55.006091"], ["updated_at", "2016-03-07 15:49:55.006091"]] [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.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.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", "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::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.1ms)[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.1ms)[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.2ms)[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-03-07 15:49:55.037260"], ["updated_at", "2016-03-07 15:49:55.037260"]] [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.0ms)[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-03-07 15:49:55.040425"], ["updated_at", "2016-03-07 15:49:55.040425"]] [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.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.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.0ms)[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-03-07 15:49:55.043296"], ["updated_at", "2016-03-07 15:49:55.043296"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-07 15:49:55.046160"], ["updated_at", "2016-03-07 15:49:55.046160"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[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.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", "2016-03-07 15:49:55.053915"], ["updated_at", "2016-03-07 15:49:55.053915"]] [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-03-07 15:49:55.115445"], ["updated_at", "2016-03-07 15:49:55.115445"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.117295"], ["updated_at", "2016-03-07 15:49:55.117295"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.118401"], ["updated_at", "2016-03-07 15:49:55.118401"]] [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-03-07 15:49:55.121207"], ["updated_at", "2016-03-07 15:49:55.121207"]] [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-03-07 15:49:55.122869"], ["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-03-07 15:49:55.125119"], ["updated_at", "2016-03-07 15:49:55.125119"]] [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-03-07 15:49:55.128524"], ["updated_at", "2016-03-07 15:49:55.128524"]] [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-03-07 15:49:55.130689"], ["updated_at", "2016-03-07 15:49:55.130689"]] [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 (1.0ms)[0m rollback transaction [1m[36m (0.0ms)[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.1ms)[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.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' 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 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-03-07 15:49:55.139688"], ["updated_at", "2016-03-07 15:49:55.139688"]] [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.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 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-03-07 15:49:55.143258"], ["updated_at", "2016-03-07 15:49:55.143258"]] [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", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:49:55.145819"], ["updated_at", "2016-03-07 15:49:55.145819"]] [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_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-03-07 15:49:55.147460"], ["updated_at", "2016-03-07 15:49:55.147460"]] [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-03-07 15:49:55.150629"], ["updated_at", "2016-03-07 15:49:55.150629"]] [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-03-07 15:49:55.152383"], ["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-03-07 15:49:55.154809"], ["updated_at", "2016-03-07 15:49:55.154809"]] [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-03-07 15:49:55.157441"], ["updated_at", "2016-03-07 15:49:55.157441"]] [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-03-07 15:49:55.158994"], ["updated_at", "2016-03-07 15:49:55.158994"]] [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-03-07 15:49:55.160635"], ["updated_at", "2016-03-07 15:49:55.160635"]] [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.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::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-03-07 15:49:55.177508"], ["updated_at", "2016-03-07 15:49:55.177508"]] [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.0ms)[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-03-07 15:49:55.179748"], ["updated_at", "2016-03-07 15:49:55.179748"]] [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" = ? 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.0ms)[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-03-07 15:49:55.189729"], ["updated_at", "2016-03-07 15:49:55.189729"]] [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 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.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-03-07 15:49:55.193069"], ["updated_at", "2016-03-07 15:49:55.193069"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.195086"], ["updated_at", "2016-03-07 15:49:55.195086"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.196286"], ["updated_at", "2016-03-07 15:49:55.196286"]] [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-03-07 15:49:55.198778"], ["updated_at", "2016-03-07 15:49:55.198778"]] [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-03-07 15:49:55.200230"], ["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-03-07 15:49:55.204018"], ["updated_at", "2016-03-07 15:49:55.204018"]] [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-03-07 15:49:55.206500"], ["updated_at", "2016-03-07 15:49:55.206500"]] [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"."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.7ms)[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", "2016-03-07 15:49:55.214133"], ["updated_at", "2016-03-07 15:49:55.214133"]] [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", "2016-03-07 15:49:55.217219"], ["updated_at", "2016-03-07 15:49:55.217219"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.219112"], ["updated_at", "2016-03-07 15:49:55.219112"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:55.220630"], ["updated_at", "2016-03-07 15:49:55.220630"]] [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-03-07 15:49:55.223482"], ["updated_at", "2016-03-07 15:49:55.223482"]] [1m[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-03-07 15:49:55.225381"], ["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-03-07 15:49:55.228143"], ["updated_at", "2016-03-07 15:49:55.228143"]] [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-03-07 15:49:55.230663"], ["updated_at", "2016-03-07 15:49:55.230663"]] [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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:49:55.232563"], ["updated_at", "2016-03-07 15:49:55.232563"]] [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", "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-03-07 15:49:55.235310"], ["updated_at", "2016-03-07 15:49:55.235310"]] [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-03-07 15:49:55.251867"], ["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.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.2ms)[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.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.1ms)[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 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", "2016-03-07 15:49:55.271042"], ["updated_at", "2016-03-07 15:49:55.271042"]] [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 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.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 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-03-07 15:49:55.276274"], ["updated_at", "2016-03-07 15:49:55.276274"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.278743"], ["updated_at", "2016-03-07 15:49:55.278743"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.280272"], ["updated_at", "2016-03-07 15:49:55.280272"]] [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-03-07 15:49:55.283494"], ["updated_at", "2016-03-07 15:49:55.283494"]] [1m[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-03-07 15:49:55.285508"], ["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" = ? 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-03-07 15:49:55.289885"], ["updated_at", "2016-03-07 15:49:55.289885"]] [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-03-07 15:49:55.292966"], ["updated_at", "2016-03-07 15:49:55.292966"]] [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-03-07 15:49:55.295091"], ["updated_at", "2016-03-07 15:49:55.295091"]] [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-03-07 15:49:55.296936"], ["updated_at", "2016-03-07 15:49:55.296936"]] [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.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.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.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", "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-03-07 15:49:55.315830"], ["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.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[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.3ms)[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.1ms)[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", "2016-03-07 15:49:55.396702"], ["updated_at", "2016-03-07 15:49:55.396702"]] [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.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 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-03-07 15:49:55.399737"], ["updated_at", "2016-03-07 15:49:55.399737"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:49:55.401748"], ["updated_at", "2016-03-07 15:49:55.401748"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.402855"], ["updated_at", "2016-03-07 15:49:55.402855"]] [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-03-07 15:49:55.405451"], ["updated_at", "2016-03-07 15:49:55.405451"]] [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-03-07 15:49:55.406764"], ["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-03-07 15:49:55.408811"], ["updated_at", "2016-03-07 15:49:55.408811"]] [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-03-07 15:49:55.410800"], ["updated_at", "2016-03-07 15:49:55.410800"]] [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[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-03-07 15:49:55.413353"], ["updated_at", "2016-03-07 15:49:55.413353"]] [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", "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-03-07 15:49:55.416262"], ["updated_at", "2016-03-07 15:49:55.416262"]] [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.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:49:55.432560"], ["id", 1]] [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[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.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.1ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.1ms)[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", "2016-03-07 15:49:55.450281"], ["updated_at", "2016-03-07 15:49:55.450281"]] [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.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 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-03-07 15:49:55.453454"], ["updated_at", "2016-03-07 15:49:55.453454"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:55.455501"], ["updated_at", "2016-03-07 15:49:55.455501"]] [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", "44"], ["created_at", "2016-03-07 15:49:55.457051"], ["updated_at", "2016-03-07 15:49:55.457051"]] [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-03-07 15:49:55.460710"], ["updated_at", "2016-03-07 15:49:55.460710"]] [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-03-07 15:49:55.462461"], ["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-03-07 15:49:55.464996"], ["updated_at", "2016-03-07 15:49:55.464996"]] [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-03-07 15:49:55.467330"], ["updated_at", "2016-03-07 15:49:55.467330"]] [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-03-07 15:49:55.468916"], ["updated_at", "2016-03-07 15:49:55.468916"]] [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", "2016-03-07 15:49:55.470506"], ["updated_at", "2016-03-07 15:49:55.470506"]] [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", "2016-03-07 15:49:55.485312"], ["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-03-07 15:49:55.491079"], ["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.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.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-03-07 15:49:55.500653"], ["updated_at", "2016-03-07 15:49:55.500653"]] [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", "2016-03-07 15:49:55.503612"], ["updated_at", "2016-03-07 15:49:55.503612"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.505596"], ["updated_at", "2016-03-07 15:49:55.505596"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.506796"], ["updated_at", "2016-03-07 15:49:55.506796"]] [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-03-07 15:49:55.509321"], ["updated_at", "2016-03-07 15:49:55.509321"]] [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-03-07 15:49:55.510697"], ["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.2ms)[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.1ms)[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-03-07 15:49:55.519174"], ["updated_at", "2016-03-07 15:49:55.519174"]] [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.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", "2016-03-07 15:49:55.523410"], ["updated_at", "2016-03-07 15:49:55.523410"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.525800"], ["updated_at", "2016-03-07 15:49:55.525800"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.527302"], ["updated_at", "2016-03-07 15:49:55.527302"]] [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-03-07 15:49:55.530617"], ["updated_at", "2016-03-07 15:49:55.530617"]] [1m[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-03-07 15:49:55.532336"], ["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 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-03-07 15:49:55.541663"], ["updated_at", "2016-03-07 15:49:55.541663"]] [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.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 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-03-07 15:49:55.545421"], ["updated_at", "2016-03-07 15:49:55.545421"]] [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", "52"], ["created_at", "2016-03-07 15:49:55.548852"], ["updated_at", "2016-03-07 15:49:55.548852"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:49:55.550489"], ["updated_at", "2016-03-07 15:49:55.550489"]] [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-03-07 15:49:55.553765"], ["updated_at", "2016-03-07 15:49:55.553765"]] [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-03-07 15:49:55.555452"], ["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", "2016-03-07 15:49:55.563602"], ["updated_at", "2016-03-07 15:49:55.563602"]] [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", "2016-03-07 15:49:55.566760"], ["updated_at", "2016-03-07 15:49:55.566760"]] [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", "53"], ["created_at", "2016-03-07 15:49:55.568894"], ["updated_at", "2016-03-07 15:49:55.568894"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.570118"], ["updated_at", "2016-03-07 15:49:55.570118"]] [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-03-07 15:49:55.572771"], ["updated_at", "2016-03-07 15:49:55.572771"]] [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-03-07 15:49:55.574369"], ["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.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-03-07 15:49:55.582280"], ["updated_at", "2016-03-07 15:49:55.582280"]] [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.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", "2016-03-07 15:49:55.586466"], ["updated_at", "2016-03-07 15:49:55.586466"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.588510"], ["updated_at", "2016-03-07 15:49:55.588510"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.589709"], ["updated_at", "2016-03-07 15:49:55.589709"]] [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-03-07 15:49:55.592184"], ["updated_at", "2016-03-07 15:49:55.592184"]] [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-03-07 15:49:55.593562"], ["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.0ms)[0m SAVEPOINT active_record_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", "2016-03-07 15:49:55.601274"], ["updated_at", "2016-03-07 15:49:55.601274"]] [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", "2016-03-07 15:49:55.664547"], ["updated_at", "2016-03-07 15:49:55.664547"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.666419"], ["updated_at", "2016-03-07 15:49:55.666419"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.667628"], ["updated_at", "2016-03-07 15:49:55.667628"]] [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-03-07 15:49:55.670179"], ["updated_at", "2016-03-07 15:49:55.670179"]] [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-03-07 15:49:55.671507"], ["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", "2016-03-07 15:49:55.679228"], ["updated_at", "2016-03-07 15:49:55.679228"]] [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", "2016-03-07 15:49:55.682082"], ["updated_at", "2016-03-07 15:49:55.682082"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.683713"], ["updated_at", "2016-03-07 15:49:55.683713"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.684910"], ["updated_at", "2016-03-07 15:49:55.684910"]] [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-03-07 15:49:55.687260"], ["updated_at", "2016-03-07 15:49:55.687260"]] [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-03-07 15:49:55.688637"], ["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", "2016-03-07 15:49:55.696635"], ["updated_at", "2016-03-07 15:49:55.696635"]] [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", "2016-03-07 15:49:55.700100"], ["updated_at", "2016-03-07 15:49:55.700100"]] [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_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-03-07 15:49:55.702904"], ["updated_at", "2016-03-07 15:49:55.702904"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.704918"], ["updated_at", "2016-03-07 15:49:55.704918"]] [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-03-07 15:49:55.708487"], ["updated_at", "2016-03-07 15:49:55.708487"]] [1m[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-03-07 15:49:55.710367"], ["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 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.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-03-07 15:49:55.720924"], ["updated_at", "2016-03-07 15:49:55.720924"]] [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.1ms)[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", "2016-03-07 15:49:55.724919"], ["updated_at", "2016-03-07 15:49:55.724919"]] [1m[36m (0.0ms)[0m [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-03-07 15:49:55.726956"], ["updated_at", "2016-03-07 15:49:55.726956"]] [1m[35m (0.0ms)[0m 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-03-07 15:49:55.728168"], ["updated_at", "2016-03-07 15:49:55.728168"]] [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-03-07 15:49:55.730644"], ["updated_at", "2016-03-07 15:49:55.730644"]] [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-03-07 15:49:55.732051"], ["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", "2016-03-07 15:49:55.734940"], ["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.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 35749ms (Views: 0.2ms | 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 83215ms (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 1211ms (ActiveRecord: 0.0ms) [1m[35m (0.1ms)[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.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.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 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-03-07 15:52:10.770490"], ["updated_at", "2016-03-07 15:52:10.770490"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:52:10.835659"], ["updated_at", "2016-03-07 15:52:10.835659"]] [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", "2016-03-07 16:52:10.859990"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:52:10.861499"], ["updated_at", "2016-03-07 15:52:10.861499"]] [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 33ms (Views: 10.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.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.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.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", "2016-03-07 15:52:10.896734"], ["updated_at", "2016-03-07 15:52:10.896734"]] [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.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", "2016-03-07 15:52:10.906992"], ["updated_at", "2016-03-07 15:52:10.906992"]] [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", "2016-03-07 15:52:10.909861"], ["updated_at", "2016-03-07 15:52:10.909861"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:10.912903"], ["updated_at", "2016-03-07 15:52:10.912903"]] [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 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", "2016-03-07 15:52:10.973882"], ["updated_at", "2016-03-07 15:52:10.973882"]] [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.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-03-07 15:52:10.977723"], ["updated_at", "2016-03-07 15:52:10.977723"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:10.979796"], ["updated_at", "2016-03-07 15:52:10.979796"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:10.981083"], ["updated_at", "2016-03-07 15:52:10.981083"]] [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", "2016-03-07 15:52:10.986135"], ["updated_at", "2016-03-07 15:52:10.986135"]] [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", "2016-03-07 15:52:10.988998"], ["updated_at", "2016-03-07 15:52:10.988998"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:10.990698"], ["updated_at", "2016-03-07 15:52:10.990698"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:10.991863"], ["updated_at", "2016-03-07 15:52:10.991863"]] [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 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", "2016-03-07 15:52:11.008276"], ["updated_at", "2016-03-07 15:52:11.008276"]] [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.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", "2016-03-07 15:52:11.011931"], ["updated_at", "2016-03-07 15:52:11.011931"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.013930"], ["updated_at", "2016-03-07 15:52:11.013930"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.015203"], ["updated_at", "2016-03-07 15:52:11.015203"]] [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.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", "2016-03-07 15:52:11.022043"], ["updated_at", "2016-03-07 15:52:11.022043"]] [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.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", "2016-03-07 15:52:11.026902"], ["updated_at", "2016-03-07 15:52:11.026902"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.028960"], ["updated_at", "2016-03-07 15:52:11.028960"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.030236"], ["updated_at", "2016-03-07 15:52:11.030236"]] [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", "2016-03-07 15:52:11.035178"], ["updated_at", "2016-03-07 15:52:11.035178"]] [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", "2016-03-07 15:52:11.037852"], ["updated_at", "2016-03-07 15:52:11.037852"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.039507"], ["updated_at", "2016-03-07 15:52:11.039507"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.040551"], ["updated_at", "2016-03-07 15:52:11.040551"]] [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_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-03-07 15:52:11.042145"], ["updated_at", "2016-03-07 15:52:11.042145"]] [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", "2016-03-07 15:52:11.047410"], ["updated_at", "2016-03-07 15:52:11.047410"]] 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", "2016-03-07 15:52:11.053012"], ["updated_at", "2016-03-07 15:52:11.053012"]] [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", "2016-03-07 15:52:11.056557"], ["updated_at", "2016-03-07 15:52:11.056557"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.058553"], ["updated_at", "2016-03-07 15:52:11.058553"]] [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", "7"], ["created_at", "2016-03-07 15:52:11.059750"], ["updated_at", "2016-03-07 15:52:11.059750"]] [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", "2016-03-07 15:52:11.070354"], ["updated_at", "2016-03-07 15:52:11.070354"]] [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.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[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", "2016-03-08 15:52:11.086211"], ["created_at", "2016-03-07 15:52:11.087599"], ["updated_at", "2016-03-07 15:52:11.087599"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:52:11.097650"], ["updated_at", "2016-03-07 15:52:11.097650"]] [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", "2016-03-07 15:52:11.099808"], ["updated_at", "2016-03-07 15:52:11.099808"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.101275"], ["updated_at", "2016-03-07 15:52:11.101275"]] [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.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.1ms)[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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 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-03-07 15:52:11.112776"], ["updated_at", "2016-03-07 15:52:11.112776"]] [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-03-07 15:52:11.116880"], ["updated_at", "2016-03-07 15:52:11.116880"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.118948"], ["updated_at", "2016-03-07 15:52:11.118948"]] [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", "2016-03-07 15:52:11.124748"], ["updated_at", "2016-03-07 15:52:11.124748"]] [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-03-07 15:52:11.128907"], ["updated_at", "2016-03-07 15:52:11.128907"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.131302"], ["updated_at", "2016-03-07 15:52:11.131302"]] [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 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.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", "2016-03-07 15:52:11.137877"], ["updated_at", "2016-03-07 15:52:11.137877"]] [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", "2016-03-07 15:52:11.142289"], ["updated_at", "2016-03-07 15:52:11.142289"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.144360"], ["updated_at", "2016-03-07 15:52:11.144360"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.145490"], ["updated_at", "2016-03-07 15:52:11.145490"]] [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", "2016-03-07 15:52:11.148840"], ["updated_at", "2016-03-07 15:52:11.148840"]] [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", 3], ["canvas_term_id", "11"], ["created_at", "2016-03-07 15:52:11.151038"], ["updated_at", "2016-03-07 15:52:11.151038"]] [1m[35m (0.0ms)[0m 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", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:11.152242"], ["updated_at", "2016-03-07 15:52:11.152242"]] 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.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 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", "2016-03-07 15:52:11.157320"], ["updated_at", "2016-03-07 15:52:11.157320"]] [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-03-07 15:52:11.159525"], ["updated_at", "2016-03-07 15:52:11.159525"]] [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", "2016-03-07 15:52:11.163650"], ["updated_at", "2016-03-07 15:52:11.163650"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.165564"], ["updated_at", "2016-03-07 15:52:11.165564"]] [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-03-07 15:52:11.168280"], ["updated_at", "2016-03-07 15:52:11.168280"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:11.170417"], ["updated_at", "2016-03-07 15:52:11.170417"]] 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.1ms)[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 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.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 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-03-07 15:52:11.175292"], ["updated_at", "2016-03-07 15:52:11.175292"]] [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.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 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-03-07 15:52:11.178468"], ["updated_at", "2016-03-07 15:52:11.178468"]] [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", "13"], ["created_at", "2016-03-07 15:52:11.180473"], ["updated_at", "2016-03-07 15:52:11.180473"]] [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.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", "2016-03-07 15:52:11.245724"], ["updated_at", "2016-03-07 15:52:11.245724"]] [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", "2016-03-07 15:52:11.247862"], ["updated_at", "2016-03-07 15:52:11.247862"]] [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.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", "2016-03-07 15:52:11.257798"], ["updated_at", "2016-03-07 15:52:11.257798"]] [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.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-03-07 15:52:11.261680"], ["updated_at", "2016-03-07 15:52:11.261680"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.263601"], ["updated_at", "2016-03-07 15:52:11.263601"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.264983"], ["updated_at", "2016-03-07 15:52:11.264983"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.267078"], ["updated_at", "2016-03-07 15:52:11.267078"]] [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 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", "2016-03-07 15:52:11.274295"], ["updated_at", "2016-03-07 15:52:11.274295"]] [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", "2016-03-07 15:52:11.276844"], ["updated_at", "2016-03-07 15:52:11.276844"]] [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", "2016-03-07 15:52:11.279849"], ["updated_at", "2016-03-07 15:52:11.279849"]] [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.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-03-07 15:52:11.283076"], ["updated_at", "2016-03-07 15:52:11.283076"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.284944"], ["updated_at", "2016-03-07 15:52:11.284944"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.286479"], ["updated_at", "2016-03-07 15:52:11.286479"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.287970"], ["updated_at", "2016-03-07 15:52:11.287970"]] [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", "2016-03-07 15:52:11.294465"], ["updated_at", "2016-03-07 15:52:11.294465"]] [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", "2016-03-07 15:52:11.296599"], ["updated_at", "2016-03-07 15:52:11.296599"]] [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", "2016-03-07 15:52:11.299257"], ["updated_at", "2016-03-07 15:52:11.299257"]] [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", "2016-03-07 15:52:11.302292"], ["updated_at", "2016-03-07 15:52:11.302292"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.303785"], ["updated_at", "2016-03-07 15:52:11.303785"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.304854"], ["updated_at", "2016-03-07 15:52:11.304854"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.306012"], ["updated_at", "2016-03-07 15:52:11.306012"]] [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", "2016-03-07 15:52:11.311061"], ["updated_at", "2016-03-07 15:52:11.311061"]] [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", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-03-07 15:52:11.313218"], ["updated_at", "2016-03-07 15:52:11.313218"]] [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-03-07 15:52:11.315828"], ["updated_at", "2016-03-07 15:52:11.315828"]] [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 (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", "2016-03-07 15:52:11.320155"], ["updated_at", "2016-03-07 15:52:11.320155"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.322845"], ["updated_at", "2016-03-07 15:52:11.322845"]] [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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:52:11.324621"], ["updated_at", "2016-03-07 15:52:11.324621"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.326177"], ["updated_at", "2016-03-07 15:52:11.326177"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[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-03-07 15:52:11.328218"], ["updated_at", "2016-03-07 15:52:11.328218"]] [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-03-07 15:52:11.331560"], ["updated_at", "2016-03-07 15:52:11.331560"]] 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", "2016-03-07 15:52:11.337809"], ["updated_at", "2016-03-07 15:52:11.337809"]] [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-03-07 15:52:11.340046"], ["updated_at", "2016-03-07 15:52:11.340046"]] [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-03-07 15:52:11.342719"], ["updated_at", "2016-03-07 15:52:11.342719"]] [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", "2016-03-07 15:52:11.345502"], ["updated_at", "2016-03-07 15:52:11.345502"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.347016"], ["updated_at", "2016-03-07 15:52:11.347016"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.348249"], ["updated_at", "2016-03-07 15:52:11.348249"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.349379"], ["updated_at", "2016-03-07 15:52:11.349379"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.351235"], ["updated_at", "2016-03-07 15:52:11.351235"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.352899"], ["updated_at", "2016-03-07 15:52:11.352899"]] [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 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.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-03-07 15:52:11.359796"], ["updated_at", "2016-03-07 15:52:11.359796"]] [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", "2016-03-07 15:52:11.362419"], ["updated_at", "2016-03-07 15:52:11.362419"]] [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-03-07 15:52:11.365615"], ["updated_at", "2016-03-07 15:52:11.365615"]] [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.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", "2016-03-07 15:52:11.368416"], ["updated_at", "2016-03-07 15:52:11.368416"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.370184"], ["updated_at", "2016-03-07 15:52:11.370184"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.371551"], ["updated_at", "2016-03-07 15:52:11.371551"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.372998"], ["updated_at", "2016-03-07 15:52:11.372998"]] [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.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.1ms)[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.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 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", "2016-03-07 15:52:11.388358"], ["updated_at", "2016-03-07 15:52:11.388358"]] [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", "2016-03-07 15:52:11.391314"], ["updated_at", "2016-03-07 15:52:11.391314"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.393194"], ["updated_at", "2016-03-07 15:52:11.393194"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.394452"], ["updated_at", "2016-03-07 15:52:11.394452"]] [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", "2016-03-07 15:52:11.400643"], ["updated_at", "2016-03-07 15:52:11.400643"]] [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", "2016-03-07 15:52:11.403918"], ["updated_at", "2016-03-07 15:52:11.403918"]] [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", "21"], ["created_at", "2016-03-07 15:52:11.405765"], ["updated_at", "2016-03-07 15:52:11.405765"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.406969"], ["updated_at", "2016-03-07 15:52:11.406969"]] [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.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-03-07 15:52:11.411567"], ["updated_at", "2016-03-07 15:52:11.411567"]] [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 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-03-07 15:52:11.414818"], ["updated_at", "2016-03-07 15:52:11.414818"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.417076"], ["updated_at", "2016-03-07 15:52:11.417076"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.418441"], ["updated_at", "2016-03-07 15:52:11.418441"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.420173"], ["updated_at", "2016-03-07 15:52:11.420173"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:11.421832"], ["updated_at", "2016-03-07 15:52:11.421832"]] 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 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-03-07 15:52:11.426847"], ["updated_at", "2016-03-07 15:52:11.426847"]] [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.1ms)[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", "2016-03-07 15:52:11.430567"], ["updated_at", "2016-03-07 15:52:11.430567"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.432910"], ["updated_at", "2016-03-07 15:52:11.432910"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.434312"], ["updated_at", "2016-03-07 15:52:11.434312"]] [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.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 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-03-07 15:52:11.448105"], ["updated_at", "2016-03-07 15:52:11.448105"]] [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-03-07 15:52:11.450864"], ["updated_at", "2016-03-07 15:52:11.450864"]] [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-03-07 15:52:11.455146"], ["updated_at", "2016-03-07 15:52:11.455146"]] [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.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", "2016-03-07 15:52:11.458243"], ["updated_at", "2016-03-07 15:52:11.458243"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.459918"], ["updated_at", "2016-03-07 15:52:11.459918"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:11.461237"], ["updated_at", "2016-03-07 15:52:11.461237"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.462502"], ["updated_at", "2016-03-07 15:52:11.462502"]] [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 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-03-07 15:52:11.469791"], ["updated_at", "2016-03-07 15:52:11.469791"]] [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-03-07 15:52:11.472475"], ["updated_at", "2016-03-07 15:52:11.472475"]] [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.1ms)[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-03-07 15:52:11.475844"], ["updated_at", "2016-03-07 15:52:11.475844"]] [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 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.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", "2016-03-07 15:52:11.534301"], ["updated_at", "2016-03-07 15:52:11.534301"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.536309"], ["updated_at", "2016-03-07 15:52:11.536309"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.537459"], ["updated_at", "2016-03-07 15:52:11.537459"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.538611"], ["updated_at", "2016-03-07 15:52:11.538611"]] [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.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.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 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-03-07 15:52:11.544386"], ["updated_at", "2016-03-07 15:52:11.544386"]] [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-03-07 15:52:11.547315"], ["updated_at", "2016-03-07 15:52:11.547315"]] [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-03-07 15:52:11.550595"], ["updated_at", "2016-03-07 15:52:11.550595"]] [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-03-07 15:52:11.553556"], ["updated_at", "2016-03-07 15:52:11.553556"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.555082"], ["updated_at", "2016-03-07 15:52:11.555082"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.556179"], ["updated_at", "2016-03-07 15:52:11.556179"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.557443"], ["updated_at", "2016-03-07 15:52:11.557443"]] [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", "2016-03-07 15:52:11.562383"], ["updated_at", "2016-03-07 15:52:11.562383"]] [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", "2016-03-07 15:52:11.564362"], ["updated_at", "2016-03-07 15:52:11.564362"]] [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-03-07 15:52:11.567026"], ["updated_at", "2016-03-07 15:52:11.567026"]] [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 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.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", "2016-03-07 15:52:11.571355"], ["updated_at", "2016-03-07 15:52:11.571355"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.573466"], ["updated_at", "2016-03-07 15:52:11.573466"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.575023"], ["updated_at", "2016-03-07 15:52:11.575023"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.576462"], ["updated_at", "2016-03-07 15:52:11.576462"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:11.578483"], ["updated_at", "2016-03-07 15:52:11.578483"]] [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", "2016-03-07 15:52:11.580535"], ["updated_at", "2016-03-07 15:52:11.580535"]] 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", "2016-03-07 15:52:11.586671"], ["updated_at", "2016-03-07 15:52:11.586671"]] [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-03-07 15:52:11.588985"], ["updated_at", "2016-03-07 15:52:11.588985"]] [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 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-03-07 15:52:11.591870"], ["updated_at", "2016-03-07 15:52:11.591870"]] [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", "2016-03-07 15:52:11.594723"], ["updated_at", "2016-03-07 15:52:11.594723"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.596282"], ["updated_at", "2016-03-07 15:52:11.596282"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.597435"], ["updated_at", "2016-03-07 15:52:11.597435"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.598697"], ["updated_at", "2016-03-07 15:52:11.598697"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.600292"], ["updated_at", "2016-03-07 15:52:11.600292"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.601974"], ["updated_at", "2016-03-07 15:52:11.601974"]] [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", "2016-03-07 15:52:11.606938"], ["updated_at", "2016-03-07 15:52:11.606938"]] [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-03-07 15:52:11.608919"], ["updated_at", "2016-03-07 15:52:11.608919"]] [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-03-07 15:52:11.611552"], ["updated_at", "2016-03-07 15:52:11.611552"]] [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", "2016-03-07 15:52:11.614112"], ["updated_at", "2016-03-07 15:52:11.614112"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.615759"], ["updated_at", "2016-03-07 15:52:11.615759"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.616915"], ["updated_at", "2016-03-07 15:52:11.616915"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.618187"], ["updated_at", "2016-03-07 15:52:11.618187"]] [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.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.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-03-07 15:52:11.624631"], ["updated_at", "2016-03-07 15:52:11.624631"]] [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", "2016-03-07 15:52:11.630304"], ["updated_at", "2016-03-07 15:52:11.630304"]] [1m[35m (0.0ms)[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_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-03-07 15:52:11.633162"], ["updated_at", "2016-03-07 15:52:11.633162"]] [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-03-07 15:52:11.635410"], ["updated_at", "2016-03-07 15:52:11.635410"]] 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.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.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", "2016-03-07 15:52:11.642300"], ["updated_at", "2016-03-07 15:52:11.642300"]] [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.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", "2016-03-07 15:52:11.649402"], ["updated_at", "2016-03-07 15:52:11.649402"]] [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.1ms)[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-03-07 15:52:11.654987"], ["updated_at", "2016-03-07 15:52:11.654987"]] [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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:52:11.658323"], ["updated_at", "2016-03-07 15:52:11.658323"]] [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_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-03-07 15:52:11.661205"], ["updated_at", "2016-03-07 15:52:11.661205"]] 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.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 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-03-07 15:52:11.666014"], ["updated_at", "2016-03-07 15:52:11.666014"]] [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", "2016-03-07 15:52:11.674386"], ["updated_at", "2016-03-07 15:52:11.674386"]] [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", "2016-03-07 15:52:11.688548"], ["updated_at", "2016-03-07 15:52:11.688548"]] [1m[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-03-07 15:52:11.690485"], ["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", "2016-03-07 15:52:11.696910"], ["updated_at", "2016-03-07 15:52:11.696910"]] [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-03-07 15:52:11.700269"], ["updated_at", "2016-03-07 15:52:11.700269"]] [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-03-07 15:52:11.701735"], ["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", "2016-03-07 15:52:11.706948"], ["updated_at", "2016-03-07 15:52:11.706948"]] [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-03-07 15:52:11.710729"], ["updated_at", "2016-03-07 15:52:11.710729"]] [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-03-07 15:52:11.712251"], ["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-03-07 15:52:11.724698"], ["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", "2016-03-07 15:52:11.729073"], ["updated_at", "2016-03-07 15:52:11.729073"]] [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-03-07 15:52:11.731090"], ["updated_at", "2016-03-07 15:52:11.731090"]] [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", "2016-03-07 15:52:11.732712"], ["updated_at", "2016-03-07 15:52:11.732712"]] [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", "2016-03-07 15:52:11.734899"], ["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-03-07 15:52:11.736024"], ["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.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.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", "2016-03-07 15:52:11.798089"], ["updated_at", "2016-03-07 15:52:11.798089"]] [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", "2016-03-07 15:52:11.801422"], ["updated_at", "2016-03-07 15:52:11.801422"]] [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-03-07 15:52:11.802842"], ["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", "2016-03-07 15:52:11.806361"], ["updated_at", "2016-03-07 15:52:11.806361"]] [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", "2016-03-07 15:52:11.808475"], ["updated_at", "2016-03-07 15:52:11.808475"]] [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.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.1ms)[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-03-07 15:52:11.815096"], ["updated_at", "2016-03-07 15:52:11.815096"]] [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-03-07 15:52:11.819355"], ["updated_at", "2016-03-07 15:52:11.819355"]] [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-03-07 15:52:11.821113"], ["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", "2016-03-07 15:52:11.823496"], ["updated_at", "2016-03-07 15:52:11.823496"]] [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-03-07 15:52:11.825163"], ["updated_at", "2016-03-07 15:52:11.825163"]] [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", "2016-03-07 15:52:11.826642"], ["updated_at", "2016-03-07 15:52:11.826642"]] [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", "2016-03-07 15:52:11.832816"], ["updated_at", "2016-03-07 15:52:11.832816"]] [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-03-07 15:52:11.837028"], ["updated_at", "2016-03-07 15:52:11.837028"]] [1m[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-03-07 15:52:11.838818"], ["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 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", "2016-03-07 15:52:11.844068"], ["updated_at", "2016-03-07 15:52:11.844068"]] [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-03-07 15:52:11.847608"], ["updated_at", "2016-03-07 15:52:11.847608"]] [1m[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-03-07 15:52:11.849798"], ["id", 1]] [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.1ms)[0m [1mSAVEPOINT active_record_1[0m [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 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", "2016-03-07 15:52:11.859122"], ["updated_at", "2016-03-07 15:52:11.859122"]] [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", "2016-03-07 15:52:11.862821"], ["updated_at", "2016-03-07 15:52:11.862821"]] [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-03-07 15:52:11.864340"], ["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", "2016-03-07 15:52:11.866989"], ["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", "2016-03-07 15:52:11.874607"], ["updated_at", "2016-03-07 15:52:11.874607"]] [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", "2016-03-07 15:52:11.877799"], ["updated_at", "2016-03-07 15:52:11.877799"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.879591"], ["updated_at", "2016-03-07 15:52:11.879591"]] [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", "26"], ["created_at", "2016-03-07 15:52:11.880866"], ["updated_at", "2016-03-07 15:52:11.880866"]] [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-03-07 15:52:11.883558"], ["updated_at", "2016-03-07 15:52:11.883558"]] [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-03-07 15:52:11.884931"], ["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.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.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", "2016-03-07 15:52:11.892467"], ["updated_at", "2016-03-07 15:52:11.892467"]] [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", "2016-03-07 15:52:11.895786"], ["updated_at", "2016-03-07 15:52:11.895786"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.897673"], ["updated_at", "2016-03-07 15:52:11.897673"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.898838"], ["updated_at", "2016-03-07 15:52:11.898838"]] [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-03-07 15:52:11.901815"], ["updated_at", "2016-03-07 15:52:11.901815"]] [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-03-07 15:52:11.903397"], ["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", "2016-03-07 15:52:11.910602"], ["updated_at", "2016-03-07 15:52:11.910602"]] [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", "2016-03-07 15:52:11.913888"], ["updated_at", "2016-03-07 15:52:11.913888"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.915730"], ["updated_at", "2016-03-07 15:52:11.915730"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.917262"], ["updated_at", "2016-03-07 15:52:11.917262"]] [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-03-07 15:52:11.919732"], ["updated_at", "2016-03-07 15:52:11.919732"]] [1m[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", "2016-03-07 15:52:11.921381"], ["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", "2016-03-07 15:52:11.929461"], ["updated_at", "2016-03-07 15:52:11.929461"]] [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-03-07 15:52:11.932702"], ["updated_at", "2016-03-07 15:52:11.932702"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.934760"], ["updated_at", "2016-03-07 15:52:11.934760"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.936129"], ["updated_at", "2016-03-07 15:52:11.936129"]] [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-03-07 15:52:11.939440"], ["updated_at", "2016-03-07 15:52:11.939440"]] [1m[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-03-07 15:52:11.941152"], ["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", "2016-03-07 15:52:11.948886"], ["updated_at", "2016-03-07 15:52:11.948886"]] [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.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-03-07 15:52:11.952767"], ["updated_at", "2016-03-07 15:52:11.952767"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:11.954927"], ["updated_at", "2016-03-07 15:52:11.954927"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:11.956235"], ["updated_at", "2016-03-07 15:52:11.956235"]] [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-03-07 15:52:11.958827"], ["updated_at", "2016-03-07 15:52:11.958827"]] [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-03-07 15:52:11.960207"], ["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", "2016-03-07 15:52:11.967561"], ["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-03-07 15:52:11.971894"], ["updated_at", "2016-03-07 15:52:11.971894"]] [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", "2016-03-07 15:52:11.974252"], ["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", "2016-03-07 15:52:11.977150"], ["updated_at", "2016-03-07 15:52:11.977150"]] [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-03-07 15:52:11.978873"], ["updated_at", "2016-03-07 15:52:11.978873"]] [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", "2016-03-07 15:52:11.980541"], ["updated_at", "2016-03-07 15:52:11.980541"]] [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-03-07 15:52:11.989811"], ["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.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.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.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-03-07 15:52:12.007711"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (3.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.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", "2016-03-07 15:52:12.078360"], ["updated_at", "2016-03-07 15:52:12.078360"]] [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.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-03-07 15:52:12.082235"], ["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.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.2ms)[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.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" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["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", 62.5], ["updated_at", "2016-03-07 15:52:12.105539"], ["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.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-03-07 15:52:12.109381"], ["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.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", "2016-03-07 15:52:12.125746"], ["updated_at", "2016-03-07 15:52:12.125746"]] [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-03-07 15:52:12.129461"], ["updated_at", "2016-03-07 15:52:12.129461"]] [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-03-07 15:52:12.131632"], ["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.7ms)[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", "2016-03-07 15:52:12.147686"], ["updated_at", "2016-03-07 15:52:12.147686"]] [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.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.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[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-03-07 15:52:12.153222"], ["updated_at", "2016-03-07 15:52:12.153222"]] [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[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-03-07 15:52:12.160849"], ["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-03-07 15:52:12.162215"], ["id", 1]] [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[36mCoalescingPanda::Section Load (0.2ms)[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.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' 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 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-03-07 15:52:12.170642"], ["updated_at", "2016-03-07 15:52:12.170642"]] [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 98' 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 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-03-07 15:52:12.174362"], ["updated_at", "2016-03-07 15:52:12.174362"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.176867"], ["updated_at", "2016-03-07 15:52:12.176867"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.178116"], ["updated_at", "2016-03-07 15:52:12.178116"]] [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-03-07 15:52:12.180586"], ["updated_at", "2016-03-07 15:52:12.180586"]] [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-03-07 15:52:12.181866"], ["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-03-07 15:52:12.184098"], ["updated_at", "2016-03-07 15:52:12.184098"]] [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[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [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.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.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 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-03-07 15:52:12.192812"], ["updated_at", "2016-03-07 15:52:12.192812"]] [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 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.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 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-03-07 15:52:12.196559"], ["updated_at", "2016-03-07 15:52:12.196559"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:52:12.198556"], ["updated_at", "2016-03-07 15:52:12.198556"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:52:12.199948"], ["updated_at", "2016-03-07 15:52:12.199948"]] [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-03-07 15:52:12.203153"], ["updated_at", "2016-03-07 15:52:12.203153"]] [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-03-07 15:52:12.204691"], ["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", "2016-03-07 15:52:12.207128"], ["updated_at", "2016-03-07 15:52:12.207128"]] [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-03-07 15:52:12.209095"], ["updated_at", "2016-03-07 15:52:12.209095"]] [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-03-07 15:52:12.210830"], ["updated_at", "2016-03-07 15:52:12.210830"]] [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.7ms)[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.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 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-03-07 15:52:12.219959"], ["updated_at", "2016-03-07 15:52:12.219959"]] [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 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.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 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-03-07 15:52:12.224243"], ["updated_at", "2016-03-07 15:52:12.224243"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.226348"], ["updated_at", "2016-03-07 15:52:12.226348"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.227633"], ["updated_at", "2016-03-07 15:52:12.227633"]] [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-03-07 15:52:12.230389"], ["updated_at", "2016-03-07 15:52:12.230389"]] [1m[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-03-07 15:52:12.232203"], ["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-03-07 15:52:12.235367"], ["updated_at", "2016-03-07 15:52:12.235367"]] [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", "2016-03-07 15:52:12.238217"], ["updated_at", "2016-03-07 15:52:12.238217"]] [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-03-07 15:52:12.240115"], ["updated_at", "2016-03-07 15:52:12.240115"]] [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", "2016-03-07 15:52:12.241848"], ["updated_at", "2016-03-07 15:52:12.241848"]] [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[36m (0.0ms)[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 (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 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.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 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-03-07 15:52:12.262261"], ["updated_at", "2016-03-07 15:52:12.262261"]] [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 104' 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 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-03-07 15:52:12.267020"], ["updated_at", "2016-03-07 15:52:12.267020"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.269535"], ["updated_at", "2016-03-07 15:52:12.269535"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.271164"], ["updated_at", "2016-03-07 15:52:12.271164"]] [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-03-07 15:52:12.274312"], ["updated_at", "2016-03-07 15:52:12.274312"]] [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-03-07 15:52:12.275948"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.6ms)[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-03-07 15:52:12.344744"], ["updated_at", "2016-03-07 15:52:12.344744"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Assignment Load (0.2ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.1ms)[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.1ms)[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-03-07 15:52:12.356236"], ["updated_at", "2016-03-07 15:52:12.356236"]] [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 106' 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 106' 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 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-03-07 15:52:12.360843"], ["updated_at", "2016-03-07 15:52:12.360843"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.363912"], ["updated_at", "2016-03-07 15:52:12.363912"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.365506"], ["updated_at", "2016-03-07 15:52:12.365506"]] [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-03-07 15:52:12.368603"], ["updated_at", "2016-03-07 15:52:12.368603"]] [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-03-07 15:52:12.370342"], ["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-03-07 15:52:12.372800"], ["updated_at", "2016-03-07 15:52:12.372800"]] [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.1ms)[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.0ms)[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.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[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-03-07 15:52:12.391041"], ["updated_at", "2016-03-07 15:52:12.391041"]] [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.1ms)[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", "2016-03-07 15:52:12.395999"], ["updated_at", "2016-03-07 15:52:12.395999"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.398311"], ["updated_at", "2016-03-07 15:52:12.398311"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.399866"], ["updated_at", "2016-03-07 15:52:12.399866"]] [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-03-07 15:52:12.402577"], ["updated_at", "2016-03-07 15:52:12.402577"]] [1m[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-03-07 15:52:12.404538"], ["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.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", "2016-03-07 15:52:12.407866"], ["updated_at", "2016-03-07 15:52:12.407866"]] [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.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.1ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [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 109' 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 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", "2016-03-07 15:52:12.418771"], ["updated_at", "2016-03-07 15:52:12.418771"]] [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 110' 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 110' 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 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-03-07 15:52:12.424199"], ["updated_at", "2016-03-07 15:52:12.424199"]] [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", "42"], ["created_at", "2016-03-07 15:52:12.427310"], ["updated_at", "2016-03-07 15:52:12.427310"]] [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", "37"], ["created_at", "2016-03-07 15:52:12.429616"], ["updated_at", "2016-03-07 15:52:12.429616"]] [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-03-07 15:52:12.433262"], ["updated_at", "2016-03-07 15:52:12.433262"]] [1m[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-03-07 15:52:12.435828"], ["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-03-07 15:52:12.439164"], ["updated_at", "2016-03-07 15:52:12.439164"]] [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-03-07 15:52:12.442226"], ["updated_at", "2016-03-07 15:52:12.442226"]] [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-03-07 15:52:12.444314"], ["updated_at", "2016-03-07 15:52:12.444314"]] [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-03-07 15:52:12.446245"], ["updated_at", "2016-03-07 15:52:12.446245"]] [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.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::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.2ms)[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-03-07 15:52:12.473726"], ["updated_at", "2016-03-07 15:52:12.473726"]] [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-03-07 15:52:12.477048"], ["updated_at", "2016-03-07 15:52:12.477048"]] [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.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.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-03-07 15:52:12.479903"], ["updated_at", "2016-03-07 15:52:12.479903"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-07 15:52:12.482801"], ["updated_at", "2016-03-07 15:52:12.482801"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.1ms)[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-03-07 15:52:12.490742"], ["updated_at", "2016-03-07 15:52:12.490742"]] [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 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-03-07 15:52:12.493892"], ["updated_at", "2016-03-07 15:52:12.493892"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.495881"], ["updated_at", "2016-03-07 15:52:12.495881"]] [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", "38"], ["created_at", "2016-03-07 15:52:12.497177"], ["updated_at", "2016-03-07 15:52:12.497177"]] [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-03-07 15:52:12.499637"], ["updated_at", "2016-03-07 15:52:12.499637"]] [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-03-07 15:52:12.500998"], ["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-03-07 15:52:12.503204"], ["updated_at", "2016-03-07 15:52:12.503204"]] [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-03-07 15:52:12.506575"], ["updated_at", "2016-03-07 15:52:12.506575"]] [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-03-07 15:52:12.509091"], ["updated_at", "2016-03-07 15:52:12.509091"]] [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.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.1ms)[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.0ms)[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-03-07 15:52:12.517355"], ["updated_at", "2016-03-07 15:52:12.517355"]] [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.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 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-03-07 15:52:12.520886"], ["updated_at", "2016-03-07 15:52:12.520886"]] [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", "44"], ["created_at", "2016-03-07 15:52:12.523512"], ["updated_at", "2016-03-07 15:52:12.523512"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.525219"], ["updated_at", "2016-03-07 15:52:12.525219"]] [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-03-07 15:52:12.528544"], ["updated_at", "2016-03-07 15:52:12.528544"]] [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-03-07 15:52:12.530244"], ["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.1ms)[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-03-07 15:52:12.533561"], ["updated_at", "2016-03-07 15:52:12.533561"]] [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-03-07 15:52:12.537375"], ["updated_at", "2016-03-07 15:52:12.537375"]] [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-03-07 15:52:12.539606"], ["updated_at", "2016-03-07 15:52:12.539606"]] [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-03-07 15:52:12.541536"], ["updated_at", "2016-03-07 15:52:12.541536"]] [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 (3.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.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", "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-03-07 15:52:12.614402"], ["updated_at", "2016-03-07 15:52:12.614402"]] [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.0ms)[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-03-07 15:52:12.616583"], ["updated_at", "2016-03-07 15:52:12.616583"]] [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" = ? 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 (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.0ms)[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-03-07 15:52:12.627127"], ["updated_at", "2016-03-07 15:52:12.627127"]] [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 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.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 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-03-07 15:52:12.630320"], ["updated_at", "2016-03-07 15:52:12.630320"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.632420"], ["updated_at", "2016-03-07 15:52:12.632420"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.633639"], ["updated_at", "2016-03-07 15:52:12.633639"]] [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-03-07 15:52:12.636512"], ["updated_at", "2016-03-07 15:52:12.636512"]] [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-03-07 15:52:12.638387"], ["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-03-07 15:52:12.642971"], ["updated_at", "2016-03-07 15:52:12.642971"]] [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-03-07 15:52:12.646049"], ["updated_at", "2016-03-07 15:52:12.646049"]] [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"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [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", "2016-03-07 15:52:12.654950"], ["updated_at", "2016-03-07 15:52:12.654950"]] [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.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 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-03-07 15:52:12.658346"], ["updated_at", "2016-03-07 15:52:12.658346"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.660581"], ["updated_at", "2016-03-07 15:52:12.660581"]] [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", "2016-03-07 15:52:12.662579"], ["updated_at", "2016-03-07 15:52:12.662579"]] [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-03-07 15:52:12.666082"], ["updated_at", "2016-03-07 15:52:12.666082"]] [1m[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-03-07 15:52:12.667816"], ["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-03-07 15:52:12.670671"], ["updated_at", "2016-03-07 15:52:12.670671"]] [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-03-07 15:52:12.673212"], ["updated_at", "2016-03-07 15:52:12.673212"]] [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-03-07 15:52:12.674818"], ["updated_at", "2016-03-07 15:52:12.674818"]] [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", "2016-03-07 15:52:12.676373"], ["updated_at", "2016-03-07 15:52:12.676373"]] [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- :enrollments\n"], ["updated_at", "2016-03-07 15:52:12.690419"], ["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.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.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", "2016-03-07 15:52:12.708748"], ["updated_at", "2016-03-07 15:52:12.708748"]] [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", "2016-03-07 15:52:12.712410"], ["updated_at", "2016-03-07 15:52:12.712410"]] [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", "47"], ["created_at", "2016-03-07 15:52:12.714484"], ["updated_at", "2016-03-07 15:52:12.714484"]] [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", "42"], ["created_at", "2016-03-07 15:52:12.715879"], ["updated_at", "2016-03-07 15:52:12.715879"]] [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-03-07 15:52:12.718744"], ["updated_at", "2016-03-07 15:52:12.718744"]] [1m[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-03-07 15:52:12.720208"], ["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-03-07 15:52:12.722588"], ["updated_at", "2016-03-07 15:52:12.722588"]] [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.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-03-07 15:52:12.725161"], ["updated_at", "2016-03-07 15:52:12.725161"]] [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-03-07 15:52:12.727007"], ["updated_at", "2016-03-07 15:52:12.727007"]] [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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:52:12.728715"], ["updated_at", "2016-03-07 15:52:12.728715"]] [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.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", "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", "2016-03-07 15:52:12.746108"], ["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.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 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.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 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-03-07 15:52:12.762706"], ["updated_at", "2016-03-07 15:52:12.762706"]] [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", "2016-03-07 15:52:12.765935"], ["updated_at", "2016-03-07 15:52:12.765935"]] [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", "48"], ["created_at", "2016-03-07 15:52:12.767890"], ["updated_at", "2016-03-07 15:52:12.767890"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.769048"], ["updated_at", "2016-03-07 15:52:12.769048"]] [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-03-07 15:52:12.771416"], ["updated_at", "2016-03-07 15:52:12.771416"]] [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-03-07 15:52:12.772709"], ["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-03-07 15:52:12.774795"], ["updated_at", "2016-03-07 15:52:12.774795"]] [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-03-07 15:52:12.777050"], ["updated_at", "2016-03-07 15:52:12.777050"]] [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-03-07 15:52:12.778539"], ["updated_at", "2016-03-07 15:52:12.778539"]] [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-03-07 15:52:12.779975"], ["updated_at", "2016-03-07 15:52:12.779975"]] [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", "2016-03-07 15:52:12.793888"], ["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.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.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-03-07 15:52:12.869225"], ["updated_at", "2016-03-07 15:52:12.869225"]] [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.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.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", "2016-03-07 15:52:12.872607"], ["updated_at", "2016-03-07 15:52:12.872607"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:12.874891"], ["updated_at", "2016-03-07 15:52:12.874891"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.876322"], ["updated_at", "2016-03-07 15:52:12.876322"]] [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-03-07 15:52:12.879156"], ["updated_at", "2016-03-07 15:52:12.879156"]] [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-03-07 15:52:12.880698"], ["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-03-07 15:52:12.882878"], ["updated_at", "2016-03-07 15:52:12.882878"]] [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-03-07 15:52:12.885059"], ["updated_at", "2016-03-07 15:52:12.885059"]] [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-03-07 15:52:12.886562"], ["updated_at", "2016-03-07 15:52:12.886562"]] [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", "2016-03-07 15:52:12.888014"], ["updated_at", "2016-03-07 15:52:12.888014"]] [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", "2016-03-07 15:52:12.901987"], ["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-03-07 15:52:12.907630"], ["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.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 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-03-07 15:52:12.917360"], ["updated_at", "2016-03-07 15:52:12.917360"]] [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", "2016-03-07 15:52:12.921108"], ["updated_at", "2016-03-07 15:52:12.921108"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.923267"], ["updated_at", "2016-03-07 15:52:12.923267"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.924516"], ["updated_at", "2016-03-07 15:52:12.924516"]] [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-03-07 15:52:12.927075"], ["updated_at", "2016-03-07 15:52:12.927075"]] [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-03-07 15:52:12.928419"], ["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.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.1ms)[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-03-07 15:52:12.936030"], ["updated_at", "2016-03-07 15:52:12.936030"]] [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 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-03-07 15:52:12.940945"], ["updated_at", "2016-03-07 15:52:12.940945"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:12.943645"], ["updated_at", "2016-03-07 15:52:12.943645"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:12.945190"], ["updated_at", "2016-03-07 15:52:12.945190"]] [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-03-07 15:52:12.948508"], ["updated_at", "2016-03-07 15:52:12.948508"]] [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-03-07 15:52:12.950190"], ["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", "2016-03-07 15:52:12.958148"], ["updated_at", "2016-03-07 15:52:12.958148"]] [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", "2016-03-07 15:52:12.961449"], ["updated_at", "2016-03-07 15:52:12.961449"]] [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", "2016-03-07 15:52:12.963562"], ["updated_at", "2016-03-07 15:52:12.963562"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:12.964762"], ["updated_at", "2016-03-07 15:52:12.964762"]] [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-03-07 15:52:12.967647"], ["updated_at", "2016-03-07 15:52:12.967647"]] [1m[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-03-07 15:52:12.969608"], ["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 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", "2016-03-07 15:52:12.978109"], ["updated_at", "2016-03-07 15:52:12.978109"]] [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", "2016-03-07 15:52:12.981119"], ["updated_at", "2016-03-07 15:52:12.981119"]] [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", "53"], ["created_at", "2016-03-07 15:52:12.982906"], ["updated_at", "2016-03-07 15:52:12.982906"]] [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", "48"], ["created_at", "2016-03-07 15:52:12.985366"], ["updated_at", "2016-03-07 15:52:12.985366"]] [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-03-07 15:52:12.989041"], ["updated_at", "2016-03-07 15:52:12.989041"]] [1m[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-03-07 15:52:12.990969"], ["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 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", "2016-03-07 15:52:12.999924"], ["updated_at", "2016-03-07 15:52:12.999924"]] [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.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", "2016-03-07 15:52:13.003390"], ["updated_at", "2016-03-07 15:52:13.003390"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:13.005419"], ["updated_at", "2016-03-07 15:52:13.005419"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:13.006686"], ["updated_at", "2016-03-07 15:52:13.006686"]] [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-03-07 15:52:13.009735"], ["updated_at", "2016-03-07 15:52:13.009735"]] [1m[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-03-07 15:52:13.011416"], ["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.1ms)[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-03-07 15:52:13.019626"], ["updated_at", "2016-03-07 15:52:13.019626"]] [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-03-07 15:52:13.023194"], ["updated_at", "2016-03-07 15:52:13.023194"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:13.025194"], ["updated_at", "2016-03-07 15:52:13.025194"]] [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", "50"], ["created_at", "2016-03-07 15:52:13.026686"], ["updated_at", "2016-03-07 15:52:13.026686"]] [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-03-07 15:52:13.029793"], ["updated_at", "2016-03-07 15:52:13.029793"]] [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-03-07 15:52:13.031471"], ["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", "2016-03-07 15:52:13.039449"], ["updated_at", "2016-03-07 15:52:13.039449"]] [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", "2016-03-07 15:52:13.042578"], ["updated_at", "2016-03-07 15:52:13.042578"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:13.044403"], ["updated_at", "2016-03-07 15:52:13.044403"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:13.045521"], ["updated_at", "2016-03-07 15:52:13.045521"]] [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-03-07 15:52:13.047889"], ["updated_at", "2016-03-07 15:52:13.047889"]] [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-03-07 15:52:13.049263"], ["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 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", "2016-03-07 15:52:13.056314"], ["updated_at", "2016-03-07 15:52:13.056314"]] [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", "2016-03-07 15:52:13.059669"], ["updated_at", "2016-03-07 15:52:13.059669"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:13.061569"], ["updated_at", "2016-03-07 15:52:13.061569"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:13.063038"], ["updated_at", "2016-03-07 15:52:13.063038"]] [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-03-07 15:52:13.065637"], ["updated_at", "2016-03-07 15:52:13.065637"]] [1m[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-03-07 15:52:13.067547"], ["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.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 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-03-07 15:52:13.139228"], ["updated_at", "2016-03-07 15:52:13.139228"]] [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", "2016-03-07 15:52:13.142596"], ["updated_at", "2016-03-07 15:52:13.142596"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:13.144373"], ["updated_at", "2016-03-07 15:52:13.144373"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:13.145493"], ["updated_at", "2016-03-07 15:52:13.145493"]] [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-03-07 15:52:13.148044"], ["updated_at", "2016-03-07 15:52:13.148044"]] [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-03-07 15:52:13.149354"], ["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", "2016-03-07 15:52:13.152544"], ["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.9ms)[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 [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.0ms)[0m SAVEPOINT active_record_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", "2016-03-07 15:52:18.862823"], ["updated_at", "2016-03-07 15:52:18.862823"]] [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_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-03-07 15:52:18.879870"], ["updated_at", "2016-03-07 15:52:18.879870"]] [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", "2016-03-07 16:52:18.900567"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:52:18.901702"], ["updated_at", "2016-03-07 15:52:18.901702"]] [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 25ms (Views: 6.9ms | 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.2ms)[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.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.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-03-07 15:52:18.937467"], ["updated_at", "2016-03-07 15:52:18.937467"]] [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", "2016-03-07 15:52:18.947342"], ["updated_at", "2016-03-07 15:52:18.947342"]] [1m[36m (0.1ms)[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", "1"], ["created_at", "2016-03-07 15:52:18.950673"], ["updated_at", "2016-03-07 15:52:18.950673"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (53.8ms)[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-03-07 15:52:18.954133"], ["updated_at", "2016-03-07 15:52:18.954133"]] [1m[36m (0.1ms)[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 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-03-07 15:52:19.020972"], ["updated_at", "2016-03-07 15:52:19.020972"]] [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.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-03-07 15:52:19.024729"], ["updated_at", "2016-03-07 15:52:19.024729"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:19.026694"], ["updated_at", "2016-03-07 15:52:19.026694"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:19.028111"], ["updated_at", "2016-03-07 15:52:19.028111"]] [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", "2016-03-07 15:52:19.033646"], ["updated_at", "2016-03-07 15:52:19.033646"]] [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-03-07 15:52:19.036960"], ["updated_at", "2016-03-07 15:52:19.036960"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.039222"], ["updated_at", "2016-03-07 15:52:19.039222"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.040629"], ["updated_at", "2016-03-07 15:52:19.040629"]] [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.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 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-03-07 15:52:19.060023"], ["updated_at", "2016-03-07 15:52:19.060023"]] [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-03-07 15:52:19.064629"], ["updated_at", "2016-03-07 15:52:19.064629"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.067245"], ["updated_at", "2016-03-07 15:52:19.067245"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.068662"], ["updated_at", "2016-03-07 15:52:19.068662"]] [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.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", "2016-03-07 15:52:19.075351"], ["updated_at", "2016-03-07 15:52:19.075351"]] [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", "2016-03-07 15:52:19.078401"], ["updated_at", "2016-03-07 15:52:19.078401"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.080365"], ["updated_at", "2016-03-07 15:52:19.080365"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.081576"], ["updated_at", "2016-03-07 15:52:19.081576"]] [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", "2016-03-07 15:52:19.086742"], ["updated_at", "2016-03-07 15:52:19.086742"]] [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", "2016-03-07 15:52:19.089657"], ["updated_at", "2016-03-07 15:52:19.089657"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.091566"], ["updated_at", "2016-03-07 15:52:19.091566"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.092744"], ["updated_at", "2016-03-07 15:52:19.092744"]] [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_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-03-07 15:52:19.094369"], ["updated_at", "2016-03-07 15:52:19.094369"]] [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", "2016-03-07 15:52:19.099978"], ["updated_at", "2016-03-07 15:52:19.099978"]] 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.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-03-07 15:52:19.106364"], ["updated_at", "2016-03-07 15:52:19.106364"]] [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-03-07 15:52:19.109973"], ["updated_at", "2016-03-07 15:52:19.109973"]] [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", "7"], ["created_at", "2016-03-07 15:52:19.111871"], ["updated_at", "2016-03-07 15:52:19.111871"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.113652"], ["updated_at", "2016-03-07 15:52:19.113652"]] [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.4ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-07 15:52:19.121481"], ["updated_at", "2016-03-07 15:52:19.121481"]] [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 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.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.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", "2016-03-08 15:52:19.136389"], ["created_at", "2016-03-07 15:52:19.137540"], ["updated_at", "2016-03-07 15:52:19.137540"]] [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-03-07 15:52:19.146424"], ["updated_at", "2016-03-07 15:52:19.146424"]] [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-03-07 15:52:19.148543"], ["updated_at", "2016-03-07 15:52:19.148543"]] [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_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:52:19.150679"], ["updated_at", "2016-03-07 15:52:19.150679"]] [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.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 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-03-07 15:52:19.160201"], ["updated_at", "2016-03-07 15:52:19.160201"]] [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 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-03-07 15:52:19.165749"], ["updated_at", "2016-03-07 15:52:19.165749"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.168289"], ["updated_at", "2016-03-07 15:52:19.168289"]] [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 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-03-07 15:52:19.174269"], ["updated_at", "2016-03-07 15:52:19.174269"]] [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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' 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 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-03-07 15:52:19.177942"], ["updated_at", "2016-03-07 15:52:19.177942"]] [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-03-07 15:52:19.181494"], ["updated_at", "2016-03-07 15:52:19.181494"]] [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 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.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", "2016-03-07 15:52:19.187637"], ["updated_at", "2016-03-07 15:52:19.187637"]] [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.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-03-07 15:52:19.191581"], ["updated_at", "2016-03-07 15:52:19.191581"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.193495"], ["updated_at", "2016-03-07 15:52:19.193495"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.194761"], ["updated_at", "2016-03-07 15:52:19.194761"]] [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", "2016-03-07 15:52:19.199425"], ["updated_at", "2016-03-07 15:52:19.199425"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.201835"], ["updated_at", "2016-03-07 15:52:19.201835"]] [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-03-07 15:52:19.203451"], ["updated_at", "2016-03-07 15:52:19.203451"]] 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.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 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", "2016-03-07 15:52:19.208645"], ["updated_at", "2016-03-07 15:52:19.208645"]] [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", "2016-03-07 15:52:19.210471"], ["updated_at", "2016-03-07 15:52:19.210471"]] [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", "2016-03-07 15:52:19.213571"], ["updated_at", "2016-03-07 15:52:19.213571"]] [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", "1"], ["created_at", "2016-03-07 15:52:19.270846"], ["updated_at", "2016-03-07 15:52:19.270846"]] [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", "2016-03-07 15:52:19.274101"], ["updated_at", "2016-03-07 15:52:19.274101"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:19.275951"], ["updated_at", "2016-03-07 15:52:19.275951"]] 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", "2016-03-07 15:52:19.280724"], ["updated_at", "2016-03-07 15:52:19.280724"]] [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", "2016-03-07 15:52:19.284079"], ["updated_at", "2016-03-07 15:52:19.284079"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.285871"], ["updated_at", "2016-03-07 15:52:19.285871"]] [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 [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.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", "2016-03-07 15:52:19.297832"], ["updated_at", "2016-03-07 15:52:19.297832"]] [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", "2016-03-07 15:52:19.300331"], ["updated_at", "2016-03-07 15:52:19.300331"]] [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", "2016-03-07 15:52:19.309187"], ["updated_at", "2016-03-07 15:52:19.309187"]] [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", "2016-03-07 15:52:19.312368"], ["updated_at", "2016-03-07 15:52:19.312368"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.314151"], ["updated_at", "2016-03-07 15:52:19.314151"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.315424"], ["updated_at", "2016-03-07 15:52:19.315424"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.317381"], ["updated_at", "2016-03-07 15:52:19.317381"]] [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 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", "2016-03-07 15:52:19.325176"], ["updated_at", "2016-03-07 15:52:19.325176"]] [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", "2016-03-07 15:52:19.328026"], ["updated_at", "2016-03-07 15:52:19.328026"]] [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", "2016-03-07 15:52:19.331340"], ["updated_at", "2016-03-07 15:52:19.331340"]] [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", "2016-03-07 15:52:19.334454"], ["updated_at", "2016-03-07 15:52:19.334454"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.336082"], ["updated_at", "2016-03-07 15:52:19.336082"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.337227"], ["updated_at", "2016-03-07 15:52:19.337227"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.338387"], ["updated_at", "2016-03-07 15:52:19.338387"]] [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", "2016-03-07 15:52:19.344616"], ["updated_at", "2016-03-07 15:52:19.344616"]] [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", "2016-03-07 15:52:19.346880"], ["updated_at", "2016-03-07 15:52:19.346880"]] [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-03-07 15:52:19.349631"], ["updated_at", "2016-03-07 15:52:19.349631"]] [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-03-07 15:52:19.352528"], ["updated_at", "2016-03-07 15:52:19.352528"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.354009"], ["updated_at", "2016-03-07 15:52:19.354009"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.355305"], ["updated_at", "2016-03-07 15:52:19.355305"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.356878"], ["updated_at", "2016-03-07 15:52:19.356878"]] [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.2ms)[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-03-07 15:52:19.363882"], ["updated_at", "2016-03-07 15:52:19.363882"]] [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-03-07 15:52:19.366732"], ["updated_at", "2016-03-07 15:52:19.366732"]] [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", "2016-03-07 15:52:19.370267"], ["updated_at", "2016-03-07 15:52:19.370267"]] [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-03-07 15:52:19.373277"], ["updated_at", "2016-03-07 15:52:19.373277"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.374758"], ["updated_at", "2016-03-07 15:52:19.374758"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.375890"], ["updated_at", "2016-03-07 15:52:19.375890"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.376997"], ["updated_at", "2016-03-07 15:52:19.376997"]] [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-03-07 15:52:19.378590"], ["updated_at", "2016-03-07 15:52:19.378590"]] [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_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-03-07 15:52:19.382253"], ["updated_at", "2016-03-07 15:52:19.382253"]] 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.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 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.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 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-03-07 15:52:19.389788"], ["updated_at", "2016-03-07 15:52:19.389788"]] [1m[36m (0.1ms)[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", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2016-03-07 15:52:19.393097"], ["updated_at", "2016-03-07 15:52:19.393097"]] [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", "2016-03-07 15:52:19.396806"], ["updated_at", "2016-03-07 15:52:19.396806"]] [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", "2016-03-07 15:52:19.399903"], ["updated_at", "2016-03-07 15:52:19.399903"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.401777"], ["updated_at", "2016-03-07 15:52:19.401777"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.403056"], ["updated_at", "2016-03-07 15:52:19.403056"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.404208"], ["updated_at", "2016-03-07 15:52:19.404208"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.405909"], ["updated_at", "2016-03-07 15:52:19.405909"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.407557"], ["updated_at", "2016-03-07 15:52:19.407557"]] [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 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-03-07 15:52:19.412988"], ["updated_at", "2016-03-07 15:52:19.412988"]] [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-03-07 15:52:19.415204"], ["updated_at", "2016-03-07 15:52:19.415204"]] [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 44' 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 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-03-07 15:52:19.419715"], ["updated_at", "2016-03-07 15:52:19.419715"]] [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", "2016-03-07 15:52:19.423498"], ["updated_at", "2016-03-07 15:52:19.423498"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.425399"], ["updated_at", "2016-03-07 15:52:19.425399"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.426738"], ["updated_at", "2016-03-07 15:52:19.426738"]] [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_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-03-07 15:52:19.428678"], ["updated_at", "2016-03-07 15:52:19.428678"]] [1m[35m (0.1ms)[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.1ms)[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", "2016-03-07 15:52:19.444194"], ["updated_at", "2016-03-07 15:52:19.444194"]] [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", "2016-03-07 15:52:19.447381"], ["updated_at", "2016-03-07 15:52:19.447381"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.449183"], ["updated_at", "2016-03-07 15:52:19.449183"]] [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", "2016-03-07 15:52:19.450426"], ["updated_at", "2016-03-07 15:52:19.450426"]] [1m[35m (0.1ms)[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 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", "2016-03-07 15:52:19.460050"], ["updated_at", "2016-03-07 15:52:19.460050"]] [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.1ms)[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", "2016-03-07 15:52:19.464343"], ["updated_at", "2016-03-07 15:52:19.464343"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.466493"], ["updated_at", "2016-03-07 15:52:19.466493"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.467778"], ["updated_at", "2016-03-07 15:52:19.467778"]] [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", "2016-03-07 15:52:19.472795"], ["updated_at", "2016-03-07 15:52:19.472795"]] [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 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-03-07 15:52:19.476114"], ["updated_at", "2016-03-07 15:52:19.476114"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.477993"], ["updated_at", "2016-03-07 15:52:19.477993"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.479219"], ["updated_at", "2016-03-07 15:52:19.479219"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.481390"], ["updated_at", "2016-03-07 15:52:19.481390"]] [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", "2016-03-07 15:52:19.483193"], ["updated_at", "2016-03-07 15:52:19.483193"]] 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.1ms)[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-03-07 15:52:19.489334"], ["updated_at", "2016-03-07 15:52:19.489334"]] [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.1ms)[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", "2016-03-07 15:52:19.493330"], ["updated_at", "2016-03-07 15:52:19.493330"]] [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", "23"], ["created_at", "2016-03-07 15:52:19.495785"], ["updated_at", "2016-03-07 15:52:19.495785"]] [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", "19"], ["created_at", "2016-03-07 15:52:19.498241"], ["updated_at", "2016-03-07 15:52:19.498241"]] [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.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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' 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 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-03-07 15:52:19.566989"], ["updated_at", "2016-03-07 15:52:19.566989"]] [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", "2016-03-07 15:52:19.570036"], ["updated_at", "2016-03-07 15:52:19.570036"]] [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", "2016-03-07 15:52:19.574218"], ["updated_at", "2016-03-07 15:52:19.574218"]] [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", "2016-03-07 15:52:19.577063"], ["updated_at", "2016-03-07 15:52:19.577063"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.578784"], ["updated_at", "2016-03-07 15:52:19.578784"]] [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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-03-07 15:52:19.580169"], ["updated_at", "2016-03-07 15:52:19.580169"]] [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-03-07 15:52:19.582520"], ["updated_at", "2016-03-07 15:52:19.582520"]] [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_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-03-07 15:52:19.590846"], ["updated_at", "2016-03-07 15:52:19.590846"]] [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-03-07 15:52:19.593233"], ["updated_at", "2016-03-07 15:52:19.593233"]] [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-03-07 15:52:19.595814"], ["updated_at", "2016-03-07 15:52:19.595814"]] [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-03-07 15:52:19.598556"], ["updated_at", "2016-03-07 15:52:19.598556"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.600040"], ["updated_at", "2016-03-07 15:52:19.600040"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.601149"], ["updated_at", "2016-03-07 15:52:19.601149"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.602436"], ["updated_at", "2016-03-07 15:52:19.602436"]] [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", "2016-03-07 15:52:19.608345"], ["updated_at", "2016-03-07 15:52:19.608345"]] [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-03-07 15:52:19.610554"], ["updated_at", "2016-03-07 15:52:19.610554"]] [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", "2016-03-07 15:52:19.613195"], ["updated_at", "2016-03-07 15:52:19.613195"]] [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 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", "2016-03-07 15:52:19.617441"], ["updated_at", "2016-03-07 15:52:19.617441"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.619969"], ["updated_at", "2016-03-07 15:52:19.619969"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.621531"], ["updated_at", "2016-03-07 15:52:19.621531"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.623032"], ["updated_at", "2016-03-07 15:52:19.623032"]] [1m[36m (0.0ms)[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 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' 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 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-03-07 15:52:19.630350"], ["updated_at", "2016-03-07 15:52:19.630350"]] [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-03-07 15:52:19.633144"], ["updated_at", "2016-03-07 15:52:19.633144"]] [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 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-03-07 15:52:19.636457"], ["updated_at", "2016-03-07 15:52:19.636457"]] [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-03-07 15:52:19.639422"], ["updated_at", "2016-03-07 15:52:19.639422"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.640978"], ["updated_at", "2016-03-07 15:52:19.640978"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.642137"], ["updated_at", "2016-03-07 15:52:19.642137"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.643295"], ["updated_at", "2016-03-07 15:52:19.643295"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:19.644928"], ["updated_at", "2016-03-07 15:52:19.644928"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.646680"], ["updated_at", "2016-03-07 15:52:19.646680"]] 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.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.1ms)[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", "2016-03-07 15:52:19.653196"], ["updated_at", "2016-03-07 15:52:19.653196"]] [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-03-07 15:52:19.655948"], ["updated_at", "2016-03-07 15:52:19.655948"]] [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.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", "2016-03-07 15:52:19.659644"], ["updated_at", "2016-03-07 15:52:19.659644"]] [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", "2016-03-07 15:52:19.663284"], ["updated_at", "2016-03-07 15:52:19.663284"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.665446"], ["updated_at", "2016-03-07 15:52:19.665446"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.666963"], ["updated_at", "2016-03-07 15:52:19.666963"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.668452"], ["updated_at", "2016-03-07 15:52:19.668452"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.670433"], ["updated_at", "2016-03-07 15:52:19.670433"]] [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", "2"], ["created_at", "2016-03-07 15:52:19.672862"], ["updated_at", "2016-03-07 15:52:19.672862"]] [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[35m (0.0ms)[0m SAVEPOINT active_record_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", "2016-03-07 15:52:19.679390"], ["updated_at", "2016-03-07 15:52:19.679390"]] [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-03-07 15:52:19.681581"], ["updated_at", "2016-03-07 15:52:19.681581"]] [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", "2016-03-07 15:52:19.684330"], ["updated_at", "2016-03-07 15:52:19.684330"]] [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", "2016-03-07 15:52:19.686989"], ["updated_at", "2016-03-07 15:52:19.686989"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.688450"], ["updated_at", "2016-03-07 15:52:19.688450"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.689561"], ["updated_at", "2016-03-07 15:52:19.689561"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.690685"], ["updated_at", "2016-03-07 15:52:19.690685"]] [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", "2016-03-07 15:52:19.696336"], ["updated_at", "2016-03-07 15:52:19.696336"]] [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-03-07 15:52:19.701700"], ["updated_at", "2016-03-07 15:52:19.701700"]] [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_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-03-07 15:52:19.703906"], ["updated_at", "2016-03-07 15:52:19.703906"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:19.705786"], ["updated_at", "2016-03-07 15:52:19.705786"]] 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.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.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", "2016-03-07 15:52:19.712326"], ["updated_at", "2016-03-07 15:52:19.712326"]] [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.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-03-07 15:52:19.718673"], ["updated_at", "2016-03-07 15:52:19.718673"]] [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", "2016-03-07 15:52:19.724366"], ["updated_at", "2016-03-07 15:52:19.724366"]] [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-03-07 15:52:19.727016"], ["updated_at", "2016-03-07 15:52:19.727016"]] [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-03-07 15:52:19.729427"], ["updated_at", "2016-03-07 15:52:19.729427"]] 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-03-07 15:52:19.733904"], ["updated_at", "2016-03-07 15:52:19.733904"]] [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-03-07 15:52:19.740351"], ["updated_at", "2016-03-07 15:52:19.740351"]] [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", "2016-03-07 15:52:19.751301"], ["updated_at", "2016-03-07 15:52:19.751301"]] [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- :users\n"], ["updated_at", "2016-03-07 15:52:19.753391"], ["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.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 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-03-07 15:52:19.761558"], ["updated_at", "2016-03-07 15:52:19.761558"]] [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-03-07 15:52:19.765875"], ["updated_at", "2016-03-07 15:52:19.765875"]] [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-03-07 15:52:19.767695"], ["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", "2016-03-07 15:52:19.773122"], ["updated_at", "2016-03-07 15:52:19.773122"]] [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-03-07 15:52:19.776445"], ["updated_at", "2016-03-07 15:52:19.776445"]] [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-03-07 15:52:19.777918"], ["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", "2016-03-07 15:52:19.843727"], ["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", "2016-03-07 15:52:19.848243"], ["updated_at", "2016-03-07 15:52:19.848243"]] [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-03-07 15:52:19.850018"], ["updated_at", "2016-03-07 15:52:19.850018"]] [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", "2016-03-07 15:52:19.851528"], ["updated_at", "2016-03-07 15:52:19.851528"]] [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-03-07 15:52:19.853600"], ["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-03-07 15:52:19.854699"], ["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.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.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", "2016-03-07 15:52:19.860756"], ["updated_at", "2016-03-07 15:52:19.860756"]] [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", "2016-03-07 15:52:19.864256"], ["updated_at", "2016-03-07 15:52:19.864256"]] [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-03-07 15:52:19.865691"], ["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-03-07 15:52:19.869438"], ["updated_at", "2016-03-07 15:52:19.869438"]] [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", "2016-03-07 15:52:19.871566"], ["updated_at", "2016-03-07 15:52:19.871566"]] [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", "2016-03-07 15:52:19.878481"], ["updated_at", "2016-03-07 15:52:19.878481"]] [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-03-07 15:52:19.881879"], ["updated_at", "2016-03-07 15:52:19.881879"]] [1m[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-03-07 15:52:19.883656"], ["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.4ms)[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-03-07 15:52:19.885936"], ["updated_at", "2016-03-07 15:52:19.885936"]] [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-03-07 15:52:19.887828"], ["updated_at", "2016-03-07 15:52:19.887828"]] [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", "2016-03-07 15:52:19.889357"], ["updated_at", "2016-03-07 15:52:19.889357"]] [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", "2016-03-07 15:52:19.895375"], ["updated_at", "2016-03-07 15:52:19.895375"]] [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-03-07 15:52:19.899274"], ["updated_at", "2016-03-07 15:52:19.899274"]] [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-03-07 15:52:19.900814"], ["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", "2016-03-07 15:52:19.905897"], ["updated_at", "2016-03-07 15:52:19.905897"]] [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-03-07 15:52:19.908879"], ["updated_at", "2016-03-07 15:52:19.908879"]] [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-03-07 15:52:19.910263"], ["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.5ms)[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", "2016-03-07 15:52:19.916254"], ["updated_at", "2016-03-07 15:52:19.916254"]] [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", "2016-03-07 15:52:19.919720"], ["updated_at", "2016-03-07 15:52:19.919720"]] [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-03-07 15:52:19.921215"], ["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.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-03-07 15:52:19.923705"], ["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-03-07 15:52:19.932283"], ["updated_at", "2016-03-07 15:52:19.932283"]] [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", "2016-03-07 15:52:19.935610"], ["updated_at", "2016-03-07 15:52:19.935610"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.937643"], ["updated_at", "2016-03-07 15:52:19.937643"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.938946"], ["updated_at", "2016-03-07 15:52:19.938946"]] [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-03-07 15:52:19.941594"], ["updated_at", "2016-03-07 15:52:19.941594"]] [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-03-07 15:52:19.942935"], ["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.2ms)[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-03-07 15:52:19.951474"], ["updated_at", "2016-03-07 15:52:19.951474"]] [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.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", "2016-03-07 15:52:19.955507"], ["updated_at", "2016-03-07 15:52:19.955507"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.957707"], ["updated_at", "2016-03-07 15:52:19.957707"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.959002"], ["updated_at", "2016-03-07 15:52:19.959002"]] [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-03-07 15:52:19.962689"], ["updated_at", "2016-03-07 15:52:19.962689"]] [1m[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-03-07 15:52:19.964609"], ["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-03-07 15:52:19.972599"], ["updated_at", "2016-03-07 15:52:19.972599"]] [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", "2016-03-07 15:52:19.975747"], ["updated_at", "2016-03-07 15:52:19.975747"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:19.977464"], ["updated_at", "2016-03-07 15:52:19.977464"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:19.978821"], ["updated_at", "2016-03-07 15:52:19.978821"]] [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-03-07 15:52:19.981281"], ["updated_at", "2016-03-07 15:52:19.981281"]] [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", "2016-03-07 15:52:19.982661"], ["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 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-03-07 15:52:19.990235"], ["updated_at", "2016-03-07 15:52:19.990235"]] [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-03-07 15:52:19.993523"], ["updated_at", "2016-03-07 15:52:19.993523"]] [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", "34"], ["created_at", "2016-03-07 15:52:19.996245"], ["updated_at", "2016-03-07 15:52:19.996245"]] [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", "29"], ["created_at", "2016-03-07 15:52:19.998559"], ["updated_at", "2016-03-07 15:52:19.998559"]] [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-03-07 15:52:20.002078"], ["updated_at", "2016-03-07 15:52:20.002078"]] [1m[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-03-07 15:52:20.003876"], ["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", "2016-03-07 15:52:20.011916"], ["updated_at", "2016-03-07 15:52:20.011916"]] [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.1ms)[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-03-07 15:52:20.015542"], ["updated_at", "2016-03-07 15:52:20.015542"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.018079"], ["updated_at", "2016-03-07 15:52:20.018079"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.019579"], ["updated_at", "2016-03-07 15:52:20.019579"]] [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-03-07 15:52:20.022734"], ["updated_at", "2016-03-07 15:52:20.022734"]] [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-03-07 15:52:20.024407"], ["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-03-07 15:52:20.031583"], ["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-03-07 15:52:20.036301"], ["updated_at", "2016-03-07 15:52:20.036301"]] [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-03-07 15:52:20.039054"], ["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", "2016-03-07 15:52:20.042621"], ["updated_at", "2016-03-07 15:52:20.042621"]] [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-03-07 15:52:20.044627"], ["updated_at", "2016-03-07 15:52:20.044627"]] [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-03-07 15:52:20.046217"], ["updated_at", "2016-03-07 15:52:20.046217"]] [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", "2016-03-07 15:52:20.113538"], ["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", "2016-03-07 15:52:20.129071"], ["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.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", "2016-03-07 15:52:20.134003"], ["updated_at", "2016-03-07 15:52:20.134003"]] [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", "2016-03-07 15:52:20.137837"], ["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.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", "2016-03-07 15:52:20.156123"], ["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", "2016-03-07 15:52:20.158911"], ["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.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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.1ms)[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", "2016-03-07 15:52:20.174516"], ["updated_at", "2016-03-07 15:52:20.174516"]] [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-03-07 15:52:20.178796"], ["updated_at", "2016-03-07 15:52:20.178796"]] [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", "2016-03-07 15:52:20.181508"], ["id", 1]] [1m[35m (0.1ms)[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.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", "2016-03-07 15:52:20.195077"], ["updated_at", "2016-03-07 15:52:20.195077"]] [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-03-07 15:52:20.200097"], ["updated_at", "2016-03-07 15:52:20.200097"]] [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[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-03-07 15:52:20.206548"], ["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-03-07 15:52:20.207800"], ["id", 1]] [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[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.0ms)[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-03-07 15:52:20.216356"], ["updated_at", "2016-03-07 15:52:20.216356"]] [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 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-03-07 15:52:20.219612"], ["updated_at", "2016-03-07 15:52:20.219612"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.221578"], ["updated_at", "2016-03-07 15:52:20.221578"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.222876"], ["updated_at", "2016-03-07 15:52:20.222876"]] [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-03-07 15:52:20.225972"], ["updated_at", "2016-03-07 15:52:20.225972"]] [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-03-07 15:52:20.227683"], ["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-03-07 15:52:20.230350"], ["updated_at", "2016-03-07 15:52:20.230350"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [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.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.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 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-03-07 15:52:20.238986"], ["updated_at", "2016-03-07 15:52:20.238986"]] [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.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.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 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-03-07 15:52:20.242319"], ["updated_at", "2016-03-07 15:52:20.242319"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:52:20.244255"], ["updated_at", "2016-03-07 15:52:20.244255"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:52:20.245883"], ["updated_at", "2016-03-07 15:52:20.245883"]] [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-03-07 15:52:20.249529"], ["updated_at", "2016-03-07 15:52:20.249529"]] [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-03-07 15:52:20.251302"], ["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", "2016-03-07 15:52:20.253801"], ["updated_at", "2016-03-07 15:52:20.253801"]] [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-03-07 15:52:20.255487"], ["updated_at", "2016-03-07 15:52:20.255487"]] [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", "2016-03-07 15:52:20.257043"], ["updated_at", "2016-03-07 15:52:20.257043"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [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.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 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.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 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-03-07 15:52:20.266205"], ["updated_at", "2016-03-07 15:52:20.266205"]] [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 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.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 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-03-07 15:52:20.269290"], ["updated_at", "2016-03-07 15:52:20.269290"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.271151"], ["updated_at", "2016-03-07 15:52:20.271151"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.272317"], ["updated_at", "2016-03-07 15:52:20.272317"]] [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-03-07 15:52:20.274740"], ["updated_at", "2016-03-07 15:52:20.274740"]] [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-03-07 15:52:20.276178"], ["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-03-07 15:52:20.278240"], ["updated_at", "2016-03-07 15:52:20.278240"]] [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.3ms)[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-03-07 15:52:20.280380"], ["updated_at", "2016-03-07 15:52:20.280380"]] [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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:52:20.282133"], ["updated_at", "2016-03-07 15:52:20.282133"]] [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-03-07 15:52:20.284024"], ["updated_at", "2016-03-07 15:52:20.284024"]] [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.3ms)[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.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[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.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 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.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 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-03-07 15:52:20.365382"], ["updated_at", "2016-03-07 15:52:20.365382"]] [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 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-03-07 15:52:20.369388"], ["updated_at", "2016-03-07 15:52:20.369388"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.371469"], ["updated_at", "2016-03-07 15:52:20.371469"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.372695"], ["updated_at", "2016-03-07 15:52:20.372695"]] [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-03-07 15:52:20.375247"], ["updated_at", "2016-03-07 15:52:20.375247"]] [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-03-07 15:52:20.376677"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.5ms)[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-03-07 15:52:20.383126"], ["updated_at", "2016-03-07 15:52:20.383126"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Assignment Load (0.2ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"[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 105' 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 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-03-07 15:52:20.394516"], ["updated_at", "2016-03-07 15:52:20.394516"]] [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 106' 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 106' 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 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-03-07 15:52:20.399525"], ["updated_at", "2016-03-07 15:52:20.399525"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.402211"], ["updated_at", "2016-03-07 15:52:20.402211"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.403783"], ["updated_at", "2016-03-07 15:52:20.403783"]] [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-03-07 15:52:20.406814"], ["updated_at", "2016-03-07 15:52:20.406814"]] [1m[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-03-07 15:52:20.408308"], ["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-03-07 15:52:20.410517"], ["updated_at", "2016-03-07 15:52:20.410517"]] [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.1ms)[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.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[35m (0.0ms)[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.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[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.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 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-03-07 15:52:20.429618"], ["updated_at", "2016-03-07 15:52:20.429618"]] [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 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", "2016-03-07 15:52:20.432652"], ["updated_at", "2016-03-07 15:52:20.432652"]] [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", "41"], ["created_at", "2016-03-07 15:52:20.434683"], ["updated_at", "2016-03-07 15:52:20.434683"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.435844"], ["updated_at", "2016-03-07 15:52:20.435844"]] [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-03-07 15:52:20.438844"], ["updated_at", "2016-03-07 15:52:20.438844"]] [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-03-07 15:52:20.440691"], ["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-03-07 15:52:20.443214"], ["updated_at", "2016-03-07 15:52:20.443214"]] [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 (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.2ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [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 109' 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 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-03-07 15:52:20.453890"], ["updated_at", "2016-03-07 15:52:20.453890"]] [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 110' 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 110' 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 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-03-07 15:52:20.458856"], ["updated_at", "2016-03-07 15:52:20.458856"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.461261"], ["updated_at", "2016-03-07 15:52:20.461261"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:52:20.462710"], ["updated_at", "2016-03-07 15:52:20.462710"]] [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-03-07 15:52:20.466043"], ["updated_at", "2016-03-07 15:52:20.466043"]] [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-03-07 15:52:20.467708"], ["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-03-07 15:52:20.470075"], ["updated_at", "2016-03-07 15:52:20.470075"]] [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.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-03-07 15:52:20.473882"], ["updated_at", "2016-03-07 15:52:20.473882"]] [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-03-07 15:52:20.476869"], ["updated_at", "2016-03-07 15:52:20.476869"]] [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-03-07 15:52:20.479329"], ["updated_at", "2016-03-07 15:52:20.479329"]] [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.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::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-03-07 15:52:20.507301"], ["updated_at", "2016-03-07 15:52:20.507301"]] [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.0ms)[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-03-07 15:52:20.510372"], ["updated_at", "2016-03-07 15:52:20.510372"]] [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.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.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.0ms)[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-03-07 15:52:20.513081"], ["updated_at", "2016-03-07 15:52:20.513081"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-07 15:52:20.515917"], ["updated_at", "2016-03-07 15:52:20.515917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.1ms)[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-03-07 15:52:20.523911"], ["updated_at", "2016-03-07 15:52:20.523911"]] [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.1ms)[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-03-07 15:52:20.527070"], ["updated_at", "2016-03-07 15:52:20.527070"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.528888"], ["updated_at", "2016-03-07 15:52:20.528888"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.529987"], ["updated_at", "2016-03-07 15:52:20.529987"]] [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-03-07 15:52:20.532500"], ["updated_at", "2016-03-07 15:52:20.532500"]] [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-03-07 15:52:20.533793"], ["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-03-07 15:52:20.535916"], ["updated_at", "2016-03-07 15:52:20.535916"]] [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-03-07 15:52:20.539299"], ["updated_at", "2016-03-07 15:52:20.539299"]] [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-03-07 15:52:20.541502"], ["updated_at", "2016-03-07 15:52:20.541502"]] [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.8ms)[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.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 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' 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 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-03-07 15:52:20.605090"], ["updated_at", "2016-03-07 15:52:20.605090"]] [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.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 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-03-07 15:52:20.608823"], ["updated_at", "2016-03-07 15:52:20.608823"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.610745"], ["updated_at", "2016-03-07 15:52:20.610745"]] [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", "39"], ["created_at", "2016-03-07 15:52:20.612348"], ["updated_at", "2016-03-07 15:52:20.612348"]] [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-03-07 15:52:20.614940"], ["updated_at", "2016-03-07 15:52:20.614940"]] [1m[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-03-07 15:52:20.616513"], ["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-03-07 15:52:20.619689"], ["updated_at", "2016-03-07 15:52:20.619689"]] [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-03-07 15:52:20.622373"], ["updated_at", "2016-03-07 15:52:20.622373"]] [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-03-07 15:52:20.624212"], ["updated_at", "2016-03-07 15:52:20.624212"]] [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", "2016-03-07 15:52:20.625897"], ["updated_at", "2016-03-07 15:52:20.625897"]] [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::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-03-07 15:52:20.641446"], ["updated_at", "2016-03-07 15:52:20.641446"]] [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.0ms)[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-03-07 15:52:20.643593"], ["updated_at", "2016-03-07 15:52:20.643593"]] [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" = ? 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 (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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-03-07 15:52:20.655454"], ["updated_at", "2016-03-07 15:52:20.655454"]] [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.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.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 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-03-07 15:52:20.659208"], ["updated_at", "2016-03-07 15:52:20.659208"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.661191"], ["updated_at", "2016-03-07 15:52:20.661191"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.662434"], ["updated_at", "2016-03-07 15:52:20.662434"]] [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-03-07 15:52:20.664957"], ["updated_at", "2016-03-07 15:52:20.664957"]] [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-03-07 15:52:20.666278"], ["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-03-07 15:52:20.670038"], ["updated_at", "2016-03-07 15:52:20.670038"]] [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-03-07 15:52:20.672732"], ["updated_at", "2016-03-07 15:52:20.672732"]] [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"."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.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", "2016-03-07 15:52:20.680303"], ["updated_at", "2016-03-07 15:52:20.680303"]] [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", "2016-03-07 15:52:20.683439"], ["updated_at", "2016-03-07 15:52:20.683439"]] [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", "46"], ["created_at", "2016-03-07 15:52:20.685703"], ["updated_at", "2016-03-07 15:52:20.685703"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:20.686896"], ["updated_at", "2016-03-07 15:52:20.686896"]] [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-03-07 15:52:20.689410"], ["updated_at", "2016-03-07 15:52:20.689410"]] [1m[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-03-07 15:52:20.691254"], ["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-03-07 15:52:20.694044"], ["updated_at", "2016-03-07 15:52:20.694044"]] [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-03-07 15:52:20.696572"], ["updated_at", "2016-03-07 15:52:20.696572"]] [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-03-07 15:52:20.698451"], ["updated_at", "2016-03-07 15:52:20.698451"]] [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", "2016-03-07 15:52:20.700132"], ["updated_at", "2016-03-07 15:52:20.700132"]] [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- :enrollments\n"], ["updated_at", "2016-03-07 15:52:20.714089"], ["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.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-03-07 15:52:20.730651"], ["updated_at", "2016-03-07 15:52:20.730651"]] [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", "2016-03-07 15:52:20.733708"], ["updated_at", "2016-03-07 15:52:20.733708"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.735426"], ["updated_at", "2016-03-07 15:52:20.735426"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.736633"], ["updated_at", "2016-03-07 15:52:20.736633"]] [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-03-07 15:52:20.739092"], ["updated_at", "2016-03-07 15:52:20.739092"]] [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-03-07 15:52:20.740592"], ["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-03-07 15:52:20.742741"], ["updated_at", "2016-03-07 15:52:20.742741"]] [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-03-07 15:52:20.744771"], ["updated_at", "2016-03-07 15:52:20.744771"]] [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-03-07 15:52:20.746257"], ["updated_at", "2016-03-07 15:52:20.746257"]] [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", "2016-03-07 15:52:20.747706"], ["updated_at", "2016-03-07 15:52:20.747706"]] [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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:52:20.761854"], ["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.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", "2016-03-07 15:52:20.779034"], ["updated_at", "2016-03-07 15:52:20.779034"]] [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-03-07 15:52:20.782126"], ["updated_at", "2016-03-07 15:52:20.782126"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:52:20.783960"], ["updated_at", "2016-03-07 15:52:20.783960"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.785217"], ["updated_at", "2016-03-07 15:52:20.785217"]] [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-03-07 15:52:20.787816"], ["updated_at", "2016-03-07 15:52:20.787816"]] [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-03-07 15:52:20.789214"], ["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", "2016-03-07 15:52:20.791390"], ["updated_at", "2016-03-07 15:52:20.791390"]] [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-03-07 15:52:20.793480"], ["updated_at", "2016-03-07 15:52:20.793480"]] [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-03-07 15:52:20.794986"], ["updated_at", "2016-03-07 15:52:20.794986"]] [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", "2016-03-07 15:52:20.796516"], ["updated_at", "2016-03-07 15:52:20.796516"]] [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.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", "2016-03-07 15:52:20.864792"], ["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.5ms)[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.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", "2016-03-07 15:52:20.881491"], ["updated_at", "2016-03-07 15:52:20.881491"]] [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.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", "2016-03-07 15:52:20.884629"], ["updated_at", "2016-03-07 15:52:20.884629"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:20.886351"], ["updated_at", "2016-03-07 15:52:20.886351"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.887731"], ["updated_at", "2016-03-07 15:52:20.887731"]] [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-03-07 15:52:20.890459"], ["updated_at", "2016-03-07 15:52:20.890459"]] [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-03-07 15:52:20.891892"], ["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-03-07 15:52:20.893918"], ["updated_at", "2016-03-07 15:52:20.893918"]] [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-03-07 15:52:20.895935"], ["updated_at", "2016-03-07 15:52:20.895935"]] [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", "2016-03-07 15:52:20.898013"], ["updated_at", "2016-03-07 15:52:20.898013"]] [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", "2016-03-07 15:52:20.899546"], ["updated_at", "2016-03-07 15:52:20.899546"]] [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.1ms)[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- :soft_delete\n"], ["updated_at", "2016-03-07 15:52:20.917767"], ["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-03-07 15:52:20.924949"], ["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", "2016-03-07 15:52:20.934206"], ["updated_at", "2016-03-07 15:52:20.934206"]] [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", "2016-03-07 15:52:20.937325"], ["updated_at", "2016-03-07 15:52:20.937325"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.939132"], ["updated_at", "2016-03-07 15:52:20.939132"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.940310"], ["updated_at", "2016-03-07 15:52:20.940310"]] [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-03-07 15:52:20.942739"], ["updated_at", "2016-03-07 15:52:20.942739"]] [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-03-07 15:52:20.944046"], ["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", "2016-03-07 15:52:20.951370"], ["updated_at", "2016-03-07 15:52:20.951370"]] [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 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", "2016-03-07 15:52:20.954395"], ["updated_at", "2016-03-07 15:52:20.954395"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:20.956071"], ["updated_at", "2016-03-07 15:52:20.956071"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.957315"], ["updated_at", "2016-03-07 15:52:20.957315"]] [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-03-07 15:52:20.959703"], ["updated_at", "2016-03-07 15:52:20.959703"]] [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-03-07 15:52:20.961145"], ["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.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-03-07 15:52:20.968999"], ["updated_at", "2016-03-07 15:52:20.968999"]] [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.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-03-07 15:52:20.973114"], ["updated_at", "2016-03-07 15:52:20.973114"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.975042"], ["updated_at", "2016-03-07 15:52:20.975042"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:20.976254"], ["updated_at", "2016-03-07 15:52:20.976254"]] [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-03-07 15:52:20.978780"], ["updated_at", "2016-03-07 15:52:20.978780"]] [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-03-07 15:52:20.980245"], ["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 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.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", "2016-03-07 15:52:20.988275"], ["updated_at", "2016-03-07 15:52:20.988275"]] [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.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", "2016-03-07 15:52:20.991555"], ["updated_at", "2016-03-07 15:52:20.991555"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:52:20.993342"], ["updated_at", "2016-03-07 15:52:20.993342"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:20.994514"], ["updated_at", "2016-03-07 15:52:20.994514"]] [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-03-07 15:52:20.997158"], ["updated_at", "2016-03-07 15:52:20.997158"]] [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-03-07 15:52:20.998590"], ["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 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", "2016-03-07 15:52:21.007903"], ["updated_at", "2016-03-07 15:52:21.007903"]] [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", "2016-03-07 15:52:21.011334"], ["updated_at", "2016-03-07 15:52:21.011334"]] [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", "54"], ["created_at", "2016-03-07 15:52:21.013431"], ["updated_at", "2016-03-07 15:52:21.013431"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:21.014750"], ["updated_at", "2016-03-07 15:52:21.014750"]] [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-03-07 15:52:21.017456"], ["updated_at", "2016-03-07 15:52:21.017456"]] [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-03-07 15:52:21.019025"], ["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 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", "2016-03-07 15:52:21.026879"], ["updated_at", "2016-03-07 15:52:21.026879"]] [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.1ms)[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", "2016-03-07 15:52:21.030626"], ["updated_at", "2016-03-07 15:52:21.030626"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:21.033030"], ["updated_at", "2016-03-07 15:52:21.033030"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:21.034441"], ["updated_at", "2016-03-07 15:52:21.034441"]] [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-03-07 15:52:21.037061"], ["updated_at", "2016-03-07 15:52:21.037061"]] [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-03-07 15:52:21.038438"], ["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", "2016-03-07 15:52:21.045514"], ["updated_at", "2016-03-07 15:52:21.045514"]] [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", "2016-03-07 15:52:21.048607"], ["updated_at", "2016-03-07 15:52:21.048607"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:21.050570"], ["updated_at", "2016-03-07 15:52:21.050570"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:21.052050"], ["updated_at", "2016-03-07 15:52:21.052050"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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-03-07 15:52:21.055154"], ["updated_at", "2016-03-07 15:52:21.055154"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (60.3ms)[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-03-07 15:52:21.056811"], ["id", 1]] [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 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-03-07 15:52:21.125080"], ["updated_at", "2016-03-07 15:52:21.125080"]] [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", "2016-03-07 15:52:21.128064"], ["updated_at", "2016-03-07 15:52:21.128064"]] [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", "57"], ["created_at", "2016-03-07 15:52:21.130196"], ["updated_at", "2016-03-07 15:52:21.130196"]] [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_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-03-07 15:52:21.132576"], ["updated_at", "2016-03-07 15:52:21.132576"]] [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-03-07 15:52:21.136363"], ["updated_at", "2016-03-07 15:52:21.136363"]] [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-03-07 15:52:21.138196"], ["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-03-07 15:52:21.147477"], ["updated_at", "2016-03-07 15:52:21.147477"]] [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", "2016-03-07 15:52:21.150581"], ["updated_at", "2016-03-07 15:52:21.150581"]] [1m[36m (0.0ms)[0m [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-03-07 15:52:21.152337"], ["updated_at", "2016-03-07 15:52:21.152337"]] [1m[35m (0.0ms)[0m 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-03-07 15:52:21.153530"], ["updated_at", "2016-03-07 15:52:21.153530"]] [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-03-07 15:52:21.156191"], ["updated_at", "2016-03-07 15:52:21.156191"]] [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-03-07 15:52:21.157660"], ["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", "2016-03-07 15:52:21.160677"], ["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 Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 1ms (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.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.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-03-07 15:53:09.832753"], ["updated_at", "2016-03-07 15:53:09.832753"]] [1m[35m (0.1ms)[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", "2016-03-07 15:53:09.850847"], ["updated_at", "2016-03-07 15:53:09.850847"]] [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.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-03-07 16:53:09.876457"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:53:09.877864"], ["updated_at", "2016-03-07 15:53:09.877864"]] [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 33ms (Views: 9.4ms | ActiveRecord: 1.0ms) [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.7ms | 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.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.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-03-07 15:53:09.914191"], ["updated_at", "2016-03-07 15:53:09.914191"]] [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.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", "2016-03-07 15:53:09.970657"], ["updated_at", "2016-03-07 15:53:09.970657"]] [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", "2016-03-07 15:53:09.973792"], ["updated_at", "2016-03-07 15:53:09.973792"]] [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", "2016-03-07 15:53:09.976388"], ["updated_at", "2016-03-07 15:53:09.976388"]] [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", "2016-03-07 15:53:09.989129"], ["updated_at", "2016-03-07 15:53:09.989129"]] [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", "2016-03-07 15:53:09.992198"], ["updated_at", "2016-03-07 15:53:09.992198"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:09.993906"], ["updated_at", "2016-03-07 15:53:09.993906"]] [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", "2"], ["created_at", "2016-03-07 15:53:09.995095"], ["updated_at", "2016-03-07 15:53:09.995095"]] [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", "2016-03-07 15:53:10.000663"], ["updated_at", "2016-03-07 15:53:10.000663"]] [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", "2016-03-07 15:53:10.003998"], ["updated_at", "2016-03-07 15:53:10.003998"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.005906"], ["updated_at", "2016-03-07 15:53:10.005906"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.007063"], ["updated_at", "2016-03-07 15:53:10.007063"]] [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", "2016-03-07 15:53:10.024362"], ["updated_at", "2016-03-07 15:53:10.024362"]] [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.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", "2016-03-07 15:53:10.028427"], ["updated_at", "2016-03-07 15:53:10.028427"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.030634"], ["updated_at", "2016-03-07 15:53:10.030634"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.032006"], ["updated_at", "2016-03-07 15:53:10.032006"]] [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.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", "2016-03-07 15:53:10.038424"], ["updated_at", "2016-03-07 15:53:10.038424"]] [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", "2016-03-07 15:53:10.041704"], ["updated_at", "2016-03-07 15:53:10.041704"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.044021"], ["updated_at", "2016-03-07 15:53:10.044021"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.045294"], ["updated_at", "2016-03-07 15:53:10.045294"]] [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 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-03-07 15:53:10.051240"], ["updated_at", "2016-03-07 15:53:10.051240"]] [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", "2016-03-07 15:53:10.054469"], ["updated_at", "2016-03-07 15:53:10.054469"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.056136"], ["updated_at", "2016-03-07 15:53:10.056136"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.057325"], ["updated_at", "2016-03-07 15:53:10.057325"]] [1m[36m (0.0ms)[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_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-03-07 15:53:10.059227"], ["updated_at", "2016-03-07 15:53:10.059227"]] [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-03-07 15:53:10.063946"], ["updated_at", "2016-03-07 15:53:10.063946"]] 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.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-03-07 15:53:10.069364"], ["updated_at", "2016-03-07 15:53:10.069364"]] [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-03-07 15:53:10.073315"], ["updated_at", "2016-03-07 15:53:10.073315"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.075272"], ["updated_at", "2016-03-07 15:53:10.075272"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.076594"], ["updated_at", "2016-03-07 15:53:10.076594"]] [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[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-03-07 15:53:10.082161"], ["updated_at", "2016-03-07 15:53:10.082161"]] [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.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.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", "2016-03-08 15:53:10.095453"], ["created_at", "2016-03-07 15:53:10.096648"], ["updated_at", "2016-03-07 15:53:10.096648"]] [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.7ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:53:10.106708"], ["updated_at", "2016-03-07 15:53:10.106708"]] [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", "2016-03-07 15:53:10.109387"], ["updated_at", "2016-03-07 15:53:10.109387"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.111298"], ["updated_at", "2016-03-07 15:53:10.111298"]] [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.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.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.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.1ms)[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", "2016-03-07 15:53:10.123671"], ["updated_at", "2016-03-07 15:53:10.123671"]] [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", "2016-03-07 15:53:10.127223"], ["updated_at", "2016-03-07 15:53:10.127223"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.129076"], ["updated_at", "2016-03-07 15:53:10.129076"]] [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.1ms)[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", "2016-03-07 15:53:10.135473"], ["updated_at", "2016-03-07 15:53:10.135473"]] [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.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-03-07 15:53:10.140370"], ["updated_at", "2016-03-07 15:53:10.140370"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.142682"], ["updated_at", "2016-03-07 15:53:10.142682"]] [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.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.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", "2016-03-07 15:53:10.147916"], ["updated_at", "2016-03-07 15:53:10.147916"]] [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.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-03-07 15:53:10.152808"], ["updated_at", "2016-03-07 15:53:10.152808"]] [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", "10"], ["created_at", "2016-03-07 15:53:10.210898"], ["updated_at", "2016-03-07 15:53:10.210898"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.212466"], ["updated_at", "2016-03-07 15:53:10.212466"]] [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", "2016-03-07 15:53:10.215622"], ["updated_at", "2016-03-07 15:53:10.215622"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.217338"], ["updated_at", "2016-03-07 15:53:10.217338"]] [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-03-07 15:53:10.218494"], ["updated_at", "2016-03-07 15:53:10.218494"]] 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.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 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", "2016-03-07 15:53:10.223135"], ["updated_at", "2016-03-07 15:53:10.223135"]] [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", "2016-03-07 15:53:10.224820"], ["updated_at", "2016-03-07 15:53:10.224820"]] [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", "2016-03-07 15:53:10.227629"], ["updated_at", "2016-03-07 15:53:10.227629"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.229460"], ["updated_at", "2016-03-07 15:53:10.229460"]] [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.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-03-07 15:53:10.232864"], ["updated_at", "2016-03-07 15:53:10.232864"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:10.235294"], ["updated_at", "2016-03-07 15:53:10.235294"]] 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", "2016-03-07 15:53:10.240051"], ["updated_at", "2016-03-07 15:53:10.240051"]] [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.1ms)[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", "2016-03-07 15:53:10.243632"], ["updated_at", "2016-03-07 15:53:10.243632"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.246101"], ["updated_at", "2016-03-07 15:53:10.246101"]] [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 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", "2016-03-07 15:53:10.258854"], ["updated_at", "2016-03-07 15:53:10.258854"]] [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", "2016-03-07 15:53:10.261081"], ["updated_at", "2016-03-07 15:53:10.261081"]] [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.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", "2016-03-07 15:53:10.270657"], ["updated_at", "2016-03-07 15:53:10.270657"]] [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", "2016-03-07 15:53:10.274151"], ["updated_at", "2016-03-07 15:53:10.274151"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.275723"], ["updated_at", "2016-03-07 15:53:10.275723"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.276825"], ["updated_at", "2016-03-07 15:53:10.276825"]] [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_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-03-07 15:53:10.278843"], ["updated_at", "2016-03-07 15:53:10.278843"]] [1m[36m (0.0ms)[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.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", "2016-03-07 15:53:10.286610"], ["updated_at", "2016-03-07 15:53:10.286610"]] [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", "2016-03-07 15:53:10.288944"], ["updated_at", "2016-03-07 15:53:10.288944"]] [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-03-07 15:53:10.291625"], ["updated_at", "2016-03-07 15:53:10.291625"]] [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", "2016-03-07 15:53:10.294402"], ["updated_at", "2016-03-07 15:53:10.294402"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.295932"], ["updated_at", "2016-03-07 15:53:10.295932"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.297034"], ["updated_at", "2016-03-07 15:53:10.297034"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.298143"], ["updated_at", "2016-03-07 15:53:10.298143"]] [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", "2016-03-07 15:53:10.304022"], ["updated_at", "2016-03-07 15:53:10.304022"]] [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", "2016-03-07 15:53:10.306094"], ["updated_at", "2016-03-07 15:53:10.306094"]] [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", "2016-03-07 15:53:10.308599"], ["updated_at", "2016-03-07 15:53:10.308599"]] [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-03-07 15:53:10.311255"], ["updated_at", "2016-03-07 15:53:10.311255"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.313091"], ["updated_at", "2016-03-07 15:53:10.313091"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.314686"], ["updated_at", "2016-03-07 15:53:10.314686"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.316261"], ["updated_at", "2016-03-07 15:53:10.316261"]] [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 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", "2016-03-07 15:53:10.323054"], ["updated_at", "2016-03-07 15:53:10.323054"]] [1m[35m (0.1ms)[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_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-03-07 15:53:10.326567"], ["updated_at", "2016-03-07 15:53:10.326567"]] [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 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", "2016-03-07 15:53:10.331170"], ["updated_at", "2016-03-07 15:53:10.331170"]] [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.1ms)[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", "2016-03-07 15:53:10.334847"], ["updated_at", "2016-03-07 15:53:10.334847"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.336910"], ["updated_at", "2016-03-07 15:53:10.336910"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.338298"], ["updated_at", "2016-03-07 15:53:10.338298"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.339670"], ["updated_at", "2016-03-07 15:53:10.339670"]] [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", "2016-03-07 15:53:10.341460"], ["updated_at", "2016-03-07 15:53:10.341460"]] [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", "2016-03-07 15:53:10.345275"], ["updated_at", "2016-03-07 15:53:10.345275"]] 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.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 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", "2016-03-07 15:53:10.352563"], ["updated_at", "2016-03-07 15:53:10.352563"]] [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", "2016-03-07 15:53:10.355000"], ["updated_at", "2016-03-07 15:53:10.355000"]] [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-03-07 15:53:10.357655"], ["updated_at", "2016-03-07 15:53:10.357655"]] [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", "2016-03-07 15:53:10.360745"], ["updated_at", "2016-03-07 15:53:10.360745"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.362316"], ["updated_at", "2016-03-07 15:53:10.362316"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.363518"], ["updated_at", "2016-03-07 15:53:10.363518"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.364643"], ["updated_at", "2016-03-07 15:53:10.364643"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.366212"], ["updated_at", "2016-03-07 15:53:10.366212"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.367976"], ["updated_at", "2016-03-07 15:53:10.367976"]] [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 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.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-03-07 15:53:10.373894"], ["updated_at", "2016-03-07 15:53:10.373894"]] [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", "2016-03-07 15:53:10.376689"], ["updated_at", "2016-03-07 15:53:10.376689"]] [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-03-07 15:53:10.379921"], ["updated_at", "2016-03-07 15:53:10.379921"]] [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", "2016-03-07 15:53:10.383375"], ["updated_at", "2016-03-07 15:53:10.383375"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.385029"], ["updated_at", "2016-03-07 15:53:10.385029"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.386196"], ["updated_at", "2016-03-07 15:53:10.386196"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.387491"], ["updated_at", "2016-03-07 15:53:10.387491"]] [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 [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", "2016-03-07 15:53:10.400504"], ["updated_at", "2016-03-07 15:53:10.400504"]] [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.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", "2016-03-07 15:53:10.403879"], ["updated_at", "2016-03-07 15:53:10.403879"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.405668"], ["updated_at", "2016-03-07 15:53:10.405668"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.406921"], ["updated_at", "2016-03-07 15:53:10.406921"]] [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.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-03-07 15:53:10.413471"], ["updated_at", "2016-03-07 15:53:10.413471"]] [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", "2016-03-07 15:53:10.417344"], ["updated_at", "2016-03-07 15:53:10.417344"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.419172"], ["updated_at", "2016-03-07 15:53:10.419172"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.420343"], ["updated_at", "2016-03-07 15:53:10.420343"]] [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", "2016-03-07 15:53:10.424912"], ["updated_at", "2016-03-07 15:53:10.424912"]] [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 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-03-07 15:53:10.428115"], ["updated_at", "2016-03-07 15:53:10.428115"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.430083"], ["updated_at", "2016-03-07 15:53:10.430083"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.431348"], ["updated_at", "2016-03-07 15:53:10.431348"]] [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", "2016-03-07 15:53:10.433246"], ["updated_at", "2016-03-07 15:53:10.433246"]] [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-03-07 15:53:10.435180"], ["updated_at", "2016-03-07 15:53:10.435180"]] 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", "2016-03-07 15:53:10.440228"], ["updated_at", "2016-03-07 15:53:10.440228"]] [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.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 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-03-07 15:53:10.443214"], ["updated_at", "2016-03-07 15:53:10.443214"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.444883"], ["updated_at", "2016-03-07 15:53:10.444883"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.446179"], ["updated_at", "2016-03-07 15:53:10.446179"]] [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", "2016-03-07 15:53:10.517891"], ["updated_at", "2016-03-07 15:53:10.517891"]] [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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:53:10.520099"], ["updated_at", "2016-03-07 15:53:10.520099"]] [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", "2016-03-07 15:53:10.523490"], ["updated_at", "2016-03-07 15:53:10.523490"]] [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", "2016-03-07 15:53:10.526062"], ["updated_at", "2016-03-07 15:53:10.526062"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.527535"], ["updated_at", "2016-03-07 15:53:10.527535"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:10.528641"], ["updated_at", "2016-03-07 15:53:10.528641"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.529727"], ["updated_at", "2016-03-07 15:53:10.529727"]] [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 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.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 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-03-07 15:53:10.536343"], ["updated_at", "2016-03-07 15:53:10.536343"]] [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-03-07 15:53:10.539125"], ["updated_at", "2016-03-07 15:53:10.539125"]] [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", "2016-03-07 15:53:10.542288"], ["updated_at", "2016-03-07 15:53:10.542288"]] [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", "2016-03-07 15:53:10.545790"], ["updated_at", "2016-03-07 15:53:10.545790"]] [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", "2016-03-07 15:53:10.547617"], ["updated_at", "2016-03-07 15:53:10.547617"]] [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", "21"], ["created_at", "2016-03-07 15:53:10.549007"], ["updated_at", "2016-03-07 15:53:10.549007"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.550338"], ["updated_at", "2016-03-07 15:53:10.550338"]] [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-03-07 15:53:10.556808"], ["updated_at", "2016-03-07 15:53:10.556808"]] [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-03-07 15:53:10.559004"], ["updated_at", "2016-03-07 15:53:10.559004"]] [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", "2016-03-07 15:53:10.561602"], ["updated_at", "2016-03-07 15:53:10.561602"]] [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 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", "2016-03-07 15:53:10.565657"], ["updated_at", "2016-03-07 15:53:10.565657"]] [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", "26"], ["created_at", "2016-03-07 15:53:10.568134"], ["updated_at", "2016-03-07 15:53:10.568134"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.569689"], ["updated_at", "2016-03-07 15:53:10.569689"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.571196"], ["updated_at", "2016-03-07 15:53:10.571196"]] [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_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-03-07 15:53:10.577346"], ["updated_at", "2016-03-07 15:53:10.577346"]] [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", "2016-03-07 15:53:10.579733"], ["updated_at", "2016-03-07 15:53:10.579733"]] [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-03-07 15:53:10.582504"], ["updated_at", "2016-03-07 15:53:10.582504"]] [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 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.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", "2016-03-07 15:53:10.586149"], ["updated_at", "2016-03-07 15:53:10.586149"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.588541"], ["updated_at", "2016-03-07 15:53:10.588541"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.590086"], ["updated_at", "2016-03-07 15:53:10.590086"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.591556"], ["updated_at", "2016-03-07 15:53:10.591556"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[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", "2016-03-07 15:53:10.593665"], ["updated_at", "2016-03-07 15:53:10.593665"]] [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", "2016-03-07 15:53:10.597568"], ["updated_at", "2016-03-07 15:53:10.597568"]] 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 (1.0ms)[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.1ms)[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", "2016-03-07 15:53:10.604317"], ["updated_at", "2016-03-07 15:53:10.604317"]] [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-03-07 15:53:10.606713"], ["updated_at", "2016-03-07 15:53:10.606713"]] [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-03-07 15:53:10.609385"], ["updated_at", "2016-03-07 15:53:10.609385"]] [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.0ms)[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-03-07 15:53:10.612741"], ["updated_at", "2016-03-07 15:53:10.612741"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.615044"], ["updated_at", "2016-03-07 15:53:10.615044"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.616632"], ["updated_at", "2016-03-07 15:53:10.616632"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.618201"], ["updated_at", "2016-03-07 15:53:10.618201"]] [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_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-03-07 15:53:10.620459"], ["updated_at", "2016-03-07 15:53:10.620459"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.622748"], ["updated_at", "2016-03-07 15:53:10.622748"]] [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 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", "2016-03-07 15:53:10.628333"], ["updated_at", "2016-03-07 15:53:10.628333"]] [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-03-07 15:53:10.630426"], ["updated_at", "2016-03-07 15:53:10.630426"]] [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-03-07 15:53:10.633168"], ["updated_at", "2016-03-07 15:53:10.633168"]] [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", "2016-03-07 15:53:10.635913"], ["updated_at", "2016-03-07 15:53:10.635913"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.637442"], ["updated_at", "2016-03-07 15:53:10.637442"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.638623"], ["updated_at", "2016-03-07 15:53:10.638623"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.639713"], ["updated_at", "2016-03-07 15:53:10.639713"]] [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-03-07 15:53:10.646335"], ["updated_at", "2016-03-07 15:53:10.646335"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[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.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", "2016-03-07 15:53:10.653172"], ["updated_at", "2016-03-07 15:53:10.653172"]] [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-03-07 15:53:10.655773"], ["updated_at", "2016-03-07 15:53:10.655773"]] [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-03-07 15:53:10.657756"], ["updated_at", "2016-03-07 15:53:10.657756"]] 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.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", "2016-03-07 15:53:10.664539"], ["updated_at", "2016-03-07 15:53:10.664539"]] [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.2ms)[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", "2016-03-07 15:53:10.671161"], ["updated_at", "2016-03-07 15:53:10.671161"]] [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-03-07 15:53:10.677616"], ["updated_at", "2016-03-07 15:53:10.677616"]] [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-03-07 15:53:10.680567"], ["updated_at", "2016-03-07 15:53:10.680567"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:10.682682"], ["updated_at", "2016-03-07 15:53:10.682682"]] 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.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 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-03-07 15:53:10.686938"], ["updated_at", "2016-03-07 15:53:10.686938"]] [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.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 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-03-07 15:53:10.693247"], ["updated_at", "2016-03-07 15:53:10.693247"]] [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", "2016-03-07 15:53:10.708237"], ["updated_at", "2016-03-07 15:53:10.708237"]] [1m[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-03-07 15:53:10.710625"], ["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", "2016-03-07 15:53:10.717111"], ["updated_at", "2016-03-07 15:53:10.717111"]] [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-03-07 15:53:10.720718"], ["updated_at", "2016-03-07 15:53:10.720718"]] [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-03-07 15:53:10.722383"], ["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-03-07 15:53:10.727880"], ["updated_at", "2016-03-07 15:53:10.727880"]] [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-03-07 15:53:10.731323"], ["updated_at", "2016-03-07 15:53:10.731323"]] [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", "2016-03-07 15:53:10.789171"], ["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", "2016-03-07 15:53:10.804796"], ["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", "2016-03-07 15:53:10.810312"], ["updated_at", "2016-03-07 15:53:10.810312"]] [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[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-03-07 15:53:10.813457"], ["updated_at", "2016-03-07 15:53:10.813457"]] [1m[35m (0.1ms)[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[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-03-07 15:53:10.816441"], ["updated_at", "2016-03-07 15:53:10.816441"]] [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", "2016-03-07 15:53:10.819198"], ["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-03-07 15:53:10.820609"], ["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", "2016-03-07 15:53:10.826321"], ["updated_at", "2016-03-07 15:53:10.826321"]] [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", "2016-03-07 15:53:10.829398"], ["updated_at", "2016-03-07 15:53:10.829398"]] [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-03-07 15:53:10.830849"], ["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-03-07 15:53:10.834534"], ["updated_at", "2016-03-07 15:53:10.834534"]] [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", "2016-03-07 15:53:10.836694"], ["updated_at", "2016-03-07 15:53:10.836694"]] [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", "2016-03-07 15:53:10.842602"], ["updated_at", "2016-03-07 15:53:10.842602"]] [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-03-07 15:53:10.845603"], ["updated_at", "2016-03-07 15:53:10.845603"]] [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-03-07 15:53:10.847213"], ["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", "2016-03-07 15:53:10.849398"], ["updated_at", "2016-03-07 15:53:10.849398"]] [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-03-07 15:53:10.851202"], ["updated_at", "2016-03-07 15:53:10.851202"]] [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-03-07 15:53:10.852870"], ["updated_at", "2016-03-07 15:53:10.852870"]] [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.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[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", "2016-03-07 15:53:10.860152"], ["updated_at", "2016-03-07 15:53:10.860152"]] [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-03-07 15:53:10.863638"], ["updated_at", "2016-03-07 15:53:10.863638"]] [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-03-07 15:53:10.865055"], ["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", "2016-03-07 15:53:10.870438"], ["updated_at", "2016-03-07 15:53:10.870438"]] [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", "2016-03-07 15:53:10.873928"], ["updated_at", "2016-03-07 15:53:10.873928"]] [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-03-07 15:53:10.875310"], ["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", "2016-03-07 15:53:10.881741"], ["updated_at", "2016-03-07 15:53:10.881741"]] [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", "2016-03-07 15:53:10.885092"], ["updated_at", "2016-03-07 15:53:10.885092"]] [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-03-07 15:53:10.886442"], ["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", "2016-03-07 15:53:10.888869"], ["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", "2016-03-07 15:53:10.897925"], ["updated_at", "2016-03-07 15:53:10.897925"]] [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", "2016-03-07 15:53:10.901113"], ["updated_at", "2016-03-07 15:53:10.901113"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.902847"], ["updated_at", "2016-03-07 15:53:10.902847"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.904030"], ["updated_at", "2016-03-07 15:53:10.904030"]] [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-03-07 15:53:10.906730"], ["updated_at", "2016-03-07 15:53:10.906730"]] [1m[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-03-07 15:53:10.908191"], ["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.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", "2016-03-07 15:53:10.915632"], ["updated_at", "2016-03-07 15:53:10.915632"]] [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.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 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-03-07 15:53:10.918798"], ["updated_at", "2016-03-07 15:53:10.918798"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.920641"], ["updated_at", "2016-03-07 15:53:10.920641"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.921854"], ["updated_at", "2016-03-07 15:53:10.921854"]] [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-03-07 15:53:10.924260"], ["updated_at", "2016-03-07 15:53:10.924260"]] [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-03-07 15:53:10.925600"], ["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-03-07 15:53:10.932843"], ["updated_at", "2016-03-07 15:53:10.932843"]] [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", "2016-03-07 15:53:10.935926"], ["updated_at", "2016-03-07 15:53:10.935926"]] [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", "2016-03-07 15:53:10.937789"], ["updated_at", "2016-03-07 15:53:10.937789"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.939713"], ["updated_at", "2016-03-07 15:53:10.939713"]] [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-03-07 15:53:10.942750"], ["updated_at", "2016-03-07 15:53:10.942750"]] [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", "2016-03-07 15:53:10.944422"], ["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.2ms)[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", "2016-03-07 15:53:10.952740"], ["updated_at", "2016-03-07 15:53:10.952740"]] [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 94' 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 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-03-07 15:53:10.957904"], ["updated_at", "2016-03-07 15:53:10.957904"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.960101"], ["updated_at", "2016-03-07 15:53:10.960101"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.961486"], ["updated_at", "2016-03-07 15:53:10.961486"]] [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-03-07 15:53:10.964217"], ["updated_at", "2016-03-07 15:53:10.964217"]] [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-03-07 15:53:10.965650"], ["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", "2016-03-07 15:53:10.972916"], ["updated_at", "2016-03-07 15:53:10.972916"]] [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", "2016-03-07 15:53:10.976152"], ["updated_at", "2016-03-07 15:53:10.976152"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:10.978401"], ["updated_at", "2016-03-07 15:53:10.978401"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:10.979680"], ["updated_at", "2016-03-07 15:53:10.979680"]] [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-03-07 15:53:10.982397"], ["updated_at", "2016-03-07 15:53:10.982397"]] [1m[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-03-07 15:53:10.983824"], ["id", 1]] [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 "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-03-07 15:53:10.994316"], ["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-03-07 15:53:10.999030"], ["updated_at", "2016-03-07 15:53:10.999030"]] [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.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", 12.5], ["updated_at", "2016-03-07 15:53:11.001738"], ["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-03-07 15:53:11.005354"], ["updated_at", "2016-03-07 15:53:11.005354"]] [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-03-07 15:53:11.007299"], ["updated_at", "2016-03-07 15:53:11.007299"]] [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-03-07 15:53:11.065812"], ["updated_at", "2016-03-07 15:53:11.065812"]] [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", "2016-03-07 15:53:11.076311"], ["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.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[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-03-07 15:53:11.093373"], ["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.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", "2016-03-07 15:53:11.098228"], ["updated_at", "2016-03-07 15:53:11.098228"]] [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-03-07 15:53:11.101588"], ["id", 1]] [1m[36m (0.0ms)[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" = ? 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", "2016-03-07 15:53:11.122228"], ["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", "2016-03-07 15:53:11.125018"], ["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", "2016-03-07 15:53:11.137842"], ["updated_at", "2016-03-07 15:53:11.137842"]] [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-03-07 15:53:11.140691"], ["updated_at", "2016-03-07 15:53:11.140691"]] [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", "2016-03-07 15:53:11.142357"], ["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.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"."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.6ms)[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-03-07 15:53:11.156781"], ["updated_at", "2016-03-07 15:53:11.156781"]] [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.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.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[36m (0.1ms)[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-03-07 15:53:11.162329"], ["updated_at", "2016-03-07 15:53:11.162329"]] [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", "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[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-03-07 15:53:11.170560"], ["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-03-07 15:53:11.171927"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.0ms)[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.0ms)[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-03-07 15:53:11.180361"], ["updated_at", "2016-03-07 15:53:11.180361"]] [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 98' 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 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", "2016-03-07 15:53:11.183884"], ["updated_at", "2016-03-07 15:53:11.183884"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.186306"], ["updated_at", "2016-03-07 15:53:11.186306"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.187599"], ["updated_at", "2016-03-07 15:53:11.187599"]] [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-03-07 15:53:11.190668"], ["updated_at", "2016-03-07 15:53:11.190668"]] [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-03-07 15:53:11.192444"], ["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-03-07 15:53:11.195058"], ["updated_at", "2016-03-07 15:53:11.195058"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [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.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.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 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-03-07 15:53:11.203409"], ["updated_at", "2016-03-07 15:53:11.203409"]] [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 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.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 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-03-07 15:53:11.206960"], ["updated_at", "2016-03-07 15:53:11.206960"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:53:11.209372"], ["updated_at", "2016-03-07 15:53:11.209372"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:53:11.210660"], ["updated_at", "2016-03-07 15:53:11.210660"]] [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-03-07 15:53:11.213216"], ["updated_at", "2016-03-07 15:53:11.213216"]] [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-03-07 15:53:11.214573"], ["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", "2016-03-07 15:53:11.216899"], ["updated_at", "2016-03-07 15:53:11.216899"]] [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-03-07 15:53:11.218799"], ["updated_at", "2016-03-07 15:53:11.218799"]] [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-03-07 15:53:11.220433"], ["updated_at", "2016-03-07 15:53:11.220433"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.6ms)[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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' 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 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-03-07 15:53:11.229819"], ["updated_at", "2016-03-07 15:53:11.229819"]] [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 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.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 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-03-07 15:53:11.232982"], ["updated_at", "2016-03-07 15:53:11.232982"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.234798"], ["updated_at", "2016-03-07 15:53:11.234798"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.236181"], ["updated_at", "2016-03-07 15:53:11.236181"]] [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-03-07 15:53:11.239021"], ["updated_at", "2016-03-07 15:53:11.239021"]] [1m[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-03-07 15:53:11.240787"], ["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.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-03-07 15:53:11.299120"], ["updated_at", "2016-03-07 15:53:11.299120"]] [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-03-07 15:53:11.301545"], ["updated_at", "2016-03-07 15:53:11.301545"]] [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-03-07 15:53:11.303091"], ["updated_at", "2016-03-07 15:53:11.303091"]] [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", "2016-03-07 15:53:11.304618"], ["updated_at", "2016-03-07 15:53:11.304618"]] [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[36m (0.0ms)[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 (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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:53:11.324364"], ["updated_at", "2016-03-07 15:53:11.324364"]] [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 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", "2016-03-07 15:53:11.327421"], ["updated_at", "2016-03-07 15:53:11.327421"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.329181"], ["updated_at", "2016-03-07 15:53:11.329181"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.330324"], ["updated_at", "2016-03-07 15:53:11.330324"]] [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-03-07 15:53:11.332775"], ["updated_at", "2016-03-07 15:53:11.332775"]] [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-03-07 15:53:11.334180"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.5ms)[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-03-07 15:53:11.340559"], ["updated_at", "2016-03-07 15:53:11.340559"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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-03-07 15:53:11.348690"], ["updated_at", "2016-03-07 15:53:11.348690"]] [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.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", "2016-03-07 15:53:11.351603"], ["updated_at", "2016-03-07 15:53:11.351603"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.353302"], ["updated_at", "2016-03-07 15:53:11.353302"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.354801"], ["updated_at", "2016-03-07 15:53:11.354801"]] [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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:53:11.357301"], ["updated_at", "2016-03-07 15:53:11.357301"]] [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-03-07 15:53:11.359242"], ["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-03-07 15:53:11.361501"], ["updated_at", "2016-03-07 15:53:11.361501"]] [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.1ms)[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.0ms)[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.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_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 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.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 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-03-07 15:53:11.379904"], ["updated_at", "2016-03-07 15:53:11.379904"]] [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 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.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 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-03-07 15:53:11.382971"], ["updated_at", "2016-03-07 15:53:11.382971"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.384748"], ["updated_at", "2016-03-07 15:53:11.384748"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.385873"], ["updated_at", "2016-03-07 15:53:11.385873"]] [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-03-07 15:53:11.388292"], ["updated_at", "2016-03-07 15:53:11.388292"]] [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-03-07 15:53:11.389610"], ["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-03-07 15:53:11.391643"], ["updated_at", "2016-03-07 15:53:11.391643"]] [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.7ms)[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-03-07 15:53:11.399082"], ["updated_at", "2016-03-07 15:53:11.399082"]] [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 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", "2016-03-07 15:53:11.402332"], ["updated_at", "2016-03-07 15:53:11.402332"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.404208"], ["updated_at", "2016-03-07 15:53:11.404208"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:53:11.405396"], ["updated_at", "2016-03-07 15:53:11.405396"]] [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-03-07 15:53:11.407777"], ["updated_at", "2016-03-07 15:53:11.407777"]] [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-03-07 15:53:11.409058"], ["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-03-07 15:53:11.411343"], ["updated_at", "2016-03-07 15:53:11.411343"]] [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-03-07 15:53:11.413423"], ["updated_at", "2016-03-07 15:53:11.413423"]] [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-03-07 15:53:11.414961"], ["updated_at", "2016-03-07 15:53:11.414961"]] [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", "2016-03-07 15:53:11.416561"], ["updated_at", "2016-03-07 15:53:11.416561"]] [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::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-03-07 15:53:11.442272"], ["updated_at", "2016-03-07 15:53:11.442272"]] [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.0ms)[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-03-07 15:53:11.445309"], ["updated_at", "2016-03-07 15:53:11.445309"]] [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.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.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.0ms)[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-03-07 15:53:11.448159"], ["updated_at", "2016-03-07 15:53:11.448159"]] [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.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", "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", "2"], ["coalescing_panda_user_id", 2], ["coalescing_panda_assignment_id", 2], ["grade", "80"], ["score", "80"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:53:11.451229"], ["updated_at", "2016-03-07 15:53:11.451229"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (2.3ms)[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.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 111' 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 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", "2016-03-07 15:53:11.461246"], ["updated_at", "2016-03-07 15:53:11.461246"]] [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.1ms)[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-03-07 15:53:11.465790"], ["updated_at", "2016-03-07 15:53:11.465790"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.468009"], ["updated_at", "2016-03-07 15:53:11.468009"]] [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", "38"], ["created_at", "2016-03-07 15:53:11.469985"], ["updated_at", "2016-03-07 15:53:11.469985"]] [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-03-07 15:53:11.473237"], ["updated_at", "2016-03-07 15:53:11.473237"]] [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-03-07 15:53:11.474939"], ["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", "2016-03-07 15:53:11.532707"], ["updated_at", "2016-03-07 15:53:11.532707"]] [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-03-07 15:53:11.536321"], ["updated_at", "2016-03-07 15:53:11.536321"]] [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-03-07 15:53:11.538608"], ["updated_at", "2016-03-07 15:53:11.538608"]] [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.8ms)[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 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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-03-07 15:53:11.547187"], ["updated_at", "2016-03-07 15:53:11.547187"]] [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 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.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", "2016-03-07 15:53:11.550337"], ["updated_at", "2016-03-07 15:53:11.550337"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.552192"], ["updated_at", "2016-03-07 15:53:11.552192"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.553381"], ["updated_at", "2016-03-07 15:53:11.553381"]] [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-03-07 15:53:11.556455"], ["updated_at", "2016-03-07 15:53:11.556455"]] [1m[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-03-07 15:53:11.558418"], ["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-03-07 15:53:11.561346"], ["updated_at", "2016-03-07 15:53:11.561346"]] [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-03-07 15:53:11.563898"], ["updated_at", "2016-03-07 15:53:11.563898"]] [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-03-07 15:53:11.565654"], ["updated_at", "2016-03-07 15:53:11.565654"]] [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", "2016-03-07 15:53:11.567269"], ["updated_at", "2016-03-07 15:53:11.567269"]] [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.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::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-03-07 15:53:11.582932"], ["updated_at", "2016-03-07 15:53:11.582932"]] [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.0ms)[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-03-07 15:53:11.585079"], ["updated_at", "2016-03-07 15:53:11.585079"]] [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" = ? 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.0ms)[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.0ms)[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-03-07 15:53:11.594936"], ["updated_at", "2016-03-07 15:53:11.594936"]] [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 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", "2016-03-07 15:53:11.597856"], ["updated_at", "2016-03-07 15:53:11.597856"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.599619"], ["updated_at", "2016-03-07 15:53:11.599619"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.600767"], ["updated_at", "2016-03-07 15:53:11.600767"]] [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-03-07 15:53:11.603292"], ["updated_at", "2016-03-07 15:53:11.603292"]] [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-03-07 15:53:11.604579"], ["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-03-07 15:53:11.608203"], ["updated_at", "2016-03-07 15:53:11.608203"]] [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-03-07 15:53:11.610513"], ["updated_at", "2016-03-07 15:53:11.610513"]] [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"."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.7ms)[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", "2016-03-07 15:53:11.618003"], ["updated_at", "2016-03-07 15:53:11.618003"]] [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.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", "2016-03-07 15:53:11.620842"], ["updated_at", "2016-03-07 15:53:11.620842"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.622438"], ["updated_at", "2016-03-07 15:53:11.622438"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:11.623602"], ["updated_at", "2016-03-07 15:53:11.623602"]] [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-03-07 15:53:11.626213"], ["updated_at", "2016-03-07 15:53:11.626213"]] [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-03-07 15:53:11.627538"], ["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-03-07 15:53:11.629610"], ["updated_at", "2016-03-07 15:53:11.629610"]] [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-03-07 15:53:11.631813"], ["updated_at", "2016-03-07 15:53:11.631813"]] [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-03-07 15:53:11.633314"], ["updated_at", "2016-03-07 15:53:11.633314"]] [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", "2016-03-07 15:53:11.634776"], ["updated_at", "2016-03-07 15:53:11.634776"]] [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", "2016-03-07 15:53:11.649257"], ["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.8ms)[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", "2016-03-07 15:53:11.665158"], ["updated_at", "2016-03-07 15:53:11.665158"]] [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", "2016-03-07 15:53:11.667982"], ["updated_at", "2016-03-07 15:53:11.667982"]] [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", "47"], ["created_at", "2016-03-07 15:53:11.669599"], ["updated_at", "2016-03-07 15:53:11.669599"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.671007"], ["updated_at", "2016-03-07 15:53:11.671007"]] [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-03-07 15:53:11.673523"], ["updated_at", "2016-03-07 15:53:11.673523"]] [1m[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-03-07 15:53:11.675200"], ["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-03-07 15:53:11.678148"], ["updated_at", "2016-03-07 15:53:11.678148"]] [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-03-07 15:53:11.680830"], ["updated_at", "2016-03-07 15:53:11.680830"]] [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-03-07 15:53:11.682668"], ["updated_at", "2016-03-07 15:53:11.682668"]] [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", "2016-03-07 15:53:11.684311"], ["updated_at", "2016-03-07 15:53:11.684311"]] [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.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.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", "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.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", "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.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.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", "2016-03-07 15:53:11.700268"], ["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.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[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.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 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-03-07 15:53:11.716971"], ["updated_at", "2016-03-07 15:53:11.716971"]] [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 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", "2016-03-07 15:53:11.779216"], ["updated_at", "2016-03-07 15:53:11.779216"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:11.781285"], ["updated_at", "2016-03-07 15:53:11.781285"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.782489"], ["updated_at", "2016-03-07 15:53:11.782489"]] [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-03-07 15:53:11.784969"], ["updated_at", "2016-03-07 15:53:11.784969"]] [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-03-07 15:53:11.786382"], ["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-03-07 15:53:11.788696"], ["updated_at", "2016-03-07 15:53:11.788696"]] [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-03-07 15:53:11.790963"], ["updated_at", "2016-03-07 15:53:11.790963"]] [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-03-07 15:53:11.792630"], ["updated_at", "2016-03-07 15:53:11.792630"]] [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", "2016-03-07 15:53:11.794102"], ["updated_at", "2016-03-07 15:53:11.794102"]] [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.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", "2016-03-07 15:53:11.808363"], ["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.5ms)[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.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-03-07 15:53:11.825730"], ["updated_at", "2016-03-07 15:53:11.825730"]] [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.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", "2016-03-07 15:53:11.829166"], ["updated_at", "2016-03-07 15:53:11.829166"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:11.830883"], ["updated_at", "2016-03-07 15:53:11.830883"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.831981"], ["updated_at", "2016-03-07 15:53:11.831981"]] [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-03-07 15:53:11.834543"], ["updated_at", "2016-03-07 15:53:11.834543"]] [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-03-07 15:53:11.835972"], ["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-03-07 15:53:11.838159"], ["updated_at", "2016-03-07 15:53:11.838159"]] [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-03-07 15:53:11.840239"], ["updated_at", "2016-03-07 15:53:11.840239"]] [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", "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", "2016-03-07 15:53:11.842800"], ["updated_at", "2016-03-07 15:53:11.842800"]] [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", "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-03-07 15:53:11.845540"], ["updated_at", "2016-03-07 15:53:11.845540"]] [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", "2016-03-07 15:53:11.862694"], ["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.2ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-03-07 15:53:11.868090"], ["id", 1]] [1m[36m (0.1ms)[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.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.1ms)[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 (2.4ms)[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.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", "2016-03-07 15:53:11.883890"], ["updated_at", "2016-03-07 15:53:11.883890"]] [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", "2016-03-07 15:53:11.888990"], ["updated_at", "2016-03-07 15:53:11.888990"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.891257"], ["updated_at", "2016-03-07 15:53:11.891257"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.892685"], ["updated_at", "2016-03-07 15:53:11.892685"]] [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-03-07 15:53:11.895525"], ["updated_at", "2016-03-07 15:53:11.895525"]] [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-03-07 15:53:11.897063"], ["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", "2016-03-07 15:53:11.904333"], ["updated_at", "2016-03-07 15:53:11.904333"]] [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", "2016-03-07 15:53:11.907349"], ["updated_at", "2016-03-07 15:53:11.907349"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.909069"], ["updated_at", "2016-03-07 15:53:11.909069"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.910295"], ["updated_at", "2016-03-07 15:53:11.910295"]] [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-03-07 15:53:11.912905"], ["updated_at", "2016-03-07 15:53:11.912905"]] [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-03-07 15:53:11.914256"], ["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.2ms)[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-03-07 15:53:11.922695"], ["updated_at", "2016-03-07 15:53:11.922695"]] [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.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", "2016-03-07 15:53:11.926580"], ["updated_at", "2016-03-07 15:53:11.926580"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.928419"], ["updated_at", "2016-03-07 15:53:11.928419"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:11.929615"], ["updated_at", "2016-03-07 15:53:11.929615"]] [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-03-07 15:53:11.932084"], ["updated_at", "2016-03-07 15:53:11.932084"]] [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-03-07 15:53:11.933474"], ["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.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", "2016-03-07 15:53:11.941913"], ["updated_at", "2016-03-07 15:53:11.941913"]] [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", "2016-03-07 15:53:11.944820"], ["updated_at", "2016-03-07 15:53:11.944820"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:11.946427"], ["updated_at", "2016-03-07 15:53:11.946427"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.947583"], ["updated_at", "2016-03-07 15:53:11.947583"]] [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-03-07 15:53:11.950258"], ["updated_at", "2016-03-07 15:53:11.950258"]] [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-03-07 15:53:11.951789"], ["id", 1]] [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.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", "2016-03-07 15:53:11.960562"], ["updated_at", "2016-03-07 15:53:11.960562"]] [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.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 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-03-07 15:53:11.963798"], ["updated_at", "2016-03-07 15:53:11.963798"]] [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", "54"], ["created_at", "2016-03-07 15:53:11.966854"], ["updated_at", "2016-03-07 15:53:11.966854"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:11.968688"], ["updated_at", "2016-03-07 15:53:11.968688"]] [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.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-03-07 15:53:11.972418"], ["updated_at", "2016-03-07 15:53:11.972418"]] [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-03-07 15:53:11.974248"], ["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", "2016-03-07 15:53:11.982204"], ["updated_at", "2016-03-07 15:53:11.982204"]] [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", "2016-03-07 15:53:11.985334"], ["updated_at", "2016-03-07 15:53:11.985334"]] [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", "55"], ["created_at", "2016-03-07 15:53:11.987338"], ["updated_at", "2016-03-07 15:53:11.987338"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:11.988513"], ["updated_at", "2016-03-07 15:53:11.988513"]] [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-03-07 15:53:11.990900"], ["updated_at", "2016-03-07 15:53:11.990900"]] [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-03-07 15:53:11.992188"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [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 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", "2016-03-07 15:53:12.063644"], ["updated_at", "2016-03-07 15:53:12.063644"]] [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 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", "2016-03-07 15:53:12.068347"], ["updated_at", "2016-03-07 15:53:12.068347"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:12.070914"], ["updated_at", "2016-03-07 15:53:12.070914"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:12.072850"], ["updated_at", "2016-03-07 15:53:12.072850"]] [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-03-07 15:53:12.076160"], ["updated_at", "2016-03-07 15:53:12.076160"]] [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-03-07 15:53:12.078462"], ["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 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", "2016-03-07 15:53:12.087189"], ["updated_at", "2016-03-07 15:53:12.087189"]] [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", "2016-03-07 15:53:12.091232"], ["updated_at", "2016-03-07 15:53:12.091232"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:12.093139"], ["updated_at", "2016-03-07 15:53:12.093139"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:12.094407"], ["updated_at", "2016-03-07 15:53:12.094407"]] [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-03-07 15:53:12.097367"], ["updated_at", "2016-03-07 15:53:12.097367"]] [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-03-07 15:53:12.099094"], ["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 [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", "2016-03-07 15:53:12.109036"], ["updated_at", "2016-03-07 15:53:12.109036"]] [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", "2016-03-07 15:53:12.112319"], ["updated_at", "2016-03-07 15:53:12.112319"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:12.114521"], ["updated_at", "2016-03-07 15:53:12.114521"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:12.115777"], ["updated_at", "2016-03-07 15:53:12.115777"]] [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-03-07 15:53:12.118201"], ["updated_at", "2016-03-07 15:53:12.118201"]] [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-03-07 15:53:12.119519"], ["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", "2016-03-07 15:53:12.122478"], ["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.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 2ms (ActiveRecord: 0.0ms) [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 SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.9ms)[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-03-07 15:53:59.308726"], ["updated_at", "2016-03-07 15:53:59.308726"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[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-03-07 15:53:59.330054"], ["updated_at", "2016-03-07 15:53:59.330054"]] [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", "2016-03-07 16:53:59.352555"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:53:59.353944"], ["updated_at", "2016-03-07 15:53:59.353944"]] [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 28ms (Views: 7.9ms | ActiveRecord: 1.0ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.2ms)[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.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.1ms)[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-03-07 15:53:59.390682"], ["updated_at", "2016-03-07 15:53:59.390682"]] [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 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", "2016-03-07 15:53:59.447307"], ["updated_at", "2016-03-07 15:53:59.447307"]] [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_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-03-07 15:53:59.450103"], ["updated_at", "2016-03-07 15:53:59.450103"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:59.452634"], ["updated_at", "2016-03-07 15:53:59.452634"]] [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 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-03-07 15:53:59.466651"], ["updated_at", "2016-03-07 15:53:59.466651"]] [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.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.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 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-03-07 15:53:59.470403"], ["updated_at", "2016-03-07 15:53:59.470403"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:53:59.472680"], ["updated_at", "2016-03-07 15:53:59.472680"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:59.474369"], ["updated_at", "2016-03-07 15:53:59.474369"]] [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.1ms)[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-03-07 15:53:59.480503"], ["updated_at", "2016-03-07 15:53:59.480503"]] [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.1ms)[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", "2016-03-07 15:53:59.483531"], ["updated_at", "2016-03-07 15:53:59.483531"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.485301"], ["updated_at", "2016-03-07 15:53:59.485301"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.486438"], ["updated_at", "2016-03-07 15:53:59.486438"]] [1m[36m (0.1ms)[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.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-03-07 15:53:59.506359"], ["updated_at", "2016-03-07 15:53:59.506359"]] [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-03-07 15:53:59.510498"], ["updated_at", "2016-03-07 15:53:59.510498"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.512796"], ["updated_at", "2016-03-07 15:53:59.512796"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.514213"], ["updated_at", "2016-03-07 15:53:59.514213"]] [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.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", "2016-03-07 15:53:59.521838"], ["updated_at", "2016-03-07 15:53:59.521838"]] [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 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.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 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-03-07 15:53:59.526269"], ["updated_at", "2016-03-07 15:53:59.526269"]] [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", "5"], ["created_at", "2016-03-07 15:53:59.529248"], ["updated_at", "2016-03-07 15:53:59.529248"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.530764"], ["updated_at", "2016-03-07 15:53:59.530764"]] [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-03-07 15:53:59.536071"], ["updated_at", "2016-03-07 15:53:59.536071"]] [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", "2016-03-07 15:53:59.539130"], ["updated_at", "2016-03-07 15:53:59.539130"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.540932"], ["updated_at", "2016-03-07 15:53:59.540932"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.542375"], ["updated_at", "2016-03-07 15:53:59.542375"]] [1m[36m (0.0ms)[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_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-03-07 15:53:59.544318"], ["updated_at", "2016-03-07 15:53:59.544318"]] [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", "2016-03-07 15:53:59.549131"], ["updated_at", "2016-03-07 15:53:59.549131"]] 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.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 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", "2016-03-07 15:53:59.554939"], ["updated_at", "2016-03-07 15:53:59.554939"]] [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", "2016-03-07 15:53:59.558060"], ["updated_at", "2016-03-07 15:53:59.558060"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.559878"], ["updated_at", "2016-03-07 15:53:59.559878"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.561107"], ["updated_at", "2016-03-07 15:53:59.561107"]] [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", "2016-03-07 15:53:59.568523"], ["updated_at", "2016-03-07 15:53:59.568523"]] [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.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[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-03-08 15:53:59.581942"], ["created_at", "2016-03-07 15:53:59.583023"], ["updated_at", "2016-03-07 15:53:59.583023"]] [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.7ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:53:59.592432"], ["updated_at", "2016-03-07 15:53:59.592432"]] [1m[36m (0.1ms)[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", "2016-03-07 15:53:59.595149"], ["updated_at", "2016-03-07 15:53:59.595149"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[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", "2016-03-07 15:53:59.596820"], ["updated_at", "2016-03-07 15:53:59.596820"]] [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.1ms)[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 16' 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 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", "2016-03-07 15:53:59.607906"], ["updated_at", "2016-03-07 15:53:59.607906"]] [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", "2016-03-07 15:53:59.612267"], ["updated_at", "2016-03-07 15:53:59.612267"]] [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", "8"], ["created_at", "2016-03-07 15:53:59.615026"], ["updated_at", "2016-03-07 15:53:59.615026"]] [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", "2016-03-07 15:53:59.621975"], ["updated_at", "2016-03-07 15:53:59.621975"]] [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", "2016-03-07 15:53:59.625398"], ["updated_at", "2016-03-07 15:53:59.625398"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.627247"], ["updated_at", "2016-03-07 15:53:59.627247"]] [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.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", "2016-03-07 15:53:59.631839"], ["updated_at", "2016-03-07 15:53:59.631839"]] [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.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 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-03-07 15:53:59.636173"], ["updated_at", "2016-03-07 15:53:59.636173"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.638827"], ["updated_at", "2016-03-07 15:53:59.638827"]] [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", "2016-03-07 15:53:59.693880"], ["updated_at", "2016-03-07 15:53:59.693880"]] [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.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", "2016-03-07 15:53:59.697287"], ["updated_at", "2016-03-07 15:53:59.697287"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.699174"], ["updated_at", "2016-03-07 15:53:59.699174"]] [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-03-07 15:53:59.700444"], ["updated_at", "2016-03-07 15:53:59.700444"]] 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", "2016-03-07 15:53:59.705219"], ["updated_at", "2016-03-07 15:53:59.705219"]] [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", "2016-03-07 15:53:59.706987"], ["updated_at", "2016-03-07 15:53:59.706987"]] [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", "2016-03-07 15:53:59.709900"], ["updated_at", "2016-03-07 15:53:59.709900"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.712047"], ["updated_at", "2016-03-07 15:53:59.712047"]] [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", "2016-03-07 15:53:59.715984"], ["updated_at", "2016-03-07 15:53:59.715984"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:53:59.717905"], ["updated_at", "2016-03-07 15:53:59.717905"]] 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 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-03-07 15:53:59.722518"], ["updated_at", "2016-03-07 15:53:59.722518"]] [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", "2016-03-07 15:53:59.725460"], ["updated_at", "2016-03-07 15:53:59.725460"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.727116"], ["updated_at", "2016-03-07 15:53:59.727116"]] [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.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", "2016-03-07 15:53:59.739927"], ["updated_at", "2016-03-07 15:53:59.739927"]] [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", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2016-03-07 15:53:59.742593"], ["updated_at", "2016-03-07 15:53:59.742593"]] [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", "2016-03-07 15:53:59.754006"], ["updated_at", "2016-03-07 15:53:59.754006"]] [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", "2016-03-07 15:53:59.757018"], ["updated_at", "2016-03-07 15:53:59.757018"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.758726"], ["updated_at", "2016-03-07 15:53:59.758726"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.759861"], ["updated_at", "2016-03-07 15:53:59.759861"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.761672"], ["updated_at", "2016-03-07 15:53:59.761672"]] [1m[36m (0.1ms)[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.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", "2016-03-07 15:53:59.770366"], ["updated_at", "2016-03-07 15:53:59.770366"]] [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", "2016-03-07 15:53:59.772930"], ["updated_at", "2016-03-07 15:53:59.772930"]] [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", "2016-03-07 15:53:59.776522"], ["updated_at", "2016-03-07 15:53:59.776522"]] [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-03-07 15:53:59.779981"], ["updated_at", "2016-03-07 15:53:59.779981"]] [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", 3], ["canvas_term_id", "15"], ["created_at", "2016-03-07 15:53:59.782898"], ["updated_at", "2016-03-07 15:53:59.782898"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.784823"], ["updated_at", "2016-03-07 15:53:59.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_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-03-07 15:53:59.786416"], ["updated_at", "2016-03-07 15:53:59.786416"]] [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.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", "2016-03-07 15:53:59.793593"], ["updated_at", "2016-03-07 15:53:59.793593"]] [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", "2016-03-07 15:53:59.795959"], ["updated_at", "2016-03-07 15:53:59.795959"]] [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", "2016-03-07 15:53:59.798658"], ["updated_at", "2016-03-07 15:53:59.798658"]] [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.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.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 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-03-07 15:53:59.801398"], ["updated_at", "2016-03-07 15:53:59.801398"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.803082"], ["updated_at", "2016-03-07 15:53:59.803082"]] [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", "12"], ["created_at", "2016-03-07 15:53:59.804377"], ["updated_at", "2016-03-07 15:53:59.804377"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.805546"], ["updated_at", "2016-03-07 15:53:59.805546"]] [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.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", "2016-03-07 15:53:59.811205"], ["updated_at", "2016-03-07 15:53:59.811205"]] [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", "2016-03-07 15:53:59.813448"], ["updated_at", "2016-03-07 15:53:59.813448"]] [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", "2016-03-07 15:53:59.816398"], ["updated_at", "2016-03-07 15:53:59.816398"]] [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 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-03-07 15:53:59.819542"], ["updated_at", "2016-03-07 15:53:59.819542"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.821009"], ["updated_at", "2016-03-07 15:53:59.821009"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.822106"], ["updated_at", "2016-03-07 15:53:59.822106"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.823275"], ["updated_at", "2016-03-07 15:53:59.823275"]] [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", "2016-03-07 15:53:59.825043"], ["updated_at", "2016-03-07 15:53:59.825043"]] [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_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-03-07 15:53:59.828113"], ["updated_at", "2016-03-07 15:53:59.828113"]] 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.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 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-03-07 15:53:59.833486"], ["updated_at", "2016-03-07 15:53:59.833486"]] [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-03-07 15:53:59.835509"], ["updated_at", "2016-03-07 15:53:59.835509"]] [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-03-07 15:53:59.838065"], ["updated_at", "2016-03-07 15:53:59.838065"]] [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.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-03-07 15:53:59.840942"], ["updated_at", "2016-03-07 15:53:59.840942"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.842578"], ["updated_at", "2016-03-07 15:53:59.842578"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.843721"], ["updated_at", "2016-03-07 15:53:59.843721"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.844930"], ["updated_at", "2016-03-07 15:53:59.844930"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.846759"], ["updated_at", "2016-03-07 15:53:59.846759"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.848866"], ["updated_at", "2016-03-07 15:53:59.848866"]] [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.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", "2016-03-07 15:53:59.854119"], ["updated_at", "2016-03-07 15:53:59.854119"]] [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", "2016-03-07 15:53:59.856074"], ["updated_at", "2016-03-07 15:53:59.856074"]] [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.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", "2016-03-07 15:53:59.858679"], ["updated_at", "2016-03-07 15:53:59.858679"]] [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.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", "2016-03-07 15:53:59.861651"], ["updated_at", "2016-03-07 15:53:59.861651"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.863247"], ["updated_at", "2016-03-07 15:53:59.863247"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.864359"], ["updated_at", "2016-03-07 15:53:59.864359"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.865517"], ["updated_at", "2016-03-07 15:53:59.865517"]] [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 [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", "2016-03-07 15:53:59.878851"], ["updated_at", "2016-03-07 15:53:59.878851"]] [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", "2016-03-07 15:53:59.881990"], ["updated_at", "2016-03-07 15:53:59.881990"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.883746"], ["updated_at", "2016-03-07 15:53:59.883746"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.884916"], ["updated_at", "2016-03-07 15:53:59.884916"]] [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 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-03-07 15:53:59.891665"], ["updated_at", "2016-03-07 15:53:59.891665"]] [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 50' 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 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-03-07 15:53:59.896268"], ["updated_at", "2016-03-07 15:53:59.896268"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.898546"], ["updated_at", "2016-03-07 15:53:59.898546"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.899897"], ["updated_at", "2016-03-07 15:53:59.899897"]] [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 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", "2016-03-07 15:53:59.905084"], ["updated_at", "2016-03-07 15:53:59.905084"]] [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 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-03-07 15:53:59.908128"], ["updated_at", "2016-03-07 15:53:59.908128"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.910130"], ["updated_at", "2016-03-07 15:53:59.910130"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.911399"], ["updated_at", "2016-03-07 15:53:59.911399"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.913042"], ["updated_at", "2016-03-07 15:53:59.913042"]] [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-03-07 15:53:59.914694"], ["updated_at", "2016-03-07 15:53:59.914694"]] 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", "2016-03-07 15:53:59.919466"], ["updated_at", "2016-03-07 15:53:59.919466"]] [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.1ms)[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", "2016-03-07 15:53:59.922476"], ["updated_at", "2016-03-07 15:53:59.922476"]] [1m[35m (0.0ms)[0m 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-03-07 15:53:59.924225"], ["updated_at", "2016-03-07 15:53:59.924225"]] [1m[36m (0.0ms)[0m [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-03-07 15:53:59.925400"], ["updated_at", "2016-03-07 15:53:59.925400"]] [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 [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.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 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-03-07 15:53:59.994610"], ["updated_at", "2016-03-07 15:53:59.994610"]] [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", "2016-03-07 15:53:59.997112"], ["updated_at", "2016-03-07 15:53:59.997112"]] [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", "2016-03-07 15:54:00.000700"], ["updated_at", "2016-03-07 15:54:00.000700"]] [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.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", "2016-03-07 15:54:00.005043"], ["updated_at", "2016-03-07 15:54:00.005043"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.007054"], ["updated_at", "2016-03-07 15:54:00.007054"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:54:00.008726"], ["updated_at", "2016-03-07 15:54:00.008726"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.010398"], ["updated_at", "2016-03-07 15:54:00.010398"]] [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 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-03-07 15:54:00.018166"], ["updated_at", "2016-03-07 15:54:00.018166"]] [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-03-07 15:54:00.020445"], ["updated_at", "2016-03-07 15:54:00.020445"]] [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", "2016-03-07 15:54:00.023427"], ["updated_at", "2016-03-07 15:54:00.023427"]] [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", "2016-03-07 15:54:00.026605"], ["updated_at", "2016-03-07 15:54:00.026605"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.028197"], ["updated_at", "2016-03-07 15:54:00.028197"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.029336"], ["updated_at", "2016-03-07 15:54:00.029336"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.030541"], ["updated_at", "2016-03-07 15:54:00.030541"]] [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", "2016-03-07 15:54:00.036198"], ["updated_at", "2016-03-07 15:54:00.036198"]] [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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-07 15:54:00.038472"], ["updated_at", "2016-03-07 15:54:00.038472"]] [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 62' 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 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-03-07 15:54:00.043623"], ["updated_at", "2016-03-07 15:54:00.043623"]] [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.0ms)[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", "2016-03-07 15:54:00.046782"], ["updated_at", "2016-03-07 15:54:00.046782"]] [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", 3], ["canvas_term_id", "26"], ["created_at", "2016-03-07 15:54:00.048508"], ["updated_at", "2016-03-07 15:54:00.048508"]] [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_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-03-07 15:54:00.050268"], ["updated_at", "2016-03-07 15:54:00.050268"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.051682"], ["updated_at", "2016-03-07 15:54:00.051682"]] [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.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 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-03-07 15:54:00.057033"], ["updated_at", "2016-03-07 15:54:00.057033"]] [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-03-07 15:54:00.059463"], ["updated_at", "2016-03-07 15:54:00.059463"]] [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 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-03-07 15:54:00.062694"], ["updated_at", "2016-03-07 15:54:00.062694"]] [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 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.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", "2016-03-07 15:54:00.065738"], ["updated_at", "2016-03-07 15:54:00.065738"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.067645"], ["updated_at", "2016-03-07 15:54:00.067645"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.068788"], ["updated_at", "2016-03-07 15:54:00.068788"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.069929"], ["updated_at", "2016-03-07 15:54:00.069929"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:54:00.071730"], ["updated_at", "2016-03-07 15:54:00.071730"]] [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", "2016-03-07 15:54:00.073484"], ["updated_at", "2016-03-07 15:54:00.073484"]] 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.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-03-07 15:54:00.078192"], ["updated_at", "2016-03-07 15:54:00.078192"]] [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-03-07 15:54:00.080116"], ["updated_at", "2016-03-07 15:54:00.080116"]] [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", "2016-03-07 15:54:00.082832"], ["updated_at", "2016-03-07 15:54:00.082832"]] [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", "2016-03-07 15:54:00.085502"], ["updated_at", "2016-03-07 15:54:00.085502"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.087116"], ["updated_at", "2016-03-07 15:54:00.087116"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.088222"], ["updated_at", "2016-03-07 15:54:00.088222"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.089375"], ["updated_at", "2016-03-07 15:54:00.089375"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.090941"], ["updated_at", "2016-03-07 15:54:00.090941"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.092502"], ["updated_at", "2016-03-07 15:54:00.092502"]] [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", "2016-03-07 15:54:00.097175"], ["updated_at", "2016-03-07 15:54:00.097175"]] [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-03-07 15:54:00.099270"], ["updated_at", "2016-03-07 15:54:00.099270"]] [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", "2016-03-07 15:54:00.102102"], ["updated_at", "2016-03-07 15:54:00.102102"]] [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", "2016-03-07 15:54:00.105003"], ["updated_at", "2016-03-07 15:54:00.105003"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.106644"], ["updated_at", "2016-03-07 15:54:00.106644"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.107771"], ["updated_at", "2016-03-07 15:54:00.107771"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.108994"], ["updated_at", "2016-03-07 15:54:00.108994"]] [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-03-07 15:54:00.115811"], ["updated_at", "2016-03-07 15:54:00.115811"]] [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-03-07 15:54:00.121124"], ["updated_at", "2016-03-07 15:54:00.121124"]] [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", "2016-03-07 15:54:00.123595"], ["updated_at", "2016-03-07 15:54:00.123595"]] [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-03-07 15:54:00.125494"], ["updated_at", "2016-03-07 15:54:00.125494"]] 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.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", "2016-03-07 15:54:00.132706"], ["updated_at", "2016-03-07 15:54:00.132706"]] [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 SAVEPOINT active_record_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", "2016-03-07 15:54:00.139700"], ["updated_at", "2016-03-07 15:54:00.139700"]] [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.2ms)[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-03-07 15:54:00.145348"], ["updated_at", "2016-03-07 15:54:00.145348"]] [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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:54:00.148256"], ["updated_at", "2016-03-07 15:54:00.148256"]] [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-03-07 15:54:00.150851"], ["updated_at", "2016-03-07 15:54:00.150851"]] 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.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 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-03-07 15:54:00.155420"], ["updated_at", "2016-03-07 15:54:00.155420"]] [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-03-07 15:54:00.163105"], ["updated_at", "2016-03-07 15:54:00.163105"]] [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", "2016-03-07 15:54:00.179416"], ["updated_at", "2016-03-07 15:54:00.179416"]] [1m[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-03-07 15:54:00.181514"], ["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.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 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", "2016-03-07 15:54:00.187934"], ["updated_at", "2016-03-07 15:54:00.187934"]] [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", "2016-03-07 15:54:00.191411"], ["updated_at", "2016-03-07 15:54:00.191411"]] [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-03-07 15:54:00.192891"], ["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", "2016-03-07 15:54:00.198354"], ["updated_at", "2016-03-07 15:54:00.198354"]] [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-03-07 15:54:00.202097"], ["updated_at", "2016-03-07 15:54:00.202097"]] [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", "2016-03-07 15:54:00.260815"], ["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-03-07 15:54:00.272888"], ["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", "2016-03-07 15:54:00.277082"], ["updated_at", "2016-03-07 15:54:00.277082"]] [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-03-07 15:54:00.278952"], ["updated_at", "2016-03-07 15:54:00.278952"]] [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-03-07 15:54:00.280648"], ["updated_at", "2016-03-07 15:54:00.280648"]] [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-03-07 15:54:00.282885"], ["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-03-07 15:54:00.284081"], ["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", "2016-03-07 15:54:00.289549"], ["updated_at", "2016-03-07 15:54:00.289549"]] [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", "2016-03-07 15:54:00.292941"], ["updated_at", "2016-03-07 15:54:00.292941"]] [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-03-07 15:54:00.294347"], ["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-03-07 15:54:00.298254"], ["updated_at", "2016-03-07 15:54:00.298254"]] [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", "2016-03-07 15:54:00.301092"], ["updated_at", "2016-03-07 15:54:00.301092"]] [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", "2016-03-07 15:54:00.308498"], ["updated_at", "2016-03-07 15:54:00.308498"]] [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-03-07 15:54:00.311825"], ["updated_at", "2016-03-07 15:54:00.311825"]] [1m[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-03-07 15:54:00.313361"], ["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", "2016-03-07 15:54:00.315863"], ["updated_at", "2016-03-07 15:54:00.315863"]] [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-03-07 15:54:00.317479"], ["updated_at", "2016-03-07 15:54:00.317479"]] [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-03-07 15:54:00.319479"], ["updated_at", "2016-03-07 15:54:00.319479"]] [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.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.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.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 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-03-07 15:54:00.327507"], ["updated_at", "2016-03-07 15:54:00.327507"]] [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-03-07 15:54:00.331897"], ["updated_at", "2016-03-07 15:54:00.331897"]] [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", "2016-03-07 15:54:00.334135"], ["id", 1]] [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 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", "2016-03-07 15:54:00.340691"], ["updated_at", "2016-03-07 15:54:00.340691"]] [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-03-07 15:54:00.343787"], ["updated_at", "2016-03-07 15:54:00.343787"]] [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-03-07 15:54:00.345183"], ["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.5ms)[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", "2016-03-07 15:54:00.351345"], ["updated_at", "2016-03-07 15:54:00.351345"]] [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", "2016-03-07 15:54:00.354522"], ["updated_at", "2016-03-07 15:54:00.354522"]] [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-03-07 15:54:00.355907"], ["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", "2016-03-07 15:54:00.358407"], ["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.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.2ms)[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.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 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-03-07 15:54:00.367317"], ["updated_at", "2016-03-07 15:54:00.367317"]] [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.1ms)[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", "2016-03-07 15:54:00.372401"], ["updated_at", "2016-03-07 15:54:00.372401"]] [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", "2016-03-07 15:54:00.374786"], ["updated_at", "2016-03-07 15:54:00.374786"]] [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", "2016-03-07 15:54:00.376995"], ["updated_at", "2016-03-07 15:54:00.376995"]] [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", "2016-03-07 15:54:00.380492"], ["updated_at", "2016-03-07 15:54:00.380492"]] [1m[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-03-07 15:54:00.382316"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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", "2016-03-07 15:54:00.390749"], ["updated_at", "2016-03-07 15:54:00.390749"]] [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.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", "2016-03-07 15:54:00.394249"], ["updated_at", "2016-03-07 15:54:00.394249"]] [1m[36m (0.1ms)[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", "32"], ["created_at", "2016-03-07 15:54:00.396635"], ["updated_at", "2016-03-07 15:54:00.396635"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.399150"], ["updated_at", "2016-03-07 15:54:00.399150"]] [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-03-07 15:54:00.402622"], ["updated_at", "2016-03-07 15:54:00.402622"]] [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-03-07 15:54:00.404446"], ["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-03-07 15:54:00.411830"], ["updated_at", "2016-03-07 15:54:00.411830"]] [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", "2016-03-07 15:54:00.415019"], ["updated_at", "2016-03-07 15:54:00.415019"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.416987"], ["updated_at", "2016-03-07 15:54:00.416987"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.418306"], ["updated_at", "2016-03-07 15:54:00.418306"]] [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-03-07 15:54:00.421080"], ["updated_at", "2016-03-07 15:54:00.421080"]] [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", "2016-03-07 15:54:00.422451"], ["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.1ms)[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-03-07 15:54:00.429856"], ["updated_at", "2016-03-07 15:54:00.429856"]] [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-03-07 15:54:00.433344"], ["updated_at", "2016-03-07 15:54:00.433344"]] [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", "34"], ["created_at", "2016-03-07 15:54:00.435798"], ["updated_at", "2016-03-07 15:54:00.435798"]] [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", "29"], ["created_at", "2016-03-07 15:54:00.438171"], ["updated_at", "2016-03-07 15:54:00.438171"]] [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-03-07 15:54:00.441795"], ["updated_at", "2016-03-07 15:54:00.441795"]] [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-03-07 15:54:00.443594"], ["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", "2016-03-07 15:54:00.451857"], ["updated_at", "2016-03-07 15:54:00.451857"]] [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.1ms)[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-03-07 15:54:00.456297"], ["updated_at", "2016-03-07 15:54:00.456297"]] [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", "35"], ["created_at", "2016-03-07 15:54:00.459035"], ["updated_at", "2016-03-07 15:54:00.459035"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.460503"], ["updated_at", "2016-03-07 15:54:00.460503"]] [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-03-07 15:54:00.463439"], ["updated_at", "2016-03-07 15:54:00.463439"]] [1m[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-03-07 15:54:00.465258"], ["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", "2016-03-07 15:54:00.473232"], ["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-03-07 15:54:00.477701"], ["updated_at", "2016-03-07 15:54:00.477701"]] [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", "2016-03-07 15:54:00.480153"], ["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", "2016-03-07 15:54:00.482893"], ["updated_at", "2016-03-07 15:54:00.482893"]] [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-03-07 15:54:00.484640"], ["updated_at", "2016-03-07 15:54:00.484640"]] [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-03-07 15:54:00.547575"], ["updated_at", "2016-03-07 15:54:00.547575"]] [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-03-07 15:54:00.559374"], ["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.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.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-03-07 15:54:00.578598"], ["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.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", "2016-03-07 15:54:00.583423"], ["updated_at", "2016-03-07 15:54:00.583423"]] [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.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", 50.0], ["updated_at", "2016-03-07 15:54:00.587633"], ["id", 1]] [1m[36m (0.0ms)[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" = ? 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.2ms)[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-03-07 15:54:00.611462"], ["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.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-03-07 15:54:00.614752"], ["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.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.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-03-07 15:54:00.627564"], ["updated_at", "2016-03-07 15:54:00.627564"]] [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-03-07 15:54:00.631414"], ["updated_at", "2016-03-07 15:54:00.631414"]] [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", "2016-03-07 15:54:00.633576"], ["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.7ms)[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.6ms)[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-03-07 15:54:00.647353"], ["updated_at", "2016-03-07 15:54:00.647353"]] [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.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"."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", "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-03-07 15:54:00.652954"], ["updated_at", "2016-03-07 15:54:00.652954"]] [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[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-03-07 15:54:00.660066"], ["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-03-07 15:54:00.661302"], ["id", 1]] [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[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.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.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-03-07 15:54:00.669379"], ["updated_at", "2016-03-07 15:54:00.669379"]] [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.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 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-03-07 15:54:00.672489"], ["updated_at", "2016-03-07 15:54:00.672489"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.674531"], ["updated_at", "2016-03-07 15:54:00.674531"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.675809"], ["updated_at", "2016-03-07 15:54:00.675809"]] [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-03-07 15:54:00.678294"], ["updated_at", "2016-03-07 15:54:00.678294"]] [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-03-07 15:54:00.679601"], ["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-03-07 15:54:00.681719"], ["updated_at", "2016-03-07 15:54:00.681719"]] [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.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.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.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 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-03-07 15:54:00.689241"], ["updated_at", "2016-03-07 15:54:00.689241"]] [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 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.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-03-07 15:54:00.692228"], ["updated_at", "2016-03-07 15:54:00.692228"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:54:00.694213"], ["updated_at", "2016-03-07 15:54:00.694213"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:54:00.695405"], ["updated_at", "2016-03-07 15:54:00.695405"]] [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-03-07 15:54:00.697915"], ["updated_at", "2016-03-07 15:54:00.697915"]] [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-03-07 15:54:00.699402"], ["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", "2016-03-07 15:54:00.701780"], ["updated_at", "2016-03-07 15:54:00.701780"]] [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-03-07 15:54:00.703410"], ["updated_at", "2016-03-07 15:54:00.703410"]] [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-03-07 15:54:00.704933"], ["updated_at", "2016-03-07 15:54:00.704933"]] [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.8ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[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 101' 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 101' 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 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-03-07 15:54:00.714329"], ["updated_at", "2016-03-07 15:54:00.714329"]] [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.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 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-03-07 15:54:00.718206"], ["updated_at", "2016-03-07 15:54:00.718206"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.720235"], ["updated_at", "2016-03-07 15:54:00.720235"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.721596"], ["updated_at", "2016-03-07 15:54:00.721596"]] [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-03-07 15:54:00.725020"], ["updated_at", "2016-03-07 15:54:00.725020"]] [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-03-07 15:54:00.726756"], ["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.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-03-07 15:54:00.784120"], ["updated_at", "2016-03-07 15:54:00.784120"]] [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-03-07 15:54:00.786467"], ["updated_at", "2016-03-07 15:54:00.786467"]] [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-03-07 15:54:00.788022"], ["updated_at", "2016-03-07 15:54:00.788022"]] [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", "2016-03-07 15:54:00.789517"], ["updated_at", "2016-03-07 15:54:00.789517"]] [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[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.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 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.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 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-03-07 15:54:00.812295"], ["updated_at", "2016-03-07 15:54:00.812295"]] [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 104' 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 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-03-07 15:54:00.816237"], ["updated_at", "2016-03-07 15:54:00.816237"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.818453"], ["updated_at", "2016-03-07 15:54:00.818453"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.819662"], ["updated_at", "2016-03-07 15:54:00.819662"]] [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-03-07 15:54:00.822051"], ["updated_at", "2016-03-07 15:54:00.822051"]] [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-03-07 15:54:00.823347"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.6ms)[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-03-07 15:54:00.831852"], ["updated_at", "2016-03-07 15:54:00.831852"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.1ms)[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.1ms)[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-03-07 15:54:00.841712"], ["updated_at", "2016-03-07 15:54:00.841712"]] [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 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.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 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-03-07 15:54:00.845159"], ["updated_at", "2016-03-07 15:54:00.845159"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.847255"], ["updated_at", "2016-03-07 15:54:00.847255"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.848932"], ["updated_at", "2016-03-07 15:54:00.848932"]] [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-03-07 15:54:00.852676"], ["updated_at", "2016-03-07 15:54:00.852676"]] [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-03-07 15:54:00.854534"], ["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-03-07 15:54:00.857450"], ["updated_at", "2016-03-07 15:54:00.857450"]] [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"."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.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" = ? 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.0ms)[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.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_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 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.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 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-03-07 15:54:00.879649"], ["updated_at", "2016-03-07 15:54:00.879649"]] [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 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", "2016-03-07 15:54:00.882602"], ["updated_at", "2016-03-07 15:54:00.882602"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.884558"], ["updated_at", "2016-03-07 15:54:00.884558"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.885683"], ["updated_at", "2016-03-07 15:54:00.885683"]] [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-03-07 15:54:00.888055"], ["updated_at", "2016-03-07 15:54:00.888055"]] [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-03-07 15:54:00.889351"], ["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-03-07 15:54:00.891583"], ["updated_at", "2016-03-07 15:54:00.891583"]] [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.1ms)[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-03-07 15:54:00.899249"], ["updated_at", "2016-03-07 15:54:00.899249"]] [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.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 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-03-07 15:54:00.902237"], ["updated_at", "2016-03-07 15:54:00.902237"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:00.904132"], ["updated_at", "2016-03-07 15:54:00.904132"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:54:00.905298"], ["updated_at", "2016-03-07 15:54:00.905298"]] [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-03-07 15:54:00.907817"], ["updated_at", "2016-03-07 15:54:00.907817"]] [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-03-07 15:54:00.909152"], ["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-03-07 15:54:00.911466"], ["updated_at", "2016-03-07 15:54:00.911466"]] [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-03-07 15:54:00.913625"], ["updated_at", "2016-03-07 15:54:00.913625"]] [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-03-07 15:54:00.915710"], ["updated_at", "2016-03-07 15:54:00.915710"]] [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", "2016-03-07 15:54:00.917315"], ["updated_at", "2016-03-07 15:54:00.917315"]] [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::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-03-07 15:54:00.943084"], ["updated_at", "2016-03-07 15:54:00.943084"]] [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-03-07 15:54:00.946116"], ["updated_at", "2016-03-07 15:54:00.946116"]] [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.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.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.0ms)[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-03-07 15:54:00.948924"], ["updated_at", "2016-03-07 15:54:00.948924"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-07 15:54:00.951706"], ["updated_at", "2016-03-07 15:54:00.951706"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.0ms)[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-03-07 15:54:00.959428"], ["updated_at", "2016-03-07 15:54:00.959428"]] [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 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-03-07 15:54:00.962550"], ["updated_at", "2016-03-07 15:54:00.962550"]] [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", "43"], ["created_at", "2016-03-07 15:54:00.964658"], ["updated_at", "2016-03-07 15:54:00.964658"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:00.965961"], ["updated_at", "2016-03-07 15:54:00.965961"]] [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-03-07 15:54:00.968524"], ["updated_at", "2016-03-07 15:54:00.968524"]] [1m[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-03-07 15:54:00.970425"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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-03-07 15:54:01.029896"], ["updated_at", "2016-03-07 15:54:01.029896"]] [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.2ms)[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-03-07 15:54:01.033866"], ["updated_at", "2016-03-07 15:54:01.033866"]] [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-03-07 15:54:01.036433"], ["updated_at", "2016-03-07 15:54:01.036433"]] [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.8ms)[0m rollback transaction [1m[36m (0.0ms)[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.1ms)[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-03-07 15:54:01.046277"], ["updated_at", "2016-03-07 15:54:01.046277"]] [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.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 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-03-07 15:54:01.050693"], ["updated_at", "2016-03-07 15:54:01.050693"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.052728"], ["updated_at", "2016-03-07 15:54:01.052728"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.054065"], ["updated_at", "2016-03-07 15:54:01.054065"]] [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-03-07 15:54:01.056721"], ["updated_at", "2016-03-07 15:54:01.056721"]] [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-03-07 15:54:01.058172"], ["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-03-07 15:54:01.060385"], ["updated_at", "2016-03-07 15:54:01.060385"]] [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-03-07 15:54:01.062505"], ["updated_at", "2016-03-07 15:54:01.062505"]] [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-03-07 15:54:01.064522"], ["updated_at", "2016-03-07 15:54:01.064522"]] [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-03-07 15:54:01.066293"], ["updated_at", "2016-03-07 15:54:01.066293"]] [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.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.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-03-07 15:54:01.087467"], ["updated_at", "2016-03-07 15:54:01.087467"]] [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.0ms)[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-03-07 15:54:01.089732"], ["updated_at", "2016-03-07 15:54:01.089732"]] [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" = ? 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 (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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-03-07 15:54:01.100757"], ["updated_at", "2016-03-07 15:54:01.100757"]] [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.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.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 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-03-07 15:54:01.104569"], ["updated_at", "2016-03-07 15:54:01.104569"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.106574"], ["updated_at", "2016-03-07 15:54:01.106574"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.107774"], ["updated_at", "2016-03-07 15:54:01.107774"]] [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-03-07 15:54:01.110233"], ["updated_at", "2016-03-07 15:54:01.110233"]] [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-03-07 15:54:01.111528"], ["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-03-07 15:54:01.115002"], ["updated_at", "2016-03-07 15:54:01.115002"]] [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"."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-03-07 15:54:01.117722"], ["updated_at", "2016-03-07 15:54:01.117722"]] [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"."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.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.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", "2016-03-07 15:54:01.126712"], ["updated_at", "2016-03-07 15:54:01.126712"]] [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 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.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", "2016-03-07 15:54:01.131672"], ["updated_at", "2016-03-07 15:54:01.131672"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.133956"], ["updated_at", "2016-03-07 15:54:01.133956"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:54:01.135265"], ["updated_at", "2016-03-07 15:54:01.135265"]] [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-03-07 15:54:01.137781"], ["updated_at", "2016-03-07 15:54:01.137781"]] [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-03-07 15:54:01.139187"], ["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-03-07 15:54:01.141312"], ["updated_at", "2016-03-07 15:54:01.141312"]] [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-03-07 15:54:01.143794"], ["updated_at", "2016-03-07 15:54:01.143794"]] [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-03-07 15:54:01.145600"], ["updated_at", "2016-03-07 15:54:01.145600"]] [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-03-07 15:54:01.147365"], ["updated_at", "2016-03-07 15:54:01.147365"]] [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.1ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2016-03-07 15:54:01.162158"], ["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" = ? 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.1ms)[0m [1mSAVEPOINT active_record_1[0m [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", "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.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.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.2ms)[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 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", "2016-03-07 15:54:01.186898"], ["updated_at", "2016-03-07 15:54:01.186898"]] [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.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", "2016-03-07 15:54:01.190607"], ["updated_at", "2016-03-07 15:54:01.190607"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.192499"], ["updated_at", "2016-03-07 15:54:01.192499"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.193618"], ["updated_at", "2016-03-07 15:54:01.193618"]] [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-03-07 15:54:01.196095"], ["updated_at", "2016-03-07 15:54:01.196095"]] [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-03-07 15:54:01.197540"], ["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-03-07 15:54:01.199715"], ["updated_at", "2016-03-07 15:54:01.199715"]] [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-03-07 15:54:01.201764"], ["updated_at", "2016-03-07 15:54:01.201764"]] [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-03-07 15:54:01.203491"], ["updated_at", "2016-03-07 15:54:01.203491"]] [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", "2016-03-07 15:54:01.205022"], ["updated_at", "2016-03-07 15:54:01.205022"]] [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.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", "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", "2016-03-07 15:54:01.222250"], ["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.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.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.4ms)[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.7ms)[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 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-03-07 15:54:01.240414"], ["updated_at", "2016-03-07 15:54:01.240414"]] [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 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-03-07 15:54:01.310621"], ["updated_at", "2016-03-07 15:54:01.310621"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:54:01.312670"], ["updated_at", "2016-03-07 15:54:01.312670"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.314028"], ["updated_at", "2016-03-07 15:54:01.314028"]] [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-03-07 15:54:01.316499"], ["updated_at", "2016-03-07 15:54:01.316499"]] [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-03-07 15:54:01.317815"], ["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-03-07 15:54:01.319995"], ["updated_at", "2016-03-07 15:54:01.319995"]] [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-03-07 15:54:01.322172"], ["updated_at", "2016-03-07 15:54:01.322172"]] [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-03-07 15:54:01.323830"], ["updated_at", "2016-03-07 15:54:01.323830"]] [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", "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", "2016-03-07 15:54:01.325482"], ["updated_at", "2016-03-07 15:54:01.325482"]] [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", "2016-03-07 15:54:01.339783"], ["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.5ms)[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", "2016-03-07 15:54:01.356808"], ["updated_at", "2016-03-07 15:54:01.356808"]] [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", "2016-03-07 15:54:01.360580"], ["updated_at", "2016-03-07 15:54:01.360580"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:54:01.362579"], ["updated_at", "2016-03-07 15:54:01.362579"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.363749"], ["updated_at", "2016-03-07 15:54:01.363749"]] [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", "2016-03-07 15:54:01.367579"], ["updated_at", "2016-03-07 15:54:01.367579"]] [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-03-07 15:54:01.369993"], ["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-03-07 15:54:01.373157"], ["updated_at", "2016-03-07 15:54:01.373157"]] [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-03-07 15:54:01.375922"], ["updated_at", "2016-03-07 15:54:01.375922"]] [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-03-07 15:54:01.377941"], ["updated_at", "2016-03-07 15:54:01.377941"]] [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", "2016-03-07 15:54:01.379748"], ["updated_at", "2016-03-07 15:54:01.379748"]] [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.1ms)[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-03-07 15:54:01.395145"], ["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-03-07 15:54:01.400925"], ["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.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.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-03-07 15:54:01.410982"], ["updated_at", "2016-03-07 15:54:01.410982"]] [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", "2016-03-07 15:54:01.414419"], ["updated_at", "2016-03-07 15:54:01.414419"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.416502"], ["updated_at", "2016-03-07 15:54:01.416502"]] [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", "45"], ["created_at", "2016-03-07 15:54:01.418104"], ["updated_at", "2016-03-07 15:54:01.418104"]] [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-03-07 15:54:01.421980"], ["updated_at", "2016-03-07 15:54:01.421980"]] [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-03-07 15:54:01.423801"], ["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 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-03-07 15:54:01.431846"], ["updated_at", "2016-03-07 15:54:01.431846"]] [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", "2016-03-07 15:54:01.435019"], ["updated_at", "2016-03-07 15:54:01.435019"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.436787"], ["updated_at", "2016-03-07 15:54:01.436787"]] [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", "2016-03-07 15:54:01.438232"], ["updated_at", "2016-03-07 15:54:01.438232"]] [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-03-07 15:54:01.441761"], ["updated_at", "2016-03-07 15:54:01.441761"]] [1m[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-03-07 15:54:01.443900"], ["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 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.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", "2016-03-07 15:54:01.453097"], ["updated_at", "2016-03-07 15:54:01.453097"]] [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 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.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 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-03-07 15:54:01.459037"], ["updated_at", "2016-03-07 15:54:01.459037"]] [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", "52"], ["created_at", "2016-03-07 15:54:01.461894"], ["updated_at", "2016-03-07 15:54:01.461894"]] [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", "2016-03-07 15:54:01.463645"], ["updated_at", "2016-03-07 15:54:01.463645"]] [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-03-07 15:54:01.466954"], ["updated_at", "2016-03-07 15:54:01.466954"]] [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-03-07 15:54:01.468646"], ["id", 1]] [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 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.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 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-03-07 15:54:01.479141"], ["updated_at", "2016-03-07 15:54:01.479141"]] [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 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-03-07 15:54:01.483528"], ["updated_at", "2016-03-07 15:54:01.483528"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:54:01.485658"], ["updated_at", "2016-03-07 15:54:01.485658"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.487041"], ["updated_at", "2016-03-07 15:54:01.487041"]] [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-03-07 15:54:01.489787"], ["updated_at", "2016-03-07 15:54:01.489787"]] [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-03-07 15:54:01.491268"], ["id", 1]] [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 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", "2016-03-07 15:54:01.499656"], ["updated_at", "2016-03-07 15:54:01.499656"]] [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", "2016-03-07 15:54:01.502698"], ["updated_at", "2016-03-07 15:54:01.502698"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.504376"], ["updated_at", "2016-03-07 15:54:01.504376"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.505480"], ["updated_at", "2016-03-07 15:54:01.505480"]] [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-03-07 15:54:01.507816"], ["updated_at", "2016-03-07 15:54:01.507816"]] [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-03-07 15:54:01.509303"], ["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 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-03-07 15:54:01.516814"], ["updated_at", "2016-03-07 15:54:01.516814"]] [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", "2016-03-07 15:54:01.520066"], ["updated_at", "2016-03-07 15:54:01.520066"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.521876"], ["updated_at", "2016-03-07 15:54:01.521876"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.523267"], ["updated_at", "2016-03-07 15:54:01.523267"]] [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-03-07 15:54:01.525835"], ["updated_at", "2016-03-07 15:54:01.525835"]] [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 "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-03-07 15:54:01.527582"], ["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", "2016-03-07 15:54:01.596132"], ["updated_at", "2016-03-07 15:54:01.596132"]] [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", "2016-03-07 15:54:01.599511"], ["updated_at", "2016-03-07 15:54:01.599511"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.601474"], ["updated_at", "2016-03-07 15:54:01.601474"]] [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", "51"], ["created_at", "2016-03-07 15:54:01.602725"], ["updated_at", "2016-03-07 15:54:01.602725"]] [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-03-07 15:54:01.605704"], ["updated_at", "2016-03-07 15:54:01.605704"]] [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-03-07 15:54:01.607137"], ["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", "2016-03-07 15:54:01.614347"], ["updated_at", "2016-03-07 15:54:01.614347"]] [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.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 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-03-07 15:54:01.617649"], ["updated_at", "2016-03-07 15:54:01.617649"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:54:01.619687"], ["updated_at", "2016-03-07 15:54:01.619687"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.620935"], ["updated_at", "2016-03-07 15:54:01.620935"]] [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-03-07 15:54:01.623540"], ["updated_at", "2016-03-07 15:54:01.623540"]] [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-03-07 15:54:01.624927"], ["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.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.1ms)[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-03-07 15:54:01.635152"], ["updated_at", "2016-03-07 15:54:01.635152"]] [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.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-03-07 15:54:01.638558"], ["updated_at", "2016-03-07 15:54:01.638558"]] [1m[36m (0.0ms)[0m [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-03-07 15:54:01.640599"], ["updated_at", "2016-03-07 15:54:01.640599"]] [1m[35m (0.0ms)[0m 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-03-07 15:54:01.641807"], ["updated_at", "2016-03-07 15:54:01.641807"]] [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-03-07 15:54:01.644396"], ["updated_at", "2016-03-07 15:54:01.644396"]] [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-03-07 15:54:01.645774"], ["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", "2016-03-07 15:54:01.648782"], ["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 3ms (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.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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.2ms)[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", "2016-03-07 15:55:18.143148"], ["updated_at", "2016-03-07 15:55:18.143148"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "2016-03-07 15:55:18.233463"], ["updated_at", "2016-03-07 15:55:18.233463"]] [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.3ms)[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.2ms)[0m SAVEPOINT active_record_1 [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" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.3ms)[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-03-07 16:55:18.337672"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:55:18.342608"], ["updated_at", "2016-03-07 15:55:18.342608"]] [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.7ms) Completed 200 OK in 115ms (Views: 13.5ms | ActiveRecord: 2.2ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.4ms)[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.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.9ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:18.544395"], ["updated_at", "2016-03-07 15:55:18.544395"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:18.637598"], ["updated_at", "2016-03-07 15:55:18.637598"]] [1m[36m (0.1ms)[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", "2016-03-07 15:55:18.650940"], ["updated_at", "2016-03-07 15:55:18.650940"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[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-03-07 15:55:18.706104"], ["updated_at", "2016-03-07 15:55:18.706104"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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", "2016-03-07 15:55:18.809987"], ["updated_at", "2016-03-07 15:55:18.809987"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:18.889097"], ["updated_at", "2016-03-07 15:55:18.889097"]] [1m[36m (0.2ms)[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", "2"], ["created_at", "2016-03-07 15:55:18.900641"], ["updated_at", "2016-03-07 15:55:18.900641"]] [1m[35m (0.2ms)[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_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-03-07 15:55:18.909550"], ["updated_at", "2016-03-07 15:55:18.909550"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' 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 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-03-07 15:55:18.984093"], ["updated_at", "2016-03-07 15:55:18.984093"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' 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 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-03-07 15:55:19.013176"], ["updated_at", "2016-03-07 15:55:19.013176"]] [1m[36m (0.2ms)[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_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-03-07 15:55:19.072521"], ["updated_at", "2016-03-07 15:55:19.072521"]] [1m[35m (0.2ms)[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_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-03-07 15:55:19.082450"], ["updated_at", "2016-03-07 15:55:19.082450"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:19.259646"], ["updated_at", "2016-03-07 15:55:19.259646"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:19.280396"], ["updated_at", "2016-03-07 15:55:19.280396"]] [1m[36m (0.2ms)[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_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-03-07 15:55:19.343863"], ["updated_at", "2016-03-07 15:55:19.343863"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "4"], ["created_at", "2016-03-07 15:55:19.356212"], ["updated_at", "2016-03-07 15:55:19.356212"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' 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 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-03-07 15:55:19.438205"], ["updated_at", "2016-03-07 15:55:19.438205"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:19.466616"], ["updated_at", "2016-03-07 15:55:19.466616"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "5"], ["created_at", "2016-03-07 15:55:19.483483"], ["updated_at", "2016-03-07 15:55:19.483483"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "5"], ["created_at", "2016-03-07 15:55:19.537140"], ["updated_at", "2016-03-07 15:55:19.537140"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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.2ms)[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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' 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 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-03-07 15:55:19.619783"], ["updated_at", "2016-03-07 15:55:19.619783"]] [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.2ms)[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.3ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' 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 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-03-07 15:55:19.640383"], ["updated_at", "2016-03-07 15:55:19.640383"]] [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", "6"], ["created_at", "2016-03-07 15:55:19.699187"], ["updated_at", "2016-03-07 15:55:19.699187"]] [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_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-03-07 15:55:19.709015"], ["updated_at", "2016-03-07 15:55:19.709015"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[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-03-07 15:55:19.719903"], ["updated_at", "2016-03-07 15:55:19.719903"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "2016-03-07 15:55:19.740323"], ["updated_at", "2016-03-07 15:55:19.740323"]] 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.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.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 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-03-07 15:55:19.809014"], ["updated_at", "2016-03-07 15:55:19.809014"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[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 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' 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 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-03-07 15:55:19.845284"], ["updated_at", "2016-03-07 15:55:19.845284"]] [1m[36m (0.2ms)[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_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-03-07 15:55:19.906986"], ["updated_at", "2016-03-07 15:55:19.906986"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "7"], ["created_at", "2016-03-07 15:55:19.980658"], ["updated_at", "2016-03-07 15:55:19.980658"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::CanvasApiAuth Load (0.3ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-07 15:55:20.001432"], ["updated_at", "2016-03-07 15:55:20.001432"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT 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" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 [1m[36mCoalescingPanda::CanvasApiAuth Load (0.3ms)[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[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::CanvasApiAuth Exists (0.3ms)[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.2ms)[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[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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", "2016-03-08 15:55:20.178606"], ["created_at", "2016-03-07 15:55:20.183223"], ["updated_at", "2016-03-07 15:55:20.183223"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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", "2016-03-07 15:55:20.265394"], ["updated_at", "2016-03-07 15:55:20.265394"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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-03-07 15:55:20.336700"], ["updated_at", "2016-03-07 15:55:20.336700"]] [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_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:20.344294"], ["updated_at", "2016-03-07 15:55:20.344294"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[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.1ms)[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.1ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 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-03-07 15:55:20.438199"], ["updated_at", "2016-03-07 15:55:20.438199"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 [1m[36mSQL (1.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-03-07 15:55:20.465569"], ["updated_at", "2016-03-07 15:55:20.465569"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "8"], ["created_at", "2016-03-07 15:55:20.525882"], ["updated_at", "2016-03-07 15:55:20.525882"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 18' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' 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 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-03-07 15:55:20.554299"], ["updated_at", "2016-03-07 15:55:20.554299"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 19' 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 19' 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 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-03-07 15:55:20.622663"], ["updated_at", "2016-03-07 15:55:20.622663"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "9"], ["created_at", "2016-03-07 15:55:20.690746"], ["updated_at", "2016-03-07 15:55:20.690746"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 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", "2016-03-07 15:55:20.718000"], ["updated_at", "2016-03-07 15:55:20.718000"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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", "2016-03-07 15:55:20.789370"], ["updated_at", "2016-03-07 15:55:20.789370"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "2016-03-07 15:55:20.807662"], ["updated_at", "2016-03-07 15:55:20.807662"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:20.817784"], ["updated_at", "2016-03-07 15:55:20.817784"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' 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 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-03-07 15:55:20.889156"], ["updated_at", "2016-03-07 15:55:20.889156"]] [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "11"], ["created_at", "2016-03-07 15:55:20.901780"], ["updated_at", "2016-03-07 15:55:20.901780"]] [1m[35m (0.1ms)[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_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-03-07 15:55:20.911391"], ["updated_at", "2016-03-07 15:55:20.911391"]] 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.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' 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 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-03-07 15:55:20.983771"], ["updated_at", "2016-03-07 15:55:20.983771"]] [1m[35m (0.2ms)[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_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-03-07 15:55:21.054214"], ["updated_at", "2016-03-07 15:55:21.054214"]] [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.2ms)[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", "2016-03-07 15:55:21.070317"], ["updated_at", "2016-03-07 15:55:21.070317"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "1"], ["created_at", "2016-03-07 15:55:21.086324"], ["updated_at", "2016-03-07 15:55:21.086324"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (46.4ms)[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 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.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 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-03-07 15:55:21.150227"], ["updated_at", "2016-03-07 15:55:21.150227"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:21.170363"], ["updated_at", "2016-03-07 15:55:21.170363"]] 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.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 26' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' 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 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-03-07 15:55:21.201154"], ["updated_at", "2016-03-07 15:55:21.201154"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' 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 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-03-07 15:55:21.274683"], ["updated_at", "2016-03-07 15:55:21.274683"]] [1m[36m (0.2ms)[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_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-03-07 15:55:21.288650"], ["updated_at", "2016-03-07 15:55:21.288650"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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 28' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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", "2016-03-07 15:55:21.445577"], ["updated_at", "2016-03-07 15:55:21.445577"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[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-03-07 15:55:21.458825"], ["updated_at", "2016-03-07 15:55:21.458825"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:21.540369"], ["updated_at", "2016-03-07 15:55:21.540369"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' 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 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-03-07 15:55:21.565771"], ["updated_at", "2016-03-07 15:55:21.565771"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "14"], ["created_at", "2016-03-07 15:55:21.630052"], ["updated_at", "2016-03-07 15:55:21.630052"]] [1m[36m (0.1ms)[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_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-03-07 15:55:21.640207"], ["updated_at", "2016-03-07 15:55:21.640207"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[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-03-07 15:55:21.654465"], ["updated_at", "2016-03-07 15:55:21.654465"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:21.795652"], ["updated_at", "2016-03-07 15:55:21.795652"]] [1m[35m (0.1ms)[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_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-03-07 15:55:21.807987"], ["updated_at", "2016-03-07 15:55:21.807987"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 32' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' 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 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-03-07 15:55:21.872168"], ["updated_at", "2016-03-07 15:55:21.872168"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:21.894610"], ["updated_at", "2016-03-07 15:55:21.894610"]] [1m[36m (0.2ms)[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_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-03-07 15:55:21.912716"], ["updated_at", "2016-03-07 15:55:21.912716"]] [1m[35m (0.2ms)[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_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-03-07 15:55:21.967619"], ["updated_at", "2016-03-07 15:55:21.967619"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:21.979645"], ["updated_at", "2016-03-07 15:55:21.979645"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' 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 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-03-07 15:55:22.013816"], ["updated_at", "2016-03-07 15:55:22.013816"]] [1m[36m (0.2ms)[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_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-03-07 15:55:22.076186"], ["updated_at", "2016-03-07 15:55:22.076186"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [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 35' 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 35' 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 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-03-07 15:55:22.151498"], ["updated_at", "2016-03-07 15:55:22.151498"]] [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.2ms)[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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' 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 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-03-07 15:55:22.170066"], ["updated_at", "2016-03-07 15:55:22.170066"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "16"], ["created_at", "2016-03-07 15:55:22.223558"], ["updated_at", "2016-03-07 15:55:22.223558"]] [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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2016-03-07 15:55:22.233101"], ["updated_at", "2016-03-07 15:55:22.233101"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:22.242249"], ["updated_at", "2016-03-07 15:55:22.242249"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' 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 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-03-07 15:55:22.315016"], ["updated_at", "2016-03-07 15:55:22.315016"]] [1m[35m (0.2ms)[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_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-03-07 15:55:22.330042"], ["updated_at", "2016-03-07 15:55:22.330042"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 38' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' 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 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-03-07 15:55:22.352275"], ["updated_at", "2016-03-07 15:55:22.352275"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 39' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' 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 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-03-07 15:55:22.421565"], ["updated_at", "2016-03-07 15:55:22.421565"]] [1m[36m (0.4ms)[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", 3], ["canvas_term_id", "17"], ["created_at", "2016-03-07 15:55:22.493413"], ["updated_at", "2016-03-07 15:55:22.493413"]] [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_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-03-07 15:55:22.501691"], ["updated_at", "2016-03-07 15:55:22.501691"]] [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_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-03-07 15:55:22.509570"], ["updated_at", "2016-03-07 15:55:22.509570"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.4ms)[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-03-07 15:55:22.518808"], ["updated_at", "2016-03-07 15:55:22.518808"]] [1m[36m (0.2ms)[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", "2016-03-07 15:55:22.579591"], ["updated_at", "2016-03-07 15:55:22.579591"]] 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.2ms)[0m begin transaction [1m[36m (0.2ms)[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 40' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' 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 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-03-07 15:55:22.604295"], ["updated_at", "2016-03-07 15:55:22.604295"]] [1m[36m (0.2ms)[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_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-03-07 15:55:22.619276"], ["updated_at", "2016-03-07 15:55:22.619276"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' 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 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-03-07 15:55:22.685934"], ["updated_at", "2016-03-07 15:55:22.685934"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' 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 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-03-07 15:55:22.713874"], ["updated_at", "2016-03-07 15:55:22.713874"]] [1m[35m (0.2ms)[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_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-03-07 15:55:22.770486"], ["updated_at", "2016-03-07 15:55:22.770486"]] [1m[36m (0.2ms)[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_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-03-07 15:55:22.780802"], ["updated_at", "2016-03-07 15:55:22.780802"]] [1m[35m (0.2ms)[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_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-03-07 15:55:22.844886"], ["updated_at", "2016-03-07 15:55:22.844886"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:55:22.858138"], ["updated_at", "2016-03-07 15:55:22.858138"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2016-03-07 15:55:22.872278"], ["updated_at", "2016-03-07 15:55:22.872278"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' 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 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-03-07 15:55:22.944923"], ["updated_at", "2016-03-07 15:55:22.944923"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.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", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-03-07 15:55:22.962145"], ["updated_at", "2016-03-07 15:55:22.962145"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' 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 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-03-07 15:55:22.986805"], ["updated_at", "2016-03-07 15:55:22.986805"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 45' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' 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 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-03-07 15:55:23.054744"], ["updated_at", "2016-03-07 15:55:23.054744"]] [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "19"], ["created_at", "2016-03-07 15:55:23.067556"], ["updated_at", "2016-03-07 15:55:23.067556"]] [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_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-03-07 15:55:23.078031"], ["updated_at", "2016-03-07 15:55:23.078031"]] [1m[36m (0.2ms)[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", "6"], ["created_at", "2016-03-07 15:55:23.130901"], ["updated_at", "2016-03-07 15:55:23.130901"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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[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.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.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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 47' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' 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 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-03-07 15:55:23.308975"], ["updated_at", "2016-03-07 15:55:23.308975"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 48' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 [1m[36mSQL (1.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", "2016-03-07 15:55:23.333646"], ["updated_at", "2016-03-07 15:55:23.333646"]] [1m[35m (0.2ms)[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_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-03-07 15:55:23.394121"], ["updated_at", "2016-03-07 15:55:23.394121"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:23.406000"], ["updated_at", "2016-03-07 15:55:23.406000"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' 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 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-03-07 15:55:23.487856"], ["updated_at", "2016-03-07 15:55:23.487856"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' 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 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-03-07 15:55:23.565933"], ["updated_at", "2016-03-07 15:55:23.565933"]] [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", "21"], ["created_at", "2016-03-07 15:55:23.577944"], ["updated_at", "2016-03-07 15:55:23.577944"]] [1m[36m (0.3ms)[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_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-03-07 15:55:23.586840"], ["updated_at", "2016-03-07 15:55:23.586840"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 51' 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 51' 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 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-03-07 15:55:23.659887"], ["updated_at", "2016-03-07 15:55:23.659887"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' 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 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-03-07 15:55:23.682566"], ["updated_at", "2016-03-07 15:55:23.682566"]] [1m[35m (0.2ms)[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_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-03-07 15:55:23.696032"], ["updated_at", "2016-03-07 15:55:23.696032"]] [1m[36m (0.2ms)[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", "2016-03-07 15:55:23.754731"], ["updated_at", "2016-03-07 15:55:23.754731"]] [1m[35m (0.2ms)[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_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-03-07 15:55:23.765170"], ["updated_at", "2016-03-07 15:55:23.765170"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:23.774766"], ["updated_at", "2016-03-07 15:55:23.774766"]] 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.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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", "2016-03-07 15:55:23.847563"], ["updated_at", "2016-03-07 15:55:23.847563"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 54' 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 54' 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 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-03-07 15:55:23.928964"], ["updated_at", "2016-03-07 15:55:23.928964"]] [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", "23"], ["created_at", "2016-03-07 15:55:23.940222"], ["updated_at", "2016-03-07 15:55:23.940222"]] [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", "19"], ["created_at", "2016-03-07 15:55:23.948363"], ["updated_at", "2016-03-07 15:55:23.948363"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' 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 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-03-07 15:55:24.043604"], ["updated_at", "2016-03-07 15:55:24.043604"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:55:24.103893"], ["updated_at", "2016-03-07 15:55:24.103893"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' 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 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-03-07 15:55:24.126886"], ["updated_at", "2016-03-07 15:55:24.126886"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' 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 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-03-07 15:55:24.154322"], ["updated_at", "2016-03-07 15:55:24.154322"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "24"], ["created_at", "2016-03-07 15:55:24.267730"], ["updated_at", "2016-03-07 15:55:24.267730"]] [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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-03-07 15:55:24.277746"], ["updated_at", "2016-03-07 15:55:24.277746"]] [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", "3"], ["created_at", "2016-03-07 15:55:24.286024"], ["updated_at", "2016-03-07 15:55:24.286024"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' 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 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-03-07 15:55:24.370208"], ["updated_at", "2016-03-07 15:55:24.370208"]] [1m[35m (0.2ms)[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_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-03-07 15:55:24.386194"], ["updated_at", "2016-03-07 15:55:24.386194"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' 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 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-03-07 15:55:24.410074"], ["updated_at", "2016-03-07 15:55:24.410074"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' 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 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-03-07 15:55:24.482195"], ["updated_at", "2016-03-07 15:55:24.482195"]] [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "25"], ["created_at", "2016-03-07 15:55:24.495618"], ["updated_at", "2016-03-07 15:55:24.495618"]] [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_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-03-07 15:55:24.551075"], ["updated_at", "2016-03-07 15:55:24.551075"]] [1m[36m (0.2ms)[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_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-03-07 15:55:24.561209"], ["updated_at", "2016-03-07 15:55:24.561209"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:24.650282"], ["updated_at", "2016-03-07 15:55:24.650282"]] [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_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-03-07 15:55:24.662676"], ["updated_at", "2016-03-07 15:55:24.662676"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' 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 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-03-07 15:55:24.732434"], ["updated_at", "2016-03-07 15:55:24.732434"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' 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 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-03-07 15:55:24.755603"], ["updated_at", "2016-03-07 15:55:24.755603"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "26"], ["created_at", "2016-03-07 15:55:24.770643"], ["updated_at", "2016-03-07 15:55:24.770643"]] [1m[36m (0.2ms)[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_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-03-07 15:55:24.827226"], ["updated_at", "2016-03-07 15:55:24.827226"]] [1m[35m (0.2ms)[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", "5"], ["created_at", "2016-03-07 15:55:24.839352"], ["updated_at", "2016-03-07 15:55:24.839352"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 64' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' 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 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-03-07 15:55:24.921785"], ["updated_at", "2016-03-07 15:55:24.921785"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-07 15:55:24.940998"], ["updated_at", "2016-03-07 15:55:24.940998"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 65' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' 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 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-03-07 15:55:25.019727"], ["updated_at", "2016-03-07 15:55:25.019727"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:25.040479"], ["updated_at", "2016-03-07 15:55:25.040479"]] [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "27"], ["created_at", "2016-03-07 15:55:25.098937"], ["updated_at", "2016-03-07 15:55:25.098937"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:55:25.108906"], ["updated_at", "2016-03-07 15:55:25.108906"]] [1m[36m (0.2ms)[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", "6"], ["created_at", "2016-03-07 15:55:25.119001"], ["updated_at", "2016-03-07 15:55:25.119001"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.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-03-07 15:55:25.131005"], ["updated_at", "2016-03-07 15:55:25.131005"]] [1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:55:25.191260"], ["updated_at", "2016-03-07 15:55:25.191260"]] 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.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[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 67' 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 67' 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 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-03-07 15:55:25.218253"], ["updated_at", "2016-03-07 15:55:25.218253"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2016-03-07 15:55:25.234179"], ["updated_at", "2016-03-07 15:55:25.234179"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' 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 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-03-07 15:55:25.306035"], ["updated_at", "2016-03-07 15:55:25.306035"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[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 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.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 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-03-07 15:55:25.381622"], ["updated_at", "2016-03-07 15:55:25.381622"]] [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", 3], ["canvas_term_id", "28"], ["created_at", "2016-03-07 15:55:25.392468"], ["updated_at", "2016-03-07 15:55:25.392468"]] [1m[36m (0.2ms)[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_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-03-07 15:55:25.402808"], ["updated_at", "2016-03-07 15:55:25.402808"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "7"], ["created_at", "2016-03-07 15:55:25.462343"], ["updated_at", "2016-03-07 15:55:25.462343"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:55:25.476937"], ["updated_at", "2016-03-07 15:55:25.476937"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[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-03-07 15:55:25.488688"], ["updated_at", "2016-03-07 15:55:25.488688"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 70' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' 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 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-03-07 15:55:25.562149"], ["updated_at", "2016-03-07 15:55:25.562149"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.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", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2016-03-07 15:55:25.582066"], ["updated_at", "2016-03-07 15:55:25.582066"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' 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 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-03-07 15:55:25.603948"], ["updated_at", "2016-03-07 15:55:25.603948"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' 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 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-03-07 15:55:25.680539"], ["updated_at", "2016-03-07 15:55:25.680539"]] [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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-07 15:55:25.747915"], ["updated_at", "2016-03-07 15:55:25.747915"]] [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_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-03-07 15:55:25.756405"], ["updated_at", "2016-03-07 15:55:25.756405"]] [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_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-03-07 15:55:25.765467"], ["updated_at", "2016-03-07 15:55:25.765467"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' 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 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-03-07 15:55:25.843430"], ["updated_at", "2016-03-07 15:55:25.843430"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[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 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.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 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-03-07 15:55:25.921868"], ["updated_at", "2016-03-07 15:55:25.921868"]] [1m[35m (0.2ms)[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", "2016-03-07 15:55:25.936287"], ["updated_at", "2016-03-07 15:55:25.936287"]] [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_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-03-07 15:55:25.945757"], ["updated_at", "2016-03-07 15:55:25.945757"]] 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.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.3ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' 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 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-03-07 15:55:26.029418"], ["updated_at", "2016-03-07 15:55:26.029418"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.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 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-03-07 15:55:26.120503"], ["updated_at", "2016-03-07 15:55:26.120503"]] [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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.4ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' 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 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-03-07 15:55:26.192630"], ["updated_at", "2016-03-07 15:55:26.192630"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:55:26.210611"], ["updated_at", "2016-03-07 15:55:26.210611"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:55:26.223579"], ["updated_at", "2016-03-07 15:55:26.223579"]] 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.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' 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 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-03-07 15:55:26.294559"], ["updated_at", "2016-03-07 15:55:26.294559"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (45.2ms)[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.2ms)[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", "2016-03-07 15:55:26.376842"], ["updated_at", "2016-03-07 15:55:26.376842"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.4ms)[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.8ms)[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-03-07 15:55:26.477377"], ["updated_at", "2016-03-07 15:55:26.477377"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:26.490251"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' 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 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-03-07 15:55:26.573013"], ["updated_at", "2016-03-07 15:55:26.573013"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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", "2016-03-07 15:55:26.595587"], ["updated_at", "2016-03-07 15:55:26.595587"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:26.606311"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' 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 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-03-07 15:55:26.685120"], ["updated_at", "2016-03-07 15:55:26.685120"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.3ms)[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-03-07 15:55:26.773790"], ["updated_at", "2016-03-07 15:55:26.773790"]] [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", "2016-03-07 15:55:26.782814"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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-03-07 15:55:26.881963"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.2ms)[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-03-07 15:55:26.903744"], ["updated_at", "2016-03-07 15:55:26.903744"]] [1m[35m (0.2ms)[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[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:26.964152"], ["updated_at", "2016-03-07 15:55:26.964152"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:26.982947"], ["updated_at", "2016-03-07 15:55:26.982947"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:26.996901"], ["id", 1]] [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 UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2016-03-07 15:55:27.054043"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.3ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [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 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.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 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-03-07 15:55:27.139144"], ["updated_at", "2016-03-07 15:55:27.139144"]] [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::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.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", "2016-03-07 15:55:27.158636"], ["updated_at", "2016-03-07 15:55:27.158636"]] [1m[36m (0.2ms)[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 "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.213515"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.3ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:27.233315"], ["updated_at", "2016-03-07 15:55:27.233315"]] [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"."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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:27.301168"], ["updated_at", "2016-03-07 15:55:27.301168"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.3ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.3ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.2ms)[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 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' 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 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-03-07 15:55:27.337638"], ["updated_at", "2016-03-07 15:55:27.337638"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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", "2016-03-07 15:55:27.407622"], ["updated_at", "2016-03-07 15:55:27.407622"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.483756"], ["id", 1]] [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", "1"]] [1m[36m (0.1ms)[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", "2016-03-07 15:55:27.498830"], ["updated_at", "2016-03-07 15:55:27.498830"]] [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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:27.510603"], ["updated_at", "2016-03-07 15:55:27.510603"]] [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", "3"]] [1m[36m (0.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:27.565991"], ["updated_at", "2016-03-07 15:55:27.565991"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 84' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' 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 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-03-07 15:55:27.601521"], ["updated_at", "2016-03-07 15:55:27.601521"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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", "2016-03-07 15:55:27.676944"], ["updated_at", "2016-03-07 15:55:27.676944"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.687972"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.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 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-03-07 15:55:27.763527"], ["updated_at", "2016-03-07 15:55:27.763527"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:55:27.839621"], ["updated_at", "2016-03-07 15:55:27.839621"]] [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", "2016-03-07 15:55:27.848659"], ["id", 1]] [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::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[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' 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 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-03-07 15:55:27.926305"], ["updated_at", "2016-03-07 15:55:27.926305"]] [1m[36m (0.2ms)[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.2ms)[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-03-07 15:55:27.948712"], ["updated_at", "2016-03-07 15:55:27.948712"]] [1m[36m (0.2ms)[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 "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.960197"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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[36m (0.2ms)[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-03-07 15:55:28.027318"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' 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 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-03-07 15:55:28.128827"], ["updated_at", "2016-03-07 15:55:28.128827"]] [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.2ms)[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.1ms)[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-03-07 15:55:28.203813"], ["updated_at", "2016-03-07 15:55:28.203813"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:55:28.217346"], ["updated_at", "2016-03-07 15:55:28.217346"]] [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_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-03-07 15:55:28.226501"], ["updated_at", "2016-03-07 15:55:28.226501"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.4ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:28.287921"], ["updated_at", "2016-03-07 15:55:28.287921"]] [1m[36m (0.2ms)[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 "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-03-07 15:55:28.301039"], ["id", 1]] [1m[35m (0.2ms)[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 (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' 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 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-03-07 15:55:28.396772"], ["updated_at", "2016-03-07 15:55:28.396772"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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", "2016-03-07 15:55:28.469687"], ["updated_at", "2016-03-07 15:55:28.469687"]] [1m[36m (0.2ms)[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_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-03-07 15:55:28.484150"], ["updated_at", "2016-03-07 15:55:28.484150"]] [1m[35m (0.2ms)[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", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:55:28.546676"], ["updated_at", "2016-03-07 15:55:28.546676"]] [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.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", "2016-03-07 15:55:28.563128"], ["updated_at", "2016-03-07 15:55:28.563128"]] [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 [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-03-07 15:55:28.572441"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 91' 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 91' 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 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-03-07 15:55:28.659477"], ["updated_at", "2016-03-07 15:55:28.659477"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' 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 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-03-07 15:55:28.734386"], ["updated_at", "2016-03-07 15:55:28.734386"]] [1m[35m (0.2ms)[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", "33"], ["created_at", "2016-03-07 15:55:28.748949"], ["updated_at", "2016-03-07 15:55:28.748949"]] [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_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-03-07 15:55:28.759318"], ["updated_at", "2016-03-07 15:55:28.759318"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:28.827747"], ["updated_at", "2016-03-07 15:55:28.827747"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2016-03-07 15:55:28.897899"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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", "2016-03-07 15:55:28.937282"], ["updated_at", "2016-03-07 15:55:28.937282"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.3ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' 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 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-03-07 15:55:29.015253"], ["updated_at", "2016-03-07 15:55:29.015253"]] [1m[36m (0.2ms)[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", "34"], ["created_at", "2016-03-07 15:55:29.031144"], ["updated_at", "2016-03-07 15:55:29.031144"]] [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_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-03-07 15:55:29.042024"], ["updated_at", "2016-03-07 15:55:29.042024"]] [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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:29.111958"], ["updated_at", "2016-03-07 15:55:29.111958"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:55:29.127078"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' 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 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-03-07 15:55:29.270823"], ["updated_at", "2016-03-07 15:55:29.270823"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 96' 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 96' 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 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-03-07 15:55:29.294690"], ["updated_at", "2016-03-07 15:55:29.294690"]] [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", "35"], ["created_at", "2016-03-07 15:55:29.305769"], ["updated_at", "2016-03-07 15:55:29.305769"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:29.362606"], ["updated_at", "2016-03-07 15:55:29.362606"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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", "2016-03-07 15:55:29.382636"], ["updated_at", "2016-03-07 15:55:29.382636"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:29.394414"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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-03-07 15:55:29.552023"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.3ms)[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.3ms)[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", "2016-03-07 15:55:29.577975"], ["updated_at", "2016-03-07 15:55:29.577975"]] [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"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:29.649205"], ["id", 1]] [1m[35m (0.1ms)[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.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-03-07 15:55:29.664656"], ["updated_at", "2016-03-07 15:55:29.664656"]] [1m[35m (0.1ms)[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[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:29.676906"], ["updated_at", "2016-03-07 15:55:29.676906"]] [1m[35m (0.2ms)[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"."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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:29.737638"], ["updated_at", "2016-03-07 15:55:29.737638"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.2ms)[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-03-07 15:55:29.764370"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.4ms)[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", "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.3ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.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.2ms)[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.3ms)[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.2ms)[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.2ms)[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", "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.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", "3"]] [1m[36m (0.2ms)[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.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.5ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-03-07 15:55:30.068815"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (1.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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[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-03-07 15:55:30.093392"], ["updated_at", "2016-03-07 15:55:30.093392"]] [1m[36m (0.3ms)[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"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:55:30.160333"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.4ms)[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.3ms)[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.7ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[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.1ms)[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", "2"]] [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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.5ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2016-03-07 15:55:30.426310"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.4ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:55:30.446009"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (1.3ms)[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.2ms)[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.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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[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-03-07 15:55:30.551305"], ["updated_at", "2016-03-07 15:55:30.551305"]] [1m[36m (0.2ms)[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", "5"]] [1m[36mCoalescingPanda::GroupCategory Load (0.2ms)[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.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:30.680532"], ["updated_at", "2016-03-07 15:55:30.680532"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.3ms)[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 SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:30.692828"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.3ms)[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 (1.3ms)[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.5ms)[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.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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[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-03-07 15:55:30.795299"], ["updated_at", "2016-03-07 15:55:30.795299"]] [1m[36m (0.2ms)[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.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"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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", "3"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:30.823402"], ["updated_at", "2016-03-07 15:55:30.823402"]] [1m[36m (0.1ms)[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", "13"]] [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"."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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.4ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:55:30.966172"], ["id", 1]] [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 [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Completed"], ["updated_at", "2016-03-07 15:55:30.975759"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Section Load (0.3ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"[0m [1m[35m (0.2ms)[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 97' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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", "2016-03-07 15:55:31.132682"], ["updated_at", "2016-03-07 15:55:31.132682"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 98' 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 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-03-07 15:55:31.157572"], ["updated_at", "2016-03-07 15:55:31.157572"]] [1m[36m (0.2ms)[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_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-03-07 15:55:31.171317"], ["updated_at", "2016-03-07 15:55:31.171317"]] [1m[35m (0.2ms)[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_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-03-07 15:55:31.229136"], ["updated_at", "2016-03-07 15:55:31.229136"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.4ms)[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.3ms)[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", "2016-03-07 15:55:31.252781"], ["updated_at", "2016-03-07 15:55:31.252781"]] [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 [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-03-07 15:55:31.264122"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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-03-07 15:55:31.325240"], ["updated_at", "2016-03-07 15:55:31.325240"]] [1m[35m (0.2ms)[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"."id" != 1)[0m [["coalescing_panda_course_id", 1]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.3ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[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 99' 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 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", "2016-03-07 15:55:31.434035"], ["updated_at", "2016-03-07 15:55:31.434035"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 100' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' 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 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-03-07 15:55:31.508731"], ["updated_at", "2016-03-07 15:55:31.508731"]] [1m[36m (0.2ms)[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_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-03-07 15:55:31.525175"], ["updated_at", "2016-03-07 15:55:31.525175"]] [1m[35m (0.2ms)[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_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-03-07 15:55:31.535343"], ["updated_at", "2016-03-07 15:55:31.535343"]] [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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:31.599331"], ["updated_at", "2016-03-07 15:55:31.599331"]] [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 [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-03-07 15:55:31.611147"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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-03-07 15:55:31.628595"], ["updated_at", "2016-03-07 15:55:31.628595"]] [1m[35m (0.2ms)[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"."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.2ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:31.687208"], ["updated_at", "2016-03-07 15:55:31.687208"]] [1m[35m (0.2ms)[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.1ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:31.702005"], ["updated_at", "2016-03-07 15:55:31.702005"]] [1m[35m (0.1ms)[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[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.3ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.2ms)[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 101' 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 101' 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 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-03-07 15:55:31.861239"], ["updated_at", "2016-03-07 15:55:31.861239"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' 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 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-03-07 15:55:31.888011"], ["updated_at", "2016-03-07 15:55:31.888011"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "38"], ["created_at", "2016-03-07 15:55:31.949204"], ["updated_at", "2016-03-07 15:55:31.949204"]] [1m[35m (0.2ms)[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_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-03-07 15:55:31.959463"], ["updated_at", "2016-03-07 15:55:31.959463"]] [1m[36m (0.2ms)[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.2ms)[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", "2016-03-07 15:55:31.979074"], ["updated_at", "2016-03-07 15:55:31.979074"]] [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 [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-03-07 15:55:31.990329"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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-03-07 15:55:32.053062"], ["updated_at", "2016-03-07 15:55:32.053062"]] [1m[35m (0.2ms)[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.3ms)[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.3ms)[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-03-07 15:55:32.127231"], ["updated_at", "2016-03-07 15:55:32.127231"]] [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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:32.139393"], ["updated_at", "2016-03-07 15:55:32.139393"]] [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", "3"]] [1m[36m (0.1ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:32.151390"], ["updated_at", "2016-03-07 15:55:32.151390"]] [1m[36m (0.2ms)[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.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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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.2ms)[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.2ms)[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.2ms)[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.2ms)[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.2ms)[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.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", "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.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" = ? 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.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" = ? 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", "3"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.2ms)[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.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:55:32.558497"], ["updated_at", "2016-03-07 15:55:32.558497"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 104' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' 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 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-03-07 15:55:32.583044"], ["updated_at", "2016-03-07 15:55:32.583044"]] [1m[35m (0.2ms)[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_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-03-07 15:55:32.597090"], ["updated_at", "2016-03-07 15:55:32.597090"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:32.655209"], ["updated_at", "2016-03-07 15:55:32.655209"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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-03-07 15:55:32.675135"], ["updated_at", "2016-03-07 15:55:32.675135"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:55:32.686386"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupCategory Load (0.3ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.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-03-07 15:55:32.760071"], ["updated_at", "2016-03-07 15:55:32.760071"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Assignment Load (0.3ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"[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 105' 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 105' 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 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-03-07 15:55:32.865580"], ["updated_at", "2016-03-07 15:55:32.865580"]] [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.2ms)[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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 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-03-07 15:55:32.936343"], ["updated_at", "2016-03-07 15:55:32.936343"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "40"], ["created_at", "2016-03-07 15:55:32.949861"], ["updated_at", "2016-03-07 15:55:32.949861"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "35"], ["created_at", "2016-03-07 15:55:32.961727"], ["updated_at", "2016-03-07 15:55:32.961727"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:33.037216"], ["updated_at", "2016-03-07 15:55:33.037216"]] [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 [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-03-07 15:55:33.049363"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:33.116322"], ["updated_at", "2016-03-07 15:55:33.116322"]] [1m[35m (0.2ms)[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"."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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.1ms)[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"."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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignments" [1m[36mCoalescingPanda::Assignment Load (0.3ms)[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.2ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.3ms)[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.2ms)[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 107' 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 107' 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 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-03-07 15:55:33.388611"], ["updated_at", "2016-03-07 15:55:33.388611"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' 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 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-03-07 15:55:33.469674"], ["updated_at", "2016-03-07 15:55:33.469674"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:55:33.484722"], ["updated_at", "2016-03-07 15:55:33.484722"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "36"], ["created_at", "2016-03-07 15:55:33.554151"], ["updated_at", "2016-03-07 15:55:33.554151"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:33.571711"], ["updated_at", "2016-03-07 15:55:33.571711"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:33.585192"], ["id", 1]] [1m[36m (0.2ms)[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.1ms)[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", "2016-03-07 15:55:33.643312"], ["updated_at", "2016-03-07 15:55:33.643312"]] [1m[36m (0.2ms)[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.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.3ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [1m[36m (0.2ms)[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 109' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' 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 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-03-07 15:55:33.741104"], ["updated_at", "2016-03-07 15:55:33.741104"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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-03-07 15:55:33.773598"], ["updated_at", "2016-03-07 15:55:33.773598"]] [1m[35m (0.2ms)[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", "42"], ["created_at", "2016-03-07 15:55:33.835405"], ["updated_at", "2016-03-07 15:55:33.835405"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:33.847934"], ["updated_at", "2016-03-07 15:55:33.847934"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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-03-07 15:55:33.926212"], ["updated_at", "2016-03-07 15:55:33.926212"]] [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 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-03-07 15:55:33.935789"], ["id", 1]] [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" = ? 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.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-03-07 15:55:33.949727"], ["updated_at", "2016-03-07 15:55:33.949727"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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-03-07 15:55:34.010800"], ["updated_at", "2016-03-07 15:55:34.010800"]] [1m[35m (0.2ms)[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"."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.2ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:34.027553"], ["updated_at", "2016-03-07 15:55:34.027553"]] [1m[35m (0.1ms)[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.3ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:34.043054"], ["updated_at", "2016-03-07 15:55:34.043054"]] [1m[35m (0.1ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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.2ms)[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" = ? 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.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" = ? 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", "2"]] [1m[36m (0.2ms)[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", "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.2ms)[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.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", "3"]] [1m[35m (0.2ms)[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", "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.2ms)[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 (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [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.3ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[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.2ms)[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" = ? 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.2ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.2ms)[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" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Submission Load (0.3ms)[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.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.3ms)[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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:34.626614"], ["updated_at", "2016-03-07 15:55:34.626614"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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", "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[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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:34.648271"], ["updated_at", "2016-03-07 15:55:34.648271"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Submission Load (0.2ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:34.722749"], ["updated_at", "2016-03-07 15:55:34.722749"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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", "2"]] [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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [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"."canvas_assignment_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:34.802989"], ["updated_at", "2016-03-07 15:55:34.802989"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Group Load (0.3ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" [1m[36m (0.2ms)[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 111' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' 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 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-03-07 15:55:34.905490"], ["updated_at", "2016-03-07 15:55:34.905490"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:34.990875"], ["updated_at", "2016-03-07 15:55:34.990875"]] [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", "43"], ["created_at", "2016-03-07 15:55:35.002222"], ["updated_at", "2016-03-07 15:55:35.002222"]] [1m[36m (0.2ms)[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", "38"], ["created_at", "2016-03-07 15:55:35.011647"], ["updated_at", "2016-03-07 15:55:35.011647"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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", "2016-03-07 15:55:35.075080"], ["updated_at", "2016-03-07 15:55:35.075080"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:35.093040"], ["id", 1]] [1m[36m (0.1ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:55:35.110638"], ["updated_at", "2016-03-07 15:55:35.110638"]] [1m[36m (0.2ms)[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.2ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:55:35.184694"], ["updated_at", "2016-03-07 15:55:35.184694"]] [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.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:35.205166"], ["updated_at", "2016-03-07 15:55:35.205166"]] [1m[35m (0.2ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_groups" [1m[36mCoalescingPanda::Group Load (0.3ms)[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 (1.4ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Group Load (0.3ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" [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 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' 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 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-03-07 15:55:35.352415"], ["updated_at", "2016-03-07 15:55:35.352415"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 114' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' 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 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-03-07 15:55:35.423625"], ["updated_at", "2016-03-07 15:55:35.423625"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:55:35.438107"], ["updated_at", "2016-03-07 15:55:35.438107"]] [1m[36m (0.2ms)[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_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-03-07 15:55:35.450082"], ["updated_at", "2016-03-07 15:55:35.450082"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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", "2016-03-07 15:55:35.517648"], ["updated_at", "2016-03-07 15:55:35.517648"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:35.529142"], ["id", 1]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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-03-07 15:55:35.550152"], ["updated_at", "2016-03-07 15:55:35.550152"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.3ms)[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.2ms)[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.5ms)[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-03-07 15:55:35.615183"], ["updated_at", "2016-03-07 15:55:35.615183"]] [1m[35m (0.2ms)[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"."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.2ms)[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-03-07 15:55:35.633613"], ["updated_at", "2016-03-07 15:55:35.633613"]] [1m[35m (0.1ms)[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.1ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:35.707377"], ["updated_at", "2016-03-07 15:55:35.707377"]] [1m[35m (0.1ms)[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.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.2ms)[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.2ms)[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.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" = ? 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", "2"]] [1m[36m (0.2ms)[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", "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.2ms)[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.2ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.5ms)[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.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.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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:36.034609"], ["updated_at", "2016-03-07 15:55:36.034609"]] [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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:55:36.052039"], ["updated_at", "2016-03-07 15:55:36.052039"]] [1m[35m (0.1ms)[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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_groups" [1m[36mCoalescingPanda::Group Load (0.3ms)[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.2ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::GroupMembership Load (0.3ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"[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 115' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' 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 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-03-07 15:55:36.148500"], ["updated_at", "2016-03-07 15:55:36.148500"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 116' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' 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 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-03-07 15:55:36.221187"], ["updated_at", "2016-03-07 15:55:36.221187"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "45"], ["created_at", "2016-03-07 15:55:36.235175"], ["updated_at", "2016-03-07 15:55:36.235175"]] [1m[35m (0.2ms)[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_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-03-07 15:55:36.245607"], ["updated_at", "2016-03-07 15:55:36.245607"]] [1m[36m (0.2ms)[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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:36.316303"], ["updated_at", "2016-03-07 15:55:36.316303"]] [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 [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-03-07 15:55:36.386120"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.3ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:36.416017"], ["updated_at", "2016-03-07 15:55:36.416017"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:36.482016"], ["updated_at", "2016-03-07 15:55:36.482016"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.4ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.4ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.2ms)[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 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' 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 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-03-07 15:55:36.580495"], ["updated_at", "2016-03-07 15:55:36.580495"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' 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 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-03-07 15:55:36.603048"], ["updated_at", "2016-03-07 15:55:36.603048"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:55:36.661409"], ["updated_at", "2016-03-07 15:55:36.661409"]] [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_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-03-07 15:55:36.671386"], ["updated_at", "2016-03-07 15:55:36.671386"]] [1m[36m (0.2ms)[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.2ms)[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", "2016-03-07 15:55:36.745423"], ["updated_at", "2016-03-07 15:55:36.745423"]] [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 [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-03-07 15:55:36.755012"], ["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.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-03-07 15:55:36.768914"], ["updated_at", "2016-03-07 15:55:36.768914"]] [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.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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.2ms)[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", "2016-03-07 15:55:36.828103"], ["updated_at", "2016-03-07 15:55:36.828103"]] [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.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:55:36.843638"], ["updated_at", "2016-03-07 15:55:36.843638"]] [1m[36m (0.2ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (47.7ms)[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-03-07 15:55:36.861379"], ["updated_at", "2016-03-07 15:55:36.861379"]] [1m[36m (0.2ms)[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.2ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.2ms)[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.2ms)[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.2ms)[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", "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.2ms)[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.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", "3"]] [1m[36m (0.2ms)[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.1ms)[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[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :enrollments\n"], ["updated_at", "2016-03-07 15:55:37.183909"], ["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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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", "2"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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", "3"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.4ms)[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.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.3ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ?[0m [["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.3ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:37.452128"], ["updated_at", "2016-03-07 15:55:37.452128"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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-03-07 15:55:37.525264"], ["updated_at", "2016-03-07 15:55:37.525264"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:55:37.540691"], ["updated_at", "2016-03-07 15:55:37.540691"]] [1m[36m (0.2ms)[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", "2016-03-07 15:55:37.551594"], ["updated_at", "2016-03-07 15:55:37.551594"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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-03-07 15:55:37.576067"], ["updated_at", "2016-03-07 15:55:37.576067"]] [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 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-03-07 15:55:37.630444"], ["id", 1]] [1m[36m (0.2ms)[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.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-03-07 15:55:37.647520"], ["updated_at", "2016-03-07 15:55:37.647520"]] [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.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.3ms)[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-03-07 15:55:37.711297"], ["updated_at", "2016-03-07 15:55:37.711297"]] [1m[35m (0.2ms)[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.3ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:37.729813"], ["updated_at", "2016-03-07 15:55:37.729813"]] [1m[35m (0.2ms)[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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:37.807948"], ["updated_at", "2016-03-07 15:55:37.807948"]] [1m[35m (0.1ms)[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.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.2ms)[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.2ms)[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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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", "2"]] [1m[36m (0.2ms)[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", "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.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.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", "3"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.3ms)[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.4ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:38.066152"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.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", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.4ms)[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.2ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[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.3ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (45.3ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[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 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' 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 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-03-07 15:55:38.337961"], ["updated_at", "2016-03-07 15:55:38.337961"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' 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 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-03-07 15:55:38.361880"], ["updated_at", "2016-03-07 15:55:38.361880"]] [1m[35m (48.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:55:38.429378"], ["updated_at", "2016-03-07 15:55:38.429378"]] [1m[36m (0.2ms)[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", "43"], ["created_at", "2016-03-07 15:55:38.439704"], ["updated_at", "2016-03-07 15:55:38.439704"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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", "2016-03-07 15:55:38.523586"], ["updated_at", "2016-03-07 15:55:38.523586"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:38.534989"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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-03-07 15:55:38.552185"], ["updated_at", "2016-03-07 15:55:38.552185"]] [1m[36m (47.2ms)[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.2ms)[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.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-03-07 15:55:38.616717"], ["updated_at", "2016-03-07 15:55:38.616717"]] [1m[35m (0.1ms)[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.2ms)[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-03-07 15:55:38.630520"], ["updated_at", "2016-03-07 15:55:38.630520"]] [1m[35m (0.2ms)[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"."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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:38.645449"], ["updated_at", "2016-03-07 15:55:38.645449"]] [1m[35m (0.2ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.2ms)[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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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", "2"]] [1m[36m (0.2ms)[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", "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.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.3ms)[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.2ms)[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.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", "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.2ms)[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 (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [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.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:38.951268"], ["id", 1]] [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[35m (0.1ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.4ms)[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.3ms)[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.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.3ms)[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.3ms)[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.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.3ms)[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.2ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.3ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:39.200389"], ["updated_at", "2016-03-07 15:55:39.200389"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [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 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.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 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-03-07 15:55:39.220379"], ["updated_at", "2016-03-07 15:55:39.220379"]] [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", "49"], ["created_at", "2016-03-07 15:55:39.231523"], ["updated_at", "2016-03-07 15:55:39.231523"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "44"], ["created_at", "2016-03-07 15:55:39.287638"], ["updated_at", "2016-03-07 15:55:39.287638"]] [1m[36m (0.2ms)[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.2ms)[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", "2016-03-07 15:55:39.307223"], ["updated_at", "2016-03-07 15:55:39.307223"]] [1m[36m (0.2ms)[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 "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-03-07 15:55:39.319341"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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-03-07 15:55:39.385160"], ["updated_at", "2016-03-07 15:55:39.385160"]] [1m[35m (0.2ms)[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.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:55:39.404234"], ["updated_at", "2016-03-07 15:55:39.404234"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:55:39.470514"], ["updated_at", "2016-03-07 15:55:39.470514"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:39.488643"], ["updated_at", "2016-03-07 15:55:39.488643"]] [1m[36m (0.2ms)[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.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.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.2ms)[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.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.2ms)[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.2ms)[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", "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.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", "3"]] [1m[36m (0.2ms)[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.1ms)[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[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:39.756184"], ["id", 1]] [1m[35m (0.2ms)[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"."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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.1ms)[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[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-03-07 15:55:39.918403"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[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.3ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' 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 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-03-07 15:55:40.021839"], ["updated_at", "2016-03-07 15:55:40.021839"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 126' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' 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 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-03-07 15:55:40.096373"], ["updated_at", "2016-03-07 15:55:40.096373"]] [1m[35m (0.2ms)[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", "50"], ["created_at", "2016-03-07 15:55:40.109780"], ["updated_at", "2016-03-07 15:55:40.109780"]] [1m[36m (0.2ms)[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", "45"], ["created_at", "2016-03-07 15:55:40.119855"], ["updated_at", "2016-03-07 15:55:40.119855"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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-03-07 15:55:40.185701"], ["updated_at", "2016-03-07 15:55:40.185701"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:40.196577"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 127' 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 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", "2016-03-07 15:55:40.298538"], ["updated_at", "2016-03-07 15:55:40.298538"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:40.369480"], ["updated_at", "2016-03-07 15:55:40.369480"]] [1m[36m (0.2ms)[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", "51"], ["created_at", "2016-03-07 15:55:40.382411"], ["updated_at", "2016-03-07 15:55:40.382411"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "2016-03-07 15:55:40.393436"], ["updated_at", "2016-03-07 15:55:40.393436"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:40.465250"], ["updated_at", "2016-03-07 15:55:40.465250"]] [1m[36m (0.3ms)[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 "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-03-07 15:55:40.478365"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 129' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' 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 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-03-07 15:55:40.577331"], ["updated_at", "2016-03-07 15:55:40.577331"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[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 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.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 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-03-07 15:55:40.663219"], ["updated_at", "2016-03-07 15:55:40.663219"]] [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", "52"], ["created_at", "2016-03-07 15:55:40.674916"], ["updated_at", "2016-03-07 15:55:40.674916"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:55:40.686597"], ["updated_at", "2016-03-07 15:55:40.686597"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:55:40.755356"], ["updated_at", "2016-03-07 15:55:40.755356"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:40.766905"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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-03-07 15:55:40.869230"], ["updated_at", "2016-03-07 15:55:40.869230"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 132' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' 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 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-03-07 15:55:40.939439"], ["updated_at", "2016-03-07 15:55:40.939439"]] [1m[36m (0.2ms)[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_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-03-07 15:55:40.952088"], ["updated_at", "2016-03-07 15:55:40.952088"]] [1m[35m (0.2ms)[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", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:55:41.021858"], ["updated_at", "2016-03-07 15:55:41.021858"]] [1m[36m (0.2ms)[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.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", "2016-03-07 15:55:41.038947"], ["updated_at", "2016-03-07 15:55:41.038947"]] [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 [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-03-07 15:55:41.048699"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 133' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' 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 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-03-07 15:55:41.192595"], ["updated_at", "2016-03-07 15:55:41.192595"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 134' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' 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 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-03-07 15:55:41.215440"], ["updated_at", "2016-03-07 15:55:41.215440"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:55:41.229074"], ["updated_at", "2016-03-07 15:55:41.229074"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "49"], ["created_at", "2016-03-07 15:55:41.290252"], ["updated_at", "2016-03-07 15:55:41.290252"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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-03-07 15:55:41.372024"], ["updated_at", "2016-03-07 15:55:41.372024"]] [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 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-03-07 15:55:41.381960"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.4ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' 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 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-03-07 15:55:41.477067"], ["updated_at", "2016-03-07 15:55:41.477067"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' 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 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-03-07 15:55:41.505184"], ["updated_at", "2016-03-07 15:55:41.505184"]] [1m[36m (0.2ms)[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_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-03-07 15:55:41.567710"], ["updated_at", "2016-03-07 15:55:41.567710"]] [1m[35m (0.2ms)[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", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:55:41.578068"], ["updated_at", "2016-03-07 15:55:41.578068"]] [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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:41.600591"], ["updated_at", "2016-03-07 15:55:41.600591"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[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", "2016-03-07 15:55:41.662962"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 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.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", "2016-03-07 15:55:41.773806"], ["updated_at", "2016-03-07 15:55:41.773806"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:41.839957"], ["updated_at", "2016-03-07 15:55:41.839957"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:55:41.854268"], ["updated_at", "2016-03-07 15:55:41.854268"]] [1m[36m (0.2ms)[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", "51"], ["created_at", "2016-03-07 15:55:41.864607"], ["updated_at", "2016-03-07 15:55:41.864607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:55:41.928056"], ["updated_at", "2016-03-07 15:55:41.928056"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:55:41.939033"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.8ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 139' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' 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 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-03-07 15:55:42.039759"], ["updated_at", "2016-03-07 15:55:42.039759"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [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 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.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 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-03-07 15:55:42.122249"], ["updated_at", "2016-03-07 15:55:42.122249"]] [1m[36m (0.2ms)[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", "57"], ["created_at", "2016-03-07 15:55:42.138116"], ["updated_at", "2016-03-07 15:55:42.138116"]] [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_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-03-07 15:55:42.147549"], ["updated_at", "2016-03-07 15:55:42.147549"]] [1m[36m (0.2ms)[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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:42.215176"], ["updated_at", "2016-03-07 15:55:42.215176"]] [1m[36m (0.2ms)[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 "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-03-07 15:55:42.226893"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' 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 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-03-07 15:55:42.333966"], ["updated_at", "2016-03-07 15:55:42.333966"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 142' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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", "2016-03-07 15:55:42.404925"], ["updated_at", "2016-03-07 15:55:42.404925"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[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", "58"], ["created_at", "2016-03-07 15:55:42.483637"], ["updated_at", "2016-03-07 15:55:42.483637"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "53"], ["created_at", "2016-03-07 15:55:42.495573"], ["updated_at", "2016-03-07 15:55:42.495573"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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", "2016-03-07 15:55:42.517662"], ["updated_at", "2016-03-07 15:55:42.517662"]] [1m[36m (0.2ms)[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 "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-03-07 15:55:42.573759"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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-03-07 15:55:42.597527"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[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 2ms (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 3ms (Views: 0.4ms | ActiveRecord: 0.0ms) [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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.2ms)[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", "2016-03-07 15:55:56.787399"], ["updated_at", "2016-03-07 15:55:56.787399"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:55:56.832559"], ["updated_at", "2016-03-07 15:55:56.832559"]] [1m[36m (0.2ms)[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.3ms)[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.2ms)[0m SAVEPOINT active_record_1 [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" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1[0m [1m[35mSQL (0.3ms)[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-03-07 16:55:56.983045"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:55:56.987859"], ["updated_at", "2016-03-07 15:55:56.987859"]] [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 (1.0ms) Completed 200 OK in 118ms (Views: 14.0ms | ActiveRecord: 2.3ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.4ms)[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.2ms)[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.9ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (48.5ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' 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 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-03-07 15:55:57.203398"], ["updated_at", "2016-03-07 15:55:57.203398"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:55:57.306758"], ["updated_at", "2016-03-07 15:55:57.306758"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.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", "1"], ["created_at", "2016-03-07 15:55:57.320680"], ["updated_at", "2016-03-07 15:55:57.320680"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "1"], ["created_at", "2016-03-07 15:55:57.379638"], ["updated_at", "2016-03-07 15:55:57.379638"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 4' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.5ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' 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 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-03-07 15:55:57.487070"], ["updated_at", "2016-03-07 15:55:57.487070"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' 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 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-03-07 15:55:57.570212"], ["updated_at", "2016-03-07 15:55:57.570212"]] [1m[36m (0.2ms)[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", "2"], ["created_at", "2016-03-07 15:55:57.583348"], ["updated_at", "2016-03-07 15:55:57.583348"]] [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_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-03-07 15:55:57.592346"], ["updated_at", "2016-03-07 15:55:57.592346"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 6' 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 6' 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 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-03-07 15:55:57.670077"], ["updated_at", "2016-03-07 15:55:57.670077"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 7' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' 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 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-03-07 15:55:57.693773"], ["updated_at", "2016-03-07 15:55:57.693773"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "3"], ["created_at", "2016-03-07 15:55:57.709216"], ["updated_at", "2016-03-07 15:55:57.709216"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "3"], ["created_at", "2016-03-07 15:55:57.763481"], ["updated_at", "2016-03-07 15:55:57.763481"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m rollback transaction [1m[36m (0.2ms)[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.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:57.932883"], ["updated_at", "2016-03-07 15:55:57.932883"]] [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.2ms)[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.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 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-03-07 15:55:57.953074"], ["updated_at", "2016-03-07 15:55:57.953074"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "4"], ["created_at", "2016-03-07 15:55:58.013203"], ["updated_at", "2016-03-07 15:55:58.013203"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "4"], ["created_at", "2016-03-07 15:55:58.025035"], ["updated_at", "2016-03-07 15:55:58.025035"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 [1m[36mSQL (1.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 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-03-07 15:55:58.109005"], ["updated_at", "2016-03-07 15:55:58.109005"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 11' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "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-03-07 15:55:58.139869"], ["updated_at", "2016-03-07 15:55:58.139869"]] [1m[36m (0.2ms)[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", "5"], ["created_at", "2016-03-07 15:55:58.154857"], ["updated_at", "2016-03-07 15:55:58.154857"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[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", "5"], ["created_at", "2016-03-07 15:55:58.171739"], ["updated_at", "2016-03-07 15:55:58.171739"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 12' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' 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 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-03-07 15:55:58.315350"], ["updated_at", "2016-03-07 15:55:58.315350"]] [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.2ms)[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.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 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-03-07 15:55:58.335027"], ["updated_at", "2016-03-07 15:55:58.335027"]] [1m[36m (0.2ms)[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", "6"], ["created_at", "2016-03-07 15:55:58.395081"], ["updated_at", "2016-03-07 15:55:58.395081"]] [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_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-03-07 15:55:58.404671"], ["updated_at", "2016-03-07 15:55:58.404671"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.8ms)[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-03-07 15:55:58.415891"], ["updated_at", "2016-03-07 15:55:58.415891"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[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-03-07 15:55:58.436716"], ["updated_at", "2016-03-07 15:55:58.436716"]] 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.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.4ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' 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 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-03-07 15:55:58.512927"], ["updated_at", "2016-03-07 15:55:58.512927"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[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 15' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' 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 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-03-07 15:55:58.542745"], ["updated_at", "2016-03-07 15:55:58.542745"]] [1m[36m (0.2ms)[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", "7"], ["created_at", "2016-03-07 15:55:58.602017"], ["updated_at", "2016-03-07 15:55:58.602017"]] [1m[35m (0.2ms)[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", "7"], ["created_at", "2016-03-07 15:55:58.668570"], ["updated_at", "2016-03-07 15:55:58.668570"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[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.2ms)[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", "2016-03-07 15:55:58.694985"], ["updated_at", "2016-03-07 15:55:58.694985"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT 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" = '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[36m (0.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [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" IS NULL AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.2ms)[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[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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", "2016-03-08 15:55:58.868869"], ["created_at", "2016-03-07 15:55:58.873718"], ["updated_at", "2016-03-07 15:55:58.873718"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:58.957354"], ["updated_at", "2016-03-07 15:55:58.957354"]] [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", "2016-03-07 15:55:58.966738"], ["updated_at", "2016-03-07 15:55:58.966738"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:59.040543"], ["updated_at", "2016-03-07 15:55:59.040543"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[0m SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC [1m[36m (0.8ms)[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.1ms)[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.1ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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 16' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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-03-07 15:55:59.134637"], ["updated_at", "2016-03-07 15:55:59.134637"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 17' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' 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 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-03-07 15:55:59.159256"], ["updated_at", "2016-03-07 15:55:59.159256"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:55:59.174871"], ["updated_at", "2016-03-07 15:55:59.174871"]] [1m[36m (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' 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 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-03-07 15:55:59.252525"], ["updated_at", "2016-03-07 15:55:59.252525"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.6ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' 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 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-03-07 15:55:59.324178"], ["updated_at", "2016-03-07 15:55:59.324178"]] [1m[36m (0.2ms)[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_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-03-07 15:55:59.339638"], ["updated_at", "2016-03-07 15:55:59.339638"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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", "2016-03-07 15:55:59.425183"], ["updated_at", "2016-03-07 15:55:59.425183"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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", "2016-03-07 15:55:59.496841"], ["updated_at", "2016-03-07 15:55:59.496841"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:55:59.512489"], ["updated_at", "2016-03-07 15:55:59.512489"]] [1m[36m (0.2ms)[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_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-03-07 15:55:59.523940"], ["updated_at", "2016-03-07 15:55:59.523940"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 22' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' 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 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-03-07 15:55:59.546876"], ["updated_at", "2016-03-07 15:55:59.546876"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "11"], ["created_at", "2016-03-07 15:55:59.605867"], ["updated_at", "2016-03-07 15:55:59.605867"]] [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_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-03-07 15:55:59.615868"], ["updated_at", "2016-03-07 15:55:59.615868"]] 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 (1.5ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 23' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' 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 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-03-07 15:55:59.644709"], ["updated_at", "2016-03-07 15:55:59.644709"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[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-03-07 15:55:59.704065"], ["updated_at", "2016-03-07 15:55:59.704065"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 24' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' 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 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-03-07 15:55:59.777235"], ["updated_at", "2016-03-07 15:55:59.777235"]] [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_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-03-07 15:55:59.789687"], ["updated_at", "2016-03-07 15:55:59.789687"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:55:59.806294"], ["updated_at", "2016-03-07 15:55:59.806294"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:59.866361"], ["updated_at", "2016-03-07 15:55:59.866361"]] 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.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' 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 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-03-07 15:55:59.895270"], ["updated_at", "2016-03-07 15:55:59.895270"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 27' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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-03-07 15:55:59.964445"], ["updated_at", "2016-03-07 15:55:59.964445"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "13"], ["created_at", "2016-03-07 15:55:59.981309"], ["updated_at", "2016-03-07 15:55:59.981309"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 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.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", "2016-03-07 15:56:00.144720"], ["updated_at", "2016-03-07 15:56:00.144720"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[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-03-07 15:56:00.157229"], ["updated_at", "2016-03-07 15:56:00.157229"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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", "2016-03-07 15:56:00.249989"], ["updated_at", "2016-03-07 15:56:00.249989"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 30' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' 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 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-03-07 15:56:00.272010"], ["updated_at", "2016-03-07 15:56:00.272010"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "14"], ["created_at", "2016-03-07 15:56:00.339317"], ["updated_at", "2016-03-07 15:56:00.339317"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "10"], ["created_at", "2016-03-07 15:56:00.350430"], ["updated_at", "2016-03-07 15:56:00.350430"]] [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_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-03-07 15:56:00.362645"], ["updated_at", "2016-03-07 15:56:00.362645"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:56:00.507267"], ["updated_at", "2016-03-07 15:56:00.507267"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[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-03-07 15:56:00.524002"], ["updated_at", "2016-03-07 15:56:00.524002"]] [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.2ms)[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.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' 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 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-03-07 15:56:00.543870"], ["updated_at", "2016-03-07 15:56:00.543870"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:56:00.618230"], ["updated_at", "2016-03-07 15:56:00.618230"]] [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", 3], ["canvas_term_id", "15"], ["created_at", "2016-03-07 15:56:00.631519"], ["updated_at", "2016-03-07 15:56:00.631519"]] [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_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-03-07 15:56:00.642658"], ["updated_at", "2016-03-07 15:56:00.642658"]] [1m[36m (0.2ms)[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", "2"], ["created_at", "2016-03-07 15:56:00.694900"], ["updated_at", "2016-03-07 15:56:00.694900"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' 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 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-03-07 15:56:00.732428"], ["updated_at", "2016-03-07 15:56:00.732428"]] [1m[36m (0.2ms)[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_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-03-07 15:56:00.796425"], ["updated_at", "2016-03-07 15:56:00.796425"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 35' 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 35' 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 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-03-07 15:56:00.877347"], ["updated_at", "2016-03-07 15:56:00.877347"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[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 36' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' 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 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-03-07 15:56:00.900984"], ["updated_at", "2016-03-07 15:56:00.900984"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (42.9ms)[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-03-07 15:56:00.912517"], ["updated_at", "2016-03-07 15:56:00.912517"]] [1m[36m (0.2ms)[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_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-03-07 15:56:00.965590"], ["updated_at", "2016-03-07 15:56:00.965590"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:00.975479"], ["updated_at", "2016-03-07 15:56:00.975479"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' 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 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-03-07 15:56:01.010598"], ["updated_at", "2016-03-07 15:56:01.010598"]] [1m[35m (0.2ms)[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_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-03-07 15:56:01.071890"], ["updated_at", "2016-03-07 15:56:01.071890"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' 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 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-03-07 15:56:01.094459"], ["updated_at", "2016-03-07 15:56:01.094459"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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 (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 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-03-07 15:56:01.163435"], ["updated_at", "2016-03-07 15:56:01.163435"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "17"], ["created_at", "2016-03-07 15:56:01.232337"], ["updated_at", "2016-03-07 15:56:01.232337"]] [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_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-03-07 15:56:01.241719"], ["updated_at", "2016-03-07 15:56:01.241719"]] [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_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-03-07 15:56:01.249657"], ["updated_at", "2016-03-07 15:56:01.249657"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.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", "2016-03-07 15:56:01.260043"], ["updated_at", "2016-03-07 15:56:01.260043"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:56:01.277575"], ["updated_at", "2016-03-07 15:56:01.277575"]] 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.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 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.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 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-03-07 15:56:01.349482"], ["updated_at", "2016-03-07 15:56:01.349482"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[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-03-07 15:56:01.367124"], ["updated_at", "2016-03-07 15:56:01.367124"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 41' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' 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 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-03-07 15:56:01.438606"], ["updated_at", "2016-03-07 15:56:01.438606"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 42' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' 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 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-03-07 15:56:01.468006"], ["updated_at", "2016-03-07 15:56:01.468006"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "18"], ["created_at", "2016-03-07 15:56:01.484360"], ["updated_at", "2016-03-07 15:56:01.484360"]] [1m[36m (0.2ms)[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_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-03-07 15:56:01.542260"], ["updated_at", "2016-03-07 15:56:01.542260"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:01.613152"], ["updated_at", "2016-03-07 15:56:01.613152"]] [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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:56:01.623363"], ["updated_at", "2016-03-07 15:56:01.623363"]] [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_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-03-07 15:56:01.634375"], ["updated_at", "2016-03-07 15:56:01.634375"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' 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 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-03-07 15:56:01.703284"], ["updated_at", "2016-03-07 15:56:01.703284"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.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", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-03-07 15:56:01.719462"], ["updated_at", "2016-03-07 15:56:01.719462"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 44' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' 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 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-03-07 15:56:01.744771"], ["updated_at", "2016-03-07 15:56:01.744771"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 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.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 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-03-07 15:56:01.814911"], ["updated_at", "2016-03-07 15:56:01.814911"]] [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", 3], ["canvas_term_id", "19"], ["created_at", "2016-03-07 15:56:01.828086"], ["updated_at", "2016-03-07 15:56:01.828086"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:56:01.838243"], ["updated_at", "2016-03-07 15:56:01.838243"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:01.895501"], ["updated_at", "2016-03-07 15:56:01.895501"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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.1ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 [1m[36m (0.2ms)[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.1ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' 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 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-03-07 15:56:02.077976"], ["updated_at", "2016-03-07 15:56:02.077976"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' 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 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-03-07 15:56:02.107912"], ["updated_at", "2016-03-07 15:56:02.107912"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[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", "20"], ["created_at", "2016-03-07 15:56:02.168570"], ["updated_at", "2016-03-07 15:56:02.168570"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:02.181495"], ["updated_at", "2016-03-07 15:56:02.181495"]] [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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' 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 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-03-07 15:56:02.215905"], ["updated_at", "2016-03-07 15:56:02.215905"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 50' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' 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 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-03-07 15:56:02.284563"], ["updated_at", "2016-03-07 15:56:02.284563"]] [1m[35m (0.1ms)[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", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:56:02.353951"], ["updated_at", "2016-03-07 15:56:02.353951"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "17"], ["created_at", "2016-03-07 15:56:02.364115"], ["updated_at", "2016-03-07 15:56:02.364115"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[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 51' 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 51' 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 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-03-07 15:56:02.435901"], ["updated_at", "2016-03-07 15:56:02.435901"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 52' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' 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 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-03-07 15:56:02.460674"], ["updated_at", "2016-03-07 15:56:02.460674"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:56:02.481233"], ["updated_at", "2016-03-07 15:56:02.481233"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.8ms)[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-03-07 15:56:02.541038"], ["updated_at", "2016-03-07 15:56:02.541038"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:02.558219"], ["updated_at", "2016-03-07 15:56:02.558219"]] [1m[36m (0.2ms)[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_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-03-07 15:56:02.569122"], ["updated_at", "2016-03-07 15:56:02.569122"]] 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.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' 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 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-03-07 15:56:02.599136"], ["updated_at", "2016-03-07 15:56:02.599136"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 54' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' 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 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-03-07 15:56:02.737017"], ["updated_at", "2016-03-07 15:56:02.737017"]] [1m[35m (0.2ms)[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", "23"], ["created_at", "2016-03-07 15:56:02.751530"], ["updated_at", "2016-03-07 15:56:02.751530"]] [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", "19"], ["created_at", "2016-03-07 15:56:02.760044"], ["updated_at", "2016-03-07 15:56:02.760044"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.2ms)[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 55' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' 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 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-03-07 15:56:02.856864"], ["updated_at", "2016-03-07 15:56:02.856864"]] [1m[36m (0.2ms)[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_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-03-07 15:56:02.871916"], ["updated_at", "2016-03-07 15:56:02.871916"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 56' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' 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 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-03-07 15:56:02.941402"], ["updated_at", "2016-03-07 15:56:02.941402"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 57' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' 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 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-03-07 15:56:02.963685"], ["updated_at", "2016-03-07 15:56:02.963685"]] [1m[35m (0.2ms)[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_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-03-07 15:56:03.026582"], ["updated_at", "2016-03-07 15:56:03.026582"]] [1m[36m (0.2ms)[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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-03-07 15:56:03.094452"], ["updated_at", "2016-03-07 15:56:03.094452"]] [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", "3"], ["created_at", "2016-03-07 15:56:03.103236"], ["updated_at", "2016-03-07 15:56:03.103236"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' 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 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-03-07 15:56:03.184985"], ["updated_at", "2016-03-07 15:56:03.184985"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:56:03.202320"], ["updated_at", "2016-03-07 15:56:03.202320"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 59' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' 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 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-03-07 15:56:03.226862"], ["updated_at", "2016-03-07 15:56:03.226862"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 60' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' 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 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-03-07 15:56:03.293336"], ["updated_at", "2016-03-07 15:56:03.293336"]] [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "25"], ["created_at", "2016-03-07 15:56:03.306686"], ["updated_at", "2016-03-07 15:56:03.306686"]] [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_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-03-07 15:56:03.316263"], ["updated_at", "2016-03-07 15:56:03.316263"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "4"], ["created_at", "2016-03-07 15:56:03.374167"], ["updated_at", "2016-03-07 15:56:03.374167"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.3ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' 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 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-03-07 15:56:03.469436"], ["updated_at", "2016-03-07 15:56:03.469436"]] [1m[36m (0.1ms)[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_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-03-07 15:56:03.484060"], ["updated_at", "2016-03-07 15:56:03.484060"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 62' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' 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 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-03-07 15:56:03.559287"], ["updated_at", "2016-03-07 15:56:03.559287"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 63' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' 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 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-03-07 15:56:03.583309"], ["updated_at", "2016-03-07 15:56:03.583309"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "26"], ["created_at", "2016-03-07 15:56:03.602357"], ["updated_at", "2016-03-07 15:56:03.602357"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:03.658818"], ["updated_at", "2016-03-07 15:56:03.658818"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "5"], ["created_at", "2016-03-07 15:56:03.669101"], ["updated_at", "2016-03-07 15:56:03.669101"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' 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 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-03-07 15:56:03.702960"], ["updated_at", "2016-03-07 15:56:03.702960"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[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-03-07 15:56:03.767413"], ["updated_at", "2016-03-07 15:56:03.767413"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 65' 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 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", "2016-03-07 15:56:03.845533"], ["updated_at", "2016-03-07 15:56:03.845533"]] [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.2ms)[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.3ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' 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 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-03-07 15:56:03.866130"], ["updated_at", "2016-03-07 15:56:03.866130"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", 3], ["canvas_term_id", "27"], ["created_at", "2016-03-07 15:56:03.924469"], ["updated_at", "2016-03-07 15:56:03.924469"]] [1m[35m (0.2ms)[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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:56:03.934628"], ["updated_at", "2016-03-07 15:56:03.934628"]] [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_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-03-07 15:56:03.944411"], ["updated_at", "2016-03-07 15:56:03.944411"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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-03-07 15:56:03.956794"], ["updated_at", "2016-03-07 15:56:03.956794"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:03.972880"], ["updated_at", "2016-03-07 15:56:03.972880"]] 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.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' 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 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-03-07 15:56:04.042207"], ["updated_at", "2016-03-07 15:56:04.042207"]] [1m[36m (0.2ms)[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_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-03-07 15:56:04.057533"], ["updated_at", "2016-03-07 15:56:04.057533"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 68' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' 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 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-03-07 15:56:04.123970"], ["updated_at", "2016-03-07 15:56:04.123970"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[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 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.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 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-03-07 15:56:04.200270"], ["updated_at", "2016-03-07 15:56:04.200270"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 3], ["canvas_term_id", "28"], ["created_at", "2016-03-07 15:56:04.214466"], ["updated_at", "2016-03-07 15:56:04.214466"]] [1m[36m (0.2ms)[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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2016-03-07 15:56:04.224628"], ["updated_at", "2016-03-07 15:56:04.224628"]] [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", "7"], ["created_at", "2016-03-07 15:56:04.280750"], ["updated_at", "2016-03-07 15:56:04.280750"]] [1m[36m (0.2ms)[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", "2016-03-07 15:56:04.293119"], ["updated_at", "2016-03-07 15:56:04.293119"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:04.304764"], ["updated_at", "2016-03-07 15:56:04.304764"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' 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 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-03-07 15:56:04.377839"], ["updated_at", "2016-03-07 15:56:04.377839"]] [1m[35m (0.2ms)[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_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-03-07 15:56:04.393080"], ["updated_at", "2016-03-07 15:56:04.393080"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 71' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' 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 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-03-07 15:56:04.414460"], ["updated_at", "2016-03-07 15:56:04.414460"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 72' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' 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 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-03-07 15:56:04.492814"], ["updated_at", "2016-03-07 15:56:04.492814"]] [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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-07 15:56:04.567844"], ["updated_at", "2016-03-07 15:56:04.567844"]] [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_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-03-07 15:56:04.577021"], ["updated_at", "2016-03-07 15:56:04.577021"]] [1m[36m (0.2ms)[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_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-03-07 15:56:04.589928"], ["updated_at", "2016-03-07 15:56:04.589928"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (48.9ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 73' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' 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 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-03-07 15:56:04.671552"], ["updated_at", "2016-03-07 15:56:04.671552"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' 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 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-03-07 15:56:04.707154"], ["updated_at", "2016-03-07 15:56:04.707154"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[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-03-07 15:56:04.767027"], ["updated_at", "2016-03-07 15:56:04.767027"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", 1], ["canvas_term_id", "1"], ["created_at", "2016-03-07 15:56:04.780792"], ["updated_at", "2016-03-07 15:56:04.780792"]] 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.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 75' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' 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 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-03-07 15:56:04.867681"], ["updated_at", "2016-03-07 15:56:04.867681"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.1ms)[0m rollback transaction [1m[36m (0.3ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:56:04.955856"], ["updated_at", "2016-03-07 15:56:04.955856"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' 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 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-03-07 15:56:05.028065"], ["updated_at", "2016-03-07 15:56:05.028065"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:56:05.046532"], ["updated_at", "2016-03-07 15:56:05.046532"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:56:05.060856"], ["updated_at", "2016-03-07 15:56:05.060856"]] 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.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 78' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' 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 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-03-07 15:56:05.133013"], ["updated_at", "2016-03-07 15:56:05.133013"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 79' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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", "2016-03-07 15:56:05.168169"], ["updated_at", "2016-03-07 15:56:05.168169"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.4ms)[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.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", "2016-03-07 15:56:05.308960"], ["updated_at", "2016-03-07 15:56:05.308960"]] [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 [1mUPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:05.318516"], ["id", 1]] [1m[35m (0.2ms)[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.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:56:05.392824"], ["updated_at", "2016-03-07 15:56:05.392824"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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", "2016-03-07 15:56:05.416026"], ["updated_at", "2016-03-07 15:56:05.416026"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:05.427244"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 81' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' 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 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-03-07 15:56:05.505997"], ["updated_at", "2016-03-07 15:56:05.505997"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:56:05.530382"], ["updated_at", "2016-03-07 15:56:05.530382"]] [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 UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:05.601964"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Started"], ["updated_at", "2016-03-07 15:56:05.707811"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.4ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.7ms)[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-03-07 15:56:05.729968"], ["updated_at", "2016-03-07 15:56:05.729968"]] [1m[35m (0.2ms)[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[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-03-07 15:56:05.793725"], ["updated_at", "2016-03-07 15:56:05.793725"]] [1m[35m (0.2ms)[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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:05.808704"], ["updated_at", "2016-03-07 15:56:05.808704"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:05.822891"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2016-03-07 15:56:05.881945"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::User Load (0.3ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" [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 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.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 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-03-07 15:56:05.964476"], ["updated_at", "2016-03-07 15:56:05.964476"]] [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::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.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-03-07 15:56:05.985139"], ["updated_at", "2016-03-07 15:56:05.985139"]] [1m[36m (0.2ms)[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 "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.042763"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.3ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:06.062911"], ["updated_at", "2016-03-07 15:56:06.062911"]] [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"."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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:06.082731"], ["updated_at", "2016-03-07 15:56:06.082731"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Course Load (0.3ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_courses" [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.3ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[0m [1m[35m (0.2ms)[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 83' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' 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 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-03-07 15:56:06.160390"], ["updated_at", "2016-03-07 15:56:06.160390"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:56:06.234895"], ["updated_at", "2016-03-07 15:56:06.234895"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.301717"], ["id", 1]] [1m[36m (0.2ms)[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.4ms)[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-03-07 15:56:06.316816"], ["updated_at", "2016-03-07 15:56:06.316816"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:06.333455"], ["updated_at", "2016-03-07 15:56:06.333455"]] [1m[36m (0.2ms)[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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:06.394144"], ["updated_at", "2016-03-07 15:56:06.394144"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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"."id" NOT IN (1, 2, 3)) [["coalescing_panda_lti_account_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' 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 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-03-07 15:56:06.430376"], ["updated_at", "2016-03-07 15:56:06.430376"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:56:06.502293"], ["updated_at", "2016-03-07 15:56:06.502293"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.514332"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' 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 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-03-07 15:56:06.596818"], ["updated_at", "2016-03-07 15:56:06.596818"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.3ms)[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.3ms)[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-03-07 15:56:06.689460"], ["updated_at", "2016-03-07 15:56:06.689460"]] [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", "2016-03-07 15:56:06.698973"], ["id", 1]] [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::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.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' 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 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-03-07 15:56:06.785364"], ["updated_at", "2016-03-07 15:56:06.785364"]] [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::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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.8ms)[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-03-07 15:56:06.809513"], ["updated_at", "2016-03-07 15:56:06.809513"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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- :users\n"], ["updated_at", "2016-03-07 15:56:06.825562"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (45.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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-03-07 15:56:06.895319"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 87' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' 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 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-03-07 15:56:06.996138"], ["updated_at", "2016-03-07 15:56:06.996138"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [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 88' 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 88' LIMIT 1[0m [1m[35mSQL (0.8ms)[0m INSERT INTO "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-03-07 15:56:07.078815"], ["updated_at", "2016-03-07 15:56:07.078815"]] [1m[36m (0.2ms)[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", "31"], ["created_at", "2016-03-07 15:56:07.093146"], ["updated_at", "2016-03-07 15:56:07.093146"]] [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_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-03-07 15:56:07.101637"], ["updated_at", "2016-03-07 15:56:07.101637"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.4ms)[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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:07.166693"], ["updated_at", "2016-03-07 15:56:07.166693"]] [1m[36m (0.2ms)[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 "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-03-07 15:56:07.180517"], ["id", 1]] [1m[35m (0.1ms)[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 (1.6ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.3ms)[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 89' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' 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 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-03-07 15:56:07.278417"], ["updated_at", "2016-03-07 15:56:07.278417"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (45.9ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[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-03-07 15:56:07.350535"], ["updated_at", "2016-03-07 15:56:07.350535"]] [1m[36m (0.2ms)[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", "32"], ["created_at", "2016-03-07 15:56:07.364331"], ["updated_at", "2016-03-07 15:56:07.364331"]] [1m[35m (0.2ms)[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_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-03-07 15:56:07.429560"], ["updated_at", "2016-03-07 15:56:07.429560"]] [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.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", "2016-03-07 15:56:07.447406"], ["updated_at", "2016-03-07 15:56:07.447406"]] [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 [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-03-07 15:56:07.458151"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 91' 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 91' 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 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-03-07 15:56:07.549789"], ["updated_at", "2016-03-07 15:56:07.549789"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 92' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' 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 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-03-07 15:56:07.625831"], ["updated_at", "2016-03-07 15:56:07.625831"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "2016-03-07 15:56:07.639017"], ["updated_at", "2016-03-07 15:56:07.639017"]] [1m[36m (0.2ms)[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", "28"], ["created_at", "2016-03-07 15:56:07.649208"], ["updated_at", "2016-03-07 15:56:07.649208"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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-03-07 15:56:07.713624"], ["updated_at", "2016-03-07 15:56:07.713624"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2016-03-07 15:56:07.723323"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[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 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.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 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-03-07 15:56:07.814456"], ["updated_at", "2016-03-07 15:56:07.814456"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 94' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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", "2016-03-07 15:56:07.885668"], ["updated_at", "2016-03-07 15:56:07.885668"]] [1m[36m (0.2ms)[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", "34"], ["created_at", "2016-03-07 15:56:07.899352"], ["updated_at", "2016-03-07 15:56:07.899352"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "29"], ["created_at", "2016-03-07 15:56:07.913396"], ["updated_at", "2016-03-07 15:56:07.913396"]] [1m[36m (0.2ms)[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.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", "2016-03-07 15:56:07.983430"], ["updated_at", "2016-03-07 15:56:07.983430"]] [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 [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-03-07 15:56:07.994608"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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 95' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' 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 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-03-07 15:56:08.147458"], ["updated_at", "2016-03-07 15:56:08.147458"]] [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.2ms)[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.1ms)[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-03-07 15:56:08.169912"], ["updated_at", "2016-03-07 15:56:08.169912"]] [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", "35"], ["created_at", "2016-03-07 15:56:08.181940"], ["updated_at", "2016-03-07 15:56:08.181940"]] [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_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-03-07 15:56:08.236543"], ["updated_at", "2016-03-07 15:56:08.236543"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:56:08.260857"], ["updated_at", "2016-03-07 15:56:08.260857"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:08.275578"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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-03-07 15:56:08.424480"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.3ms)[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.2ms)[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", "2016-03-07 15:56:08.446215"], ["updated_at", "2016-03-07 15:56:08.446215"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.3ms)[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.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", 12.5], ["updated_at", "2016-03-07 15:56:08.518694"], ["id", 1]] [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" WHERE "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.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-03-07 15:56:08.535335"], ["updated_at", "2016-03-07 15:56:08.535335"]] [1m[35m (0.2ms)[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[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:08.548133"], ["updated_at", "2016-03-07 15:56:08.548133"]] [1m[35m (0.2ms)[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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:08.609991"], ["updated_at", "2016-03-07 15:56:08.609991"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.2ms)[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-03-07 15:56:08.640305"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (44.7ms)[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", "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.3ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[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.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.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.2ms)[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.2ms)[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", "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.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", "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.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Enrollment Load (0.4ms)[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 [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-03-07 15:56:08.954901"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (1.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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[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-03-07 15:56:08.975747"], ["updated_at", "2016-03-07 15:56:08.975747"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::AssignmentGroup Load (0.3ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:56:08.990664"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.5ms)[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.4ms)[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 (1.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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[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.1ms)[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", "2"]] [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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.4ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2016-03-07 15:56:09.313016"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Assignment Load (0.4ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:56:09.331996"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (1.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.2ms)[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.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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[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-03-07 15:56:09.444743"], ["updated_at", "2016-03-07 15:56:09.444743"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Group Load (0.3ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:09.516793"], ["updated_at", "2016-03-07 15:56:09.516793"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.4ms)[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 SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:09.595367"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.3ms)[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.8ms)[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.4ms)[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.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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[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-03-07 15:56:09.695637"], ["updated_at", "2016-03-07 15:56:09.695637"]] [1m[36m (0.1ms)[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.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"."canvas_group_id" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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", "3"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:09.719646"], ["updated_at", "2016-03-07 15:56:09.719646"]] [1m[36m (0.3ms)[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", "13"]] [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"."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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::GroupMembership Load (0.4ms)[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.3ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:56:09.858413"], ["id", 1]] [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 [1mUPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["status", "Completed"], ["updated_at", "2016-03-07 15:56:09.868169"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Section Load (0.3ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.3ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' 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 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-03-07 15:56:10.019634"], ["updated_at", "2016-03-07 15:56:10.019634"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [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 98' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' 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 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-03-07 15:56:10.045385"], ["updated_at", "2016-03-07 15:56:10.045385"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "36"], ["created_at", "2016-03-07 15:56:10.059565"], ["updated_at", "2016-03-07 15:56:10.059565"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "31"], ["created_at", "2016-03-07 15:56:10.118627"], ["updated_at", "2016-03-07 15:56:10.118627"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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", "2016-03-07 15:56:10.143363"], ["updated_at", "2016-03-07 15:56:10.143363"]] [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 [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-03-07 15:56:10.154385"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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", "2016-03-07 15:56:10.220221"], ["updated_at", "2016-03-07 15:56:10.220221"]] [1m[35m (0.2ms)[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.3ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.3ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users"[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 99' 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 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", "2016-03-07 15:56:10.328320"], ["updated_at", "2016-03-07 15:56:10.328320"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 100' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[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-03-07 15:56:10.397740"], ["updated_at", "2016-03-07 15:56:10.397740"]] [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_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-03-07 15:56:10.411160"], ["updated_at", "2016-03-07 15:56:10.411160"]] [1m[35m (0.2ms)[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", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:56:10.421492"], ["updated_at", "2016-03-07 15:56:10.421492"]] [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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:10.486797"], ["updated_at", "2016-03-07 15:56:10.486797"]] [1m[36m (0.2ms)[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 "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-03-07 15:56:10.499921"], ["id", 1]] [1m[35m (0.2ms)[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"."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.2ms)[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-03-07 15:56:10.519700"], ["updated_at", "2016-03-07 15:56:10.519700"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::User Load (0.3ms)[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.2ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:10.587775"], ["updated_at", "2016-03-07 15:56:10.587775"]] [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" WHERE "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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:10.602327"], ["updated_at", "2016-03-07 15:56:10.602327"]] [1m[35m (0.1ms)[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[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.3ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.2ms)[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 101' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' 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 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-03-07 15:56:10.764936"], ["updated_at", "2016-03-07 15:56:10.764936"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 102' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' 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 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-03-07 15:56:10.788995"], ["updated_at", "2016-03-07 15:56:10.788995"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "38"], ["created_at", "2016-03-07 15:56:10.803485"], ["updated_at", "2016-03-07 15:56:10.803485"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "33"], ["created_at", "2016-03-07 15:56:10.862745"], ["updated_at", "2016-03-07 15:56:10.862745"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:10.894142"], ["updated_at", "2016-03-07 15:56:10.894142"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:10.908330"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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", "2016-03-07 15:56:10.975336"], ["updated_at", "2016-03-07 15:56:10.975336"]] [1m[35m (0.2ms)[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"."id" != 1)[0m [["coalescing_panda_course_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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.2ms)[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", "2016-03-07 15:56:11.066386"], ["updated_at", "2016-03-07 15:56:11.066386"]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.2ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:11.084270"], ["updated_at", "2016-03-07 15:56:11.084270"]] [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", "3"]] [1m[36m (0.1ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:11.097533"], ["updated_at", "2016-03-07 15:56:11.097533"]] [1m[36m (0.1ms)[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 (1, 2, 3)) [["coalescing_panda_course_id", 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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.2ms)[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.2ms)[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.2ms)[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", "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.2ms)[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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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", "3"]] [1m[36m (0.2ms)[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.2ms)[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.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1 [1m[36m (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.2ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:56:11.511687"], ["updated_at", "2016-03-07 15:56:11.511687"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' 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 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-03-07 15:56:11.541554"], ["updated_at", "2016-03-07 15:56:11.541554"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:56:11.562054"], ["updated_at", "2016-03-07 15:56:11.562054"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:11.620425"], ["updated_at", "2016-03-07 15:56:11.620425"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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-03-07 15:56:11.641200"], ["updated_at", "2016-03-07 15:56:11.641200"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:11.653129"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[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-03-07 15:56:11.733457"], ["updated_at", "2016-03-07 15:56:11.733457"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Assignment Load (0.4ms)[0m [1mSELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"[0m [1m[35m (0.2ms)[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 105' 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 105' 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 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-03-07 15:56:11.845570"], ["updated_at", "2016-03-07 15:56:11.845570"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 106' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 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-03-07 15:56:11.921525"], ["updated_at", "2016-03-07 15:56:11.921525"]] [1m[36m (0.2ms)[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_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-03-07 15:56:11.935127"], ["updated_at", "2016-03-07 15:56:11.935127"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "35"], ["created_at", "2016-03-07 15:56:11.948848"], ["updated_at", "2016-03-07 15:56:11.948848"]] [1m[36m (0.2ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:12.017961"], ["updated_at", "2016-03-07 15:56:12.017961"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:56:12.030672"], ["id", 1]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:12.093562"], ["updated_at", "2016-03-07 15:56:12.093562"]] [1m[35m (0.1ms)[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"."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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" = ? LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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.2ms)[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"."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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" IS NULL LIMIT 1[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignments" [1m[36mCoalescingPanda::Assignment Load (0.3ms)[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.2ms)[0m SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (1.6ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.3ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "coalescing_panda_assignment_groups" [1m[36m (0.2ms)[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 107' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' 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 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-03-07 15:56:12.392689"], ["updated_at", "2016-03-07 15:56:12.392689"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 108' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' 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 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-03-07 15:56:12.468640"], ["updated_at", "2016-03-07 15:56:12.468640"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:56:12.484662"], ["updated_at", "2016-03-07 15:56:12.484662"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:12.571642"], ["updated_at", "2016-03-07 15:56:12.571642"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:12.595842"], ["updated_at", "2016-03-07 15:56:12.595842"]] [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:12.613830"], ["id", 1]] [1m[36m (0.1ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:12.683126"], ["updated_at", "2016-03-07 15:56:12.683126"]] [1m[36m (0.2ms)[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"."id" != 1) [["coalescing_panda_course_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_assignment_groups"[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Submission Load (0.4ms)[0m SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" [1m[36m (0.2ms)[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 109' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' 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 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-03-07 15:56:12.783632"], ["updated_at", "2016-03-07 15:56:12.783632"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 110' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' 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 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-03-07 15:56:12.809175"], ["updated_at", "2016-03-07 15:56:12.809175"]] [1m[35m (0.2ms)[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_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-03-07 15:56:12.878410"], ["updated_at", "2016-03-07 15:56:12.878410"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:12.892264"], ["updated_at", "2016-03-07 15:56:12.892264"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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-03-07 15:56:12.977983"], ["updated_at", "2016-03-07 15:56:12.977983"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:12.988224"], ["id", 1]] [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" = ? ORDER BY "coalescing_panda_sections"."id" ASC LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:13.004211"], ["updated_at", "2016-03-07 15:56:13.004211"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.2ms)[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-03-07 15:56:13.072238"], ["updated_at", "2016-03-07 15:56:13.072238"]] [1m[35m (0.2ms)[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"."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.2ms)[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-03-07 15:56:13.087617"], ["updated_at", "2016-03-07 15:56:13.087617"]] [1m[35m (0.2ms)[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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:13.103778"], ["updated_at", "2016-03-07 15:56:13.103778"]] [1m[35m (0.2ms)[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[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Section Load (0.3ms)[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.2ms)[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.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" = ? 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", "2"]] [1m[36m (0.2ms)[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", "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.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.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", "3"]] [1m[35m (0.2ms)[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", "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.2ms)[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 (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Assignment Load (0.2ms)[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.2ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[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.2ms)[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" = ? 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.3ms)[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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.2ms)[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", "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.2ms)[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" = ? AND ("coalescing_panda_assignments"."id" NOT IN (1, 2)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Submission Load (0.4ms)[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.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", "3"]] [1m[36mCoalescingPanda::Assignment Load (0.5ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:13.712337"], ["updated_at", "2016-03-07 15:56:13.712337"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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", "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[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:13.738216"], ["updated_at", "2016-03-07 15:56:13.738216"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Submission Load (0.4ms)[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.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", "3"]] [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"."canvas_assignment_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:13.815699"], ["updated_at", "2016-03-07 15:56:13.815699"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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", "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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:13.892013"], ["updated_at", "2016-03-07 15:56:13.892013"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.9ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Group Load (0.4ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" [1m[36m (0.2ms)[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 111' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' 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 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-03-07 15:56:13.986986"], ["updated_at", "2016-03-07 15:56:13.986986"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 112' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' 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 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-03-07 15:56:14.076577"], ["updated_at", "2016-03-07 15:56:14.076577"]] [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", "43"], ["created_at", "2016-03-07 15:56:14.090461"], ["updated_at", "2016-03-07 15:56:14.090461"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:14.101021"], ["updated_at", "2016-03-07 15:56:14.101021"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:56:14.170826"], ["updated_at", "2016-03-07 15:56:14.170826"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:14.185719"], ["id", 1]] [1m[36m (0.1ms)[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.3ms)[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-03-07 15:56:14.203251"], ["updated_at", "2016-03-07 15:56:14.203251"]] [1m[36m (0.4ms)[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.2ms)[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.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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[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-03-07 15:56:14.287515"], ["updated_at", "2016-03-07 15:56:14.287515"]] [1m[36m (0.2ms)[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", "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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:14.315559"], ["updated_at", "2016-03-07 15:56:14.315559"]] [1m[35m (0.2ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_groups" [1m[36mCoalescingPanda::Group Load (0.7ms)[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 (1.7ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Group Load (0.3ms)[0m SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" [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 113' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' 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 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-03-07 15:56:14.488676"], ["updated_at", "2016-03-07 15:56:14.488676"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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 114' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[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-03-07 15:56:14.557973"], ["updated_at", "2016-03-07 15:56:14.557973"]] [1m[35m (0.2ms)[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_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-03-07 15:56:14.571197"], ["updated_at", "2016-03-07 15:56:14.571197"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[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-03-07 15:56:14.585424"], ["updated_at", "2016-03-07 15:56:14.585424"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.5ms)[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.2ms)[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-03-07 15:56:14.653584"], ["updated_at", "2016-03-07 15:56:14.653584"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:14.665312"], ["id", 1]] [1m[36m (0.2ms)[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.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-03-07 15:56:14.682389"], ["updated_at", "2016-03-07 15:56:14.682389"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.4ms)[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.2ms)[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.2ms)[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-03-07 15:56:14.744282"], ["updated_at", "2016-03-07 15:56:14.744282"]] [1m[35m (0.2ms)[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"."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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:14.758665"], ["updated_at", "2016-03-07 15:56:14.758665"]] [1m[35m (0.1ms)[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.3ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:14.827229"], ["updated_at", "2016-03-07 15:56:14.827229"]] [1m[35m (0.1ms)[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.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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.5ms)[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.2ms)[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" = ? 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.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" = ? 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", "2"]] [1m[36m (0.2ms)[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", "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.2ms)[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.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.2ms)[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.2ms)[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.2ms)[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", "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 (1.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 (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [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.2ms)[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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:15.163244"], ["updated_at", "2016-03-07 15:56:15.163244"]] [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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:15.181234"], ["updated_at", "2016-03-07 15:56:15.181234"]] [1m[35m (0.1ms)[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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_groups" [1m[36mCoalescingPanda::Group Load (0.3ms)[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.2ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]] [1m[36m (2.0ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::GroupMembership Load (0.3ms)[0m [1mSELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"[0m [1m[35m (0.2ms)[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 115' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' 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 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-03-07 15:56:15.291485"], ["updated_at", "2016-03-07 15:56:15.291485"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 116' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' 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 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-03-07 15:56:15.369829"], ["updated_at", "2016-03-07 15:56:15.369829"]] [1m[36m (0.2ms)[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_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-03-07 15:56:15.384000"], ["updated_at", "2016-03-07 15:56:15.384000"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "40"], ["created_at", "2016-03-07 15:56:15.398186"], ["updated_at", "2016-03-07 15:56:15.398186"]] [1m[36m (0.2ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:15.466601"], ["updated_at", "2016-03-07 15:56:15.466601"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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", "2016-03-07 15:56:15.538440"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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"."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.3ms)[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-03-07 15:56:15.562441"], ["updated_at", "2016-03-07 15:56:15.562441"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] [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"."canvas_user_id" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_user_id", "3"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[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-03-07 15:56:15.627761"], ["updated_at", "2016-03-07 15:56:15.627761"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupMembership Load (0.3ms)[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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_memberships" [1m[36m (1.5ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.4ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.2ms)[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 117' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' 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 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-03-07 15:56:15.733550"], ["updated_at", "2016-03-07 15:56:15.733550"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 118' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' 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 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-03-07 15:56:15.758378"], ["updated_at", "2016-03-07 15:56:15.758378"]] [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.3ms)[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", "46"], ["created_at", "2016-03-07 15:56:15.827353"], ["updated_at", "2016-03-07 15:56:15.827353"]] [1m[35m (0.2ms)[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", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:56:15.839001"], ["updated_at", "2016-03-07 15:56:15.839001"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:15.919165"], ["updated_at", "2016-03-07 15:56:15.919165"]] [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 [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-03-07 15:56:15.931354"], ["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.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-03-07 15:56:15.947500"], ["updated_at", "2016-03-07 15:56:15.947500"]] [1m[35m (0.4ms)[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"."id" != 1)[0m [["coalescing_panda_course_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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:16.017356"], ["updated_at", "2016-03-07 15:56:16.017356"]] [1m[36m (0.2ms)[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.2ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:16.034081"], ["updated_at", "2016-03-07 15:56:16.034081"]] [1m[36m (0.2ms)[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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:16.049566"], ["updated_at", "2016-03-07 15:56:16.049566"]] [1m[36m (0.4ms)[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 (1, 2, 3)) [["coalescing_panda_course_id", 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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.3ms)[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.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.2ms)[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.2ms)[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", "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.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", "3"]] [1m[36m (0.2ms)[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.2ms)[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[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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- :enrollments\n"], ["updated_at", "2016-03-07 15:56:16.380848"], ["id", 1]] [1m[35m (0.2ms)[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.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" = ? 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", "2"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? 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", "3"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Enrollment Load (0.7ms)[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.2ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.8ms)[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 (50.9ms)[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.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments"[0m [1m[35m (1.4ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.3ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[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 119' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' 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 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-03-07 15:56:16.677750"], ["updated_at", "2016-03-07 15:56:16.677750"]] [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.2ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' 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 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-03-07 15:56:16.751308"], ["updated_at", "2016-03-07 15:56:16.751308"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:56:16.765254"], ["updated_at", "2016-03-07 15:56:16.765254"]] [1m[36m (0.2ms)[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_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-03-07 15:56:16.777867"], ["updated_at", "2016-03-07 15:56:16.777867"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.2ms)[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", "2016-03-07 15:56:16.853751"], ["updated_at", "2016-03-07 15:56:16.853751"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[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-03-07 15:56:16.866836"], ["id", 1]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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-03-07 15:56:16.888760"], ["updated_at", "2016-03-07 15:56:16.888760"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.3ms)[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.2ms)[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-03-07 15:56:16.960595"], ["updated_at", "2016-03-07 15:56:16.960595"]] [1m[35m (0.1ms)[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.2ms)[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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:16.975832"], ["updated_at", "2016-03-07 15:56:16.975832"]] [1m[35m (0.3ms)[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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:17.055104"], ["updated_at", "2016-03-07 15:56:17.055104"]] [1m[35m (0.1ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.2ms)[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.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" = ? 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", "2"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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 (44.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.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", "3"]] [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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.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 (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:17.319751"], ["id", 1]] [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.3ms)[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.2ms)[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.2ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.2ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[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 (2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::User Load (0.1ms)[0m [1mSELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[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.3ms)[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.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.3ms)[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.2ms)[0m [1mbegin transaction[0m [1m[35mCoalescingPanda::Enrollment Load (0.4ms)[0m SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[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 121' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' 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 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-03-07 15:56:17.625384"], ["updated_at", "2016-03-07 15:56:17.625384"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' 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 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-03-07 15:56:17.652173"], ["updated_at", "2016-03-07 15:56:17.652173"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:56:17.717138"], ["updated_at", "2016-03-07 15:56:17.717138"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:17.728879"], ["updated_at", "2016-03-07 15:56:17.728879"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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.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-03-07 15:56:17.806060"], ["updated_at", "2016-03-07 15:56:17.806060"]] [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-03-07 15:56:17.815788"], ["id", 1]] [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" = ? 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.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-03-07 15:56:17.830079"], ["updated_at", "2016-03-07 15:56:17.830079"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Section Load (0.2ms)[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.1ms)[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-03-07 15:56:17.895975"], ["updated_at", "2016-03-07 15:56:17.895975"]] [1m[35m (0.1ms)[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[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-03-07 15:56:17.909936"], ["updated_at", "2016-03-07 15:56:17.909936"]] [1m[35m (0.2ms)[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.2ms)[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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:17.977634"], ["updated_at", "2016-03-07 15:56:17.977634"]] [1m[35m (0.2ms)[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.2ms)[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.3ms)[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.2ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (53.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.2ms)[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" = ? 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.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" = ? 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", "2"]] [1m[36m (0.2ms)[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", "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.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.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", "3"]] [1m[35m (0.1ms)[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", "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.2ms)[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 (1, 2, 3))[0m [["coalescing_panda_course_id", 1]] [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.2ms)[0m UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:18.260878"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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[35m (0.2ms)[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"."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.4ms)[0m SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::User Load (0.4ms)[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.3ms)[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.1ms)[0m SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] [1m[36mCoalescingPanda::Submission Load (0.2ms)[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.2ms)[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.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mCoalescingPanda::Submission Load (0.3ms)[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.2ms)[0m [1mDELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ?[0m [["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36mCoalescingPanda::Enrollment Load (0.4ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[0m [1m[35m (0.4ms)[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 123' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.2ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' 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 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-03-07 15:56:18.523655"], ["updated_at", "2016-03-07 15:56:18.523655"]] [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.3ms)[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.2ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' 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 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-03-07 15:56:18.547914"], ["updated_at", "2016-03-07 15:56:18.547914"]] [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", "49"], ["created_at", "2016-03-07 15:56:18.560378"], ["updated_at", "2016-03-07 15:56:18.560378"]] [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_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-03-07 15:56:18.620292"], ["updated_at", "2016-03-07 15:56:18.620292"]] [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.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", "2016-03-07 15:56:18.640379"], ["updated_at", "2016-03-07 15:56:18.640379"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[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-03-07 15:56:18.651986"], ["id", 1]] [1m[35m (0.2ms)[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.2ms)[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", "2016-03-07 15:56:18.721714"], ["updated_at", "2016-03-07 15:56:18.721714"]] [1m[35m (0.2ms)[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"."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.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:18.741069"], ["updated_at", "2016-03-07 15:56:18.741069"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:18.804739"], ["updated_at", "2016-03-07 15:56:18.804739"]] [1m[36m (0.2ms)[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.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[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-03-07 15:56:18.819271"], ["updated_at", "2016-03-07 15:56:18.819271"]] [1m[36m (0.2ms)[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 (1, 2, 3)) [["coalescing_panda_course_id", 1]] [1m[36mCoalescingPanda::Section Load (0.3ms)[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.2ms)[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.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" = ? 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.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.2ms)[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.2ms)[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.3ms)[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.2ms)[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", "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.2ms)[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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.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" = ? LIMIT 1[0m [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] [1m[35mCoalescingPanda::User Load (0.3ms)[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.2ms)[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.1ms)[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[36mCoalescingPanda::CanvasBatch Load (0.3ms)[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.2ms)[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- :users\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:56:19.111610"], ["id", 1]] [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" WHERE "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.2ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]] [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [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 (2, 3))[0m [["coalescing_panda_course_id", 1]] [1m[35mCoalescingPanda::Enrollment Load (0.2ms)[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.1ms)[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[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-03-07 15:56:19.264557"], ["id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[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.3ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_users"[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "coalescing_panda_enrollments" [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ?[0m [["workflow_state", "deleted"]] [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]] [1m[36m (1.8ms)[0m [1mrollback transaction[0m [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 2ms (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 SAVEPOINT active_record_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", "2016-03-07 15:56:30.671777"], ["updated_at", "2016-03-07 15:56:30.671777"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:56:30.730885"], ["updated_at", "2016-03-07 15:56:30.730885"]] [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", "2016-03-07 16:56:30.750516"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:56:30.751682"], ["updated_at", "2016-03-07 15:56:30.751682"]] [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 25ms (Views: 7.1ms | 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.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.7ms | 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", "2016-03-07 15:56:30.783852"], ["updated_at", "2016-03-07 15:56:30.783852"]] [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.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", "2016-03-07 15:56:30.793885"], ["updated_at", "2016-03-07 15:56:30.793885"]] [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_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-03-07 15:56:30.797349"], ["updated_at", "2016-03-07 15:56:30.797349"]] [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", "2016-03-07 15:56:30.800730"], ["updated_at", "2016-03-07 15:56:30.800730"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (1.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 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-03-07 15:56:30.864183"], ["updated_at", "2016-03-07 15:56:30.864183"]] [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", "2016-03-07 15:56:30.867215"], ["updated_at", "2016-03-07 15:56:30.867215"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:30.869021"], ["updated_at", "2016-03-07 15:56:30.869021"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:56:30.870224"], ["updated_at", "2016-03-07 15:56:30.870224"]] [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", "2016-03-07 15:56:30.875529"], ["updated_at", "2016-03-07 15:56:30.875529"]] [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", "2016-03-07 15:56:30.878251"], ["updated_at", "2016-03-07 15:56:30.878251"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:30.880038"], ["updated_at", "2016-03-07 15:56:30.880038"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.881152"], ["updated_at", "2016-03-07 15:56:30.881152"]] [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.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-03-07 15:56:30.898278"], ["updated_at", "2016-03-07 15:56:30.898278"]] [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.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", "2016-03-07 15:56:30.902596"], ["updated_at", "2016-03-07 15:56:30.902596"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:30.904752"], ["updated_at", "2016-03-07 15:56:30.904752"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.906061"], ["updated_at", "2016-03-07 15:56:30.906061"]] [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 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", "2016-03-07 15:56:30.912639"], ["updated_at", "2016-03-07 15:56:30.912639"]] [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", "2016-03-07 15:56:30.915648"], ["updated_at", "2016-03-07 15:56:30.915648"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:30.917266"], ["updated_at", "2016-03-07 15:56:30.917266"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.918368"], ["updated_at", "2016-03-07 15:56:30.918368"]] [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-03-07 15:56:30.922969"], ["updated_at", "2016-03-07 15:56:30.922969"]] [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-03-07 15:56:30.926093"], ["updated_at", "2016-03-07 15:56:30.926093"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:30.927848"], ["updated_at", "2016-03-07 15:56:30.927848"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.928976"], ["updated_at", "2016-03-07 15:56:30.928976"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:30.930581"], ["updated_at", "2016-03-07 15:56:30.930581"]] [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", "2016-03-07 15:56:30.933520"], ["updated_at", "2016-03-07 15:56:30.933520"]] 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", "2016-03-07 15:56:30.938788"], ["updated_at", "2016-03-07 15:56:30.938788"]] [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.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 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-03-07 15:56:30.942054"], ["updated_at", "2016-03-07 15:56:30.942054"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:30.943713"], ["updated_at", "2016-03-07 15:56:30.943713"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.944882"], ["updated_at", "2016-03-07 15:56:30.944882"]] [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.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", "2016-03-07 15:56:30.951706"], ["updated_at", "2016-03-07 15:56:30.951706"]] [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.1ms)[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-03-08 15:56:30.964324"], ["created_at", "2016-03-07 15:56:30.965448"], ["updated_at", "2016-03-07 15:56:30.965448"]] [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[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:56:30.974195"], ["updated_at", "2016-03-07 15:56:30.974195"]] [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", "2016-03-07 15:56:30.975702"], ["updated_at", "2016-03-07 15:56:30.975702"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.976809"], ["updated_at", "2016-03-07 15:56:30.976809"]] [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.1ms)[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.2ms)[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.1ms)[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", "2016-03-07 15:56:30.988172"], ["updated_at", "2016-03-07 15:56:30.988172"]] [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-03-07 15:56:30.992429"], ["updated_at", "2016-03-07 15:56:30.992429"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:30.994531"], ["updated_at", "2016-03-07 15:56:30.994531"]] [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 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.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", "2016-03-07 15:56:31.002782"], ["updated_at", "2016-03-07 15:56:31.002782"]] [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.1ms)[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", "2016-03-07 15:56:31.008469"], ["updated_at", "2016-03-07 15:56:31.008469"]] [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", "9"], ["created_at", "2016-03-07 15:56:31.010993"], ["updated_at", "2016-03-07 15:56:31.010993"]] [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 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.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", "2016-03-07 15:56:31.016910"], ["updated_at", "2016-03-07 15:56:31.016910"]] [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", "2016-03-07 15:56:31.021520"], ["updated_at", "2016-03-07 15:56:31.021520"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.023699"], ["updated_at", "2016-03-07 15:56:31.023699"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.025048"], ["updated_at", "2016-03-07 15:56:31.025048"]] [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", "2016-03-07 15:56:31.028882"], ["updated_at", "2016-03-07 15:56:31.028882"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.030889"], ["updated_at", "2016-03-07 15:56:31.030889"]] [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-03-07 15:56:31.032052"], ["updated_at", "2016-03-07 15:56:31.032052"]] 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", "2016-03-07 15:56:31.036411"], ["updated_at", "2016-03-07 15:56:31.036411"]] [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_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-03-07 15:56:31.038057"], ["updated_at", "2016-03-07 15:56:31.038057"]] [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", "2016-03-07 15:56:31.040878"], ["updated_at", "2016-03-07 15:56:31.040878"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.042739"], ["updated_at", "2016-03-07 15:56:31.042739"]] [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.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-03-07 15:56:31.046858"], ["updated_at", "2016-03-07 15:56:31.046858"]] [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", "2016-03-07 15:56:31.049134"], ["updated_at", "2016-03-07 15:56:31.049134"]] 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 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-03-07 15:56:31.053925"], ["updated_at", "2016-03-07 15:56:31.053925"]] [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", "2016-03-07 15:56:31.056855"], ["updated_at", "2016-03-07 15:56:31.056855"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.058557"], ["updated_at", "2016-03-07 15:56:31.058557"]] [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.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-03-07 15:56:31.129244"], ["updated_at", "2016-03-07 15:56:31.129244"]] [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", "2016-03-07 15:56:31.131490"], ["updated_at", "2016-03-07 15:56:31.131490"]] [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", "2016-03-07 15:56:31.140356"], ["updated_at", "2016-03-07 15:56:31.140356"]] [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 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-03-07 15:56:31.145416"], ["updated_at", "2016-03-07 15:56:31.145416"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.147558"], ["updated_at", "2016-03-07 15:56:31.147558"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.149118"], ["updated_at", "2016-03-07 15:56:31.149118"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.151546"], ["updated_at", "2016-03-07 15:56:31.151546"]] [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", "2016-03-07 15:56:31.158574"], ["updated_at", "2016-03-07 15:56:31.158574"]] [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", "2016-03-07 15:56:31.160622"], ["updated_at", "2016-03-07 15:56:31.160622"]] [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-03-07 15:56:31.163052"], ["updated_at", "2016-03-07 15:56:31.163052"]] [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", "2016-03-07 15:56:31.165568"], ["updated_at", "2016-03-07 15:56:31.165568"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.167064"], ["updated_at", "2016-03-07 15:56:31.167064"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.168173"], ["updated_at", "2016-03-07 15:56:31.168173"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.169370"], ["updated_at", "2016-03-07 15:56:31.169370"]] [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 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", "2016-03-07 15:56:31.175583"], ["updated_at", "2016-03-07 15:56:31.175583"]] [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", "2016-03-07 15:56:31.177898"], ["updated_at", "2016-03-07 15:56:31.177898"]] [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", "2016-03-07 15:56:31.180420"], ["updated_at", "2016-03-07 15:56:31.180420"]] [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-03-07 15:56:31.183163"], ["updated_at", "2016-03-07 15:56:31.183163"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.184587"], ["updated_at", "2016-03-07 15:56:31.184587"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.185646"], ["updated_at", "2016-03-07 15:56:31.185646"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.186789"], ["updated_at", "2016-03-07 15:56:31.186789"]] [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", "2016-03-07 15:56:31.192314"], ["updated_at", "2016-03-07 15:56:31.192314"]] [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", "2016-03-07 15:56:31.194425"], ["updated_at", "2016-03-07 15:56:31.194425"]] [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", "2016-03-07 15:56:31.197628"], ["updated_at", "2016-03-07 15:56:31.197628"]] [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-03-07 15:56:31.200494"], ["updated_at", "2016-03-07 15:56:31.200494"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.201919"], ["updated_at", "2016-03-07 15:56:31.201919"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.203000"], ["updated_at", "2016-03-07 15:56:31.203000"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.204112"], ["updated_at", "2016-03-07 15:56:31.204112"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:56:31.205750"], ["updated_at", "2016-03-07 15:56:31.205750"]] [1m[36m (0.0ms)[0m [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", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:56:31.207613"], ["updated_at", "2016-03-07 15:56:31.207613"]] 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.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 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-03-07 15:56:31.212870"], ["updated_at", "2016-03-07 15:56:31.212870"]] [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", "2016-03-07 15:56:31.214851"], ["updated_at", "2016-03-07 15:56:31.214851"]] [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", "2016-03-07 15:56:31.217723"], ["updated_at", "2016-03-07 15:56:31.217723"]] [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", "2016-03-07 15:56:31.220738"], ["updated_at", "2016-03-07 15:56:31.220738"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.222224"], ["updated_at", "2016-03-07 15:56:31.222224"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.223325"], ["updated_at", "2016-03-07 15:56:31.223325"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.224435"], ["updated_at", "2016-03-07 15:56:31.224435"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.225995"], ["updated_at", "2016-03-07 15:56:31.225995"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.227877"], ["updated_at", "2016-03-07 15:56:31.227877"]] [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.0ms)[0m SAVEPOINT active_record_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-03-07 15:56:31.233008"], ["updated_at", "2016-03-07 15:56:31.233008"]] [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", "2016-03-07 15:56:31.235489"], ["updated_at", "2016-03-07 15:56:31.235489"]] [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-03-07 15:56:31.238325"], ["updated_at", "2016-03-07 15:56:31.238325"]] [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-03-07 15:56:31.241515"], ["updated_at", "2016-03-07 15:56:31.241515"]] [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", "19"], ["created_at", "2016-03-07 15:56:31.244143"], ["updated_at", "2016-03-07 15:56:31.244143"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.245706"], ["updated_at", "2016-03-07 15:56:31.245706"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.247329"], ["updated_at", "2016-03-07 15:56:31.247329"]] [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 [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[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.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-03-07 15:56:31.261055"], ["updated_at", "2016-03-07 15:56:31.261055"]] [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 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", "2016-03-07 15:56:31.264897"], ["updated_at", "2016-03-07 15:56:31.264897"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.266681"], ["updated_at", "2016-03-07 15:56:31.266681"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.267818"], ["updated_at", "2016-03-07 15:56:31.267818"]] [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 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-03-07 15:56:31.274509"], ["updated_at", "2016-03-07 15:56:31.274509"]] [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", "2016-03-07 15:56:31.278506"], ["updated_at", "2016-03-07 15:56:31.278506"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.280433"], ["updated_at", "2016-03-07 15:56:31.280433"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.281639"], ["updated_at", "2016-03-07 15:56:31.281639"]] [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", "2016-03-07 15:56:31.286331"], ["updated_at", "2016-03-07 15:56:31.286331"]] [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 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.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 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-03-07 15:56:31.289628"], ["updated_at", "2016-03-07 15:56:31.289628"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.291330"], ["updated_at", "2016-03-07 15:56:31.291330"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.292411"], ["updated_at", "2016-03-07 15:56:31.292411"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.293877"], ["updated_at", "2016-03-07 15:56:31.293877"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:31.295320"], ["updated_at", "2016-03-07 15:56:31.295320"]] 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", "2016-03-07 15:56:31.300261"], ["updated_at", "2016-03-07 15:56:31.300261"]] [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.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 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-03-07 15:56:31.303225"], ["updated_at", "2016-03-07 15:56:31.303225"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.304926"], ["updated_at", "2016-03-07 15:56:31.304926"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.306125"], ["updated_at", "2016-03-07 15:56:31.306125"]] [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.1ms)[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-03-07 15:56:31.319683"], ["updated_at", "2016-03-07 15:56:31.319683"]] [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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:56:31.322155"], ["updated_at", "2016-03-07 15:56:31.322155"]] [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", "2016-03-07 15:56:31.325484"], ["updated_at", "2016-03-07 15:56:31.325484"]] [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", "2016-03-07 15:56:31.328258"], ["updated_at", "2016-03-07 15:56:31.328258"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.329721"], ["updated_at", "2016-03-07 15:56:31.329721"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:31.330876"], ["updated_at", "2016-03-07 15:56:31.330876"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.332117"], ["updated_at", "2016-03-07 15:56:31.332117"]] [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 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-03-07 15:56:31.338710"], ["updated_at", "2016-03-07 15:56:31.338710"]] [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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:56:31.340941"], ["updated_at", "2016-03-07 15:56:31.340941"]] [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 (54.1ms)[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-03-07 15:56:31.400335"], ["updated_at", "2016-03-07 15:56:31.400335"]] [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.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-03-07 15:56:31.404248"], ["updated_at", "2016-03-07 15:56:31.404248"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.405702"], ["updated_at", "2016-03-07 15:56:31.405702"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.406934"], ["updated_at", "2016-03-07 15:56:31.406934"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.408088"], ["updated_at", "2016-03-07 15:56:31.408088"]] [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 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-03-07 15:56:31.414000"], ["updated_at", "2016-03-07 15:56:31.414000"]] [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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-07 15:56:31.416042"], ["updated_at", "2016-03-07 15:56:31.416042"]] [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", "2016-03-07 15:56:31.418543"], ["updated_at", "2016-03-07 15:56:31.418543"]] [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.1ms)[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-03-07 15:56:31.421420"], ["updated_at", "2016-03-07 15:56:31.421420"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.422939"], ["updated_at", "2016-03-07 15:56:31.422939"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.424023"], ["updated_at", "2016-03-07 15:56:31.424023"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.425608"], ["updated_at", "2016-03-07 15:56:31.425608"]] [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_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-03-07 15:56:31.431747"], ["updated_at", "2016-03-07 15:56:31.431747"]] [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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-07 15:56:31.433912"], ["updated_at", "2016-03-07 15:56:31.433912"]] [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-03-07 15:56:31.436549"], ["updated_at", "2016-03-07 15:56:31.436549"]] [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 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-03-07 15:56:31.439630"], ["updated_at", "2016-03-07 15:56:31.439630"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.441104"], ["updated_at", "2016-03-07 15:56:31.441104"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.442164"], ["updated_at", "2016-03-07 15:56:31.442164"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.443215"], ["updated_at", "2016-03-07 15:56:31.443215"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:56:31.444768"], ["updated_at", "2016-03-07 15:56:31.444768"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.446465"], ["updated_at", "2016-03-07 15:56:31.446465"]] 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.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.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", "2016-03-07 15:56:31.452939"], ["updated_at", "2016-03-07 15:56:31.452939"]] [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-03-07 15:56:31.455441"], ["updated_at", "2016-03-07 15:56:31.455441"]] [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.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", "2016-03-07 15:56:31.458570"], ["updated_at", "2016-03-07 15:56:31.458570"]] [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.0ms)[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-03-07 15:56:31.462310"], ["updated_at", "2016-03-07 15:56:31.462310"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.464240"], ["updated_at", "2016-03-07 15:56:31.464240"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.465665"], ["updated_at", "2016-03-07 15:56:31.465665"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.467012"], ["updated_at", "2016-03-07 15:56:31.467012"]] [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_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-03-07 15:56:31.468828"], ["updated_at", "2016-03-07 15:56:31.468828"]] [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", "2016-03-07 15:56:31.471199"], ["updated_at", "2016-03-07 15:56:31.471199"]] [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 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", "2016-03-07 15:56:31.476999"], ["updated_at", "2016-03-07 15:56:31.476999"]] [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", "2016-03-07 15:56:31.478995"], ["updated_at", "2016-03-07 15:56:31.478995"]] [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-03-07 15:56:31.481620"], ["updated_at", "2016-03-07 15:56:31.481620"]] [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.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", "2016-03-07 15:56:31.485127"], ["updated_at", "2016-03-07 15:56:31.485127"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.486769"], ["updated_at", "2016-03-07 15:56:31.486769"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.487915"], ["updated_at", "2016-03-07 15:56:31.487915"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.489080"], ["updated_at", "2016-03-07 15:56:31.489080"]] [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", "2016-03-07 15:56:31.495677"], ["updated_at", "2016-03-07 15:56:31.495677"]] [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", "2016-03-07 15:56:31.501210"], ["updated_at", "2016-03-07 15:56:31.501210"]] [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", "1"], ["created_at", "2016-03-07 15:56:31.503416"], ["updated_at", "2016-03-07 15:56:31.503416"]] [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-03-07 15:56:31.505237"], ["updated_at", "2016-03-07 15:56:31.505237"]] 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.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 [1mSAVEPOINT active_record_1[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", "2016-03-07 15:56:31.512080"], ["updated_at", "2016-03-07 15:56:31.512080"]] [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", "2016-03-07 15:56:31.518345"], ["updated_at", "2016-03-07 15:56:31.518345"]] [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-03-07 15:56:31.523130"], ["updated_at", "2016-03-07 15:56:31.523130"]] [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-03-07 15:56:31.525463"], ["updated_at", "2016-03-07 15:56:31.525463"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:56:31.527829"], ["updated_at", "2016-03-07 15:56:31.527829"]] 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-03-07 15:56:31.532350"], ["updated_at", "2016-03-07 15:56:31.532350"]] [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 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-03-07 15:56:31.539754"], ["updated_at", "2016-03-07 15:56:31.539754"]] [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.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", "2016-03-07 15:56:31.550623"], ["updated_at", "2016-03-07 15:56:31.550623"]] [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- :users\n"], ["updated_at", "2016-03-07 15:56:31.552588"], ["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", "2016-03-07 15:56:31.558778"], ["updated_at", "2016-03-07 15:56:31.558778"]] [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", "2016-03-07 15:56:31.561928"], ["updated_at", "2016-03-07 15:56:31.561928"]] [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-03-07 15:56:31.563318"], ["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.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 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-03-07 15:56:31.568658"], ["updated_at", "2016-03-07 15:56:31.568658"]] [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", "2016-03-07 15:56:31.572329"], ["updated_at", "2016-03-07 15:56:31.572329"]] [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-03-07 15:56:31.573818"], ["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", "2016-03-07 15:56:31.586371"], ["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", "2016-03-07 15:56:31.590706"], ["updated_at", "2016-03-07 15:56:31.590706"]] [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-03-07 15:56:31.592502"], ["updated_at", "2016-03-07 15:56:31.592502"]] [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", "2016-03-07 15:56:31.593984"], ["updated_at", "2016-03-07 15:56:31.593984"]] [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" 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-03-07 15:56:31.648368"], ["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-03-07 15:56:31.649561"], ["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", "2016-03-07 15:56:31.654913"], ["updated_at", "2016-03-07 15:56:31.654913"]] [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", "2016-03-07 15:56:31.658419"], ["updated_at", "2016-03-07 15:56:31.658419"]] [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-03-07 15:56:31.659816"], ["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-03-07 15:56:31.663501"], ["updated_at", "2016-03-07 15:56:31.663501"]] [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", "2016-03-07 15:56:31.665712"], ["updated_at", "2016-03-07 15:56:31.665712"]] [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", "2016-03-07 15:56:31.671967"], ["updated_at", "2016-03-07 15:56:31.671967"]] [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", "2016-03-07 15:56:31.675295"], ["updated_at", "2016-03-07 15:56:31.675295"]] [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-03-07 15:56:31.676644"], ["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", "2016-03-07 15:56:31.678573"], ["updated_at", "2016-03-07 15:56:31.678573"]] [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-03-07 15:56:31.680292"], ["updated_at", "2016-03-07 15:56:31.680292"]] [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", "2016-03-07 15:56:31.681846"], ["updated_at", "2016-03-07 15:56:31.681846"]] [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.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 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", "2016-03-07 15:56:31.688843"], ["updated_at", "2016-03-07 15:56:31.688843"]] [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-03-07 15:56:31.693018"], ["updated_at", "2016-03-07 15:56:31.693018"]] [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- :users\n"], ["updated_at", "2016-03-07 15:56:31.694877"], ["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", "2016-03-07 15:56:31.700663"], ["updated_at", "2016-03-07 15:56:31.700663"]] [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", "2016-03-07 15:56:31.703897"], ["updated_at", "2016-03-07 15:56:31.703897"]] [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-03-07 15:56:31.705294"], ["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.1ms)[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.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-03-07 15:56:31.712738"], ["updated_at", "2016-03-07 15:56:31.712738"]] [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", "2016-03-07 15:56:31.717175"], ["updated_at", "2016-03-07 15:56:31.717175"]] [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-03-07 15:56:31.718902"], ["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", "2016-03-07 15:56:31.721749"], ["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-03-07 15:56:31.730185"], ["updated_at", "2016-03-07 15:56:31.730185"]] [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", "2016-03-07 15:56:31.733231"], ["updated_at", "2016-03-07 15:56:31.733231"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.735265"], ["updated_at", "2016-03-07 15:56:31.735265"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.736750"], ["updated_at", "2016-03-07 15:56:31.736750"]] [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", "2016-03-07 15:56:31.740161"], ["updated_at", "2016-03-07 15:56:31.740161"]] [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-03-07 15:56:31.741885"], ["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.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", "2016-03-07 15:56:31.750643"], ["updated_at", "2016-03-07 15:56:31.750643"]] [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", "2016-03-07 15:56:31.753694"], ["updated_at", "2016-03-07 15:56:31.753694"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.755514"], ["updated_at", "2016-03-07 15:56:31.755514"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.756650"], ["updated_at", "2016-03-07 15:56:31.756650"]] [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-03-07 15:56:31.759099"], ["updated_at", "2016-03-07 15:56:31.759099"]] [1m[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-03-07 15:56:31.760523"], ["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", "2016-03-07 15:56:31.767639"], ["updated_at", "2016-03-07 15:56:31.767639"]] [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", "2016-03-07 15:56:31.770571"], ["updated_at", "2016-03-07 15:56:31.770571"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.772263"], ["updated_at", "2016-03-07 15:56:31.772263"]] [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", "28"], ["created_at", "2016-03-07 15:56:31.774028"], ["updated_at", "2016-03-07 15:56:31.774028"]] [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-03-07 15:56:31.778143"], ["updated_at", "2016-03-07 15:56:31.778143"]] [1m[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", "2016-03-07 15:56:31.779686"], ["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 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-03-07 15:56:31.788241"], ["updated_at", "2016-03-07 15:56:31.788241"]] [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-03-07 15:56:31.791683"], ["updated_at", "2016-03-07 15:56:31.791683"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.793629"], ["updated_at", "2016-03-07 15:56:31.793629"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.794837"], ["updated_at", "2016-03-07 15:56:31.794837"]] [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-03-07 15:56:31.797489"], ["updated_at", "2016-03-07 15:56:31.797489"]] [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-03-07 15:56:31.798886"], ["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 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-03-07 15:56:31.806410"], ["updated_at", "2016-03-07 15:56:31.806410"]] [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", "2016-03-07 15:56:31.809647"], ["updated_at", "2016-03-07 15:56:31.809647"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.811374"], ["updated_at", "2016-03-07 15:56:31.811374"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.812507"], ["updated_at", "2016-03-07 15:56:31.812507"]] [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-03-07 15:56:31.814906"], ["updated_at", "2016-03-07 15:56:31.814906"]] [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-03-07 15:56:31.816233"], ["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", "2016-03-07 15:56:31.823247"], ["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-03-07 15:56:31.827399"], ["updated_at", "2016-03-07 15:56:31.827399"]] [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", "2016-03-07 15:56:31.830064"], ["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", "2016-03-07 15:56:31.833331"], ["updated_at", "2016-03-07 15:56:31.833331"]] [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-03-07 15:56:31.835122"], ["updated_at", "2016-03-07 15:56:31.835122"]] [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", "2016-03-07 15:56:31.836686"], ["updated_at", "2016-03-07 15:56:31.836686"]] [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[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", "2016-03-07 15:56:31.844137"], ["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 (54.5ms)[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-03-07 15:56:31.914824"], ["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", "2016-03-07 15:56:31.918308"], ["updated_at", "2016-03-07 15:56:31.918308"]] [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", "2016-03-07 15:56:31.920161"], ["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", "2016-03-07 15:56:31.936948"], ["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.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-03-07 15:56:31.939898"], ["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", "2016-03-07 15:56:31.953468"], ["updated_at", "2016-03-07 15:56:31.953468"]] [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.1ms)[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-03-07 15:56:31.955978"], ["updated_at", "2016-03-07 15:56:31.955978"]] [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", "2016-03-07 15:56:31.957607"], ["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", "2016-03-07 15:56:31.968837"], ["updated_at", "2016-03-07 15:56:31.968837"]] [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", "2016-03-07 15:56:31.971853"], ["updated_at", "2016-03-07 15:56:31.971853"]] [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.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" = ? 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.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"."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-03-07 15:56:31.977494"], ["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-03-07 15:56:31.978675"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[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.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.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-03-07 15:56:31.987633"], ["updated_at", "2016-03-07 15:56:31.987633"]] [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.1ms)[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", "2016-03-07 15:56:31.990844"], ["updated_at", "2016-03-07 15:56:31.990844"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:31.992621"], ["updated_at", "2016-03-07 15:56:31.992621"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:31.993838"], ["updated_at", "2016-03-07 15:56:31.993838"]] [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-03-07 15:56:31.997406"], ["updated_at", "2016-03-07 15:56:31.997406"]] [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-03-07 15:56:31.999197"], ["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-03-07 15:56:32.001835"], ["updated_at", "2016-03-07 15:56:32.001835"]] [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.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_sections" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.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 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-03-07 15:56:32.011008"], ["updated_at", "2016-03-07 15:56:32.011008"]] [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.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.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 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-03-07 15:56:32.014421"], ["updated_at", "2016-03-07 15:56:32.014421"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:56:32.016576"], ["updated_at", "2016-03-07 15:56:32.016576"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-07 15:56:32.018009"], ["updated_at", "2016-03-07 15:56:32.018009"]] [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-03-07 15:56:32.020767"], ["updated_at", "2016-03-07 15:56:32.020767"]] [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-03-07 15:56:32.022341"], ["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", "2016-03-07 15:56:32.024674"], ["updated_at", "2016-03-07 15:56:32.024674"]] [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-03-07 15:56:32.026498"], ["updated_at", "2016-03-07 15:56:32.026498"]] [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-03-07 15:56:32.028417"], ["updated_at", "2016-03-07 15:56:32.028417"]] [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.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 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.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 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-03-07 15:56:32.037159"], ["updated_at", "2016-03-07 15:56:32.037159"]] [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.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", "2016-03-07 15:56:32.040760"], ["updated_at", "2016-03-07 15:56:32.040760"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.042609"], ["updated_at", "2016-03-07 15:56:32.042609"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.043952"], ["updated_at", "2016-03-07 15:56:32.043952"]] [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-03-07 15:56:32.046529"], ["updated_at", "2016-03-07 15:56:32.046529"]] [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-03-07 15:56:32.047827"], ["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-03-07 15:56:32.051141"], ["updated_at", "2016-03-07 15:56:32.051141"]] [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-03-07 15:56:32.054185"], ["updated_at", "2016-03-07 15:56:32.054185"]] [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-03-07 15:56:32.056115"], ["updated_at", "2016-03-07 15:56:32.056115"]] [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-03-07 15:56:32.057822"], ["updated_at", "2016-03-07 15:56:32.057822"]] [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[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 (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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-03-07 15:56:32.077580"], ["updated_at", "2016-03-07 15:56:32.077580"]] [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 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", "2016-03-07 15:56:32.080481"], ["updated_at", "2016-03-07 15:56:32.080481"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.082081"], ["updated_at", "2016-03-07 15:56:32.082081"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (58.2ms)[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-03-07 15:56:32.141888"], ["updated_at", "2016-03-07 15:56:32.141888"]] [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-03-07 15:56:32.145041"], ["updated_at", "2016-03-07 15:56:32.145041"]] [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-03-07 15:56:32.146489"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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-03-07 15:56:32.152689"], ["updated_at", "2016-03-07 15:56:32.152689"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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.1ms)[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-03-07 15:56:32.160372"], ["updated_at", "2016-03-07 15:56:32.160372"]] [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.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", "2016-03-07 15:56:32.163519"], ["updated_at", "2016-03-07 15:56:32.163519"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.165339"], ["updated_at", "2016-03-07 15:56:32.165339"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.166453"], ["updated_at", "2016-03-07 15:56:32.166453"]] [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-03-07 15:56:32.168946"], ["updated_at", "2016-03-07 15:56:32.168946"]] [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-03-07 15:56:32.170231"], ["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-03-07 15:56:32.172398"], ["updated_at", "2016-03-07 15:56:32.172398"]] [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.1ms)[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.0ms)[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.9ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[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.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 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-03-07 15:56:32.190072"], ["updated_at", "2016-03-07 15:56:32.190072"]] [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.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 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-03-07 15:56:32.193495"], ["updated_at", "2016-03-07 15:56:32.193495"]] [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", "41"], ["created_at", "2016-03-07 15:56:32.195841"], ["updated_at", "2016-03-07 15:56:32.195841"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.197973"], ["updated_at", "2016-03-07 15:56:32.197973"]] [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-03-07 15:56:32.201476"], ["updated_at", "2016-03-07 15:56:32.201476"]] [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-03-07 15:56:32.203391"], ["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-03-07 15:56:32.205833"], ["updated_at", "2016-03-07 15:56:32.205833"]] [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.7ms)[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.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 109' 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 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-03-07 15:56:32.214358"], ["updated_at", "2016-03-07 15:56:32.214358"]] [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 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", "2016-03-07 15:56:32.217780"], ["updated_at", "2016-03-07 15:56:32.217780"]] [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", "42"], ["created_at", "2016-03-07 15:56:32.219669"], ["updated_at", "2016-03-07 15:56:32.219669"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-07 15:56:32.220800"], ["updated_at", "2016-03-07 15:56:32.220800"]] [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-03-07 15:56:32.223270"], ["updated_at", "2016-03-07 15:56:32.223270"]] [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-03-07 15:56:32.224596"], ["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.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-03-07 15:56:32.226950"], ["updated_at", "2016-03-07 15:56:32.226950"]] [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"."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-03-07 15:56:32.229502"], ["updated_at", "2016-03-07 15:56:32.229502"]] [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-03-07 15:56:32.231121"], ["updated_at", "2016-03-07 15:56:32.231121"]] [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", "2016-03-07 15:56:32.232597"], ["updated_at", "2016-03-07 15:56:32.232597"]] [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::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.1ms)[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", "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.2ms)[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-03-07 15:56:32.261109"], ["updated_at", "2016-03-07 15:56:32.261109"]] [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.0ms)[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-03-07 15:56:32.264190"], ["updated_at", "2016-03-07 15:56:32.264190"]] [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.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.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.0ms)[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-03-07 15:56:32.266852"], ["updated_at", "2016-03-07 15:56:32.266852"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-07 15:56:32.269509"], ["updated_at", "2016-03-07 15:56:32.269509"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.2ms)[0m rollback transaction [1m[36m (0.1ms)[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.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.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-03-07 15:56:32.277843"], ["updated_at", "2016-03-07 15:56:32.277843"]] [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.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", "2016-03-07 15:56:32.281191"], ["updated_at", "2016-03-07 15:56:32.281191"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.283098"], ["updated_at", "2016-03-07 15:56:32.283098"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.284381"], ["updated_at", "2016-03-07 15:56:32.284381"]] [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-03-07 15:56:32.286868"], ["updated_at", "2016-03-07 15:56:32.286868"]] [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-03-07 15:56:32.288166"], ["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-03-07 15:56:32.290272"], ["updated_at", "2016-03-07 15:56:32.290272"]] [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-03-07 15:56:32.293580"], ["updated_at", "2016-03-07 15:56:32.293580"]] [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-03-07 15:56:32.295872"], ["updated_at", "2016-03-07 15:56:32.295872"]] [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.8ms)[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.1ms)[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.0ms)[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-03-07 15:56:32.303807"], ["updated_at", "2016-03-07 15:56:32.303807"]] [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 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", "2016-03-07 15:56:32.306867"], ["updated_at", "2016-03-07 15:56:32.306867"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.308992"], ["updated_at", "2016-03-07 15:56:32.308992"]] [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_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-03-07 15:56:32.310998"], ["updated_at", "2016-03-07 15:56:32.310998"]] [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-03-07 15:56:32.314949"], ["updated_at", "2016-03-07 15:56:32.314949"]] [1m[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-03-07 15:56:32.316961"], ["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-03-07 15:56:32.319753"], ["updated_at", "2016-03-07 15:56:32.319753"]] [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-03-07 15:56:32.322225"], ["updated_at", "2016-03-07 15:56:32.322225"]] [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-03-07 15:56:32.323834"], ["updated_at", "2016-03-07 15:56:32.323834"]] [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", "2016-03-07 15:56:32.325376"], ["updated_at", "2016-03-07 15:56:32.325376"]] [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.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.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.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::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-03-07 15:56:32.398462"], ["updated_at", "2016-03-07 15:56:32.398462"]] [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.0ms)[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-03-07 15:56:32.400798"], ["updated_at", "2016-03-07 15:56:32.400798"]] [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" = ? 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 (1.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::GroupMembership Load (0.2ms)[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-03-07 15:56:32.413365"], ["updated_at", "2016-03-07 15:56:32.413365"]] [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.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", "2016-03-07 15:56:32.417069"], ["updated_at", "2016-03-07 15:56:32.417069"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.418991"], ["updated_at", "2016-03-07 15:56:32.418991"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.420177"], ["updated_at", "2016-03-07 15:56:32.420177"]] [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-03-07 15:56:32.422619"], ["updated_at", "2016-03-07 15:56:32.422619"]] [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-03-07 15:56:32.424110"], ["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-03-07 15:56:32.427751"], ["updated_at", "2016-03-07 15:56:32.427751"]] [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-03-07 15:56:32.430329"], ["updated_at", "2016-03-07 15:56:32.430329"]] [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"."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.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", "2016-03-07 15:56:32.437953"], ["updated_at", "2016-03-07 15:56:32.437953"]] [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 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.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", "2016-03-07 15:56:32.440954"], ["updated_at", "2016-03-07 15:56:32.440954"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.442971"], ["updated_at", "2016-03-07 15:56:32.442971"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:56:32.444217"], ["updated_at", "2016-03-07 15:56:32.444217"]] [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-03-07 15:56:32.447702"], ["updated_at", "2016-03-07 15:56:32.447702"]] [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-03-07 15:56:32.450114"], ["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-03-07 15:56:32.453037"], ["updated_at", "2016-03-07 15:56:32.453037"]] [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-03-07 15:56:32.455709"], ["updated_at", "2016-03-07 15:56:32.455709"]] [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-03-07 15:56:32.457437"], ["updated_at", "2016-03-07 15:56:32.457437"]] [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", "2016-03-07 15:56:32.459091"], ["updated_at", "2016-03-07 15:56:32.459091"]] [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-03-07 15:56:32.474091"], ["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.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.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", "2016-03-07 15:56:32.491808"], ["updated_at", "2016-03-07 15:56:32.491808"]] [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.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", "2016-03-07 15:56:32.495330"], ["updated_at", "2016-03-07 15:56:32.495330"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.497236"], ["updated_at", "2016-03-07 15:56:32.497236"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.498413"], ["updated_at", "2016-03-07 15:56:32.498413"]] [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-03-07 15:56:32.500963"], ["updated_at", "2016-03-07 15:56:32.500963"]] [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-03-07 15:56:32.502343"], ["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-03-07 15:56:32.504574"], ["updated_at", "2016-03-07 15:56:32.504574"]] [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-03-07 15:56:32.507088"], ["updated_at", "2016-03-07 15:56:32.507088"]] [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-03-07 15:56:32.509392"], ["updated_at", "2016-03-07 15:56:32.509392"]] [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-03-07 15:56:32.511686"], ["updated_at", "2016-03-07 15:56:32.511686"]] [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.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", "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", "2016-03-07 15:56:32.530738"], ["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.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 121' 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 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-03-07 15:56:32.548302"], ["updated_at", "2016-03-07 15:56:32.548302"]] [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-03-07 15:56:32.551878"], ["updated_at", "2016-03-07 15:56:32.551878"]] [1m[35m (0.0ms)[0m 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", "2016-03-07 15:56:32.554178"], ["updated_at", "2016-03-07 15:56:32.554178"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.555762"], ["updated_at", "2016-03-07 15:56:32.555762"]] [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-03-07 15:56:32.558921"], ["updated_at", "2016-03-07 15:56:32.558921"]] [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-03-07 15:56:32.560595"], ["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-03-07 15:56:32.563253"], ["updated_at", "2016-03-07 15:56:32.563253"]] [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-03-07 15:56:32.565866"], ["updated_at", "2016-03-07 15:56:32.565866"]] [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-03-07 15:56:32.567968"], ["updated_at", "2016-03-07 15:56:32.567968"]] [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-03-07 15:56:32.570107"], ["updated_at", "2016-03-07 15:56:32.570107"]] [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.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-03-07 15:56:32.585658"], ["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.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.5ms)[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.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-03-07 15:56:32.662711"], ["updated_at", "2016-03-07 15:56:32.662711"]] [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", "2016-03-07 15:56:32.666029"], ["updated_at", "2016-03-07 15:56:32.666029"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:32.668196"], ["updated_at", "2016-03-07 15:56:32.668196"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.669315"], ["updated_at", "2016-03-07 15:56:32.669315"]] [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", "2016-03-07 15:56:32.672869"], ["updated_at", "2016-03-07 15:56:32.672869"]] [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-03-07 15:56:32.675361"], ["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-03-07 15:56:32.678445"], ["updated_at", "2016-03-07 15:56:32.678445"]] [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-03-07 15:56:32.681213"], ["updated_at", "2016-03-07 15:56:32.681213"]] [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-03-07 15:56:32.683019"], ["updated_at", "2016-03-07 15:56:32.683019"]] [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", "2016-03-07 15:56:32.684681"], ["updated_at", "2016-03-07 15:56:32.684681"]] [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", "2016-03-07 15:56:32.699800"], ["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-03-07 15:56:32.705238"], ["id", 1]] [1m[36m (0.1ms)[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.3ms)[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.2ms)[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.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", "2016-03-07 15:56:32.716001"], ["updated_at", "2016-03-07 15:56:32.716001"]] [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", "2016-03-07 15:56:32.719952"], ["updated_at", "2016-03-07 15:56:32.719952"]] [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", "50"], ["created_at", "2016-03-07 15:56:32.722242"], ["updated_at", "2016-03-07 15:56:32.722242"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.723860"], ["updated_at", "2016-03-07 15:56:32.723860"]] [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-03-07 15:56:32.727092"], ["updated_at", "2016-03-07 15:56:32.727092"]] [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-03-07 15:56:32.728754"], ["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 127' 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 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-03-07 15:56:32.736158"], ["updated_at", "2016-03-07 15:56:32.736158"]] [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", "2016-03-07 15:56:32.739714"], ["updated_at", "2016-03-07 15:56:32.739714"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.741371"], ["updated_at", "2016-03-07 15:56:32.741371"]] [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", "46"], ["created_at", "2016-03-07 15:56:32.742769"], ["updated_at", "2016-03-07 15:56:32.742769"]] [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-03-07 15:56:32.745539"], ["updated_at", "2016-03-07 15:56:32.745539"]] [1m[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-03-07 15:56:32.747478"], ["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 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-03-07 15:56:32.757046"], ["updated_at", "2016-03-07 15:56:32.757046"]] [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", "2016-03-07 15:56:32.760735"], ["updated_at", "2016-03-07 15:56:32.760735"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.762709"], ["updated_at", "2016-03-07 15:56:32.762709"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:32.763922"], ["updated_at", "2016-03-07 15:56:32.763922"]] [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-03-07 15:56:32.766444"], ["updated_at", "2016-03-07 15:56:32.766444"]] [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-03-07 15:56:32.767804"], ["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 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", "2016-03-07 15:56:32.775709"], ["updated_at", "2016-03-07 15:56:32.775709"]] [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", "2016-03-07 15:56:32.778824"], ["updated_at", "2016-03-07 15:56:32.778824"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:32.780518"], ["updated_at", "2016-03-07 15:56:32.780518"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.781718"], ["updated_at", "2016-03-07 15:56:32.781718"]] [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-03-07 15:56:32.784441"], ["updated_at", "2016-03-07 15:56:32.784441"]] [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-03-07 15:56:32.785921"], ["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 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", "2016-03-07 15:56:32.794089"], ["updated_at", "2016-03-07 15:56:32.794089"]] [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.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", "2016-03-07 15:56:32.797677"], ["updated_at", "2016-03-07 15:56:32.797677"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.799691"], ["updated_at", "2016-03-07 15:56:32.799691"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.800947"], ["updated_at", "2016-03-07 15:56:32.800947"]] [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-03-07 15:56:32.803502"], ["updated_at", "2016-03-07 15:56:32.803502"]] [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-03-07 15:56:32.804833"], ["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", "2016-03-07 15:56:32.812099"], ["updated_at", "2016-03-07 15:56:32.812099"]] [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.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 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-03-07 15:56:32.815196"], ["updated_at", "2016-03-07 15:56:32.815196"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.816869"], ["updated_at", "2016-03-07 15:56:32.816869"]] [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", "2016-03-07 15:56:32.818507"], ["updated_at", "2016-03-07 15:56:32.818507"]] [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-03-07 15:56:32.822297"], ["updated_at", "2016-03-07 15:56:32.822297"]] [1m[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-03-07 15:56:32.824170"], ["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.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-03-07 15:56:32.833194"], ["updated_at", "2016-03-07 15:56:32.833194"]] [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", "2016-03-07 15:56:32.836975"], ["updated_at", "2016-03-07 15:56:32.836975"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.839037"], ["updated_at", "2016-03-07 15:56:32.839037"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.840246"], ["updated_at", "2016-03-07 15:56:32.840246"]] [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-03-07 15:56:32.843369"], ["updated_at", "2016-03-07 15:56:32.843369"]] [1m[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-03-07 15:56:32.845208"], ["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.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", "2016-03-07 15:56:32.853925"], ["updated_at", "2016-03-07 15:56:32.853925"]] [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.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 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-03-07 15:56:32.857238"], ["updated_at", "2016-03-07 15:56:32.857238"]] [1m[36m (0.0ms)[0m [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", "2016-03-07 15:56:32.858941"], ["updated_at", "2016-03-07 15:56:32.858941"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.860083"], ["updated_at", "2016-03-07 15:56:32.860083"]] [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-03-07 15:56:32.862534"], ["updated_at", "2016-03-07 15:56:32.862534"]] [1m[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-03-07 15:56:32.863922"], ["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 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.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 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-03-07 15:56:32.933174"], ["updated_at", "2016-03-07 15:56:32.933174"]] [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 142' 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 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", "2016-03-07 15:56:32.938461"], ["updated_at", "2016-03-07 15:56:32.938461"]] [1m[36m (0.0ms)[0m [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-03-07 15:56:32.940947"], ["updated_at", "2016-03-07 15:56:32.940947"]] [1m[35m (0.0ms)[0m 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-03-07 15:56:32.942421"], ["updated_at", "2016-03-07 15:56:32.942421"]] [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-03-07 15:56:32.945548"], ["updated_at", "2016-03-07 15:56:32.945548"]] [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-03-07 15:56:32.947214"], ["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", "2016-03-07 15:56:32.950295"], ["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 Rendered text template (0.0ms) Completed 200 OK in 11ms (Views: 10.4ms | 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 Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | 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 SAVEPOINT active_record_1 [1m[36mCoalescingPanda::LtiAccount Exists (0.3ms)[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.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-03-08 14:48:38.084800"], ["updated_at", "2016-03-08 14:48:38.084800"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[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-03-08 14:48:38.116701"], ["updated_at", "2016-03-08 14:48:38.116701"]] [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.3ms)[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-03-08 15:48:38.162744"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-08 14:48:38.164190"], ["updated_at", "2016-03-08 14:48:38.164190"]] [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.4ms) Completed 200 OK in 54ms (Views: 10.4ms | ActiveRecord: 0.9ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.2ms)[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.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.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 SAVEPOINT active_record_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", "2016-03-08 14:48:38.206795"], ["updated_at", "2016-03-08 14:48:38.206795"]] [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-03-08 14:48:38.268957"], ["updated_at", "2016-03-08 14:48:38.268957"]] [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", "2016-03-08 14:48:38.271804"], ["updated_at", "2016-03-08 14:48:38.271804"]] [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", "2016-03-08 14:48:38.275157"], ["updated_at", "2016-03-08 14:48:38.275157"]] [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 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-03-08 14:48:38.308289"], ["updated_at", "2016-03-08 14:48:38.308289"]] [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-03-08 14:48:38.311797"], ["updated_at", "2016-03-08 14:48:38.311797"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:48:38.313656"], ["updated_at", "2016-03-08 14:48:38.313656"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:48:38.315231"], ["updated_at", "2016-03-08 14:48:38.315231"]] [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.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 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-03-08 14:48:38.321880"], ["updated_at", "2016-03-08 14:48:38.321880"]] [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", "2016-03-08 14:48:38.325284"], ["updated_at", "2016-03-08 14:48:38.325284"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.327094"], ["updated_at", "2016-03-08 14:48:38.327094"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.328712"], ["updated_at", "2016-03-08 14:48:38.328712"]] [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.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 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-03-08 14:48:38.344503"], ["updated_at", "2016-03-08 14:48:38.344503"]] [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.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", "2016-03-08 14:48:38.348873"], ["updated_at", "2016-03-08 14:48:38.348873"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.351113"], ["updated_at", "2016-03-08 14:48:38.351113"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.352401"], ["updated_at", "2016-03-08 14:48:38.352401"]] [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 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", "2016-03-08 14:48:38.359343"], ["updated_at", "2016-03-08 14:48:38.359343"]] [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.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 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-03-08 14:48:38.362727"], ["updated_at", "2016-03-08 14:48:38.362727"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.365244"], ["updated_at", "2016-03-08 14:48:38.365244"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.366600"], ["updated_at", "2016-03-08 14:48:38.366600"]] [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", "2016-03-08 14:48:38.371814"], ["updated_at", "2016-03-08 14:48:38.371814"]] [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", "2016-03-08 14:48:38.374621"], ["updated_at", "2016-03-08 14:48:38.374621"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.376291"], ["updated_at", "2016-03-08 14:48:38.376291"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.377359"], ["updated_at", "2016-03-08 14:48:38.377359"]] [1m[36m (0.1ms)[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_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-03-08 14:48:38.378914"], ["updated_at", "2016-03-08 14:48:38.378914"]] [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-03-08 14:48:38.385767"], ["updated_at", "2016-03-08 14:48:38.385767"]] 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", "2016-03-08 14:48:38.391258"], ["updated_at", "2016-03-08 14:48:38.391258"]] [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 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.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 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-03-08 14:48:38.395310"], ["updated_at", "2016-03-08 14:48:38.395310"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.397545"], ["updated_at", "2016-03-08 14:48:38.397545"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.398847"], ["updated_at", "2016-03-08 14:48:38.398847"]] [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.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-03-08 14:48:38.405337"], ["updated_at", "2016-03-08 14:48:38.405337"]] [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.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[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", "2016-03-09 14:48:38.418846"], ["created_at", "2016-03-08 14:48:38.421253"], ["updated_at", "2016-03-08 14:48:38.421253"]] [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[35mSQL (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-08 14:48:38.430165"], ["updated_at", "2016-03-08 14:48:38.430165"]] [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-03-08 14:48:38.432148"], ["updated_at", "2016-03-08 14:48:38.432148"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[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", "2016-03-08 14:48:38.433606"], ["updated_at", "2016-03-08 14:48:38.433606"]] [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.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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 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-03-08 14:48:38.446693"], ["updated_at", "2016-03-08 14:48:38.446693"]] [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.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 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-03-08 14:48:38.451995"], ["updated_at", "2016-03-08 14:48:38.451995"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.454389"], ["updated_at", "2016-03-08 14:48:38.454389"]] [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 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", "2016-03-08 14:48:38.460657"], ["updated_at", "2016-03-08 14:48:38.460657"]] [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-03-08 14:48:38.464493"], ["updated_at", "2016-03-08 14:48:38.464493"]] [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-03-08 14:48:38.467276"], ["updated_at", "2016-03-08 14:48:38.467276"]] [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.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", "2016-03-08 14:48:38.472648"], ["updated_at", "2016-03-08 14:48:38.472648"]] [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.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", "2016-03-08 14:48:38.476402"], ["updated_at", "2016-03-08 14:48:38.476402"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.478942"], ["updated_at", "2016-03-08 14:48:38.478942"]] [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", "2016-03-08 14:48:38.480609"], ["updated_at", "2016-03-08 14:48:38.480609"]] [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", "2016-03-08 14:48:38.533305"], ["updated_at", "2016-03-08 14:48:38.533305"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.535042"], ["updated_at", "2016-03-08 14:48:38.535042"]] [1m[35m (0.0ms)[0m 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", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-08 14:48:38.536190"], ["updated_at", "2016-03-08 14:48:38.536190"]] 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", "2016-03-08 14:48:38.540358"], ["updated_at", "2016-03-08 14:48:38.540358"]] [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", "2016-03-08 14:48:38.541980"], ["updated_at", "2016-03-08 14:48:38.541980"]] [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", "2016-03-08 14:48:38.544642"], ["updated_at", "2016-03-08 14:48:38.544642"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.546758"], ["updated_at", "2016-03-08 14:48:38.546758"]] [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", "2016-03-08 14:48:38.550054"], ["updated_at", "2016-03-08 14:48:38.550054"]] [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", "2016-03-08 14:48:38.552446"], ["updated_at", "2016-03-08 14:48:38.552446"]] 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.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 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", "2016-03-08 14:48:38.557840"], ["updated_at", "2016-03-08 14:48:38.557840"]] [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", "2016-03-08 14:48:38.561088"], ["updated_at", "2016-03-08 14:48:38.561088"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.562946"], ["updated_at", "2016-03-08 14:48:38.562946"]] [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.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.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", "2016-03-08 14:48:38.575862"], ["updated_at", "2016-03-08 14:48:38.575862"]] [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-03-08 14:48:38.578909"], ["updated_at", "2016-03-08 14:48:38.578909"]] [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", "2016-03-08 14:48:38.588240"], ["updated_at", "2016-03-08 14:48:38.588240"]] [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-03-08 14:48:38.593575"], ["updated_at", "2016-03-08 14:48:38.593575"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.596152"], ["updated_at", "2016-03-08 14:48:38.596152"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.597940"], ["updated_at", "2016-03-08 14:48:38.597940"]] [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_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-03-08 14:48:38.600300"], ["updated_at", "2016-03-08 14:48:38.600300"]] [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", "2016-03-08 14:48:38.607727"], ["updated_at", "2016-03-08 14:48:38.607727"]] [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", "2016-03-08 14:48:38.610133"], ["updated_at", "2016-03-08 14:48:38.610133"]] [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", "2016-03-08 14:48:38.613020"], ["updated_at", "2016-03-08 14:48:38.613020"]] [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", "2016-03-08 14:48:38.615998"], ["updated_at", "2016-03-08 14:48:38.615998"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.617507"], ["updated_at", "2016-03-08 14:48:38.617507"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.618638"], ["updated_at", "2016-03-08 14:48:38.618638"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.619746"], ["updated_at", "2016-03-08 14:48:38.619746"]] [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", "2016-03-08 14:48:38.625900"], ["updated_at", "2016-03-08 14:48:38.625900"]] [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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-08 14:48:38.628391"], ["updated_at", "2016-03-08 14:48:38.628391"]] [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-03-08 14:48:38.631796"], ["updated_at", "2016-03-08 14:48:38.631796"]] [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-03-08 14:48:38.634792"], ["updated_at", "2016-03-08 14:48:38.634792"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.636382"], ["updated_at", "2016-03-08 14:48:38.636382"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.637692"], ["updated_at", "2016-03-08 14:48:38.637692"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.638902"], ["updated_at", "2016-03-08 14:48:38.638902"]] [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 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.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 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-03-08 14:48:38.645153"], ["updated_at", "2016-03-08 14:48:38.645153"]] [1m[35m (0.1ms)[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-03-08 14:48:38.648670"], ["updated_at", "2016-03-08 14:48:38.648670"]] [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", "2016-03-08 14:48:38.651665"], ["updated_at", "2016-03-08 14:48:38.651665"]] [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-03-08 14:48:38.654393"], ["updated_at", "2016-03-08 14:48:38.654393"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.655885"], ["updated_at", "2016-03-08 14:48:38.655885"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.656977"], ["updated_at", "2016-03-08 14:48:38.656977"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.658047"], ["updated_at", "2016-03-08 14:48:38.658047"]] [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_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-03-08 14:48:38.659607"], ["updated_at", "2016-03-08 14:48:38.659607"]] [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", "2016-03-08 14:48:38.662166"], ["updated_at", "2016-03-08 14:48:38.662166"]] 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.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.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 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-03-08 14:48:38.668045"], ["updated_at", "2016-03-08 14:48:38.668045"]] [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-03-08 14:48:38.670392"], ["updated_at", "2016-03-08 14:48:38.670392"]] [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-03-08 14:48:38.673289"], ["updated_at", "2016-03-08 14:48:38.673289"]] [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.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-03-08 14:48:38.676478"], ["updated_at", "2016-03-08 14:48:38.676478"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.678563"], ["updated_at", "2016-03-08 14:48:38.678563"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.679935"], ["updated_at", "2016-03-08 14:48:38.679935"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.681259"], ["updated_at", "2016-03-08 14:48:38.681259"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.682977"], ["updated_at", "2016-03-08 14:48:38.682977"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.684745"], ["updated_at", "2016-03-08 14:48:38.684745"]] [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 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-03-08 14:48:38.690577"], ["updated_at", "2016-03-08 14:48:38.690577"]] [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", "2016-03-08 14:48:38.692685"], ["updated_at", "2016-03-08 14:48:38.692685"]] [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 44' 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 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-03-08 14:48:38.697384"], ["updated_at", "2016-03-08 14:48:38.697384"]] [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", "2016-03-08 14:48:38.701576"], ["updated_at", "2016-03-08 14:48:38.701576"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.703488"], ["updated_at", "2016-03-08 14:48:38.703488"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.704774"], ["updated_at", "2016-03-08 14:48:38.704774"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.705954"], ["updated_at", "2016-03-08 14:48:38.705954"]] [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.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.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", "2016-03-08 14:48:38.718683"], ["updated_at", "2016-03-08 14:48:38.718683"]] [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", "2016-03-08 14:48:38.722485"], ["updated_at", "2016-03-08 14:48:38.722485"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.724819"], ["updated_at", "2016-03-08 14:48:38.724819"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.726095"], ["updated_at", "2016-03-08 14:48:38.726095"]] [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 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", "2016-03-08 14:48:38.733324"], ["updated_at", "2016-03-08 14:48:38.733324"]] [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.1ms)[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", "2016-03-08 14:48:38.736821"], ["updated_at", "2016-03-08 14:48:38.736821"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.738736"], ["updated_at", "2016-03-08 14:48:38.738736"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.739926"], ["updated_at", "2016-03-08 14:48:38.739926"]] [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.1ms)[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", "2016-03-08 14:48:38.745267"], ["updated_at", "2016-03-08 14:48:38.745267"]] [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 52' 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 52' 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 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-03-08 14:48:38.749489"], ["updated_at", "2016-03-08 14:48:38.749489"]] [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", "22"], ["created_at", "2016-03-08 14:48:38.752020"], ["updated_at", "2016-03-08 14:48:38.752020"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.753311"], ["updated_at", "2016-03-08 14:48:38.753311"]] [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", "2016-03-08 14:48:38.755007"], ["updated_at", "2016-03-08 14:48:38.755007"]] [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-03-08 14:48:38.756506"], ["updated_at", "2016-03-08 14:48:38.756506"]] 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.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 53' 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 53' 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 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-03-08 14:48:38.762532"], ["updated_at", "2016-03-08 14:48:38.762532"]] [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 54' 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 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-03-08 14:48:38.768046"], ["updated_at", "2016-03-08 14:48:38.768046"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.770711"], ["updated_at", "2016-03-08 14:48:38.770711"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.771940"], ["updated_at", "2016-03-08 14:48:38.771940"]] [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", "2016-03-08 14:48:38.840639"], ["updated_at", "2016-03-08 14:48:38.840639"]] [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-03-08 14:48:38.843193"], ["updated_at", "2016-03-08 14:48:38.843193"]] [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", "2016-03-08 14:48:38.847758"], ["updated_at", "2016-03-08 14:48:38.847758"]] [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.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", "2016-03-08 14:48:38.850686"], ["updated_at", "2016-03-08 14:48:38.850686"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.852171"], ["updated_at", "2016-03-08 14:48:38.852171"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:48:38.853325"], ["updated_at", "2016-03-08 14:48:38.853325"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.854463"], ["updated_at", "2016-03-08 14:48:38.854463"]] [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", "2016-03-08 14:48:38.860791"], ["updated_at", "2016-03-08 14:48:38.860791"]] [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-03-08 14:48:38.862857"], ["updated_at", "2016-03-08 14:48:38.862857"]] [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-03-08 14:48:38.865605"], ["updated_at", "2016-03-08 14:48:38.865605"]] [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-03-08 14:48:38.868181"], ["updated_at", "2016-03-08 14:48:38.868181"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.869779"], ["updated_at", "2016-03-08 14:48:38.869779"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.870921"], ["updated_at", "2016-03-08 14:48:38.870921"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.872068"], ["updated_at", "2016-03-08 14:48:38.872068"]] [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.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-03-08 14:48:38.877761"], ["updated_at", "2016-03-08 14:48:38.877761"]] [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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-08 14:48:38.880611"], ["updated_at", "2016-03-08 14:48:38.880611"]] [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-03-08 14:48:38.884080"], ["updated_at", "2016-03-08 14:48:38.884080"]] [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-03-08 14:48:38.887168"], ["updated_at", "2016-03-08 14:48:38.887168"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.888727"], ["updated_at", "2016-03-08 14:48:38.888727"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.889902"], ["updated_at", "2016-03-08 14:48:38.889902"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.891071"], ["updated_at", "2016-03-08 14:48:38.891071"]] [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 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.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 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-03-08 14:48:38.896783"], ["updated_at", "2016-03-08 14:48:38.896783"]] [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-03-08 14:48:38.899640"], ["updated_at", "2016-03-08 14:48:38.899640"]] [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 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-03-08 14:48:38.902537"], ["updated_at", "2016-03-08 14:48:38.902537"]] [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-03-08 14:48:38.905551"], ["updated_at", "2016-03-08 14:48:38.905551"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.907017"], ["updated_at", "2016-03-08 14:48:38.907017"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.908124"], ["updated_at", "2016-03-08 14:48:38.908124"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.909272"], ["updated_at", "2016-03-08 14:48:38.909272"]] [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_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-03-08 14:48:38.910921"], ["updated_at", "2016-03-08 14:48:38.910921"]] [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", "2016-03-08 14:48:38.913175"], ["updated_at", "2016-03-08 14:48:38.913175"]] 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.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", "2016-03-08 14:48:38.918930"], ["updated_at", "2016-03-08 14:48:38.918930"]] [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-03-08 14:48:38.921101"], ["updated_at", "2016-03-08 14:48:38.921101"]] [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-03-08 14:48:38.923968"], ["updated_at", "2016-03-08 14:48:38.923968"]] [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", "2016-03-08 14:48:38.926863"], ["updated_at", "2016-03-08 14:48:38.926863"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.928429"], ["updated_at", "2016-03-08 14:48:38.928429"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.929590"], ["updated_at", "2016-03-08 14:48:38.929590"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.931052"], ["updated_at", "2016-03-08 14:48:38.931052"]] [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_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-03-08 14:48:38.933534"], ["updated_at", "2016-03-08 14:48:38.933534"]] [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_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-03-08 14:48:38.935936"], ["updated_at", "2016-03-08 14:48:38.935936"]] [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.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-03-08 14:48:38.941176"], ["updated_at", "2016-03-08 14:48:38.941176"]] [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", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2016-03-08 14:48:38.943280"], ["updated_at", "2016-03-08 14:48:38.943280"]] [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-03-08 14:48:38.945970"], ["updated_at", "2016-03-08 14:48:38.945970"]] [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 72' 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 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-03-08 14:48:38.949215"], ["updated_at", "2016-03-08 14:48:38.949215"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.951212"], ["updated_at", "2016-03-08 14:48:38.951212"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:38.952665"], ["updated_at", "2016-03-08 14:48:38.952665"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:38.954122"], ["updated_at", "2016-03-08 14:48:38.954122"]] [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.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.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-03-08 14:48:38.960876"], ["updated_at", "2016-03-08 14:48:38.960876"]] [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 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-03-08 14:48:38.967510"], ["updated_at", "2016-03-08 14:48:38.967510"]] [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-03-08 14:48:38.969745"], ["updated_at", "2016-03-08 14:48:38.969745"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:48:38.971604"], ["updated_at", "2016-03-08 14:48:38.971604"]] 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.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.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", "2016-03-08 14:48:38.977698"], ["updated_at", "2016-03-08 14:48:38.977698"]] [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", "2016-03-08 14:48:38.984093"], ["updated_at", "2016-03-08 14:48:38.984093"]] [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", "2016-03-08 14:48:38.989295"], ["updated_at", "2016-03-08 14:48:38.989295"]] [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", "2016-03-08 14:48:38.992178"], ["updated_at", "2016-03-08 14:48:38.992178"]] [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-03-08 14:48:38.994832"], ["updated_at", "2016-03-08 14:48:38.994832"]] 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.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 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", "2016-03-08 14:48:39.000712"], ["updated_at", "2016-03-08 14:48:39.000712"]] [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-03-08 14:48:39.009942"], ["updated_at", "2016-03-08 14:48:39.009942"]] [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", "2016-03-08 14:48:39.039391"], ["updated_at", "2016-03-08 14:48:39.039391"]] [1m[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-03-08 14:48:39.041540"], ["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.5ms)[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.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-03-08 14:48:39.048860"], ["updated_at", "2016-03-08 14:48:39.048860"]] [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-03-08 14:48:39.052381"], ["updated_at", "2016-03-08 14:48:39.052381"]] [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-03-08 14:48:39.053892"], ["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 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.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 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-03-08 14:48:39.060389"], ["updated_at", "2016-03-08 14:48:39.060389"]] [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-03-08 14:48:39.064729"], ["updated_at", "2016-03-08 14:48:39.064729"]] [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-03-08 14:48:39.066707"], ["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", "2016-03-08 14:48:39.134043"], ["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", "2016-03-08 14:48:39.138669"], ["updated_at", "2016-03-08 14:48:39.138669"]] [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-03-08 14:48:39.140451"], ["updated_at", "2016-03-08 14:48:39.140451"]] [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", "2016-03-08 14:48:39.141992"], ["updated_at", "2016-03-08 14:48:39.141992"]] [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-03-08 14:48:39.144023"], ["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-03-08 14:48:39.145181"], ["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.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", "2016-03-08 14:48:39.151488"], ["updated_at", "2016-03-08 14:48:39.151488"]] [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", "2016-03-08 14:48:39.155161"], ["updated_at", "2016-03-08 14:48:39.155161"]] [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-03-08 14:48:39.156667"], ["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-03-08 14:48:39.160405"], ["updated_at", "2016-03-08 14:48:39.160405"]] [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", "2016-03-08 14:48:39.162539"], ["updated_at", "2016-03-08 14:48:39.162539"]] [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.1ms)[0m begin transaction [1m[36mCoalescingPanda::User Load (0.2ms)[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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' 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 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-03-08 14:48:39.170717"], ["updated_at", "2016-03-08 14:48:39.170717"]] [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-03-08 14:48:39.174622"], ["updated_at", "2016-03-08 14:48:39.174622"]] [1m[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-03-08 14:48:39.177130"], ["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", "2016-03-08 14:48:39.179806"], ["updated_at", "2016-03-08 14:48:39.179806"]] [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-03-08 14:48:39.181829"], ["updated_at", "2016-03-08 14:48:39.181829"]] [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-03-08 14:48:39.183879"], ["updated_at", "2016-03-08 14:48:39.183879"]] [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.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-03-08 14:48:39.190581"], ["updated_at", "2016-03-08 14:48:39.190581"]] [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-03-08 14:48:39.194797"], ["updated_at", "2016-03-08 14:48:39.194797"]] [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-03-08 14:48:39.196493"], ["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 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.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-03-08 14:48:39.203658"], ["updated_at", "2016-03-08 14:48:39.203658"]] [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-03-08 14:48:39.207948"], ["updated_at", "2016-03-08 14:48:39.207948"]] [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-03-08 14:48:39.209766"], ["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.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", "2016-03-08 14:48:39.217317"], ["updated_at", "2016-03-08 14:48:39.217317"]] [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", "2016-03-08 14:48:39.220611"], ["updated_at", "2016-03-08 14:48:39.220611"]] [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-03-08 14:48:39.222101"], ["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", "2016-03-08 14:48:39.224707"], ["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.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 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-03-08 14:48:39.233877"], ["updated_at", "2016-03-08 14:48:39.233877"]] [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 88' 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 88' 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 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-03-08 14:48:39.240057"], ["updated_at", "2016-03-08 14:48:39.240057"]] [1m[36m (0.2ms)[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", "31"], ["created_at", "2016-03-08 14:48:39.244293"], ["updated_at", "2016-03-08 14:48:39.244293"]] [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", "26"], ["created_at", "2016-03-08 14:48:39.247110"], ["updated_at", "2016-03-08 14:48:39.247110"]] [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.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", "2016-03-08 14:48:39.252744"], ["updated_at", "2016-03-08 14:48:39.252744"]] [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 [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-03-08 14:48:39.255939"], ["id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[0m [1mSELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC 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.2ms)[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-03-08 14:48:39.269446"], ["updated_at", "2016-03-08 14:48:39.269446"]] [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.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", "2016-03-08 14:48:39.275802"], ["updated_at", "2016-03-08 14:48:39.275802"]] [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", "32"], ["created_at", "2016-03-08 14:48:39.278272"], ["updated_at", "2016-03-08 14:48:39.278272"]] [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", "27"], ["created_at", "2016-03-08 14:48:39.279833"], ["updated_at", "2016-03-08 14:48:39.279833"]] [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-03-08 14:48:39.282990"], ["updated_at", "2016-03-08 14:48:39.282990"]] [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-03-08 14:48:39.284616"], ["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 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", "2016-03-08 14:48:39.292692"], ["updated_at", "2016-03-08 14:48:39.292692"]] [1m[36m (0.2ms)[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 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", "2016-03-08 14:48:39.299631"], ["updated_at", "2016-03-08 14:48:39.299631"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.302200"], ["updated_at", "2016-03-08 14:48:39.302200"]] [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", "2016-03-08 14:48:39.303659"], ["updated_at", "2016-03-08 14:48:39.303659"]] [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-03-08 14:48:39.306899"], ["updated_at", "2016-03-08 14:48:39.306899"]] [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", "2016-03-08 14:48:39.308145"], ["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 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-03-08 14:48:39.314739"], ["updated_at", "2016-03-08 14:48:39.314739"]] [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-03-08 14:48:39.317649"], ["updated_at", "2016-03-08 14:48:39.317649"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.319580"], ["updated_at", "2016-03-08 14:48:39.319580"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.321238"], ["updated_at", "2016-03-08 14:48:39.321238"]] [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-03-08 14:48:39.323929"], ["updated_at", "2016-03-08 14:48:39.323929"]] [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-03-08 14:48:39.325432"], ["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 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-03-08 14:48:39.335019"], ["updated_at", "2016-03-08 14:48:39.335019"]] [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", "2016-03-08 14:48:39.338154"], ["updated_at", "2016-03-08 14:48:39.338154"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.339951"], ["updated_at", "2016-03-08 14:48:39.339951"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.341016"], ["updated_at", "2016-03-08 14:48:39.341016"]] [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-03-08 14:48:39.343284"], ["updated_at", "2016-03-08 14:48:39.343284"]] [1m[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-03-08 14:48:39.344949"], ["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-03-08 14:48:39.354095"], ["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-03-08 14:48:39.359044"], ["updated_at", "2016-03-08 14:48:39.359044"]] [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-03-08 14:48:39.361772"], ["id", 1]] [1m[35m (0.1ms)[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", "2016-03-08 14:48:39.365829"], ["updated_at", "2016-03-08 14:48:39.365829"]] [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.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-03-08 14:48:39.368270"], ["updated_at", "2016-03-08 14:48:39.368270"]] [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-03-08 14:48:39.370404"], ["updated_at", "2016-03-08 14:48:39.370404"]] [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", "2016-03-08 14:48:39.438569"], ["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.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.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[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-03-08 14:48:39.456486"], ["id", 1]] [1m[36m (0.1ms)[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.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-03-08 14:48:39.462271"], ["updated_at", "2016-03-08 14:48:39.462271"]] [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-03-08 14:48:39.465582"], ["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.5ms)[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", "2016-03-08 14:48:39.491638"], ["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.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-03-08 14:48:39.494526"], ["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.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.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", "2016-03-08 14:48:39.509082"], ["updated_at", "2016-03-08 14:48:39.509082"]] [1m[36m (0.1ms)[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.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.1ms)[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-03-08 14:48:39.513701"], ["updated_at", "2016-03-08 14:48:39.513701"]] [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", "2016-03-08 14:48:39.516059"], ["id", 1]] [1m[35m (0.1ms)[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", "2016-03-08 14:48:39.529780"], ["updated_at", "2016-03-08 14:48:39.529780"]] [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.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[36m (0.1ms)[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-03-08 14:48:39.534523"], ["updated_at", "2016-03-08 14:48:39.534523"]] [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[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-03-08 14:48:39.542516"], ["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", "Completed"], ["updated_at", "2016-03-08 14:48:39.543860"], ["id", 1]] [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[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.0ms)[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-03-08 14:48:39.551727"], ["updated_at", "2016-03-08 14:48:39.551727"]] [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.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", "2016-03-08 14:48:39.554939"], ["updated_at", "2016-03-08 14:48:39.554939"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.556748"], ["updated_at", "2016-03-08 14:48:39.556748"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.557887"], ["updated_at", "2016-03-08 14:48:39.557887"]] [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-03-08 14:48:39.560278"], ["updated_at", "2016-03-08 14:48:39.560278"]] [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-03-08 14:48:39.561603"], ["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-03-08 14:48:39.563841"], ["updated_at", "2016-03-08 14:48:39.563841"]] [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.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.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.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 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-03-08 14:48:39.572235"], ["updated_at", "2016-03-08 14:48:39.572235"]] [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 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.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 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-03-08 14:48:39.575260"], ["updated_at", "2016-03-08 14:48:39.575260"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-08 14:48:39.577318"], ["updated_at", "2016-03-08 14:48:39.577318"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-08 14:48:39.578756"], ["updated_at", "2016-03-08 14:48:39.578756"]] [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-03-08 14:48:39.581632"], ["updated_at", "2016-03-08 14:48:39.581632"]] [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-03-08 14:48:39.583120"], ["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", "2016-03-08 14:48:39.585252"], ["updated_at", "2016-03-08 14:48:39.585252"]] [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-03-08 14:48:39.587182"], ["updated_at", "2016-03-08 14:48:39.587182"]] [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", "2016-03-08 14:48:39.589089"], ["updated_at", "2016-03-08 14:48:39.589089"]] [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.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 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.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 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-03-08 14:48:39.597250"], ["updated_at", "2016-03-08 14:48:39.597250"]] [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-03-08 14:48:39.600457"], ["updated_at", "2016-03-08 14:48:39.600457"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.602577"], ["updated_at", "2016-03-08 14:48:39.602577"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.603805"], ["updated_at", "2016-03-08 14:48:39.603805"]] [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-03-08 14:48:39.606293"], ["updated_at", "2016-03-08 14:48:39.606293"]] [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-03-08 14:48:39.607648"], ["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-03-08 14:48:39.609744"], ["updated_at", "2016-03-08 14:48:39.609744"]] [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-03-08 14:48:39.611768"], ["updated_at", "2016-03-08 14:48:39.611768"]] [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", "2016-03-08 14:48:39.668366"], ["updated_at", "2016-03-08 14:48:39.668366"]] [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-03-08 14:48:39.670588"], ["updated_at", "2016-03-08 14:48:39.670588"]] [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.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", "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[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 (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 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.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 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-03-08 14:48:39.692297"], ["updated_at", "2016-03-08 14:48:39.692297"]] [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 104' 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 104' 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 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-03-08 14:48:39.697127"], ["updated_at", "2016-03-08 14:48:39.697127"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.699807"], ["updated_at", "2016-03-08 14:48:39.699807"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.701448"], ["updated_at", "2016-03-08 14:48:39.701448"]] [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-03-08 14:48:39.704679"], ["updated_at", "2016-03-08 14:48:39.704679"]] [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-03-08 14:48:39.706391"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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.5ms)[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-03-08 14:48:39.712699"], ["updated_at", "2016-03-08 14:48:39.712699"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.8ms)[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.1ms)[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.1ms)[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-03-08 14:48:39.722563"], ["updated_at", "2016-03-08 14:48:39.722563"]] [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.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 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-03-08 14:48:39.726046"], ["updated_at", "2016-03-08 14:48:39.726046"]] [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", "40"], ["created_at", "2016-03-08 14:48:39.729559"], ["updated_at", "2016-03-08 14:48:39.729559"]] [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", "35"], ["created_at", "2016-03-08 14:48:39.731917"], ["updated_at", "2016-03-08 14:48:39.731917"]] [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-03-08 14:48:39.735436"], ["updated_at", "2016-03-08 14:48:39.735436"]] [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-03-08 14:48:39.737164"], ["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-03-08 14:48:39.740096"], ["updated_at", "2016-03-08 14:48:39.740096"]] [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.1ms)[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.0ms)[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 (1.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::AssignmentGroup Load (0.1ms)[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.1ms)[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-03-08 14:48:39.761084"], ["updated_at", "2016-03-08 14:48:39.761084"]] [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 108' 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 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", "2016-03-08 14:48:39.765721"], ["updated_at", "2016-03-08 14:48:39.765721"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.768101"], ["updated_at", "2016-03-08 14:48:39.768101"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.769504"], ["updated_at", "2016-03-08 14:48:39.769504"]] [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-03-08 14:48:39.772184"], ["updated_at", "2016-03-08 14:48:39.772184"]] [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-03-08 14:48:39.773562"], ["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-03-08 14:48:39.775551"], ["updated_at", "2016-03-08 14:48:39.775551"]] [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.7ms)[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-03-08 14:48:39.782666"], ["updated_at", "2016-03-08 14:48:39.782666"]] [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 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.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 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-03-08 14:48:39.785787"], ["updated_at", "2016-03-08 14:48:39.785787"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.787755"], ["updated_at", "2016-03-08 14:48:39.787755"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-03-08 14:48:39.789004"], ["updated_at", "2016-03-08 14:48:39.789004"]] [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-03-08 14:48:39.791649"], ["updated_at", "2016-03-08 14:48:39.791649"]] [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-03-08 14:48:39.793089"], ["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.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-03-08 14:48:39.795799"], ["updated_at", "2016-03-08 14:48:39.795799"]] [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-03-08 14:48:39.799024"], ["updated_at", "2016-03-08 14:48:39.799024"]] [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-03-08 14:48:39.800767"], ["updated_at", "2016-03-08 14:48:39.800767"]] [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", "2016-03-08 14:48:39.802571"], ["updated_at", "2016-03-08 14:48:39.802571"]] [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.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", "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::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.3ms)[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.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.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.2ms)[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-03-08 14:48:39.833718"], ["updated_at", "2016-03-08 14:48:39.833718"]] [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-03-08 14:48:39.837675"], ["updated_at", "2016-03-08 14:48:39.837675"]] [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.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.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-03-08 14:48:39.840833"], ["updated_at", "2016-03-08 14:48:39.840833"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-08 14:48:39.844029"], ["updated_at", "2016-03-08 14:48:39.844029"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.0ms)[0m rollback transaction [1m[36m (0.1ms)[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-03-08 14:48:39.852191"], ["updated_at", "2016-03-08 14:48:39.852191"]] [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-03-08 14:48:39.855311"], ["updated_at", "2016-03-08 14:48:39.855311"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.857274"], ["updated_at", "2016-03-08 14:48:39.857274"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.858380"], ["updated_at", "2016-03-08 14:48:39.858380"]] [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-03-08 14:48:39.860989"], ["updated_at", "2016-03-08 14:48:39.860989"]] [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-03-08 14:48:39.862434"], ["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-03-08 14:48:39.864644"], ["updated_at", "2016-03-08 14:48:39.864644"]] [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.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.1ms)[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-03-08 14:48:39.926571"], ["updated_at", "2016-03-08 14:48:39.926571"]] [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-03-08 14:48:39.929721"], ["updated_at", "2016-03-08 14:48:39.929721"]] [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" = ? LIMIT 1[0m [["canvas_group_id", "4"]] [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.1ms)[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.0ms)[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-03-08 14:48:39.939464"], ["updated_at", "2016-03-08 14:48:39.939464"]] [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 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.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 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-03-08 14:48:39.942443"], ["updated_at", "2016-03-08 14:48:39.942443"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.944216"], ["updated_at", "2016-03-08 14:48:39.944216"]] [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", "39"], ["created_at", "2016-03-08 14:48:39.945543"], ["updated_at", "2016-03-08 14:48:39.945543"]] [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-03-08 14:48:39.948089"], ["updated_at", "2016-03-08 14:48:39.948089"]] [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-03-08 14:48:39.949517"], ["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-03-08 14:48:39.951592"], ["updated_at", "2016-03-08 14:48:39.951592"]] [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-03-08 14:48:39.953628"], ["updated_at", "2016-03-08 14:48:39.953628"]] [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-03-08 14:48:39.955282"], ["updated_at", "2016-03-08 14:48:39.955282"]] [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-03-08 14:48:39.956779"], ["updated_at", "2016-03-08 14:48:39.956779"]] [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.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-03-08 14:48:39.975461"], ["updated_at", "2016-03-08 14:48:39.975461"]] [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-03-08 14:48:39.977710"], ["updated_at", "2016-03-08 14:48:39.977710"]] [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 (1.0ms)[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.0ms)[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.0ms)[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-03-08 14:48:39.987618"], ["updated_at", "2016-03-08 14:48:39.987618"]] [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 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.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 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-03-08 14:48:39.990690"], ["updated_at", "2016-03-08 14:48:39.990690"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:39.992573"], ["updated_at", "2016-03-08 14:48:39.992573"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:39.993744"], ["updated_at", "2016-03-08 14:48:39.993744"]] [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-03-08 14:48:39.996772"], ["updated_at", "2016-03-08 14:48:39.996772"]] [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-03-08 14:48:39.998224"], ["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-03-08 14:48:40.002291"], ["updated_at", "2016-03-08 14:48:40.002291"]] [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-03-08 14:48:40.005604"], ["updated_at", "2016-03-08 14:48:40.005604"]] [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"."id" NOT IN (1, 2))[0m [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [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.2ms)[0m [1mSELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"[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 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", "2016-03-08 14:48:40.015787"], ["updated_at", "2016-03-08 14:48:40.015787"]] [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", "2016-03-08 14:48:40.019334"], ["updated_at", "2016-03-08 14:48:40.019334"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.021159"], ["updated_at", "2016-03-08 14:48:40.021159"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:48:40.022349"], ["updated_at", "2016-03-08 14:48:40.022349"]] [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-03-08 14:48:40.024758"], ["updated_at", "2016-03-08 14:48:40.024758"]] [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-03-08 14:48:40.026069"], ["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-03-08 14:48:40.028511"], ["updated_at", "2016-03-08 14:48:40.028511"]] [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-03-08 14:48:40.031084"], ["updated_at", "2016-03-08 14:48:40.031084"]] [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-03-08 14:48:40.032975"], ["updated_at", "2016-03-08 14:48:40.032975"]] [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-03-08 14:48:40.034569"], ["updated_at", "2016-03-08 14:48:40.034569"]] [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.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[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.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", "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::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.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-03-08 14:48:40.051673"], ["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.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 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-03-08 14:48:40.068767"], ["updated_at", "2016-03-08 14:48:40.068767"]] [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", "2016-03-08 14:48:40.071882"], ["updated_at", "2016-03-08 14:48:40.071882"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.073785"], ["updated_at", "2016-03-08 14:48:40.073785"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.074943"], ["updated_at", "2016-03-08 14:48:40.074943"]] [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-03-08 14:48:40.077518"], ["updated_at", "2016-03-08 14:48:40.077518"]] [1m[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-03-08 14:48:40.079099"], ["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-03-08 14:48:40.081417"], ["updated_at", "2016-03-08 14:48:40.081417"]] [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.1ms)[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-03-08 14:48:40.084254"], ["updated_at", "2016-03-08 14:48:40.084254"]] [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[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-03-08 14:48:40.087114"], ["updated_at", "2016-03-08 14:48:40.087114"]] [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-03-08 14:48:40.089341"], ["updated_at", "2016-03-08 14:48:40.089341"]] [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.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", "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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-08 14:48:40.110156"], ["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.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.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 (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 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.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 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-03-08 14:48:40.130927"], ["updated_at", "2016-03-08 14:48:40.130927"]] [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 122' 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 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-03-08 14:48:40.135284"], ["updated_at", "2016-03-08 14:48:40.135284"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:48:40.137234"], ["updated_at", "2016-03-08 14:48:40.137234"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.138355"], ["updated_at", "2016-03-08 14:48:40.138355"]] [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-03-08 14:48:40.140746"], ["updated_at", "2016-03-08 14:48:40.140746"]] [1m[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-03-08 14:48:40.201215"], ["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-03-08 14:48:40.204223"], ["updated_at", "2016-03-08 14:48:40.204223"]] [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-03-08 14:48:40.206387"], ["updated_at", "2016-03-08 14:48:40.206387"]] [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-03-08 14:48:40.207920"], ["updated_at", "2016-03-08 14:48:40.207920"]] [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", "2016-03-08 14:48:40.209535"], ["updated_at", "2016-03-08 14:48:40.209535"]] [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.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-03-08 14:48:40.226550"], ["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.5ms)[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", "2016-03-08 14:48:40.242598"], ["updated_at", "2016-03-08 14:48:40.242598"]] [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.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-03-08 14:48:40.245680"], ["updated_at", "2016-03-08 14:48:40.245680"]] [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", "49"], ["created_at", "2016-03-08 14:48:40.247751"], ["updated_at", "2016-03-08 14:48:40.247751"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.249149"], ["updated_at", "2016-03-08 14:48:40.249149"]] [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-03-08 14:48:40.252261"], ["updated_at", "2016-03-08 14:48:40.252261"]] [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-03-08 14:48:40.253680"], ["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-03-08 14:48:40.255806"], ["updated_at", "2016-03-08 14:48:40.255806"]] [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-03-08 14:48:40.257899"], ["updated_at", "2016-03-08 14:48:40.257899"]] [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-03-08 14:48:40.259522"], ["updated_at", "2016-03-08 14:48:40.259522"]] [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-03-08 14:48:40.261184"], ["updated_at", "2016-03-08 14:48:40.261184"]] [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", "2016-03-08 14:48:40.275796"], ["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.1ms)[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-03-08 14:48:40.282129"], ["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.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-03-08 14:48:40.291141"], ["updated_at", "2016-03-08 14:48:40.291141"]] [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", "2016-03-08 14:48:40.294295"], ["updated_at", "2016-03-08 14:48:40.294295"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.296391"], ["updated_at", "2016-03-08 14:48:40.296391"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.297732"], ["updated_at", "2016-03-08 14:48:40.297732"]] [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-03-08 14:48:40.300795"], ["updated_at", "2016-03-08 14:48:40.300795"]] [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-03-08 14:48:40.302245"], ["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 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", "2016-03-08 14:48:40.310132"], ["updated_at", "2016-03-08 14:48:40.310132"]] [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", "2016-03-08 14:48:40.313805"], ["updated_at", "2016-03-08 14:48:40.313805"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.315876"], ["updated_at", "2016-03-08 14:48:40.315876"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.317103"], ["updated_at", "2016-03-08 14:48:40.317103"]] [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-03-08 14:48:40.319774"], ["updated_at", "2016-03-08 14:48:40.319774"]] [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-03-08 14:48:40.321225"], ["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.2ms)[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.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", "2016-03-08 14:48:40.329746"], ["updated_at", "2016-03-08 14:48:40.329746"]] [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.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 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-03-08 14:48:40.333683"], ["updated_at", "2016-03-08 14:48:40.333683"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.336567"], ["updated_at", "2016-03-08 14:48:40.336567"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:48:40.337861"], ["updated_at", "2016-03-08 14:48:40.337861"]] [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-03-08 14:48:40.340955"], ["updated_at", "2016-03-08 14:48:40.340955"]] [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-03-08 14:48:40.342678"], ["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 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.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", "2016-03-08 14:48:40.351027"], ["updated_at", "2016-03-08 14:48:40.351027"]] [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.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.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-03-08 14:48:40.354390"], ["updated_at", "2016-03-08 14:48:40.354390"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:48:40.356362"], ["updated_at", "2016-03-08 14:48:40.356362"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.357774"], ["updated_at", "2016-03-08 14:48:40.357774"]] [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-03-08 14:48:40.360341"], ["updated_at", "2016-03-08 14:48:40.360341"]] [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-03-08 14:48:40.361749"], ["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 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", "2016-03-08 14:48:40.370351"], ["updated_at", "2016-03-08 14:48:40.370351"]] [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.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", "2016-03-08 14:48:40.373527"], ["updated_at", "2016-03-08 14:48:40.373527"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.375282"], ["updated_at", "2016-03-08 14:48:40.375282"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.376389"], ["updated_at", "2016-03-08 14:48:40.376389"]] [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-03-08 14:48:40.378895"], ["updated_at", "2016-03-08 14:48:40.378895"]] [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-03-08 14:48:40.380290"], ["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 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", "2016-03-08 14:48:40.387726"], ["updated_at", "2016-03-08 14:48:40.387726"]] [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", "2016-03-08 14:48:40.391216"], ["updated_at", "2016-03-08 14:48:40.391216"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.392981"], ["updated_at", "2016-03-08 14:48:40.392981"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.394066"], ["updated_at", "2016-03-08 14:48:40.394066"]] [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-03-08 14:48:40.396687"], ["updated_at", "2016-03-08 14:48:40.396687"]] [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-03-08 14:48:40.398051"], ["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 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.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-03-08 14:48:40.464386"], ["updated_at", "2016-03-08 14:48:40.464386"]] [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-03-08 14:48:40.467975"], ["updated_at", "2016-03-08 14:48:40.467975"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.469924"], ["updated_at", "2016-03-08 14:48:40.469924"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.471127"], ["updated_at", "2016-03-08 14:48:40.471127"]] [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-03-08 14:48:40.473720"], ["updated_at", "2016-03-08 14:48:40.473720"]] [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-03-08 14:48:40.475169"], ["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.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", "2016-03-08 14:48:40.482952"], ["updated_at", "2016-03-08 14:48:40.482952"]] [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.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 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-03-08 14:48:40.486317"], ["updated_at", "2016-03-08 14:48:40.486317"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:48:40.488396"], ["updated_at", "2016-03-08 14:48:40.488396"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.489627"], ["updated_at", "2016-03-08 14:48:40.489627"]] [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-03-08 14:48:40.492164"], ["updated_at", "2016-03-08 14:48:40.492164"]] [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-03-08 14:48:40.493514"], ["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.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.1ms)[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-03-08 14:48:40.503086"], ["updated_at", "2016-03-08 14:48:40.503086"]] [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", "2016-03-08 14:48:40.506478"], ["updated_at", "2016-03-08 14:48:40.506478"]] [1m[36m (0.0ms)[0m [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-03-08 14:48:40.508301"], ["updated_at", "2016-03-08 14:48:40.508301"]] [1m[35m (0.0ms)[0m 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-03-08 14:48:40.509424"], ["updated_at", "2016-03-08 14:48:40.509424"]] [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-03-08 14:48:40.511815"], ["updated_at", "2016-03-08 14:48:40.511815"]] [1m[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-03-08 14:48:40.513531"], ["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", "2016-03-08 14:48:40.517526"], ["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 (1.0ms)[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 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 SAVEPOINT active_record_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", "2016-03-08 14:49:18.920897"], ["updated_at", "2016-03-08 14:49:18.920897"]] [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_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-03-08 14:49:18.934695"], ["updated_at", "2016-03-08 14:49:18.934695"]] [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.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-03-08 15:49:18.954105"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-08 14:49:18.955980"], ["updated_at", "2016-03-08 14:49:18.955980"]] [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 26ms (Views: 7.1ms | ActiveRecord: 0.7ms) [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.1ms)[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.5ms | 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.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", "2016-03-08 14:49:18.994242"], ["updated_at", "2016-03-08 14:49:18.994242"]] [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", "2016-03-08 14:49:19.055764"], ["updated_at", "2016-03-08 14:49:19.055764"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:49:19.059026"], ["updated_at", "2016-03-08 14:49:19.059026"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:49:19.060841"], ["updated_at", "2016-03-08 14:49:19.060841"]] [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.0ms)[0m SAVEPOINT active_record_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-03-08 14:49:19.071390"], ["updated_at", "2016-03-08 14:49:19.071390"]] [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.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 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-03-08 14:49:19.075615"], ["updated_at", "2016-03-08 14:49:19.075615"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:49:19.077907"], ["updated_at", "2016-03-08 14:49:19.077907"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:49:19.079186"], ["updated_at", "2016-03-08 14:49:19.079186"]] [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", "2016-03-08 14:49:19.084980"], ["updated_at", "2016-03-08 14:49:19.084980"]] [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.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", "2016-03-08 14:49:19.088308"], ["updated_at", "2016-03-08 14:49:19.088308"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.090015"], ["updated_at", "2016-03-08 14:49:19.090015"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.091133"], ["updated_at", "2016-03-08 14:49:19.091133"]] [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.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-03-08 14:49:19.108797"], ["updated_at", "2016-03-08 14:49:19.108797"]] [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.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", "2016-03-08 14:49:19.113069"], ["updated_at", "2016-03-08 14:49:19.113069"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.115051"], ["updated_at", "2016-03-08 14:49:19.115051"]] [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", "4"], ["created_at", "2016-03-08 14:49:19.116926"], ["updated_at", "2016-03-08 14:49:19.116926"]] [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.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", "2016-03-08 14:49:19.124228"], ["updated_at", "2016-03-08 14:49:19.124228"]] [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", "2016-03-08 14:49:19.127289"], ["updated_at", "2016-03-08 14:49:19.127289"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.129055"], ["updated_at", "2016-03-08 14:49:19.129055"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.130240"], ["updated_at", "2016-03-08 14:49:19.130240"]] [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 12' 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 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-03-08 14:49:19.136070"], ["updated_at", "2016-03-08 14:49:19.136070"]] [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", "2016-03-08 14:49:19.139298"], ["updated_at", "2016-03-08 14:49:19.139298"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.141261"], ["updated_at", "2016-03-08 14:49:19.141261"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.142606"], ["updated_at", "2016-03-08 14:49:19.142606"]] [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_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-03-08 14:49:19.144594"], ["updated_at", "2016-03-08 14:49:19.144594"]] [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", "2016-03-08 14:49:19.147730"], ["updated_at", "2016-03-08 14:49:19.147730"]] 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.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 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", "2016-03-08 14:49:19.153136"], ["updated_at", "2016-03-08 14:49:19.153136"]] [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.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 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-03-08 14:49:19.156289"], ["updated_at", "2016-03-08 14:49:19.156289"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.158118"], ["updated_at", "2016-03-08 14:49:19.158118"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.159313"], ["updated_at", "2016-03-08 14:49:19.159313"]] [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-03-08 14:49:19.165439"], ["updated_at", "2016-03-08 14:49:19.165439"]] [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.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.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[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-03-09 14:49:19.178754"], ["created_at", "2016-03-08 14:49:19.179924"], ["updated_at", "2016-03-08 14:49:19.179924"]] [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[35mSQL (0.2ms)[0m INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-08 14:49:19.189487"], ["updated_at", "2016-03-08 14:49:19.189487"]] [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", "2016-03-08 14:49:19.190927"], ["updated_at", "2016-03-08 14:49:19.190927"]] [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", "2016-03-08 14:49:19.192097"], ["updated_at", "2016-03-08 14:49:19.192097"]] [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.1ms)[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", "2016-03-08 14:49:19.201793"], ["updated_at", "2016-03-08 14:49:19.201793"]] [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.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 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-03-08 14:49:19.206001"], ["updated_at", "2016-03-08 14:49:19.206001"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.207822"], ["updated_at", "2016-03-08 14:49:19.207822"]] [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 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-03-08 14:49:19.213177"], ["updated_at", "2016-03-08 14:49:19.213177"]] [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.1ms)[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", "2016-03-08 14:49:19.216812"], ["updated_at", "2016-03-08 14:49:19.216812"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.219072"], ["updated_at", "2016-03-08 14:49:19.219072"]] [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.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", "2016-03-08 14:49:19.223667"], ["updated_at", "2016-03-08 14:49:19.223667"]] [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.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", "2016-03-08 14:49:19.227533"], ["updated_at", "2016-03-08 14:49:19.227533"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.229800"], ["updated_at", "2016-03-08 14:49:19.229800"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.231187"], ["updated_at", "2016-03-08 14:49:19.231187"]] [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", "2016-03-08 14:49:19.234932"], ["updated_at", "2016-03-08 14:49:19.234932"]] [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", 3], ["canvas_term_id", "11"], ["created_at", "2016-03-08 14:49:19.237242"], ["updated_at", "2016-03-08 14:49:19.237242"]] [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-03-08 14:49:19.292347"], ["updated_at", "2016-03-08 14:49:19.292347"]] 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", "2016-03-08 14:49:19.297919"], ["updated_at", "2016-03-08 14:49:19.297919"]] [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", "2016-03-08 14:49:19.299982"], ["updated_at", "2016-03-08 14:49:19.299982"]] [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", "2016-03-08 14:49:19.303575"], ["updated_at", "2016-03-08 14:49:19.303575"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.305735"], ["updated_at", "2016-03-08 14:49:19.305735"]] [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", "2016-03-08 14:49:19.308682"], ["updated_at", "2016-03-08 14:49:19.308682"]] [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", "2016-03-08 14:49:19.310763"], ["updated_at", "2016-03-08 14:49:19.310763"]] 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.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 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-03-08 14:49:19.315798"], ["updated_at", "2016-03-08 14:49:19.315798"]] [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 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", "2016-03-08 14:49:19.319874"], ["updated_at", "2016-03-08 14:49:19.319874"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.321775"], ["updated_at", "2016-03-08 14:49:19.321775"]] [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.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", "2016-03-08 14:49:19.334594"], ["updated_at", "2016-03-08 14:49:19.334594"]] [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", "2016-03-08 14:49:19.337189"], ["updated_at", "2016-03-08 14:49:19.337189"]] [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.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", "2016-03-08 14:49:19.347868"], ["updated_at", "2016-03-08 14:49:19.347868"]] [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-03-08 14:49:19.352559"], ["updated_at", "2016-03-08 14:49:19.352559"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.354542"], ["updated_at", "2016-03-08 14:49:19.354542"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.355769"], ["updated_at", "2016-03-08 14:49:19.355769"]] [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_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-03-08 14:49:19.357751"], ["updated_at", "2016-03-08 14:49:19.357751"]] [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 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", "2016-03-08 14:49:19.364591"], ["updated_at", "2016-03-08 14:49:19.364591"]] [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", "2016-03-08 14:49:19.367127"], ["updated_at", "2016-03-08 14:49:19.367127"]] [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", "2016-03-08 14:49:19.370691"], ["updated_at", "2016-03-08 14:49:19.370691"]] [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.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-03-08 14:49:19.373551"], ["updated_at", "2016-03-08 14:49:19.373551"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.375411"], ["updated_at", "2016-03-08 14:49:19.375411"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.376570"], ["updated_at", "2016-03-08 14:49:19.376570"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.377757"], ["updated_at", "2016-03-08 14:49:19.377757"]] [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.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 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-03-08 14:49:19.383596"], ["updated_at", "2016-03-08 14:49:19.383596"]] [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", "2016-03-08 14:49:19.386437"], ["updated_at", "2016-03-08 14:49:19.386437"]] [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-03-08 14:49:19.390237"], ["updated_at", "2016-03-08 14:49:19.390237"]] [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.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 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-03-08 14:49:19.393435"], ["updated_at", "2016-03-08 14:49:19.393435"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.395142"], ["updated_at", "2016-03-08 14:49:19.395142"]] [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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2016-03-08 14:49:19.396472"], ["updated_at", "2016-03-08 14:49:19.396472"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.398115"], ["updated_at", "2016-03-08 14:49:19.398115"]] [1m[36m (0.0ms)[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 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", "2016-03-08 14:49:19.405015"], ["updated_at", "2016-03-08 14:49:19.405015"]] [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", "2016-03-08 14:49:19.408433"], ["updated_at", "2016-03-08 14:49:19.408433"]] [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", "2016-03-08 14:49:19.412024"], ["updated_at", "2016-03-08 14:49:19.412024"]] [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.1ms)[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", "2016-03-08 14:49:19.415477"], ["updated_at", "2016-03-08 14:49:19.415477"]] [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_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-03-08 14:49:19.418054"], ["updated_at", "2016-03-08 14:49:19.418054"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.420418"], ["updated_at", "2016-03-08 14:49:19.420418"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.422363"], ["updated_at", "2016-03-08 14:49:19.422363"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:49:19.424483"], ["updated_at", "2016-03-08 14:49:19.424483"]] [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", "2016-03-08 14:49:19.426345"], ["updated_at", "2016-03-08 14:49:19.426345"]] 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.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 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-03-08 14:49:19.431566"], ["updated_at", "2016-03-08 14:49:19.431566"]] [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_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-03-08 14:49:19.434522"], ["updated_at", "2016-03-08 14:49:19.434522"]] [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-03-08 14:49:19.437349"], ["updated_at", "2016-03-08 14:49:19.437349"]] [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", "2016-03-08 14:49:19.440778"], ["updated_at", "2016-03-08 14:49:19.440778"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.442447"], ["updated_at", "2016-03-08 14:49:19.442447"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.443736"], ["updated_at", "2016-03-08 14:49:19.443736"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.444975"], ["updated_at", "2016-03-08 14:49:19.444975"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.446500"], ["updated_at", "2016-03-08 14:49:19.446500"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.448181"], ["updated_at", "2016-03-08 14:49:19.448181"]] [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 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-03-08 14:49:19.454784"], ["updated_at", "2016-03-08 14:49:19.454784"]] [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", "2016-03-08 14:49:19.457727"], ["updated_at", "2016-03-08 14:49:19.457727"]] [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-03-08 14:49:19.460770"], ["updated_at", "2016-03-08 14:49:19.460770"]] [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.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", "2016-03-08 14:49:19.463508"], ["updated_at", "2016-03-08 14:49:19.463508"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.465029"], ["updated_at", "2016-03-08 14:49:19.465029"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.466483"], ["updated_at", "2016-03-08 14:49:19.466483"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.468179"], ["updated_at", "2016-03-08 14:49:19.468179"]] [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.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.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.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-03-08 14:49:19.480337"], ["updated_at", "2016-03-08 14:49:19.480337"]] [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 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", "2016-03-08 14:49:19.487474"], ["updated_at", "2016-03-08 14:49:19.487474"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.489904"], ["updated_at", "2016-03-08 14:49:19.489904"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.491271"], ["updated_at", "2016-03-08 14:49:19.491271"]] [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.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-03-08 14:49:19.497727"], ["updated_at", "2016-03-08 14:49:19.497727"]] [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 50' 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 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", "2016-03-08 14:49:19.503288"], ["updated_at", "2016-03-08 14:49:19.503288"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.505822"], ["updated_at", "2016-03-08 14:49:19.505822"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.506964"], ["updated_at", "2016-03-08 14:49:19.506964"]] [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", "2016-03-08 14:49:19.511370"], ["updated_at", "2016-03-08 14:49:19.511370"]] [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 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-03-08 14:49:19.514727"], ["updated_at", "2016-03-08 14:49:19.514727"]] [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", "22"], ["created_at", "2016-03-08 14:49:19.517480"], ["updated_at", "2016-03-08 14:49:19.517480"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.519031"], ["updated_at", "2016-03-08 14:49:19.519031"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.520581"], ["updated_at", "2016-03-08 14:49:19.520581"]] [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-03-08 14:49:19.522212"], ["updated_at", "2016-03-08 14:49:19.522212"]] 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", "2016-03-08 14:49:19.526761"], ["updated_at", "2016-03-08 14:49:19.526761"]] [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.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 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-03-08 14:49:19.529787"], ["updated_at", "2016-03-08 14:49:19.529787"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.531647"], ["updated_at", "2016-03-08 14:49:19.531647"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.533154"], ["updated_at", "2016-03-08 14:49:19.533154"]] [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.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.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 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-03-08 14:49:19.603001"], ["updated_at", "2016-03-08 14:49:19.603001"]] [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_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-03-08 14:49:19.606287"], ["updated_at", "2016-03-08 14:49:19.606287"]] [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", "2016-03-08 14:49:19.609972"], ["updated_at", "2016-03-08 14:49:19.609972"]] [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", "2016-03-08 14:49:19.612612"], ["updated_at", "2016-03-08 14:49:19.612612"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.614080"], ["updated_at", "2016-03-08 14:49:19.614080"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:49:19.615180"], ["updated_at", "2016-03-08 14:49:19.615180"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.616654"], ["updated_at", "2016-03-08 14:49:19.616654"]] [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 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-03-08 14:49:19.623671"], ["updated_at", "2016-03-08 14:49:19.623671"]] [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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-08 14:49:19.625949"], ["updated_at", "2016-03-08 14:49:19.625949"]] [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-03-08 14:49:19.628739"], ["updated_at", "2016-03-08 14:49:19.628739"]] [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 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", "2016-03-08 14:49:19.632544"], ["updated_at", "2016-03-08 14:49:19.632544"]] [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", 3], ["canvas_term_id", "25"], ["created_at", "2016-03-08 14:49:19.635156"], ["updated_at", "2016-03-08 14:49:19.635156"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.636896"], ["updated_at", "2016-03-08 14:49:19.636896"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.638442"], ["updated_at", "2016-03-08 14:49:19.638442"]] [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", "2016-03-08 14:49:19.644135"], ["updated_at", "2016-03-08 14:49:19.644135"]] [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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-08 14:49:19.646232"], ["updated_at", "2016-03-08 14:49:19.646232"]] [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", "2016-03-08 14:49:19.648788"], ["updated_at", "2016-03-08 14:49:19.648788"]] [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.0ms)[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", "2016-03-08 14:49:19.651913"], ["updated_at", "2016-03-08 14:49:19.651913"]] [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", "26"], ["created_at", "2016-03-08 14:49:19.654551"], ["updated_at", "2016-03-08 14:49:19.654551"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.656292"], ["updated_at", "2016-03-08 14:49:19.656292"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.657913"], ["updated_at", "2016-03-08 14:49:19.657913"]] [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", "2016-03-08 14:49:19.663552"], ["updated_at", "2016-03-08 14:49:19.663552"]] [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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-08 14:49:19.665797"], ["updated_at", "2016-03-08 14:49:19.665797"]] [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 65' 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 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-03-08 14:49:19.669672"], ["updated_at", "2016-03-08 14:49:19.669672"]] [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-03-08 14:49:19.672918"], ["updated_at", "2016-03-08 14:49:19.672918"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.674478"], ["updated_at", "2016-03-08 14:49:19.674478"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.675898"], ["updated_at", "2016-03-08 14:49:19.675898"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.677167"], ["updated_at", "2016-03-08 14:49:19.677167"]] [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_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-03-08 14:49:19.678914"], ["updated_at", "2016-03-08 14:49:19.678914"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.680669"], ["updated_at", "2016-03-08 14:49:19.680669"]] 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.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", "2016-03-08 14:49:19.687844"], ["updated_at", "2016-03-08 14:49:19.687844"]] [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", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2016-03-08 14:49:19.690067"], ["updated_at", "2016-03-08 14:49:19.690067"]] [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", "2016-03-08 14:49:19.692858"], ["updated_at", "2016-03-08 14:49:19.692858"]] [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", "2016-03-08 14:49:19.695596"], ["updated_at", "2016-03-08 14:49:19.695596"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.697160"], ["updated_at", "2016-03-08 14:49:19.697160"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.698447"], ["updated_at", "2016-03-08 14:49:19.698447"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.700186"], ["updated_at", "2016-03-08 14:49:19.700186"]] [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_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-03-08 14:49:19.702512"], ["updated_at", "2016-03-08 14:49:19.702512"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.704351"], ["updated_at", "2016-03-08 14:49:19.704351"]] [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", "2016-03-08 14:49:19.708881"], ["updated_at", "2016-03-08 14:49:19.708881"]] [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", "2016-03-08 14:49:19.710821"], ["updated_at", "2016-03-08 14:49:19.710821"]] [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-03-08 14:49:19.713510"], ["updated_at", "2016-03-08 14:49:19.713510"]] [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.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 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-03-08 14:49:19.716694"], ["updated_at", "2016-03-08 14:49:19.716694"]] [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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-08 14:49:19.720083"], ["updated_at", "2016-03-08 14:49:19.720083"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.721430"], ["updated_at", "2016-03-08 14:49:19.721430"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.722864"], ["updated_at", "2016-03-08 14:49:19.722864"]] [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", "2016-03-08 14:49:19.728810"], ["updated_at", "2016-03-08 14:49:19.728810"]] [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.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 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-03-08 14:49:19.733974"], ["updated_at", "2016-03-08 14:49:19.733974"]] [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", "2016-03-08 14:49:19.736870"], ["updated_at", "2016-03-08 14:49:19.736870"]] [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-03-08 14:49:19.738947"], ["updated_at", "2016-03-08 14:49:19.738947"]] 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.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", "2016-03-08 14:49:19.745067"], ["updated_at", "2016-03-08 14:49:19.745067"]] [1m[36m (0.1ms)[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.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 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-03-08 14:49:19.752325"], ["updated_at", "2016-03-08 14:49:19.752325"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[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", "2016-03-08 14:49:19.756964"], ["updated_at", "2016-03-08 14:49:19.756964"]] [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", "2016-03-08 14:49:19.759251"], ["updated_at", "2016-03-08 14:49:19.759251"]] [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_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-03-08 14:49:19.762395"], ["updated_at", "2016-03-08 14:49:19.762395"]] 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.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.2ms)[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.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", "2016-03-08 14:49:19.769205"], ["updated_at", "2016-03-08 14:49:19.769205"]] [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", "2016-03-08 14:49:19.776697"], ["updated_at", "2016-03-08 14:49:19.776697"]] [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", "2016-03-08 14:49:19.788254"], ["updated_at", "2016-03-08 14:49:19.788254"]] [1m[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-03-08 14:49:19.789882"], ["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.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 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", "2016-03-08 14:49:19.795767"], ["updated_at", "2016-03-08 14:49:19.795767"]] [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", "2016-03-08 14:49:19.799021"], ["updated_at", "2016-03-08 14:49:19.799021"]] [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", "2016-03-08 14:49:19.800793"], ["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", "2016-03-08 14:49:19.806585"], ["updated_at", "2016-03-08 14:49:19.806585"]] [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", "2016-03-08 14:49:19.809800"], ["updated_at", "2016-03-08 14:49:19.809800"]] [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-03-08 14:49:19.811173"], ["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", "2016-03-08 14:49:19.879278"], ["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.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-03-08 14:49:19.883793"], ["updated_at", "2016-03-08 14:49:19.883793"]] [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", "2016-03-08 14:49:19.887157"], ["updated_at", "2016-03-08 14:49:19.887157"]] [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", "2016-03-08 14:49:19.888913"], ["updated_at", "2016-03-08 14:49:19.888913"]] [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-03-08 14:49:19.891223"], ["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-03-08 14:49:19.892407"], ["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", "2016-03-08 14:49:19.897617"], ["updated_at", "2016-03-08 14:49:19.897617"]] [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", "2016-03-08 14:49:19.900756"], ["updated_at", "2016-03-08 14:49:19.900756"]] [1m[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-03-08 14:49:19.902609"], ["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", "2016-03-08 14:49:19.906837"], ["updated_at", "2016-03-08 14:49:19.906837"]] [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", "2016-03-08 14:49:19.909470"], ["updated_at", "2016-03-08 14:49:19.909470"]] [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", "2016-03-08 14:49:19.915521"], ["updated_at", "2016-03-08 14:49:19.915521"]] [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-03-08 14:49:19.919053"], ["updated_at", "2016-03-08 14:49:19.919053"]] [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-03-08 14:49:19.920803"], ["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", "2016-03-08 14:49:19.923268"], ["updated_at", "2016-03-08 14:49:19.923268"]] [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-03-08 14:49:19.925525"], ["updated_at", "2016-03-08 14:49:19.925525"]] [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-03-08 14:49:19.927526"], ["updated_at", "2016-03-08 14:49:19.927526"]] [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.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 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-03-08 14:49:19.934097"], ["updated_at", "2016-03-08 14:49:19.934097"]] [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", "2016-03-08 14:49:19.938727"], ["updated_at", "2016-03-08 14:49:19.938727"]] [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-03-08 14:49:19.940615"], ["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", "2016-03-08 14:49:19.945695"], ["updated_at", "2016-03-08 14:49:19.945695"]] [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", "2016-03-08 14:49:19.948709"], ["updated_at", "2016-03-08 14:49:19.948709"]] [1m[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-03-08 14:49:19.950242"], ["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.5ms)[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", "2016-03-08 14:49:19.957395"], ["updated_at", "2016-03-08 14:49:19.957395"]] [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", "2016-03-08 14:49:19.960814"], ["updated_at", "2016-03-08 14:49:19.960814"]] [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-03-08 14:49:19.962320"], ["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", "2016-03-08 14:49:19.965025"], ["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.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 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-03-08 14:49:19.973761"], ["updated_at", "2016-03-08 14:49:19.973761"]] [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", "2016-03-08 14:49:19.976854"], ["updated_at", "2016-03-08 14:49:19.976854"]] [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-03-08 14:49:19.978955"], ["updated_at", "2016-03-08 14:49:19.978955"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.980376"], ["updated_at", "2016-03-08 14:49:19.980376"]] [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-03-08 14:49:19.983316"], ["updated_at", "2016-03-08 14:49:19.983316"]] [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-03-08 14:49:19.985791"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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", "2016-03-08 14:49:19.993884"], ["updated_at", "2016-03-08 14:49:19.993884"]] [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.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 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-03-08 14:49:19.996923"], ["updated_at", "2016-03-08 14:49:19.996923"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:19.998601"], ["updated_at", "2016-03-08 14:49:19.998601"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:19.999970"], ["updated_at", "2016-03-08 14:49:19.999970"]] [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-03-08 14:49:20.003467"], ["updated_at", "2016-03-08 14:49:20.003467"]] [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-03-08 14:49:20.005810"], ["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-03-08 14:49:20.013744"], ["updated_at", "2016-03-08 14:49:20.013744"]] [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", "2016-03-08 14:49:20.016760"], ["updated_at", "2016-03-08 14:49:20.016760"]] [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", "33"], ["created_at", "2016-03-08 14:49:20.018900"], ["updated_at", "2016-03-08 14:49:20.018900"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.020694"], ["updated_at", "2016-03-08 14:49:20.020694"]] [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-03-08 14:49:20.023692"], ["updated_at", "2016-03-08 14:49:20.023692"]] [1m[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", "2016-03-08 14:49:20.025258"], ["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", "2016-03-08 14:49:20.032174"], ["updated_at", "2016-03-08 14:49:20.032174"]] [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.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 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-03-08 14:49:20.035600"], ["updated_at", "2016-03-08 14:49:20.035600"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.037318"], ["updated_at", "2016-03-08 14:49:20.037318"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.038707"], ["updated_at", "2016-03-08 14:49:20.038707"]] [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-03-08 14:49:20.041850"], ["updated_at", "2016-03-08 14:49:20.041850"]] [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-03-08 14:49:20.043515"], ["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.2ms)[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", "2016-03-08 14:49:20.051763"], ["updated_at", "2016-03-08 14:49:20.051763"]] [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", "2016-03-08 14:49:20.055272"], ["updated_at", "2016-03-08 14:49:20.055272"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.057107"], ["updated_at", "2016-03-08 14:49:20.057107"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.058224"], ["updated_at", "2016-03-08 14:49:20.058224"]] [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-03-08 14:49:20.060679"], ["updated_at", "2016-03-08 14:49:20.060679"]] [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-03-08 14:49:20.061989"], ["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", "2016-03-08 14:49:20.069908"], ["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-03-08 14:49:20.074547"], ["updated_at", "2016-03-08 14:49:20.074547"]] [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"."id" != 1)[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", 12.5], ["updated_at", "2016-03-08 14:49:20.078312"], ["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.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-03-08 14:49:20.082620"], ["updated_at", "2016-03-08 14:49:20.082620"]] [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-03-08 14:49:20.084921"], ["updated_at", "2016-03-08 14:49:20.084921"]] [1m[35m (0.1ms)[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.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-03-08 14:49:20.088171"], ["updated_at", "2016-03-08 14:49:20.088171"]] [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", "2016-03-08 14:49:20.154940"], ["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.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.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[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-03-08 14:49:20.172784"], ["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.1ms)[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", "2016-03-08 14:49:20.177171"], ["updated_at", "2016-03-08 14:49:20.177171"]] [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.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-03-08 14:49:20.180299"], ["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", "2016-03-08 14:49:20.200176"], ["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.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-03-08 14:49:20.203785"], ["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.2ms)[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-03-08 14:49:20.215889"], ["updated_at", "2016-03-08 14:49:20.215889"]] [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-03-08 14:49:20.218899"], ["updated_at", "2016-03-08 14:49:20.218899"]] [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", "2016-03-08 14:49:20.220999"], ["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.2ms)[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-03-08 14:49:20.232486"], ["updated_at", "2016-03-08 14:49:20.232486"]] [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-03-08 14:49:20.236121"], ["updated_at", "2016-03-08 14:49:20.236121"]] [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.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"."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-03-08 14:49:20.244409"], ["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-03-08 14:49:20.245688"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.4ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36mCoalescingPanda::Section Load (0.1ms)[0m [1mSELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"[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 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.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-03-08 14:49:20.254067"], ["updated_at", "2016-03-08 14:49:20.254067"]] [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 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", "2016-03-08 14:49:20.257328"], ["updated_at", "2016-03-08 14:49:20.257328"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.259121"], ["updated_at", "2016-03-08 14:49:20.259121"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.260241"], ["updated_at", "2016-03-08 14:49:20.260241"]] [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-03-08 14:49:20.262770"], ["updated_at", "2016-03-08 14:49:20.262770"]] [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-03-08 14:49:20.264130"], ["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-03-08 14:49:20.266288"], ["updated_at", "2016-03-08 14:49:20.266288"]] [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 (1.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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 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.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 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-03-08 14:49:20.275077"], ["updated_at", "2016-03-08 14:49:20.275077"]] [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 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", "2016-03-08 14:49:20.278054"], ["updated_at", "2016-03-08 14:49:20.278054"]] [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", "37"], ["created_at", "2016-03-08 14:49:20.279848"], ["updated_at", "2016-03-08 14:49:20.279848"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-03-08 14:49:20.281010"], ["updated_at", "2016-03-08 14:49:20.281010"]] [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-03-08 14:49:20.283513"], ["updated_at", "2016-03-08 14:49:20.283513"]] [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", "2016-03-08 14:49:20.285233"], ["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.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-03-08 14:49:20.287907"], ["updated_at", "2016-03-08 14:49:20.287907"]] [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-03-08 14:49:20.290429"], ["updated_at", "2016-03-08 14:49:20.290429"]] [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", "2016-03-08 14:49:20.292294"], ["updated_at", "2016-03-08 14:49:20.292294"]] [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.7ms)[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 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.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 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-03-08 14:49:20.300168"], ["updated_at", "2016-03-08 14:49:20.300168"]] [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 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-03-08 14:49:20.305679"], ["updated_at", "2016-03-08 14:49:20.305679"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.307630"], ["updated_at", "2016-03-08 14:49:20.307630"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.308812"], ["updated_at", "2016-03-08 14:49:20.308812"]] [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-03-08 14:49:20.311387"], ["updated_at", "2016-03-08 14:49:20.311387"]] [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-03-08 14:49:20.312722"], ["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-03-08 14:49:20.314803"], ["updated_at", "2016-03-08 14:49:20.314803"]] [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-03-08 14:49:20.317306"], ["updated_at", "2016-03-08 14:49:20.317306"]] [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-03-08 14:49:20.319008"], ["updated_at", "2016-03-08 14:49:20.319008"]] [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", "2016-03-08 14:49:20.375769"], ["updated_at", "2016-03-08 14:49:20.375769"]] [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[36m (0.0ms)[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.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 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.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 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-03-08 14:49:20.397701"], ["updated_at", "2016-03-08 14:49:20.397701"]] [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 104' 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 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-03-08 14:49:20.402207"], ["updated_at", "2016-03-08 14:49:20.402207"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.404505"], ["updated_at", "2016-03-08 14:49:20.404505"]] [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", "34"], ["created_at", "2016-03-08 14:49:20.405802"], ["updated_at", "2016-03-08 14:49:20.405802"]] [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-03-08 14:49:20.408516"], ["updated_at", "2016-03-08 14:49:20.408516"]] [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-03-08 14:49:20.409882"], ["id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [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" = ? 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-03-08 14:49:20.416040"], ["updated_at", "2016-03-08 14:49:20.416040"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "coalescing_panda_group_categories" [1m[36m (0.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36mCoalescingPanda::Assignment Load (0.2ms)[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-03-08 14:49:20.424622"], ["updated_at", "2016-03-08 14:49:20.424622"]] [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.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", "2016-03-08 14:49:20.427761"], ["updated_at", "2016-03-08 14:49:20.427761"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.429583"], ["updated_at", "2016-03-08 14:49:20.429583"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.430716"], ["updated_at", "2016-03-08 14:49:20.430716"]] [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-03-08 14:49:20.433215"], ["updated_at", "2016-03-08 14:49:20.433215"]] [1m[36m (0.2ms)[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-03-08 14:49:20.435214"], ["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-03-08 14:49:20.437683"], ["updated_at", "2016-03-08 14:49:20.437683"]] [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.1ms)[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.0ms)[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.1ms)[0m [1mSELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"[0m [1m[35m (0.0ms)[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.1ms)[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-03-08 14:49:20.457419"], ["updated_at", "2016-03-08 14:49:20.457419"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' 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 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-03-08 14:49:20.461256"], ["updated_at", "2016-03-08 14:49:20.461256"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.463203"], ["updated_at", "2016-03-08 14:49:20.463203"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.464374"], ["updated_at", "2016-03-08 14:49:20.464374"]] [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-03-08 14:49:20.467296"], ["updated_at", "2016-03-08 14:49:20.467296"]] [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-03-08 14:49:20.468894"], ["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-03-08 14:49:20.471275"], ["updated_at", "2016-03-08 14:49:20.471275"]] [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-03-08 14:49:20.478840"], ["updated_at", "2016-03-08 14:49:20.478840"]] [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.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", "2016-03-08 14:49:20.481991"], ["updated_at", "2016-03-08 14:49:20.481991"]] [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", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-08 14:49:20.483920"], ["updated_at", "2016-03-08 14:49:20.483920"]] [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_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-03-08 14:49:20.486138"], ["updated_at", "2016-03-08 14:49:20.486138"]] [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-03-08 14:49:20.489774"], ["updated_at", "2016-03-08 14:49:20.489774"]] [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-03-08 14:49:20.491305"], ["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-03-08 14:49:20.493595"], ["updated_at", "2016-03-08 14:49:20.493595"]] [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-03-08 14:49:20.495736"], ["updated_at", "2016-03-08 14:49:20.495736"]] [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-03-08 14:49:20.497281"], ["updated_at", "2016-03-08 14:49:20.497281"]] [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", "2016-03-08 14:49:20.498828"], ["updated_at", "2016-03-08 14:49:20.498828"]] [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.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::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", "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.2ms)[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-03-08 14:49:20.531429"], ["updated_at", "2016-03-08 14:49:20.531429"]] [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.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", "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-03-08 14:49:20.535718"], ["updated_at", "2016-03-08 14:49:20.535718"]] [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.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.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-03-08 14:49:20.539329"], ["updated_at", "2016-03-08 14:49:20.539329"]] [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.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", "2"]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.0ms)[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-03-08 14:49:20.542493"], ["updated_at", "2016-03-08 14:49:20.542493"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_submissions"[0m [1m[35m (1.1ms)[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.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", "2016-03-08 14:49:20.550490"], ["updated_at", "2016-03-08 14:49:20.550490"]] [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-03-08 14:49:20.554490"], ["updated_at", "2016-03-08 14:49:20.554490"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.556916"], ["updated_at", "2016-03-08 14:49:20.556916"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.558420"], ["updated_at", "2016-03-08 14:49:20.558420"]] [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-03-08 14:49:20.561107"], ["updated_at", "2016-03-08 14:49:20.561107"]] [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-03-08 14:49:20.562466"], ["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-03-08 14:49:20.564596"], ["updated_at", "2016-03-08 14:49:20.564596"]] [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 (2.8ms)[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-03-08 14:49:20.626977"], ["updated_at", "2016-03-08 14:49:20.626977"]] [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-03-08 14:49:20.630286"], ["updated_at", "2016-03-08 14:49:20.630286"]] [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.8ms)[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.0ms)[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-03-08 14:49:20.639267"], ["updated_at", "2016-03-08 14:49:20.639267"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' 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 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-03-08 14:49:20.642837"], ["updated_at", "2016-03-08 14:49:20.642837"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.645329"], ["updated_at", "2016-03-08 14:49:20.645329"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.646897"], ["updated_at", "2016-03-08 14:49:20.646897"]] [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-03-08 14:49:20.649997"], ["updated_at", "2016-03-08 14:49:20.649997"]] [1m[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-03-08 14:49:20.652015"], ["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" = ? 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-03-08 14:49:20.655433"], ["updated_at", "2016-03-08 14:49:20.655433"]] [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-03-08 14:49:20.657967"], ["updated_at", "2016-03-08 14:49:20.657967"]] [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-03-08 14:49:20.659557"], ["updated_at", "2016-03-08 14:49:20.659557"]] [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", "2016-03-08 14:49:20.661069"], ["updated_at", "2016-03-08 14:49:20.661069"]] [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.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-03-08 14:49:20.679336"], ["updated_at", "2016-03-08 14:49:20.679336"]] [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.0ms)[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-03-08 14:49:20.681532"], ["updated_at", "2016-03-08 14:49:20.681532"]] [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" = ? 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.8ms)[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.0ms)[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.0ms)[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-03-08 14:49:20.691211"], ["updated_at", "2016-03-08 14:49:20.691211"]] [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 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", "2016-03-08 14:49:20.694309"], ["updated_at", "2016-03-08 14:49:20.694309"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.696451"], ["updated_at", "2016-03-08 14:49:20.696451"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.697773"], ["updated_at", "2016-03-08 14:49:20.697773"]] [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-03-08 14:49:20.700383"], ["updated_at", "2016-03-08 14:49:20.700383"]] [1m[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-03-08 14:49:20.701939"], ["id", 1]] [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"."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-03-08 14:49:20.706994"], ["updated_at", "2016-03-08 14:49:20.706994"]] [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-03-08 14:49:20.709572"], ["updated_at", "2016-03-08 14:49:20.709572"]] [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"."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.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", "2016-03-08 14:49:20.717228"], ["updated_at", "2016-03-08 14:49:20.717228"]] [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.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", "2016-03-08 14:49:20.721217"], ["updated_at", "2016-03-08 14:49:20.721217"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.723707"], ["updated_at", "2016-03-08 14:49:20.723707"]] [1m[35m (0.0ms)[0m 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", "2016-03-08 14:49:20.725217"], ["updated_at", "2016-03-08 14:49:20.725217"]] [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-03-08 14:49:20.728178"], ["updated_at", "2016-03-08 14:49:20.728178"]] [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-03-08 14:49:20.729679"], ["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-03-08 14:49:20.731829"], ["updated_at", "2016-03-08 14:49:20.731829"]] [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", "2016-03-08 14:49:20.733959"], ["updated_at", "2016-03-08 14:49:20.733959"]] [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", "2016-03-08 14:49:20.736624"], ["updated_at", "2016-03-08 14:49:20.736624"]] [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", "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-03-08 14:49:20.739410"], ["updated_at", "2016-03-08 14:49:20.739410"]] [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.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", "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-03-08 14:49:20.756243"], ["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.1ms)[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.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 [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.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 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-03-08 14:49:20.775255"], ["updated_at", "2016-03-08 14:49:20.775255"]] [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.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", "2016-03-08 14:49:20.778766"], ["updated_at", "2016-03-08 14:49:20.778766"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.780585"], ["updated_at", "2016-03-08 14:49:20.780585"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.781684"], ["updated_at", "2016-03-08 14:49:20.781684"]] [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-03-08 14:49:20.784110"], ["updated_at", "2016-03-08 14:49:20.784110"]] [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-03-08 14:49:20.785618"], ["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-03-08 14:49:20.788162"], ["updated_at", "2016-03-08 14:49:20.788162"]] [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-03-08 14:49:20.790755"], ["updated_at", "2016-03-08 14:49:20.790755"]] [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-03-08 14:49:20.792415"], ["updated_at", "2016-03-08 14:49:20.792415"]] [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", "2016-03-08 14:49:20.794094"], ["updated_at", "2016-03-08 14:49:20.794094"]] [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.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", "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.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-03-08 14:49:20.811920"], ["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.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[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 (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.1ms)[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-03-08 14:49:20.830181"], ["updated_at", "2016-03-08 14:49:20.830181"]] [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.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", "2016-03-08 14:49:20.833352"], ["updated_at", "2016-03-08 14:49:20.833352"]] [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", "48"], ["created_at", "2016-03-08 14:49:20.836297"], ["updated_at", "2016-03-08 14:49:20.836297"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:20.838188"], ["updated_at", "2016-03-08 14:49:20.838188"]] [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-03-08 14:49:20.841117"], ["updated_at", "2016-03-08 14:49:20.841117"]] [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-03-08 14:49:20.903674"], ["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-03-08 14:49:20.906886"], ["updated_at", "2016-03-08 14:49:20.906886"]] [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-03-08 14:49:20.909396"], ["updated_at", "2016-03-08 14:49:20.909396"]] [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-03-08 14:49:20.911045"], ["updated_at", "2016-03-08 14:49:20.911045"]] [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-03-08 14:49:20.912542"], ["updated_at", "2016-03-08 14:49:20.912542"]] [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.7ms)[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.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- :users\n"], ["updated_at", "2016-03-08 14:49:20.931329"], ["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.1ms)[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.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-03-08 14:49:20.948277"], ["updated_at", "2016-03-08 14:49:20.948277"]] [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.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", "2016-03-08 14:49:20.952208"], ["updated_at", "2016-03-08 14:49:20.952208"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:49:20.954669"], ["updated_at", "2016-03-08 14:49:20.954669"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:20.955869"], ["updated_at", "2016-03-08 14:49:20.955869"]] [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-03-08 14:49:20.958515"], ["updated_at", "2016-03-08 14:49:20.958515"]] [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-03-08 14:49:20.960049"], ["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-03-08 14:49:20.962360"], ["updated_at", "2016-03-08 14:49:20.962360"]] [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-03-08 14:49:20.964606"], ["updated_at", "2016-03-08 14:49:20.964606"]] [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-03-08 14:49:20.966270"], ["updated_at", "2016-03-08 14:49:20.966270"]] [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-03-08 14:49:20.967885"], ["updated_at", "2016-03-08 14:49:20.967885"]] [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.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- :users\n- :soft_delete\n"], ["updated_at", "2016-03-08 14:49:20.985067"], ["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.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-03-08 14:49:20.992052"], ["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.2ms)[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.2ms)[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", "2016-03-08 14:49:21.003948"], ["updated_at", "2016-03-08 14:49:21.003948"]] [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.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 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-03-08 14:49:21.008408"], ["updated_at", "2016-03-08 14:49:21.008408"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.010244"], ["updated_at", "2016-03-08 14:49:21.010244"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:21.011370"], ["updated_at", "2016-03-08 14:49:21.011370"]] [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-03-08 14:49:21.013847"], ["updated_at", "2016-03-08 14:49:21.013847"]] [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-03-08 14:49:21.015156"], ["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 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-03-08 14:49:21.022814"], ["updated_at", "2016-03-08 14:49:21.022814"]] [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.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", "2016-03-08 14:49:21.025978"], ["updated_at", "2016-03-08 14:49:21.025978"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:21.027742"], ["updated_at", "2016-03-08 14:49:21.027742"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.028881"], ["updated_at", "2016-03-08 14:49:21.028881"]] [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-03-08 14:49:21.031261"], ["updated_at", "2016-03-08 14:49:21.031261"]] [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-03-08 14:49:21.032698"], ["id", 1]] [1m[35m (0.1ms)[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 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.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", "2016-03-08 14:49:21.041974"], ["updated_at", "2016-03-08 14:49:21.041974"]] [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.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", "2016-03-08 14:49:21.046308"], ["updated_at", "2016-03-08 14:49:21.046308"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.048133"], ["updated_at", "2016-03-08 14:49:21.048133"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:49:21.049262"], ["updated_at", "2016-03-08 14:49:21.049262"]] [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-03-08 14:49:21.052074"], ["updated_at", "2016-03-08 14:49:21.052074"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[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-03-08 14:49:21.054350"], ["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 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", "2016-03-08 14:49:21.062543"], ["updated_at", "2016-03-08 14:49:21.062543"]] [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.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", "2016-03-08 14:49:21.066676"], ["updated_at", "2016-03-08 14:49:21.066676"]] [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", "53"], ["created_at", "2016-03-08 14:49:21.069722"], ["updated_at", "2016-03-08 14:49:21.069722"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.071288"], ["updated_at", "2016-03-08 14:49:21.071288"]] [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-03-08 14:49:21.074069"], ["updated_at", "2016-03-08 14:49:21.074069"]] [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-03-08 14:49:21.075736"], ["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.2ms)[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.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 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-03-08 14:49:21.084561"], ["updated_at", "2016-03-08 14:49:21.084561"]] [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 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", "2016-03-08 14:49:21.089910"], ["updated_at", "2016-03-08 14:49:21.089910"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.091858"], ["updated_at", "2016-03-08 14:49:21.091858"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:21.093555"], ["updated_at", "2016-03-08 14:49:21.093555"]] [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-03-08 14:49:21.096205"], ["updated_at", "2016-03-08 14:49:21.096205"]] [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-03-08 14:49:21.097713"], ["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.0ms)[0m SAVEPOINT active_record_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-03-08 14:49:21.105879"], ["updated_at", "2016-03-08 14:49:21.105879"]] [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.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 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-03-08 14:49:21.109026"], ["updated_at", "2016-03-08 14:49:21.109026"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:21.110712"], ["updated_at", "2016-03-08 14:49:21.110712"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.111816"], ["updated_at", "2016-03-08 14:49:21.111816"]] [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-03-08 14:49:21.114266"], ["updated_at", "2016-03-08 14:49:21.114266"]] [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-03-08 14:49:21.115678"], ["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 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", "2016-03-08 14:49:21.184560"], ["updated_at", "2016-03-08 14:49:21.184560"]] [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.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", "2016-03-08 14:49:21.188958"], ["updated_at", "2016-03-08 14:49:21.188958"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.191239"], ["updated_at", "2016-03-08 14:49:21.191239"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:21.192453"], ["updated_at", "2016-03-08 14:49:21.192453"]] [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-03-08 14:49:21.194950"], ["updated_at", "2016-03-08 14:49:21.194950"]] [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-03-08 14:49:21.196254"], ["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.2ms)[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", "2016-03-08 14:49:21.204794"], ["updated_at", "2016-03-08 14:49:21.204794"]] [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.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.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 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-03-08 14:49:21.208518"], ["updated_at", "2016-03-08 14:49:21.208518"]] [1m[36m (0.0ms)[0m [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", "2016-03-08 14:49:21.210884"], ["updated_at", "2016-03-08 14:49:21.210884"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.212481"], ["updated_at", "2016-03-08 14:49:21.212481"]] [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-03-08 14:49:21.215665"], ["updated_at", "2016-03-08 14:49:21.215665"]] [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-03-08 14:49:21.217605"], ["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 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-03-08 14:49:21.226981"], ["updated_at", "2016-03-08 14:49:21.226981"]] [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", "2016-03-08 14:49:21.230219"], ["updated_at", "2016-03-08 14:49:21.230219"]] [1m[36m (0.0ms)[0m [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-03-08 14:49:21.232086"], ["updated_at", "2016-03-08 14:49:21.232086"]] [1m[35m (0.0ms)[0m 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-03-08 14:49:21.233320"], ["updated_at", "2016-03-08 14:49:21.233320"]] [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-03-08 14:49:21.236590"], ["updated_at", "2016-03-08 14:49:21.236590"]] [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-03-08 14:49:21.238316"], ["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", "2016-03-08 14:49:21.241729"], ["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 (1.0ms)[0m rollback transaction [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.3ms) Completed 200 OK in 25ms (Views: 25.2ms | 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.0ms)[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 (12.2ms)[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", Tue, 08 Mar 2016 15:01:17 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", Tue, 08 Mar 2016 15:01:17 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.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" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1 [1m[36mSQL (1.1ms)[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", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["expires_at", Tue, 08 Mar 2016 16:01:17 UTC +00:00], ["refresh_token", "token"], ["updated_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["user_id", "1"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 Completed 200 OK in 52ms (Views: 0.6ms | ActiveRecord: 1.5ms) [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.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.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[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 (0.4ms)[0m INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["updated_at", Tue, 08 Mar 2016 15:01:17 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.6ms)[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" ("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", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["expires_at", Wed, 09 Mar 2016 15:01:17 UTC +00:00], ["refresh_token", "token"], ["updated_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["user_id", "abcd"]] [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 [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[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.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", "2016-05-13 16:13:29.667088"], ["updated_at", "2016-05-13 16:13:29.667088"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[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-05-13 16:13:29.701320"], ["updated_at", "2016-05-13 16:13:29.701320"]] [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.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", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["api_token", "foobar"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-05-13 16:13:29.754742"], ["updated_at", "2016-05-13 16:13:29.754742"]] [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 75ms (Views: 25.5ms | ActiveRecord: 1.0ms) [1m[35mCoalescingPanda::CanvasApiAuth Load (0.2ms)[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.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.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-05-13 16:13:29.863134"], ["updated_at", "2016-05-13 16:13:29.863134"]] [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 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", "2016-05-13 16:13:29.875337"], ["updated_at", "2016-05-13 16:13:29.875337"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.0ms)[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-05-13 16:13:29.878498"], ["updated_at", "2016-05-13 16:13:29.878498"]] [1m[35m (0.1ms)[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", "2016-05-13 16:13:29.881908"], ["updated_at", "2016-05-13 16:13:29.881908"]] [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 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.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 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-05-13 16:13:29.912064"], ["updated_at", "2016-05-13 16:13:29.912064"]] [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.9ms)[0m INSERT INTO "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-05-13 16:13:29.917051"], ["updated_at", "2016-05-13 16:13:29.917051"]] [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", "2"], ["created_at", "2016-05-13 16:13:29.920623"], ["updated_at", "2016-05-13 16:13:29.920623"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:29.922773"], ["updated_at", "2016-05-13 16:13:29.922773"]] [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.2ms)[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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' 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 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-05-13 16:13:29.930201"], ["updated_at", "2016-05-13 16:13:29.930201"]] [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.1ms)[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", "2016-05-13 16:13:29.934716"], ["updated_at", "2016-05-13 16:13:29.934716"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:29.936955"], ["updated_at", "2016-05-13 16:13:29.936955"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:29.938379"], ["updated_at", "2016-05-13 16:13:29.938379"]] [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.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 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-05-13 16:13:29.958288"], ["updated_at", "2016-05-13 16:13:29.958288"]] [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.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 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-05-13 16:13:29.962914"], ["updated_at", "2016-05-13 16:13:29.962914"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:29.965058"], ["updated_at", "2016-05-13 16:13:29.965058"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:29.966362"], ["updated_at", "2016-05-13 16:13:29.966362"]] [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 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", "2016-05-13 16:13:29.974187"], ["updated_at", "2016-05-13 16:13:29.974187"]] [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", "2016-05-13 16:13:29.978342"], ["updated_at", "2016-05-13 16:13:29.978342"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:29.980524"], ["updated_at", "2016-05-13 16:13:29.980524"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:29.981836"], ["updated_at", "2016-05-13 16:13:29.981836"]] [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 12' 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 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-05-13 16:13:29.987616"], ["updated_at", "2016-05-13 16:13:29.987616"]] [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", "2016-05-13 16:13:29.991077"], ["updated_at", "2016-05-13 16:13:29.991077"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:29.993256"], ["updated_at", "2016-05-13 16:13:29.993256"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:29.994608"], ["updated_at", "2016-05-13 16:13:29.994608"]] [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", "2016-05-13 16:13:29.996381"], ["updated_at", "2016-05-13 16:13:29.996381"]] [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", "2016-05-13 16:13:30.003670"], ["updated_at", "2016-05-13 16:13:30.003670"]] 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.1ms)[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", "2016-05-13 16:13:30.009932"], ["updated_at", "2016-05-13 16:13:30.009932"]] [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-05-13 16:13:30.013905"], ["updated_at", "2016-05-13 16:13:30.013905"]] [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", "7"], ["created_at", "2016-05-13 16:13:30.016134"], ["updated_at", "2016-05-13 16:13:30.016134"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.017655"], ["updated_at", "2016-05-13 16:13:30.017655"]] [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", "2016-05-13 16:13:30.023705"], ["updated_at", "2016-05-13 16:13:30.023705"]] [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.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.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[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-05-13 16:13:30.096959"], ["updated_at", "2016-05-13 16:13:30.096959"]] [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", "2016-05-13 16:13:30.099311"], ["updated_at", "2016-05-13 16:13:30.099311"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.100973"], ["updated_at", "2016-05-13 16:13:30.100973"]] [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.1ms)[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.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 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-05-13 16:13:30.115204"], ["updated_at", "2016-05-13 16:13:30.115204"]] [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", "2016-05-13 16:13:30.118555"], ["updated_at", "2016-05-13 16:13:30.118555"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.120354"], ["updated_at", "2016-05-13 16:13:30.120354"]] [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 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-05-13 16:13:30.126130"], ["updated_at", "2016-05-13 16:13:30.126130"]] [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", "2016-05-13 16:13:30.129849"], ["updated_at", "2016-05-13 16:13:30.129849"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.131713"], ["updated_at", "2016-05-13 16:13:30.131713"]] [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 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", "2016-05-13 16:13:30.136186"], ["updated_at", "2016-05-13 16:13:30.136186"]] [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.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' 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 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-05-13 16:13:30.140573"], ["updated_at", "2016-05-13 16:13:30.140573"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.143057"], ["updated_at", "2016-05-13 16:13:30.143057"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.144327"], ["updated_at", "2016-05-13 16:13:30.144327"]] [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", "2016-05-13 16:13:30.147534"], ["updated_at", "2016-05-13 16:13:30.147534"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.149142"], ["updated_at", "2016-05-13 16:13:30.149142"]] [1m[35m (0.0ms)[0m 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", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-05-13 16:13:30.150259"], ["updated_at", "2016-05-13 16:13:30.150259"]] 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", "2016-05-13 16:13:30.154434"], ["updated_at", "2016-05-13 16:13:30.154434"]] [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", "2016-05-13 16:13:30.156110"], ["updated_at", "2016-05-13 16:13:30.156110"]] [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", "2016-05-13 16:13:30.159078"], ["updated_at", "2016-05-13 16:13:30.159078"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.160989"], ["updated_at", "2016-05-13 16:13:30.160989"]] [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.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", "2016-05-13 16:13:30.163880"], ["updated_at", "2016-05-13 16:13:30.163880"]] [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", "2016-05-13 16:13:30.165731"], ["updated_at", "2016-05-13 16:13:30.165731"]] 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", "2016-05-13 16:13:30.170641"], ["updated_at", "2016-05-13 16:13:30.170641"]] [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.1ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' 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 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-05-13 16:13:30.173804"], ["updated_at", "2016-05-13 16:13:30.173804"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.175905"], ["updated_at", "2016-05-13 16:13:30.175905"]] [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.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", "2016-05-13 16:13:30.188666"], ["updated_at", "2016-05-13 16:13:30.188666"]] [1m[36m (0.1ms)[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", "2016-05-13 16:13:30.191742"], ["updated_at", "2016-05-13 16:13:30.191742"]] [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", "2016-05-13 16:13:30.201304"], ["updated_at", "2016-05-13 16:13:30.201304"]] [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", "2016-05-13 16:13:30.204455"], ["updated_at", "2016-05-13 16:13:30.204455"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.206117"], ["updated_at", "2016-05-13 16:13:30.206117"]] [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", "10"], ["created_at", "2016-05-13 16:13:30.207820"], ["updated_at", "2016-05-13 16:13:30.207820"]] [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_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-05-13 16:13:30.209922"], ["updated_at", "2016-05-13 16:13:30.209922"]] [1m[36m (0.0ms)[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.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' 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 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-05-13 16:13:30.218013"], ["updated_at", "2016-05-13 16:13:30.218013"]] [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", "2016-05-13 16:13:30.220405"], ["updated_at", "2016-05-13 16:13:30.220405"]] [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", "2016-05-13 16:13:30.223465"], ["updated_at", "2016-05-13 16:13:30.223465"]] [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", "2016-05-13 16:13:30.226884"], ["updated_at", "2016-05-13 16:13:30.226884"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.228600"], ["updated_at", "2016-05-13 16:13:30.228600"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.229893"], ["updated_at", "2016-05-13 16:13:30.229893"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.231193"], ["updated_at", "2016-05-13 16:13:30.231193"]] [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.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 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-05-13 16:13:30.238558"], ["updated_at", "2016-05-13 16:13:30.238558"]] [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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-05-13 16:13:30.242242"], ["updated_at", "2016-05-13 16:13:30.242242"]] [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.1ms)[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-05-13 16:13:30.246713"], ["updated_at", "2016-05-13 16:13:30.246713"]] [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.1ms)[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-05-13 16:13:30.250389"], ["updated_at", "2016-05-13 16:13:30.250389"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.252339"], ["updated_at", "2016-05-13 16:13:30.252339"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.253607"], ["updated_at", "2016-05-13 16:13:30.253607"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.254823"], ["updated_at", "2016-05-13 16:13:30.254823"]] [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", "2016-05-13 16:13:30.259974"], ["updated_at", "2016-05-13 16:13:30.259974"]] [1m[35m (0.1ms)[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-05-13 16:13:30.262588"], ["updated_at", "2016-05-13 16:13:30.262588"]] [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.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", "2016-05-13 16:13:30.266207"], ["updated_at", "2016-05-13 16:13:30.266207"]] [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", "2016-05-13 16:13:30.269673"], ["updated_at", "2016-05-13 16:13:30.269673"]] [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", "17"], ["created_at", "2016-05-13 16:13:30.271534"], ["updated_at", "2016-05-13 16:13:30.271534"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.272809"], ["updated_at", "2016-05-13 16:13:30.272809"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.274040"], ["updated_at", "2016-05-13 16:13:30.274040"]] [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_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-05-13 16:13:30.275800"], ["updated_at", "2016-05-13 16:13:30.275800"]] [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", "2016-05-13 16:13:30.278554"], ["updated_at", "2016-05-13 16:13:30.278554"]] 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.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 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-05-13 16:13:30.284093"], ["updated_at", "2016-05-13 16:13:30.284093"]] [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-05-13 16:13:30.286319"], ["updated_at", "2016-05-13 16:13:30.286319"]] [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", "2016-05-13 16:13:30.289321"], ["updated_at", "2016-05-13 16:13:30.289321"]] [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", "2016-05-13 16:13:30.293270"], ["updated_at", "2016-05-13 16:13:30.293270"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.294883"], ["updated_at", "2016-05-13 16:13:30.294883"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.296089"], ["updated_at", "2016-05-13 16:13:30.296089"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.297270"], ["updated_at", "2016-05-13 16:13:30.297270"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.298901"], ["updated_at", "2016-05-13 16:13:30.298901"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.300615"], ["updated_at", "2016-05-13 16:13:30.300615"]] [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", "2016-05-13 16:13:30.305446"], ["updated_at", "2016-05-13 16:13:30.305446"]] [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-05-13 16:13:30.307677"], ["updated_at", "2016-05-13 16:13:30.307677"]] [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.1ms)[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-05-13 16:13:30.310924"], ["updated_at", "2016-05-13 16:13:30.310924"]] [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 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-05-13 16:13:30.366311"], ["updated_at", "2016-05-13 16:13:30.366311"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.368233"], ["updated_at", "2016-05-13 16:13:30.368233"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.369472"], ["updated_at", "2016-05-13 16:13:30.369472"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.370661"], ["updated_at", "2016-05-13 16:13:30.370661"]] [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 [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[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.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 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-05-13 16:13:30.384601"], ["updated_at", "2016-05-13 16:13:30.384601"]] [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", "2016-05-13 16:13:30.388190"], ["updated_at", "2016-05-13 16:13:30.388190"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.390292"], ["updated_at", "2016-05-13 16:13:30.390292"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.391673"], ["updated_at", "2016-05-13 16:13:30.391673"]] [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 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", "2016-05-13 16:13:30.398114"], ["updated_at", "2016-05-13 16:13:30.398114"]] [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.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-05-13 16:13:30.401546"], ["updated_at", "2016-05-13 16:13:30.401546"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.403880"], ["updated_at", "2016-05-13 16:13:30.403880"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.405446"], ["updated_at", "2016-05-13 16:13:30.405446"]] [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", "2016-05-13 16:13:30.411171"], ["updated_at", "2016-05-13 16:13:30.411171"]] [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 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.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 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-05-13 16:13:30.414856"], ["updated_at", "2016-05-13 16:13:30.414856"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.416909"], ["updated_at", "2016-05-13 16:13:30.416909"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.418117"], ["updated_at", "2016-05-13 16:13:30.418117"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.419718"], ["updated_at", "2016-05-13 16:13:30.419718"]] [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-05-13 16:13:30.421368"], ["updated_at", "2016-05-13 16:13:30.421368"]] 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 53' 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 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-05-13 16:13:30.427648"], ["updated_at", "2016-05-13 16:13:30.427648"]] [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", "2016-05-13 16:13:30.430971"], ["updated_at", "2016-05-13 16:13:30.430971"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.432892"], ["updated_at", "2016-05-13 16:13:30.432892"]] [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", "19"], ["created_at", "2016-05-13 16:13:30.434390"], ["updated_at", "2016-05-13 16:13:30.434390"]] [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", "2016-05-13 16:13:30.447209"], ["updated_at", "2016-05-13 16:13:30.447209"]] [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", "2016-05-13 16:13:30.449514"], ["updated_at", "2016-05-13 16:13:30.449514"]] [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", "2016-05-13 16:13:30.453046"], ["updated_at", "2016-05-13 16:13:30.453046"]] [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", "2016-05-13 16:13:30.455844"], ["updated_at", "2016-05-13 16:13:30.455844"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.457387"], ["updated_at", "2016-05-13 16:13:30.457387"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:30.458693"], ["updated_at", "2016-05-13 16:13:30.458693"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.460115"], ["updated_at", "2016-05-13 16:13:30.460115"]] [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 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.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-05-13 16:13:30.468370"], ["updated_at", "2016-05-13 16:13:30.468370"]] [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-05-13 16:13:30.470952"], ["updated_at", "2016-05-13 16:13:30.470952"]] [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.1ms)[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-05-13 16:13:30.474712"], ["updated_at", "2016-05-13 16:13:30.474712"]] [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.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.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", "2016-05-13 16:13:30.478935"], ["updated_at", "2016-05-13 16:13:30.478935"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.481216"], ["updated_at", "2016-05-13 16:13:30.481216"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.482813"], ["updated_at", "2016-05-13 16:13:30.482813"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.484341"], ["updated_at", "2016-05-13 16:13:30.484341"]] [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", "2016-05-13 16:13:30.490821"], ["updated_at", "2016-05-13 16:13:30.490821"]] [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-05-13 16:13:30.493155"], ["updated_at", "2016-05-13 16:13:30.493155"]] [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", "2016-05-13 16:13:30.496173"], ["updated_at", "2016-05-13 16:13:30.496173"]] [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-05-13 16:13:30.499090"], ["updated_at", "2016-05-13 16:13:30.499090"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.500699"], ["updated_at", "2016-05-13 16:13:30.500699"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.502018"], ["updated_at", "2016-05-13 16:13:30.502018"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.503623"], ["updated_at", "2016-05-13 16:13:30.503623"]] [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_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.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-05-13 16:13:30.509889"], ["updated_at", "2016-05-13 16:13:30.509889"]] [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", "2016-05-13 16:13:30.512297"], ["updated_at", "2016-05-13 16:13:30.512297"]] [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-05-13 16:13:30.515339"], ["updated_at", "2016-05-13 16:13:30.515339"]] [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 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.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", "2016-05-13 16:13:30.518580"], ["updated_at", "2016-05-13 16:13:30.518580"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.520677"], ["updated_at", "2016-05-13 16:13:30.520677"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.522176"], ["updated_at", "2016-05-13 16:13:30.522176"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.523648"], ["updated_at", "2016-05-13 16:13:30.523648"]] [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-05-13 16:13:30.525802"], ["updated_at", "2016-05-13 16:13:30.525802"]] [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", "2016-05-13 16:13:30.528244"], ["updated_at", "2016-05-13 16:13:30.528244"]] 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.1ms)[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", "2016-05-13 16:13:30.534664"], ["updated_at", "2016-05-13 16:13:30.534664"]] [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-05-13 16:13:30.537122"], ["updated_at", "2016-05-13 16:13:30.537122"]] [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", "2016-05-13 16:13:30.540238"], ["updated_at", "2016-05-13 16:13:30.540238"]] [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.0ms)[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-05-13 16:13:30.543620"], ["updated_at", "2016-05-13 16:13:30.543620"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.545524"], ["updated_at", "2016-05-13 16:13:30.545524"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.547028"], ["updated_at", "2016-05-13 16:13:30.547028"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.548487"], ["updated_at", "2016-05-13 16:13:30.548487"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.550327"], ["updated_at", "2016-05-13 16:13:30.550327"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.552131"], ["updated_at", "2016-05-13 16:13:30.552131"]] [1m[36m (0.0ms)[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.0ms)[0m SAVEPOINT active_record_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", "2016-05-13 16:13:30.558262"], ["updated_at", "2016-05-13 16:13:30.558262"]] [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", "2016-05-13 16:13:30.560791"], ["updated_at", "2016-05-13 16:13:30.560791"]] [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 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", "2016-05-13 16:13:30.565346"], ["updated_at", "2016-05-13 16:13:30.565346"]] [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.1ms)[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-05-13 16:13:30.569356"], ["updated_at", "2016-05-13 16:13:30.569356"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.571593"], ["updated_at", "2016-05-13 16:13:30.571593"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:30.573145"], ["updated_at", "2016-05-13 16:13:30.573145"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:30.574722"], ["updated_at", "2016-05-13 16:13:30.574722"]] [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-05-13 16:13:30.580973"], ["updated_at", "2016-05-13 16:13:30.580973"]] [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-05-13 16:13:30.586172"], ["updated_at", "2016-05-13 16:13:30.586172"]] [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_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-05-13 16:13:30.588421"], ["updated_at", "2016-05-13 16:13:30.588421"]] [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-05-13 16:13:30.590884"], ["updated_at", "2016-05-13 16:13:30.590884"]] 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.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 [1mSAVEPOINT active_record_1[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", "2016-05-13 16:13:30.598962"], ["updated_at", "2016-05-13 16:13:30.598962"]] [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.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-05-13 16:13:30.605669"], ["updated_at", "2016-05-13 16:13:30.605669"]] [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.2ms)[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.2ms)[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-05-13 16:13:30.613271"], ["updated_at", "2016-05-13 16:13:30.613271"]] [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", "2016-05-13 16:13:30.616637"], ["updated_at", "2016-05-13 16:13:30.616637"]] [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_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-05-13 16:13:30.619610"], ["updated_at", "2016-05-13 16:13:30.619610"]] 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.1ms)[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.2ms)[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.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", "2016-05-13 16:13:30.625919"], ["updated_at", "2016-05-13 16:13:30.625919"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.4ms)[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 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", "2016-05-13 16:13:30.635474"], ["updated_at", "2016-05-13 16:13:30.635474"]] [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 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.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 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-05-13 16:13:30.639109"], ["updated_at", "2016-05-13 16:13:30.639109"]] [1m[35m (0.0ms)[0m 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", "31"], ["created_at", "2016-05-13 16:13:30.641189"], ["updated_at", "2016-05-13 16:13:30.641189"]] [1m[36m (0.0ms)[0m [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", "26"], ["created_at", "2016-05-13 16:13:30.642686"], ["updated_at", "2016-05-13 16:13:30.642686"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::CanvasBatch Load (0.2ms)[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-05-13 16:13:30.717629"], ["updated_at", "2016-05-13 16:13:30.717629"]] [1m[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-05-13 16:13:30.719679"], ["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" ORDER BY created_at ASC LIMIT 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 81' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' 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 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-05-13 16:13:30.729154"], ["updated_at", "2016-05-13 16:13:30.729154"]] [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 82' 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 82' 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 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-05-13 16:13:30.733407"], ["updated_at", "2016-05-13 16:13:30.733407"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-05-13 16:13:30.735787"], ["updated_at", "2016-05-13 16:13:30.735787"]] [1m[36m (0.0ms)[0m [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", "27"], ["created_at", "2016-05-13 16:13:30.737389"], ["updated_at", "2016-05-13 16:13:30.737389"]] [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-05-13 16:13:30.740431"], ["updated_at", "2016-05-13 16:13:30.740431"]] [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-05-13 16:13:30.742005"], ["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 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-05-13 16:13:30.750061"], ["updated_at", "2016-05-13 16:13:30.750061"]] [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 84' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' 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 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-05-13 16:13:30.753761"], ["updated_at", "2016-05-13 16:13:30.753761"]] [1m[36m (0.0ms)[0m [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", "33"], ["created_at", "2016-05-13 16:13:30.755781"], ["updated_at", "2016-05-13 16:13:30.755781"]] [1m[35m (0.0ms)[0m 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", "28"], ["created_at", "2016-05-13 16:13:30.756978"], ["updated_at", "2016-05-13 16:13:30.756978"]] [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-05-13 16:13:30.760131"], ["updated_at", "2016-05-13 16:13:30.760131"]] [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-05-13 16:13:30.762337"], ["id", 1]] [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 "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-05-13 16:13:30.779414"], ["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", "2016-05-13 16:13:30.784377"], ["updated_at", "2016-05-13 16:13:30.784377"]] [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"."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", 12.5], ["updated_at", "2016-05-13 16:13:30.786862"], ["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.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-05-13 16:13:30.790741"], ["updated_at", "2016-05-13 16:13:30.790741"]] [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-05-13 16:13:30.792790"], ["updated_at", "2016-05-13 16:13:30.792790"]] [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", "2016-05-13 16:13:30.794491"], ["updated_at", "2016-05-13 16:13:30.794491"]] [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" IS NOT NULL) [["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", 25.0], ["updated_at", "2016-05-13 16:13:30.807924"], ["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.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.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.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.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.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 (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", 37.5], ["updated_at", "2016-05-13 16:13:30.826678"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::AssignmentGroup Load (0.5ms)[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.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.9ms)[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", "2016-05-13 16:13:30.831382"], ["updated_at", "2016-05-13 16:13:30.831382"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_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"."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", 50.0], ["updated_at", "2016-05-13 16:13:30.835212"], ["id", 1]] [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"."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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] [1m[36mCoalescingPanda::GroupCategory Load (0.5ms)[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.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.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.3ms)[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.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[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ?[0m [["percent_complete", 62.5], ["updated_at", "2016-05-13 16:13:30.856432"], ["id", 1]] [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" = ?[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", 75.0], ["updated_at", "2016-05-13 16:13:30.860268"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::Group Load (0.5ms)[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.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[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"."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.5ms)[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", "2016-05-13 16:13:30.929460"], ["updated_at", "2016-05-13 16:13:30.929460"]] [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", "2016-05-13 16:13:30.933103"], ["updated_at", "2016-05-13 16:13:30.933103"]] [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 [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", 87.5], ["updated_at", "2016-05-13 16:13:30.935001"], ["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" = ? [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36mCoalescingPanda::GroupMembership Load (0.6ms)[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.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" = ? 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.5ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?)[0m [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-05-13 16:13:30.949482"], ["updated_at", "2016-05-13 16:13:30.949482"]] [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.0ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?)[0m [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-05-13 16:13:30.953205"], ["updated_at", "2016-05-13 16:13:30.953205"]] [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[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[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"."id" NOT IN (1, 2, 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", 100.0], ["updated_at", "2016-05-13 16:13:30.959541"], ["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-05-13 16:13:30.960816"], ["id", 1]] [1m[36m (0.1ms)[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.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 85' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' 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 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-05-13 16:13:30.969318"], ["updated_at", "2016-05-13 16:13:30.969318"]] [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.0ms)[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.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 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-05-13 16:13:30.972446"], ["updated_at", "2016-05-13 16:13:30.972446"]] [1m[35m (0.0ms)[0m 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", "34"], ["created_at", "2016-05-13 16:13:30.974398"], ["updated_at", "2016-05-13 16:13:30.974398"]] [1m[36m (0.0ms)[0m [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", "29"], ["created_at", "2016-05-13 16:13:30.975604"], ["updated_at", "2016-05-13 16:13:30.975604"]] [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-05-13 16:13:30.978415"], ["updated_at", "2016-05-13 16:13:30.978415"]] [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-05-13 16:13:30.980192"], ["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-05-13 16:13:30.983122"], ["updated_at", "2016-05-13 16:13:30.983122"]] [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[36m (0.1ms)[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 87' 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 87' 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 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-05-13 16:13:30.992605"], ["updated_at", "2016-05-13 16:13:30.992605"]] [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 88' 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 88' 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 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-05-13 16:13:30.997770"], ["updated_at", "2016-05-13 16:13:30.997770"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:31.000220"], ["updated_at", "2016-05-13 16:13:31.000220"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:31.001572"], ["updated_at", "2016-05-13 16:13:31.001572"]] [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-05-13 16:13:31.004729"], ["updated_at", "2016-05-13 16:13:31.004729"]] [1m[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-05-13 16:13:31.006364"], ["id", 1]] [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", "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", "2016-05-13 16:13:31.009441"], ["updated_at", "2016-05-13 16:13:31.009441"]] [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-05-13 16:13:31.011650"], ["updated_at", "2016-05-13 16:13:31.011650"]] [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-05-13 16:13:31.013526"], ["updated_at", "2016-05-13 16:13:31.013526"]] [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" IS NOT NULL) [["coalescing_panda_course_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[35mCoalescingPanda::Enrollment Load (0.2ms)[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 89' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' 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 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-05-13 16:13:31.022863"], ["updated_at", "2016-05-13 16:13:31.022863"]] [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 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.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 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-05-13 16:13:31.026217"], ["updated_at", "2016-05-13 16:13:31.026217"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.028252"], ["updated_at", "2016-05-13 16:13:31.028252"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.029574"], ["updated_at", "2016-05-13 16:13:31.029574"]] [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-05-13 16:13:31.032098"], ["updated_at", "2016-05-13 16:13:31.032098"]] [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-05-13 16:13:31.033593"], ["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-05-13 16:13:31.035883"], ["updated_at", "2016-05-13 16:13:31.035883"]] [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-05-13 16:13:31.038150"], ["updated_at", "2016-05-13 16:13:31.038150"]] [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-05-13 16:13:31.039783"], ["updated_at", "2016-05-13 16:13:31.039783"]] [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", "2016-05-13 16:13:31.041364"], ["updated_at", "2016-05-13 16:13:31.041364"]] [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" IS NOT NULL)[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.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 (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 91' LIMIT 1[0m [1m[35mCoalescingPanda::LtiAccount Exists (0.0ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' 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 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-05-13 16:13:31.062379"], ["updated_at", "2016-05-13 16:13:31.062379"]] [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 92' 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 92' 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 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-05-13 16:13:31.066170"], ["updated_at", "2016-05-13 16:13:31.066170"]] [1m[36m (0.0ms)[0m [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", "37"], ["created_at", "2016-05-13 16:13:31.068969"], ["updated_at", "2016-05-13 16:13:31.068969"]] [1m[35m (0.0ms)[0m 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", "32"], ["created_at", "2016-05-13 16:13:31.070552"], ["updated_at", "2016-05-13 16:13:31.070552"]] [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-05-13 16:13:31.073971"], ["updated_at", "2016-05-13 16:13:31.073971"]] [1m[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-05-13 16:13:31.076235"], ["id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mCoalescingPanda::GroupCategory Load (0.2ms)[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", "2016-05-13 16:13:31.084359"], ["updated_at", "2016-05-13 16:13:31.084359"]] [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.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 93' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' 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 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-05-13 16:13:31.096615"], ["updated_at", "2016-05-13 16:13:31.096615"]] [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 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.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 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-05-13 16:13:31.100808"], ["updated_at", "2016-05-13 16:13:31.100808"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.102685"], ["updated_at", "2016-05-13 16:13:31.102685"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.103867"], ["updated_at", "2016-05-13 16:13:31.103867"]] [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-05-13 16:13:31.106402"], ["updated_at", "2016-05-13 16:13:31.106402"]] [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-05-13 16:13:31.107768"], ["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-05-13 16:13:31.110034"], ["updated_at", "2016-05-13 16:13:31.110034"]] [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.2ms)[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 95' 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 95' 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 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-05-13 16:13:31.189544"], ["updated_at", "2016-05-13 16:13:31.189544"]] [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 96' 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 96' 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 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-05-13 16:13:31.194569"], ["updated_at", "2016-05-13 16:13:31.194569"]] [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", "2016-05-13 16:13:31.197113"], ["updated_at", "2016-05-13 16:13:31.197113"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.198514"], ["updated_at", "2016-05-13 16:13:31.198514"]] [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-05-13 16:13:31.201405"], ["updated_at", "2016-05-13 16:13:31.201405"]] [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", "2016-05-13 16:13:31.203302"], ["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", "2016-05-13 16:13:31.205975"], ["updated_at", "2016-05-13 16:13:31.205975"]] [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.6ms)[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 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.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-05-13 16:13:31.213976"], ["updated_at", "2016-05-13 16:13:31.213976"]] [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 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-05-13 16:13:31.217010"], ["updated_at", "2016-05-13 16:13:31.217010"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:31.219489"], ["updated_at", "2016-05-13 16:13:31.219489"]] [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", "35"], ["created_at", "2016-05-13 16:13:31.220891"], ["updated_at", "2016-05-13 16:13:31.220891"]] [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", "2016-05-13 16:13:31.224067"], ["updated_at", "2016-05-13 16:13:31.224067"]] [1m[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-05-13 16:13:31.226203"], ["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-05-13 16:13:31.229130"], ["updated_at", "2016-05-13 16:13:31.229130"]] [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-05-13 16:13:31.231703"], ["updated_at", "2016-05-13 16:13:31.231703"]] [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-05-13 16:13:31.233455"], ["updated_at", "2016-05-13 16:13:31.233455"]] [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", "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-05-13 16:13:31.235215"], ["updated_at", "2016-05-13 16:13:31.235215"]] [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" IS NOT NULL) [["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.1ms)[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", "2016-05-13 16:13:31.270300"], ["updated_at", "2016-05-13 16:13:31.270300"]] [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", "2016-05-13 16:13:31.273972"], ["updated_at", "2016-05-13 16:13:31.273972"]] [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", "2016-05-13 16:13:31.277657"], ["updated_at", "2016-05-13 16:13:31.277657"]] [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", "2016-05-13 16:13:31.281885"], ["updated_at", "2016-05-13 16:13:31.281885"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[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.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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' 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 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-05-13 16:13:31.290917"], ["updated_at", "2016-05-13 16:13:31.290917"]] [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-05-13 16:13:31.294928"], ["updated_at", "2016-05-13 16:13:31.294928"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.297526"], ["updated_at", "2016-05-13 16:13:31.297526"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.298983"], ["updated_at", "2016-05-13 16:13:31.298983"]] [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-05-13 16:13:31.302056"], ["updated_at", "2016-05-13 16:13:31.302056"]] [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-05-13 16:13:31.303518"], ["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-05-13 16:13:31.305751"], ["updated_at", "2016-05-13 16:13:31.305751"]] [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", "2016-05-13 16:13:31.309275"], ["updated_at", "2016-05-13 16:13:31.309275"]] [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", "2016-05-13 16:13:31.311573"], ["updated_at", "2016-05-13 16:13:31.311573"]] [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.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 101' 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 101' 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 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-05-13 16:13:31.320897"], ["updated_at", "2016-05-13 16:13:31.320897"]] [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-05-13 16:13:31.325478"], ["updated_at", "2016-05-13 16:13:31.325478"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.327937"], ["updated_at", "2016-05-13 16:13:31.327937"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.329329"], ["updated_at", "2016-05-13 16:13:31.329329"]] [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-05-13 16:13:31.331889"], ["updated_at", "2016-05-13 16:13:31.331889"]] [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-05-13 16:13:31.333321"], ["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-05-13 16:13:31.335519"], ["updated_at", "2016-05-13 16:13:31.335519"]] [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.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-05-13 16:13:31.337813"], ["updated_at", "2016-05-13 16:13:31.337813"]] [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-05-13 16:13:31.339465"], ["updated_at", "2016-05-13 16:13:31.339465"]] [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", "2016-05-13 16:13:31.341020"], ["updated_at", "2016-05-13 16:13:31.341020"]] [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" IS NOT NULL) [["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", "2016-05-13 16:13:31.356734"], ["updated_at", "2016-05-13 16:13:31.356734"]] [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", "2016-05-13 16:13:31.358993"], ["updated_at", "2016-05-13 16:13:31.358993"]] [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.0ms)[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 103' LIMIT 1 [1m[36mCoalescingPanda::LtiAccount Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 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-05-13 16:13:31.369965"], ["updated_at", "2016-05-13 16:13:31.369965"]] [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 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.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 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-05-13 16:13:31.373297"], ["updated_at", "2016-05-13 16:13:31.373297"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:31.375454"], ["updated_at", "2016-05-13 16:13:31.375454"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:31.376648"], ["updated_at", "2016-05-13 16:13:31.376648"]] [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-05-13 16:13:31.379256"], ["updated_at", "2016-05-13 16:13:31.379256"]] [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-05-13 16:13:31.380625"], ["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", "2016-05-13 16:13:31.384376"], ["updated_at", "2016-05-13 16:13:31.384376"]] [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", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-05-13 16:13:31.387013"], ["updated_at", "2016-05-13 16:13:31.387013"]] [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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]] [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "coalescing_panda_group_memberships"[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 105' 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 105' 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 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-05-13 16:13:31.397209"], ["updated_at", "2016-05-13 16:13:31.397209"]] [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 106' 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 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-05-13 16:13:31.458164"], ["updated_at", "2016-05-13 16:13:31.458164"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.460533"], ["updated_at", "2016-05-13 16:13:31.460533"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.461907"], ["updated_at", "2016-05-13 16:13:31.461907"]] [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-05-13 16:13:31.464739"], ["updated_at", "2016-05-13 16:13:31.464739"]] [1m[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-05-13 16:13:31.466220"], ["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 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.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 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-05-13 16:13:31.473949"], ["updated_at", "2016-05-13 16:13:31.473949"]] [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.1ms)[0m SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' 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 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-05-13 16:13:31.477931"], ["updated_at", "2016-05-13 16:13:31.477931"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.480582"], ["updated_at", "2016-05-13 16:13:31.480582"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.482405"], ["updated_at", "2016-05-13 16:13:31.482405"]] [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-05-13 16:13:31.486095"], ["updated_at", "2016-05-13 16:13:31.486095"]] [1m[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-05-13 16:13:31.488198"], ["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 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", "2016-05-13 16:13:31.497183"], ["updated_at", "2016-05-13 16:13:31.497183"]] [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", "2016-05-13 16:13:31.500312"], ["updated_at", "2016-05-13 16:13:31.500312"]] [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", "46"], ["created_at", "2016-05-13 16:13:31.502839"], ["updated_at", "2016-05-13 16:13:31.502839"]] [1m[35m (0.0ms)[0m 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", "2016-05-13 16:13:31.504484"], ["updated_at", "2016-05-13 16:13:31.504484"]] [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-05-13 16:13:31.508046"], ["updated_at", "2016-05-13 16:13:31.508046"]] [1m[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-05-13 16:13:31.510205"], ["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 111' 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 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-05-13 16:13:31.519025"], ["updated_at", "2016-05-13 16:13:31.519025"]] [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.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 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-05-13 16:13:31.522833"], ["updated_at", "2016-05-13 16:13:31.522833"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:31.525285"], ["updated_at", "2016-05-13 16:13:31.525285"]] [1m[36m (0.0ms)[0m [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-05-13 16:13:31.526731"], ["updated_at", "2016-05-13 16:13:31.526731"]] [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-05-13 16:13:31.530280"], ["updated_at", "2016-05-13 16:13:31.530280"]] [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-05-13 16:13:31.532087"], ["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 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", "2016-05-13 16:13:31.541274"], ["updated_at", "2016-05-13 16:13:31.541274"]] [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", "2016-05-13 16:13:31.545194"], ["updated_at", "2016-05-13 16:13:31.545194"]] [1m[36m (0.0ms)[0m [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", "48"], ["created_at", "2016-05-13 16:13:31.547609"], ["updated_at", "2016-05-13 16:13:31.547609"]] [1m[35m (0.0ms)[0m 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", "43"], ["created_at", "2016-05-13 16:13:31.549024"], ["updated_at", "2016-05-13 16:13:31.549024"]] [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-05-13 16:13:31.551750"], ["updated_at", "2016-05-13 16:13:31.551750"]] [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", "2016-05-13 16:13:31.553570"], ["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 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", "2016-05-13 16:13:31.562541"], ["updated_at", "2016-05-13 16:13:31.562541"]] [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.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", "2016-05-13 16:13:31.566049"], ["updated_at", "2016-05-13 16:13:31.566049"]] [1m[35m (0.0ms)[0m 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", "49"], ["created_at", "2016-05-13 16:13:31.567823"], ["updated_at", "2016-05-13 16:13:31.567823"]] [1m[36m (0.0ms)[0m [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", "44"], ["created_at", "2016-05-13 16:13:31.569045"], ["updated_at", "2016-05-13 16:13:31.569045"]] [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-05-13 16:13:31.571692"], ["updated_at", "2016-05-13 16:13:31.571692"]] [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-05-13 16:13:31.573279"], ["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 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-05-13 16:13:31.582401"], ["updated_at", "2016-05-13 16:13:31.582401"]] [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", "2016-05-13 16:13:31.585904"], ["updated_at", "2016-05-13 16:13:31.585904"]] [1m[36m (0.0ms)[0m [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", "50"], ["created_at", "2016-05-13 16:13:31.588315"], ["updated_at", "2016-05-13 16:13:31.588315"]] [1m[35m (0.0ms)[0m 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", "45"], ["created_at", "2016-05-13 16:13:31.589973"], ["updated_at", "2016-05-13 16:13:31.589973"]] [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-05-13 16:13:31.593560"], ["updated_at", "2016-05-13 16:13:31.593560"]] [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-05-13 16:13:31.595361"], ["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 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-05-13 16:13:31.602917"], ["updated_at", "2016-05-13 16:13:31.602917"]] [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.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 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-05-13 16:13:31.606636"], ["updated_at", "2016-05-13 16:13:31.606636"]] [1m[35m (0.0ms)[0m 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", "51"], ["created_at", "2016-05-13 16:13:31.609151"], ["updated_at", "2016-05-13 16:13:31.609151"]] [1m[36m (0.0ms)[0m [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", "46"], ["created_at", "2016-05-13 16:13:31.610440"], ["updated_at", "2016-05-13 16:13:31.610440"]] [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-05-13 16:13:31.613357"], ["updated_at", "2016-05-13 16:13:31.613357"]] [1m[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-05-13 16:13:31.614949"], ["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::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[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 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-05-13 16:13:31.623955"], ["updated_at", "2016-05-13 16:13:31.623955"]] [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.1ms)[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", "2016-05-13 16:13:31.627726"], ["updated_at", "2016-05-13 16:13:31.627726"]] [1m[35m (0.0ms)[0m 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-05-13 16:13:31.630231"], ["updated_at", "2016-05-13 16:13:31.630231"]] [1m[36m (0.0ms)[0m [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", "2016-05-13 16:13:31.631863"], ["updated_at", "2016-05-13 16:13:31.631863"]] [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-05-13 16:13:31.635096"], ["updated_at", "2016-05-13 16:13:31.635096"]] [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-05-13 16:13:31.636838"], ["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::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[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", "Started"], ["updated_at", "2016-05-13 16:13:31.640266"], ["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::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[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.7ms)[0m [1mrollback transaction[0m